/*
 * SwitchUp Cookie Consent
 * Banner + preference modal styling. Matches the site's dark footer aesthetic
 * with #FF5500 as the brand accent. Mobile-first responsive.
 */

#switchup-cc-root {
    font-family: inherit;
    color: #ffffff;
}

#switchup-cc-root[aria-hidden="true"] {
    display: none;
}

#switchup-cc-root *,
#switchup-cc-root *::before,
#switchup-cc-root *::after {
    box-sizing: border-box;
}

/* ---------- Banner ---------- */

.switchup-cc-banner {
    position: fixed;
    left: 2.8645vw;
    bottom: 1vw;
    width: 31.2vw;
    z-index: 999998;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

#switchup-cc-root.switchup-cc-root--banner .switchup-cc-banner {
    display: block;
    transform: translateY(0);
}

.switchup-cc-banner__inner {
    display: block;
    padding: 2vw;
    margin: 0 auto;
}

.switchup-cc-banner__copy p {
    margin: 0;
    font-size: 1.042vw;
    line-height: 1.44;
    color: #000000;
}

.switchup-cc-banner__copy p .cookie {
    float: left;
    width: 2.2vw;
    height: auto;
    margin: 0.4vw 1vw 0 0;
}

.switchup-cc-banner__copy a {
    text-decoration: underline;
}

.switchup-cc-banner__copy a:hover {
    color: #FF5500;
}

.switchup-cc-banner__actions {
    margin: 1vw 0 0;
    display: flex;
    justify-content: flex-end;
    gap: 0.66vw;
}

/* ---------- Buttons ---------- */

.switchup-cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.66vw 1vw;
    font-family: "financier-display-web-medium";
    font-size: 1.042vw;
    line-height: 1;
    letter-spacing: 0.02em;
    border-radius: 0;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.switchup-cc-btn:focus-visible {
    outline: 2px solid #FF5500;
    outline-offset: 2px;
}

.switchup-cc-btn--primary {
    background: #FF5500;
    color: #ffffff;
    border-color: #FF5500;
    width: 100%;
}

.switchup-cc-btn--primary:hover {
    background: #e64d00;
}

.switchup-cc-btn--ghost {
    background: transparent;
    color: #000000;
    border-color: rgba(0, 0, 0, 0.5);
}

.switchup-cc-btn--ghost:hover {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.08);
}

@media (max-width: 1023px) {
    #switchup-cc-root.switchup-cc-root--banner .switchup-cc-banner {
        bottom: 20px;
        left: 20px;
        width: calc(100% - 40px);
    }

    .switchup-cc-banner__inner {
        padding: 20px;
    }

    .switchup-cc-banner__copy p {
        font-size: 16px;
        line-height: 1.4;
    }

    .switchup-cc-banner__copy p .cookie {
        width: 40px;
        margin: 10px 14px 0 0;
    }

    .switchup-cc-banner__actions {
        margin: 14px 0 0;
        gap: 10px;
        flex-wrap: wrap;
    }

    .switchup-cc-btn--ghost {
        width: calc(50% - 5px);
    }

    .switchup-cc-btn {
        padding: 10px 18px;
        font-size: 16px;
    }
}

/* ---------- Modal ---------- */

.switchup-cc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.44vw;
}

#switchup-cc-root.switchup-cc-root--modal .switchup-cc-modal {
    display: flex;
}

.switchup-cc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.switchup-cc-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 40vw;
    max-height: calc(100vh - 2.88vw);
    background: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.switchup-cc-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.44vw;
    border-bottom: 1px solid rgba(0,0,0, 0.12);
}

.switchup-cc-modal__header h2 {
    margin: 0;
    font-family: inherit;
    font-size: 1.44vw;
    font-family: "financier-display-web-medium";
    color: #000000;
}

.switchup-cc-modal__close {
    background: transparent;
    border: 0;
    color: #000000;
    font-size: 1.44vw;
    line-height: 1;
    cursor: pointer;
}

.switchup-cc-modal__close:hover {
    color: #FF5500;
}

.switchup-cc-modal__body {
    padding: 1.44vw;
    overflow-y: auto;
}

.switchup-cc-modal__intro {
    margin: 0 0 1vw;
    font-size: 1.042vw;
    line-height: 1.44;
}

