/* =====================================================
   Ecommerce Comparison Table – style.css
   Classes match the exact HTML structure:
   .comparison-table, .highlight, .highlight-label,
   .check-yes, .check-partial, .check-no
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── Scroll wrapper for narrow screens ── */
.ect-responsive-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-family: 'DM Sans', sans-serif;
}

/* ── Base table ── */
.comparison-table {
    width: 100%;
    min-width: 560px;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(27,42,59,.12), 0 2px 8px rgba(27,42,59,.06);
    background: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    color: #1b2a3b;
}

/* ── THEAD ── */
.comparison-table thead tr {
    background: #1b2a3b;
}

.comparison-table thead th {
    padding: 16px 18px;
    text-align: left;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    border: none;
}

/* Featured header column */
.comparison-table thead th.highlight {
    background: #4a8c3f;
    color: #fff;
    font-size: .82rem;
    letter-spacing: .01em;
    text-transform: none;
    font-weight: 700;
}

/* ── TBODY rows ── */
.comparison-table tbody tr {
    border-bottom: 1px solid #e4eaf0;
    transition: background .15s ease;
}
.comparison-table tbody tr:last-child {
    border-bottom: none;
}
.comparison-table tbody tr:hover {
    background: #f7fafc;
}

.comparison-table tbody td {
    padding: 15px 18px;
    vertical-align: middle;
    border: none;
    font-size: .88rem;
    color: #1b2a3b;
}

/* Category label column */
.comparison-table tbody td.highlight-label {
    font-weight: 700;
    font-size: .9rem;
    color: #1b2a3b;
}

/* Featured body column */
.comparison-table tbody td.highlight {
    background: #eef5ec;
}

/* ── Span colour classes ── */
.comparison-table .check-yes {
    color: #4a8c3f;
    font-weight: 700;
}

.comparison-table .check-partial {
    color: #e07b2a;
    font-weight: 600;
}

.comparison-table .check-no {
    color: #9ba8b5;
    font-style: italic;
    font-weight: 400;
}

/* ── Rounded corners on first/last header cells ── */
.comparison-table thead th:first-child {
    border-radius: 14px 0 0 0;
}
.comparison-table thead th:last-child {
    border-radius: 0 14px 0 0;
}

/* ── Last row bottom corners ── */
.comparison-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 14px;
}
.comparison-table tbody tr:last-child td:last-child {
    border-radius: 0 0 14px 0;
}

.comparison-table  tbody>tr:nth-child(odd)>td {
    background: #fff !important;
}
.comparison-table tbody > tr:nth-child(odd) > td:nth-child(2) {
    background: #eef5ec !important;
}
.comparison-table td {
    border-bottom: 1px solid #e0e0e0 !important;
}
.comparison-table tr:last-child td {
    border-bottom: none !important;
}

/* ────────────────────────────────────────────
   MOBILE  ≤ 600px  →  stacked card layout
───────────────────────────────────────────── */
@media (max-width: 600px) {
    .ect-responsive-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table {
        min-width: 480px;
        font-size: .75rem;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 10px 10px;
        font-size: .75rem;
    }
}
