/**
 * Responsive Table
 */
:root {
    --navy: var(--primary-blue)!important;
    --green: #8BC440;
    --green-dark: #6a9a2e;
    --gray-bg: #ffffff;
    --gray-border: #dce1e4;
    --text-dark: var(--primary-blue)!important;
    --text-muted: #3d5565;
    --white: #ffffff;
}
.table-wrapper {
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--gray-border);
    margin:0px 8vw 0px 7vw;
    margin-top:0px;
    margin-bottom:80px;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent!important;
    border: 1px solid var(--gray-border);
    margin:0px!important;
}

/* ── Header ── */
.responsive-table thead th {
    padding: 1.25rem 1rem;
    text-align: center;
    vertical-align: bottom;
    font-weight: 700;
    border-bottom: 2px solid var(--gray-border);
}
.responsive-table thead tr {
    background:#ffffff;
}
.responsive-table thead th:first-child {
    text-align: left;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--navy);
    width: 36%;
    border-right: 2px solid var(--gray-border);
}

.responsive-table thead th .plan-name {
    display: block;
    font-size: 1.15rem;
    color: #1A1A1A;
    margin-bottom: 0.15rem;
}

.responsive-table thead th .plan-price {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
}

.responsive-table thead th .plan-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.responsive-table thead th.preferred {
    background: var(--green);
    color: var(--white);
    border: 2px solid var(--green);
    border-bottom: none;
    border-radius: 0px;
    position: relative;
}

.responsive-table thead th.preferred .plan-name,
.responsive-table thead th.preferred .plan-price {
    color: var(--white);
}

.responsive-table thead th.preferred .plan-price span {
    color: rgba(255,255,255,0.8);
}

/* ── Body rows ── */
.responsive-table tbody tr:nth-child(odd) {
    background: rgba(0, 0, 0, 0.02)!important;
}
.responsive-table tbody td {
    padding: 0.7rem 1rem;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid var(--gray-border);
}

.responsive-table tbody td:first-child {
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.84rem;
    border-right: 2px solid var(--gray-border);
}

.responsive-table tbody tr:nth-child(even) {
    background: var(--gray-bg);
}

.responsive-table tbody td.preferred,
.responsive-table tfoot td.preferred {
    border-left: 2px solid var(--green);
    border-right: 2px solid var(--green);
    background: rgba(74, 155, 78, 0.04);
}

.responsive-table tbody tr:nth-child(even) td.preferred {
    background: rgba(74, 155, 78, 0.07);
}

.responsive-table .dash {
    color: #bcc5ca;
    font-size: 1.1rem;
    font-weight: 600;
}

.responsive-table .check {
    color: var(--green);
    font-size: 1.2rem;
    font-weight: 700;
    position:relative;
    display:inline-block;
    text-indent:-99999px;
}
.responsive-table .check:before {
    position: absolute;
    content: "";
    display: block;
    left: -10px;
    top: 4px;
    width: 25px;
    height: 24px;
    background: url("/sites/default/files/2026-04/checkmark-green.png");
    mix-blend-mode: multiply;
}

/* ── Footer rows ── */
.responsive-table tfoot td {
    padding: 0.7rem 1rem;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--gray-border);
}

.responsive-table tfoot td:first-child {
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    color: var(--navy);
    border-right: 2px solid var(--gray-border);
}

.responsive-table tfoot tr.totals-monthly td,
.responsive-table tfoot tr.totals-annual td {
    background: var(--white);
}

.responsive-table tfoot tr.totals-annual td {
    border-bottom: 2px solid var(--gray-border);
}
.responsive-table tbody tr:nth-child(even).savings {
    background:var(--primary-blue)!important;
}
.responsive-table tbody tr:nth-child(even).savings td {
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: none;
    background: var(--navy);
    color: var(--white)!important;
}

.responsive-table tbody tr:nth-child(even).savings td:first-child {
    font-size: 0.82rem;
    border-right: 2px solid rgba(255,255,255,0.15);
}

.responsive-table tbody tr:nth-child(even).savings td.preferred {
    background: var(--navy);
    border-left: 2px solid var(--green);
    border-right: 2px solid var(--green);
}