.switchup-cc-modal__intro a {
    color: #FF5500;
}

.switchup-cc-category {
    padding: 0.66vw 0;
    border-top: 1px solid rgba(0,0,0, 0.12);
}

.switchup-cc-category:last-child {
    border-bottom: 1px solid rgba(0,0,0, 0.12);
}

.switchup-cc-category__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.66vw;
}

.switchup-cc-category h3 {
    margin: 0;
    font-family: inherit;
    font-size: 1.2vw;
    font-family: "financier-display-web-medium";
}

.switchup-cc-category p {
    margin: 0.24vw 0 0;
    font-size: 1.042vw;
    line-height: 1.44;
    text-wrap: pretty;
}

.switchup-cc-modal__footer {
    display: flex;
    gap: 0.66vw;
    justify-content: flex-end;
    padding: 1.44vw;
    border-top: 1px solid rgba(0,0,0, 0.12);
}

/* ---------- Toggle switch ---------- */

.switchup-cc-toggle {
    position: relative;
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.66vw;
    cursor: pointer;
    user-select: none;
    flex: 0 0 auto;
}

.switchup-cc-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switchup-cc-toggle__slider {
    position: relative;
    display: inline-block;
    width: 2.8vw;
    height: 1.44vw;
    background: rgba(0,0,0, 0.2);
    border-radius: 999px;
    transition: background 0.2s ease;
}

.switchup-cc-toggle__slider::before {
    content: "";
    position: absolute;
    top: 0.2vw;
    left: 0.2vw;
    width: 1.04vw;
    height: 1.04vw;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.switchup-cc-toggle input:checked + .switchup-cc-toggle__slider {
    background: #FF5500;
}

.switchup-cc-toggle input:checked + .switchup-cc-toggle__slider::before {
    transform: translateX(1.3vw);
}

.switchup-cc-toggle input:focus-visible + .switchup-cc-toggle__slider {
    outline: 2px solid #FF5500;
    outline-offset: 2px;
}

.switchup-cc-toggle__label {
    font-size: 1.042vw;
    font-family: "financier-display-web-medium";
}

.switchup-cc-toggle__label--off {
    display: inline;
}

.switchup-cc-toggle__label--on {
    display: none;
}

.switchup-cc-toggle input:checked ~ .switchup-cc-toggle__label--off {
    display: none;
}

.switchup-cc-toggle input:checked ~ .switchup-cc-toggle__label--on {
    display: inline;
}

.switchup-cc-toggle--locked {
    cursor: not-allowed;
}

.switchup-cc-toggle--locked .switchup-cc-toggle__slider {
    background: #FF5500;
}

.switchup-cc-toggle--locked .switchup-cc-toggle__slider::before {
    transform: translateX(1.3vw);
}

@media (max-width: 1023px) {

    .switchup-cc-modal {
        padding: 20px;
    }

    .switchup-cc-modal__dialog {
        max-width: 100%;
        max-height: calc(100vh - 40px);
    }

    .switchup-cc-modal__header {
        padding: 14px;
    }

    .switchup-cc-modal__header h2 {
        font-size: 24px;
    }

    .switchup-cc-modal__close {
        font-size: 24px;
    }

    .switchup-cc-modal__body {
        padding: 14px;
    }

    .switchup-cc-modal__intro {
        margin: 0 0 10px;
        font-size: 16px;
        line-height: 1.4;
    }

    .switchup-cc-category {
        padding: 14px 0;
    }

    .switchup-cc-category__row {
        gap: 14px;
    }

    .switchup-cc-category h3 {
        font-size: 20px;
        line-height: 1;
    }

    .switchup-cc-category p {
        margin: 14px 0 0;
        font-size: 16px;
        line-height: 1.4;
    }

    .switchup-cc-modal__footer {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
        padding: 14px;
    }

    .switchup-cc-toggle {
        gap: 6px;
    }

    .switchup-cc-toggle__slider {
        width: 40px;
        height: 20px;
    }

    .switchup-cc-toggle__slider::before {
        top: 2px;
        left: 2px;
        width: 16px;
        height: 16px;
    }

    .switchup-cc-toggle input:checked + .switchup-cc-toggle__slider::before {
        transform: translateX(20px);
    }

    .switchup-cc-toggle__label {
        font-size: 14px;
    }
}