/* ==========================================================
   LEARNVERIFIED
   COOKIE / TRACKING CONSENT
========================================================== */

.lv-consent,
.lv-consent * {
    box-sizing: border-box;
}

.lv-consent [hidden] {
    display: none !important;
}

body.lv-consent-dialog-open {
    overflow: hidden;
}


/* ==========================================================
   BANNER
========================================================== */

.lv-consent__banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 999998;

    max-width: 1180px;
    margin: 0 auto;

    background: var(--lv-white, #fff);
    border: 1px solid rgba(27, 42, 74, .15);
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(27, 42, 74, .18);
}

.lv-consent__banner-inner {
    padding: 24px 26px;
}

.lv-consent__copy {
    max-width: 920px;
}

.lv-consent__banner-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    margin-top: 20px;
}

.lv-consent__privacy-link {
    flex: 0 0 auto;

    font-family: var(--lv-font-body, Inter, sans-serif);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}

.lv-consent__eyebrow {
    display: block;
    margin: 0 0 7px;

    color: var(--lv-gold-dark, #A36A12);
    font-family: var(--lv-font-body, Inter, sans-serif);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lv-consent__copy h2,
.lv-consent__dialog h2 {
    margin: 0;
    padding: 0;

    color: var(--lv-navy, #1B2A4A);
    font-family: var(--lv-font-heading, Georgia, serif);
    font-weight: 500;
    letter-spacing: -.02em;
}

.lv-consent__copy h2 {
    margin-bottom: 8px;
    font-size: 25px;
    line-height: 1.18;
}

.lv-consent__copy p {
    margin: 0;

    color: var(--lv-text-muted, #667085);
    font-family: var(--lv-font-body, Inter, sans-serif);
    font-size: 13px;
    line-height: 1.65;
}

.lv-consent a {
    color: var(--lv-gold-dark, #A36A12);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lv-consent a:hover,
.lv-consent a:focus-visible {
    color: var(--lv-navy, #1B2A4A);
}


/* ==========================================================
   BUTTONS
========================================================== */

.lv-consent__actions,
.lv-consent__dialog-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lv-consent__button {
    min-height: 44px;
    padding: 11px 17px;

    border: 1px solid transparent;
    border-radius: 0;

    font-family: var(--lv-font-body, Inter, sans-serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    transition:
        color .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}


/*
 * Accept and Reject deliberately have equal prominence.
 */
.lv-consent__button--choice {
    color: var(--lv-navy, #1B2A4A);
    background: var(--lv-white, #fff);
    border-color: rgba(27, 42, 74, .42);
}

.lv-consent__button--choice:hover,
.lv-consent__button--choice:focus-visible {
    color: var(--lv-white, #fff);
    background: var(--lv-navy, #1B2A4A);
    border-color: var(--lv-navy, #1B2A4A);
}

.lv-consent__button--primary {
    color: var(--lv-navy, #1B2A4A);
    background: var(--lv-gold, #C98A2C);
    border-color: var(--lv-gold, #C98A2C);
}

.lv-consent__button--primary:hover,
.lv-consent__button--primary:focus-visible {
    background: #D79A3E;
    border-color: #D79A3E;
}

.lv-consent__button--secondary {
    color: var(--lv-navy, #1B2A4A);
    background: transparent;
    border-color: transparent;

    text-decoration: underline;
    text-underline-offset: 3px;
}

.lv-consent__button:focus-visible,
.lv-consent__close:focus-visible,
.lv-consent__reopen:focus-visible,
.lv-consent__switch input:focus-visible + .lv-consent__switch-ui {
    outline: 2px solid var(--lv-navy, #1B2A4A);
    box-shadow: var(--lv-focus-ring);
    outline-offset: 2px;
}


/* ==========================================================
   DIALOG
========================================================== */

.lv-consent__backdrop {
    position: fixed;
    inset: 0;
    z-index: 999998;

    background: rgba(16, 24, 40, .54);
}

.lv-consent__dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 999999;

    width: min(calc(100% - 32px), 720px);
    max-height: min(820px, calc(100vh - 40px));

    overflow-y: auto;
    padding: 28px;

    background: var(--lv-white, #fff);
    border: 1px solid rgba(27, 42, 74, .14);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(16, 24, 40, .28);

    transform: translate(-50%, -50%);
}

.lv-consent__dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.lv-consent__dialog h2 {
    font-size: 31px;
    line-height: 1.12;
}

.lv-consent__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;

    width: 40px;
    height: 40px;
    padding: 0;

    color: var(--lv-navy, #1B2A4A);
    background: var(--lv-surface-soft, #F7F8FA);
    border: 1px solid rgba(27, 42, 74, .10);
    border-radius: 50%;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

.lv-consent__intro,
.lv-consent__details-note {
    color: var(--lv-text-muted, #667085);
    font-family: var(--lv-font-body, Inter, sans-serif);
    font-size: 13px;
    line-height: 1.7;
}

.lv-consent__intro {
    margin: 18px 0 24px;
}

.lv-consent__details-note {
    margin: 20px 0 0;
    padding: 16px 18px;

    background: var(--lv-surface-warm, #FBF7EF);
    border: 1px solid rgba(201, 138, 44, .18);
    border-radius: 12px;
}


/* ==========================================================
   CATEGORIES
========================================================== */

.lv-consent__categories {
    border-top: 1px solid rgba(27, 42, 74, .10);
}

.lv-consent__category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;

    padding: 20px 0;

    border-bottom: 1px solid rgba(27, 42, 74, .10);
}

.lv-consent__category-copy h3 {
    margin: 0 0 5px;
    padding: 0;

    color: var(--lv-navy, #1B2A4A);
    font-family: var(--lv-font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.lv-consent__category-copy p {
    max-width: 560px;
    margin: 0;

    color: var(--lv-text-muted, #667085);
    font-family: var(--lv-font-body, Inter, sans-serif);
    font-size: 12.5px;
    line-height: 1.65;
}

.lv-consent__always-on {
    color: var(--lv-gold-dark, #A36A12);
    font-family: var(--lv-font-body, Inter, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}


/* ==========================================================
   SWITCH
========================================================== */

.lv-consent__switch {
    position: relative;

    display: inline-flex;
    flex: 0 0 auto;

    cursor: pointer;
}

.lv-consent__switch input {
    position: absolute;

    width: 1px;
    height: 1px;
    margin: -1px;

    overflow: hidden;
    clip: rect(0 0 0 0);

    white-space: nowrap;
}

.lv-consent__switch-ui {
    position: relative;

    display: block;

    width: 46px;
    height: 26px;

    background: #D0D5DD;
    border-radius: 999px;

    transition:
        background-color .18s ease;
}

.lv-consent__switch-ui::after {
    content: "";

    position: absolute;
    top: 3px;
    left: 3px;

    width: 20px;
    height: 20px;

    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .20);

    transition:
        transform .18s ease;
}

.lv-consent__switch input:checked + .lv-consent__switch-ui {
    background: var(--lv-navy, #1B2A4A);
}

.lv-consent__switch input:checked + .lv-consent__switch-ui::after {
    transform: translateX(20px);
}


/* ==========================================================
   DIALOG ACTIONS
========================================================== */

.lv-consent__dialog-actions {
    justify-content: flex-end;
    flex-wrap: wrap;

    margin-top: 24px;
}


/* ==========================================================
   REOPEN CONTROL
========================================================== */

.lv-consent__reopen {
    position: fixed;
    right: 16px;
    left: auto;
    bottom: 16px;
    z-index: 99990;

    min-height: 36px;
    padding: 8px 12px;

    color: var(--lv-navy, #1B2A4A);
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(27, 42, 74, .18);
    border-radius: 999px;
    box-shadow: 0 5px 18px rgba(27, 42, 74, .10);

    font-family: var(--lv-font-body, Inter, sans-serif);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;
}

.lv-consent__reopen:hover,
.lv-consent__reopen:focus-visible {
    background: var(--lv-surface-warm, #FBF7EF);
    border-color: rgba(201, 138, 44, .45);
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991px) {

    .lv-consent__banner-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .lv-consent__actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .lv-consent__banner {
        right: 12px;
        bottom: 12px;
        left: 12px;

        border-radius: 14px;
    }


    .lv-consent__banner-inner {
        padding: 20px;
    }


    .lv-consent__copy h2 {
        font-size: 22px;
    }


    .lv-consent__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;

        width: 100%;
    }


    .lv-consent__button--secondary {
        grid-column: 1 / -1;
        grid-row: 2;
    }


    .lv-consent__dialog {
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);

        padding: 22px 18px;

        border-radius: 14px;
    }


    .lv-consent__dialog h2 {
        font-size: 27px;
    }


    .lv-consent__category {
        gap: 16px;
    }


    .lv-consent__dialog-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }


    .lv-consent__dialog-actions
    .lv-consent__button--primary {
        grid-column: 1 / -1;
        grid-row: 1;
    }


    .lv-consent__reopen {
        right: 10px;
        left: auto;
        bottom: 10px;
    }

}


/* ==========================================================
   SMALL PHONE
========================================================== */

@media (max-width: 480px) {

    .lv-consent__actions,
    .lv-consent__dialog-actions {
        grid-template-columns: 1fr;
    }


    .lv-consent__button--secondary,
    .lv-consent__dialog-actions
    .lv-consent__button--primary {
        grid-column: auto;
        grid-row: auto;
    }


    .lv-consent__button {
        width: 100%;
    }


    .lv-consent__category {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .lv-consent__button,
    .lv-consent__switch-ui,
    .lv-consent__switch-ui::after {
        transition: none;
    }

}

/* Short viewports and zoomed pages must keep privacy controls reachable. */
.lv-consent__banner { max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; }
.lv-consent__dialog { max-height: min(820px, calc(100dvh - 40px)); overscroll-behavior: contain; }
@media (max-width: 767px) {
    .lv-consent__banner, .lv-consent__dialog { max-height: calc(100dvh - 24px); }
}
