/* ============================================================
   Comparison Table Widget — comparison-table.css
   ============================================================ */

/* Wrapper */
.ctw-wrapper {
    width: 100%;
    overflow-x: auto;               /* horizontal scroll on very small screens */
    -webkit-overflow-scrolling: touch;
    padding: 0 0 8px;
}

/* Table shell */
.ctw-table {
    display: flex;
    flex-direction: column;
    background: #F0F0F6;
    border-radius: 16px;
    overflow: visible;              /* MUST stay visible so shadow isn't clipped */
    min-width: 560px;               /* triggers horizontal scroll on small screens */
    position: relative;
}

/* ── Rows ── */
.ctw-row {
    display: grid;
    grid-template-columns: 28% 1fr 1fr;
    border-bottom: 1px solid rgba(42, 42, 184, 0.10);
}

.ctw-row.ctw-last-row {
    border-bottom: none;
}

.ctw-header-row {
    border-bottom: 1px solid rgba(42, 42, 184, 0.10);
}

/* ── Cells ── */
.ctw-cell {
    padding: 22px 28px;
    display: flex;
    align-items: center;
}

.ctw-cell-label {
    padding-left: 32px;
}

/* ── Row label ── */
.ctw-label {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #2A2AB8;
    line-height: 1.4;
}

/* ── Value text ── */
.ctw-value {
    font-family: inherit;
    font-size: 0.975rem;
    font-weight: 400;
    color: #1a1a2e;
    line-height: 1.5;
}

/* ── Heading text ── */
.ctw-heading {
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2A2AB8;
    line-height: 1.3;
}

/* ============================================================
   Highlighted column card (right column)
   ============================================================ */
.ctw-col-highlight {
    background: #FFFFFF;
    box-shadow: 0 8px 40px rgba(42, 42, 184, 0.12);
    position: relative;
    /* bleed up/down beyond the table background */
    z-index: 2;
}

/* Top cap — rounded corners + extra top padding on header */
.ctw-highlight-header {
    border-radius: 16px 16px 0 0;
    padding-top: 30px;
    margin-top: -8px;              /* bleed above table */
}

/* Bottom cap — rounded corners + extra bottom padding on last row */
.ctw-highlight-last {
    border-radius: 0 0 16px 16px;
    padding-bottom: 30px;
    margin-bottom: -8px;           /* bleed below table */
}

/* Scale highlight column very slightly to give the "lifted" card feel */
.ctw-col-highlight {
    transform: scaleX(1.04);
    transform-origin: right center;
}

/* ============================================================
   Responsive — horizontal scroll on mobile
   The wrapper scrolls; the table keeps its full 3-column
   layout so the highlighted card shadow is never clipped.
   ============================================================ */
@media (max-width: 640px) {

    .ctw-wrapper {
        /* extra bottom padding so the shadow isn't cut off */
        padding-bottom: 16px;
    }

    .ctw-table {
        /* keep min-width so the 3-col grid stays intact */
        min-width: 520px;
    }

    .ctw-cell {
        padding: 18px 20px;
    }

    .ctw-cell-label {
        padding-left: 20px;
    }

    .ctw-label  { font-size: 0.9rem; }
    .ctw-value  { font-size: 0.875rem; }
    .ctw-heading { font-size: 1rem; }
}

/* ============================================================
   Accessibility — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .ctw-col-highlight {
        transform: none;
    }
}