/* ══════════════════════════════════
   MOBILE: stacked layout
   ══════════════════════════════════ */
@media (max-width: 767px) {
    body { padding: 1rem 0.5rem; }

    .responsive-table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table tfoot,
    .responsive-table tr,
    .responsive-table th,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table thead { display: none; }

    .responsive-table tbody tr,
    .responsive-table tfoot tr {
        display: flex;
        flex-wrap: wrap;
        border-bottom: 1px solid var(--gray-border);
    }

    .responsive-table tbody td:first-child,
    .responsive-table tfoot td:first-child {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-border);
        padding: 0.65rem 0.75rem;
        font-weight: 600;
        font-size: 0.82rem;
        color: var(--navy);
        text-align: left;
        background: rgba(27, 60, 80, 0.04);
    }

    .responsive-table tbody td:nth-child(2),
    .responsive-table tbody td:nth-child(3),
    .responsive-table tbody td:nth-child(4),
    .responsive-table tfoot td:nth-child(2),
    .responsive-table tfoot td:nth-child(3),
    .responsive-table tfoot td:nth-child(4) {
        width: 33.333%;
        border-bottom: none;
        border-right: none;
        padding: 0.55rem 0.25rem;
        text-align: center;
        font-size: 0.82rem;
    }

    .responsive-table tbody td:nth-child(2),
    .responsive-table tbody td:nth-child(3),
    .responsive-table tfoot td:nth-child(2),
    .responsive-table tfoot td:nth-child(3) {
        border-right: 1px solid var(--gray-border);
    }

    .responsive-table tbody td:nth-child(2)::before,
    .responsive-table tbody td:nth-child(3)::before,
    .responsive-table tbody td:nth-child(4)::before,
    .responsive-table tfoot td:nth-child(2)::before,
    .responsive-table tfoot td:nth-child(3)::before,
    .responsive-table tfoot td:nth-child(4)::before {
        display: block;
        font-size: 0.62rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-muted);
        margin-bottom: 0.15rem;
    }

    .responsive-table tbody td:nth-child(2)::before,
    .responsive-table tfoot td:nth-child(2)::before { content: "Essential"; }

    .responsive-table tbody td:nth-child(3)::before,
    .responsive-table tfoot td:nth-child(3)::before { content: "Preferred"; color: var(--green); }

    .responsive-table tbody td:nth-child(4)::before,
    .responsive-table tfoot td:nth-child(4)::before { content: "Total Home"; }

    .responsive-table tbody td.preferred,
    .responsive-table tfoot td.preferred {
        border-left: none;
        border-right: 1px solid var(--gray-border) !important;
        background: rgba(74, 155, 78, 0.06);
    }

    .responsive-table tbody tr:nth-child(even) td.preferred {
        background: rgba(74, 155, 78, 0.09);
    }

    .responsive-table tfoot tr.savings {
        border-bottom: none;
    }

    .responsive-table tfoot tr.savings td {
        background: var(--navy);
        color: var(--white);
        border-bottom: none;
    }

    .responsive-table tfoot tr.savings td:first-child {
        background: var(--navy);
        color: var(--white);
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .responsive-table tfoot tr.savings td:nth-child(2)::before,
    .responsive-table tfoot tr.savings td:nth-child(3)::before,
    .responsive-table tfoot tr.savings td:nth-child(4)::before {
        color: rgba(255,255,255,0.55);
    }

    .responsive-table tfoot tr.savings td:nth-child(2),
    .responsive-table tfoot tr.savings td:nth-child(3) {
        border-right: 1px solid rgba(255,255,255,0.15) !important;
    }

    .responsive-table tfoot tr.savings td.preferred {
        background: var(--navy);
        border-left: none;
    }
    .responsive-table tbody td:nth-child(2)::before, .responsive-table tfoot td:nth-child(2)::before,
    .responsive-table tbody td:nth-child(4)::before, .responsive-table tfoot td:nth-child(4)::before {
        color:#ffffff!important;
    }
    .responsive-table tr {
        padding:0px!important;
    }
}