/* Manage Cookies page. Class names are prefixed wz-mc- to avoid collisions with global styles.
   Matches the wheelzy.com Manage Cookies design (Poppins headings / Roboto body). */

/* The GPC banner, "saved" pill, and GPC note are toggled by cookie-consent.js via the `hidden`
   attribute. Their class rules set display:flex/inline-block, which would otherwise override the
   browser's [hidden] rule and show them ALWAYS — so make `hidden` win. cookie-consent.js reveals
   them by clearing `hidden` (el.hidden = false), after which their normal display applies. */
[hidden] {
    display: none !important;
}

/* ---------- page reading column: the whole 860px column is centered on the page (so the heading, intro
   and card all line up), and pushed clear of the fixed top navbar. Centering the container — not each
   child — avoids per-element margin rules (.page-header/.wz-mc-intro set margin:0) overriding it. ---------- */
.wz-mc-page {
    max-width: 915px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 40px;
    /* TrueNate's global CSS applies text-align:center in places; force the whole cookie page's text
       left so the heading, intro, and the Do-Not-Sell panel (heading/body/button) all read flush-left. */
    text-align: left;
}

/* ---------- breadcrumb ---------- */
.wz-mc-breadcrumb {
    margin-bottom: 14px;
    font: 400 13px Roboto, sans-serif;
    color: #8a90a3;
}

.wz-mc-breadcrumb-link {
    color: #259def;
}

.wz-mc-breadcrumb-link:hover,
.wz-mc-breadcrumb-link:focus {
    text-decoration: underline;
}

.wz-mc-breadcrumb-sep {
    margin: 0 8px;
    color: #b7bdcb;
}

.wz-mc-breadcrumb-current {
    color: #8a90a3;
}

/* ---------- heading + intro ---------- */
.wz-mc-page .page-header {
    margin: 0;
    font: 700 36px/1.15 Poppins, sans-serif;
    color: #2d3435;
    letter-spacing: -0.5px;
}

.wz-mc-intro {
    margin: 14px 0 28px;
    max-width: 760px;
    font: 400 16px/1.7 Roboto, sans-serif;
    color: #525975;
}

.wz-mc-intro a {
    color: #259def;
    font-weight: 500;
}

/* ---------- GPC banner (hidden until JS reveals when GPC is active) ---------- */
.wz-mc-gpc-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 18px;
    border: 1px solid #b6e2ce;
    border-radius: 12px;
    background-color: #eaf7f0;
    color: #1f6b4d;
}

.wz-mc-gpc-banner-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #00B67A;
}

.wz-mc-gpc-banner-text {
    margin: 0;
    font: 400 14px/1.5 Roboto, sans-serif;
}

/* ---------- preferences card ---------- */
.wz-mc-card {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15, 81, 152, .05);
    overflow: hidden;
}

.wz-mc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px 26px;
    border-bottom: 1px solid #eef0f4;
}

.wz-mc-card-title {
    margin: 0;
    font: 700 20px Poppins, sans-serif;
    color: #2d3435;
}

.wz-mc-status-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #bfe8d4;
    background-color: #e7f7ef;
    color: #00875a;
    font: 600 13px Poppins, sans-serif;
}

/* ---------- category rows (inset dividers via 26px gutter on the form) ---------- */
#wzManageCookies {
    padding: 6px 26px 8px;
}

.wz-mc-category {
    border: 0;
    border-bottom: 1px solid #f1f2f6;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.wz-mc-category-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 0;
}

.wz-mc-category-info {
    flex: 1 1 auto;
    min-width: 0;
}

.wz-mc-category-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wz-mc-category-title {
    margin: 0;
    font: 600 16.5px Poppins, sans-serif;
    color: #2d3435;
}

.wz-mc-category-desc {
    margin: 7px 0 0;
    max-width: 560px;
    font: 400 14px/1.6 Roboto, sans-serif;
    color: #6b7184;
}

/* ---------- category badges (squared uppercase tags) ---------- */
.wz-mc-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 5px;
    font: 600 11px Poppins, sans-serif;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.4;
}

.wz-mc-badge-always {
    color: #259def;
    background-color: #e6f3ff;
}

.wz-mc-badge-sale {
    color: #9a6b00;
    background-color: #fff3d6;
}

/* ---------- toggle switch (real checkbox styled as a 50x28 pill) ---------- */
.wz-mc-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.wz-mc-switch input {
    position: absolute;
    opacity: 0;
    width: 50px;
    height: 28px;
    margin: 0;
    cursor: pointer;
}

.wz-mc-switch-track {
    display: inline-block;
    width: 50px;
    height: 28px;
    border-radius: 30px;
    background-color: #cfd3df;
    transition: background-color .18s ease;
    pointer-events: none;
}

.wz-mc-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: left .18s ease;
}

.wz-mc-switch input:checked + .wz-mc-switch-track {
    background-color: #2f42e1;
}

.wz-mc-switch input:checked + .wz-mc-switch-track::after {
    left: 25px;
}

.wz-mc-switch input:focus-visible + .wz-mc-switch-track {
    outline: 2px solid #2f42e1;
    outline-offset: 2px;
}

