/* ==========================================================================
   "How We Stack Up" comparison table — CSS Grid version.
   Product pages only (enqueued conditionally in functions.php).
   ========================================================================== */

.how-we-stack-up-wrapper {
    padding: 60px 0;
}

.stack-up-layout {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 40px 5px;
}

.stack-up-intro-col {
    flex: 0 0 260px;
}

.stack-up-title {
    color: #9b1533;
    font-family: "bikoregular";
    font-size: 3em;
    line-height: 1.1;
    margin-bottom: 14px;
    text-align: left;
}

.stack-up-intro {
    color: #3f3b2d;
    font-family: "DrescherGroteskBT-Book";
    font-size: 0.9em;
    opacity: 0.75;
    text-align: left;
}

.stack-up-card {
    border-radius: 12px;
    flex: 1 1 500px;
    overflow: hidden;
}

.stack-up-grid {
    display: grid;
    grid-template-columns: minmax(120px, auto) minmax(0, 1fr) minmax(0, 1fr);
}

.stack-up-cell {
    border-bottom: 1px solid rgba(255, 255, 255, 1) !important;
    font-family: "DrescherGroteskBT-Book";
    font-size: 1.275em;
    padding: 14px 24px;
    text-align: left !important;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow-wrap: break-word;
}

.stack-up-grid > .stack-up-cell:nth-last-child(-n+3) {
    border-bottom: none;
}

.stack-up-grid > .stack-up-cell.stack-up-our-col:nth-last-child(-n+3) {
    border-bottom: 2px solid #cb333b !important;
}

.stack-up-cell--head {
    padding: 20px 24px;
    vertical-align: middle;
}

.stack-up-cell--label {
    color: #102555;
    font-family: "bikobold";
    font-size: 1.175em;
    text-align: right !important;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.stack-up-our-col {
    background-color: #f8e2e3 !important;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
}

.stack-up-cell--head.stack-up-our-col {
    border-top: 2px solid #cb333b;
}

.stack-up-competitor-col {
    background-color: #f3f1ed;
}

.stack-up-header-inner {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.stack-up-col-icon {
    flex: 0 0 auto;
    height: 42px;
    object-fit: contain;
    width: 142px;
}

.stack-up-header-text {
    display: block;
    font-family: "bikobold";
    font-size: 1.175em;
    font-weight: normal;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

.stack-up-eyebrow {
    display: block;
}

.stack-up-icon {
    color: #102555 !important;
    display: inline-block;
    font-size: 2rem;
    font-weight: bold;
    margin-right: 8px;
    width: 0.9em;
}

.stack-up-value {
    color: #3f3b2d;
}

.stack-up-our-col .stack-up-value {
    font-family: "bikobold";
}

@media (max-width: 1339px) {
    .stack-up-grid {
        grid-template-columns: minmax(0, 110px) minmax(0, 1fr) minmax(0, 1fr);
    }
    .stack-up-cell {
        font-size: 1em;
        padding: 14px 16px;
    }
    .stack-up-cell--head {
        padding: 16px;
    }
    .stack-up-cell--label {
        font-size: 0.85em;
        line-height: 1.15;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }
    .stack-up-col-icon {
        width: 90px;
        height: 32px;
    }
    .stack-up-header-text {
        font-size: 0.9em;
    }
}

@media (max-width: 767px) {
    .stack-up-layout {
        gap: 24px 0;
    }
    .stack-up-intro-col {
        flex: 1 1 100%;
    }
    .stack-up-card {
        flex: 1 1 100%;
        min-width: 0;
    }
    .stack-up-grid {
        grid-template-columns: minmax(0, 84px) minmax(0, 1fr) minmax(0, 1fr);
    }
    .stack-up-cell {
        font-size: 0.8em;
        padding: 8px 6px;
    }
    .stack-up-cell--head {
        padding: 10px 6px;
    }
    .stack-up-cell--label {
        font-size: 0.64em;
        line-height: 1.15;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }
    .stack-up-header-inner {
        flex-direction: column;
        gap: 4px;
    }
    .stack-up-col-icon {
        height: 24px;
        width: 56px;
    }
    .stack-up-header-text {
        font-size: 0.62em;
    }
    .stack-up-icon {
        font-size: 1.1rem;
        margin-right: 4px;
    }
}

@media (max-width: 420px) {
    .stack-up-grid {
        grid-template-columns: minmax(0, 92px) minmax(0, 1fr) minmax(0, 1fr);
    }
    .stack-up-cell {
        font-size: 0.72em;
        padding: 6px 4px;
    }
    .stack-up-title {
        font-size: 2rem;
    }
    .how-we-stack-up-wrapper{
        padding: 30px 0;
    }
}
