/* ==========================================================================
   Product Comparison Widget — widget.css
   All selectors are scoped under .pcw-card to avoid theme conflicts.
   ========================================================================== */

/* ── Card wrapper ──────────────────────────────────────────────────────── */
.pcw-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 52px 48px 56px;
    box-shadow: 0 4px 48px rgba(0, 0, 0, 0.07);
    font-family: 'DM Sans', sans-serif;
    box-sizing: border-box;
}

.pcw-card *,
.pcw-card *::before,
.pcw-card *::after {
    box-sizing: border-box;
}

.pcw-card-header {
    margin-bottom: 44px;
}

.pcw-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: #1e2d1e;
    margin: 0 0 4px;
    padding: 0;
    line-height: 1.2;
}

.pcw-card-subtitle {
    font-size: 14px;
    color: #8aab8a;
    margin: 0;
    padding: 0;
}

/* ── Comparison grid ───────────────────────────────────────────────────── */
.pcw-comparison-grid {
    display: grid;
    grid-template-columns: 190px 1fr 1fr 1fr;
    column-gap: 12px;
    align-items: stretch;
}

/* ── Label column ──────────────────────────────────────────────────────── */
.pcw-label-col {
    display: flex;
    flex-direction: column;
}

.pcw-label-spacer {
    flex-shrink: 0;
}

.pcw-row-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9dbf9d;
    display: flex;
    align-items: center;
    padding-right: 12px;
    flex: 1;
    min-height: 56px;
    border-top: 1px solid #e8f0e8;
}

.pcw-row-label:first-of-type {
    border-top: none;
}

/* ── Product column card ───────────────────────────────────────────────── */
.pcw-prod-col {
    background: #f4faf5;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Product header ────────────────────────────────────────────────────── */
.pcw-prod-header {
    padding: 28px 20px 24px;
    text-align: center;
    border-bottom: 1px solid #e3efe4;
    flex-shrink: 0;
}

.pcw-prod-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
    margin: 0 auto 16px;
}

.pcw-prod-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e2d1e;
    line-height: 1.35;
    margin-bottom: 12px;
}

.pcw-prod-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #3d7a5c;
    display: block;
    line-height: 1;
}

.pcw-prod-price-sub {
    font-size: 12px;
    font-weight: 400;
    color: #aaaaaa;
}

/* ── Data cells ────────────────────────────────────────────────────────── */
.pcw-prod-cell {
    padding: 20px 18px;
    font-size: 13px;
    color: #3a4a3a;
    line-height: 1.6;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
}

.pcw-prod-cell.stripe {
    background: #eaf4ec;
}

/* ── Tag badge ─────────────────────────────────────────────────────────── */
.pcw-tag {
    display: inline-block;
    background: #e0f2e8;
    color: #2e6347;
    border-radius: 7px;
    font-size: 11px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    padding: 5px 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
}

/* ── Checkmark ─────────────────────────────────────────────────────────── */
.pcw-check-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #e0f2e8;
    border-radius: 50%;
    color: #3d7a5c;
    font-size: 15px;
    font-style: normal;
}

.pcw-cross {
    color: #aaaaaa;
    font-size: 18px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .pcw-card {
        padding: 36px 24px 40px;
    }

    .pcw-comparison-grid {
        grid-template-columns: 140px 1fr 1fr 1fr;
        column-gap: 8px;
    }

    .pcw-card-title {
        font-size: 22px;
    }

    .pcw-prod-price {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    /* Stack to a single-product view by scrolling horizontally */
    .pcw-card {
        padding: 28px 16px 32px;
        overflow-x: auto;
    }

    .pcw-comparison-grid {
        min-width: 560px;
    }
}