.wz-mc-switch input:disabled {
    cursor: not-allowed;
}

.wz-mc-switch input:disabled + .wz-mc-switch-track {
    opacity: .85;
}

.wz-mc-switch input:disabled:checked + .wz-mc-switch-track {
    background-color: #9bc8ee;
}

.wz-mc-gpc-note {
    margin: 8px 0 0;
    font: 400 14px Roboto, sans-serif;
    color: #1f6b4d;
}

/* ---------- Do Not Sell panel ---------- */
.wz-mc-dns-panel {
    padding: 20px 26px 22px;
    border-top: 1px solid #eef0f4;
    background-color: #f3f9ff;
}

.wz-mc-dns-title {
    margin: 0;
    font: 700 16.5px Poppins, sans-serif;
    color: #2d3435;
}

.wz-mc-dns-text {
    margin: 8px 0 0;
    font: 400 14px/1.65 Roboto, sans-serif;
    color: #4f566c;
}

.wz-mc-dns-text strong {
    color: #2d3435;
}

/* ---------- action row ---------- */
.wz-mc-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px 26px 24px;
    background-color: #fafbfd;
    border-top: 1px solid #eef0f4;
}

/* ---------- buttons ---------- */
.wz-mc-btn {
    display: inline-block;
    cursor: pointer;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.wz-mc-btn:hover,
.wz-mc-btn:focus {
    text-decoration: none;
}

/* Disabled state (e.g. "Allow All" under GPC). Mirrors Bootstrap 3's canonical .btn[disabled]
   (bootstrap.css:2478) — the codebase's de-facto convention; customStyles.css/styles.css define
   no disabled-button style. Keep the variant's own color, just dim to 65% and block interaction.
   pointer-events:none also prevents the variant :hover from re-coloring, so no hover rule is needed. */
.wz-mc-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    pointer-events: none;
    box-shadow: none;
}

.wz-mc-btn-primary {
    font: 600 14.5px Poppins, sans-serif;
    padding: 11px 22px;
    border-radius: 7px;
    color: #fff;
    background-color: #2f42e1;
    border-color: #0b1ebd;
}

.wz-mc-btn-primary:hover,
.wz-mc-btn-primary:focus {
    background-color: #14218a;
    color: #fff;
}

.wz-mc-btn-secondary {
    font: 600 14.5px Poppins, sans-serif;
    padding: 11px 20px;
    border-radius: 7px;
    color: #2f42e1;
    background-color: #fff;
    border-color: #c7d2e2;
}

.wz-mc-btn-secondary:hover,
.wz-mc-btn-secondary:focus {
    border-color: #2f42e1;
    color: #2f42e1;
}

.wz-mc-btn-accent {
    margin-top: 14px;
    font: 600 13.5px Poppins, sans-serif;
    padding: 9px 18px;
    border-radius: 7px;
    color: #fff;
    background-color: #259def;
    border-color: #0f5198;
}

.wz-mc-btn-accent:hover,
.wz-mc-btn-accent:focus {
    background-color: #1d7fd1;
    color: #fff;
}

/* ---------- disclosures accordion (flat rows + circular chevron) ---------- */
.wz-mc-disclosures {
    margin-top: 34px;
}

.wz-mc-disclosure {
    border-bottom: 1px solid #e4e6ec;
}

.wz-mc-disclosure-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 4px;
    cursor: pointer;
    list-style: none;
}

.wz-mc-disclosure-summary::-webkit-details-marker {
    display: none;
}

.wz-mc-disclosure-summary::marker {
    content: "";
}

.wz-mc-disclosure-summary:focus-visible {
    outline: 2px solid #2f42e1;
    outline-offset: -2px;
}

.wz-mc-disclosure-title {
    font: 600 17px Poppins, sans-serif;
    color: #2d3435;
}

/* Chevron: a blue glyph centered in a 26px light-blue circle; the circle rotates when open. */
.wz-mc-disclosure-chevron {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #eef3ff;
    color: #259def;
    transition: transform .2s ease;
}

.wz-mc-disclosure-chevron-icon {
    display: block;
}

.wz-mc-disclosure[open] .wz-mc-disclosure-chevron {
    transform: rotate(180deg);
}

.wz-mc-disclosure-body {
    padding: 0 4px 20px;
    max-width: 760px;
    font: 400 15px/1.75 Roboto, sans-serif;
    color: #525975;
}

.wz-mc-disclosure-body p {
    margin: 0 0 12px;
}

.wz-mc-disclosure-body p:last-child {
    margin-bottom: 0;
}

.wz-mc-disclosure-body a {
    color: #259def;
}

/* ---------- responsive ---------- */
@media (max-width: 600px) {
    .wz-mc-page .page-header {
        font-size: 28px;
    }

    .wz-mc-card-head {
        padding: 16px;
    }

    #wzManageCookies {
        padding: 0 16px;
    }

    .wz-mc-category-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .wz-mc-dns-panel,
    .wz-mc-actions {
        padding: 16px;
    }

    .wz-mc-actions .wz-mc-btn,
    .wz-mc-dns-panel .wz-mc-btn {
        flex: 1 1 100%;
        text-align: center;
        width: 100%;
    }
}
