:root {
    --anora-consent-ink: #16151a;
    --anora-consent-muted: #65616d;
    --anora-consent-line: rgba(38, 31, 49, 0.13);
    --anora-consent-paper: rgba(253, 252, 255, 0.985);
    --anora-consent-accent: #8e5fd2;
    --anora-consent-accent-dark: #7044b0;
    --anora-consent-cyan: #79d9dc;
}

body.anora-consent-is-open {
    overflow: hidden;
}

.anora-consent[hidden],
.anora-consent [hidden],
.anora-consent-reopen[hidden] {
    display: none !important;
}

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

.anora-consent {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: end center;
    padding: 24px;
    color: var(--anora-consent-ink);
    font-family: inherit;
    isolation: isolate;
}

.anora-consent__backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 88%, rgba(142, 95, 210, 0.13), transparent 34%),
        rgba(10, 9, 14, 0.53);
    backdrop-filter: blur(13px) saturate(0.84);
    -webkit-backdrop-filter: blur(13px) saturate(0.84);
}

.anora-consent__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(820px, calc(100dvh - 48px));
    overflow: auto;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background:
        radial-gradient(circle at 91% 8%, rgba(126, 221, 218, 0.15), transparent 30%),
        radial-gradient(circle at 5% 100%, rgba(142, 95, 210, 0.11), transparent 34%),
        var(--anora-consent-paper);
    box-shadow: 0 30px 90px rgba(10, 8, 15, 0.36), 0 2px 12px rgba(10, 8, 15, 0.13);
    scrollbar-width: thin;
    scrollbar-color: rgba(112, 68, 176, 0.35) transparent;
    outline: none;
}

.anora-consent__dialog:focus-visible {
    box-shadow: 0 0 0 4px rgba(121, 217, 220, 0.42), 0 30px 90px rgba(10, 8, 15, 0.36);
}

.anora-consent__brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
}

.anora-consent__brand img {
    display: block;
    width: 116px;
    height: auto;
}

.anora-consent__eyebrow {
    margin: 0 0 9px;
    color: var(--anora-consent-accent-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.anora-consent h2 {
    max-width: 660px;
    margin: 0;
    color: var(--anora-consent-ink);
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 720;
    letter-spacing: -0.038em;
    line-height: 1.08;
}

.anora-consent h2[tabindex="-1"]:focus {
    outline: none;
}

.anora-consent__intro {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--anora-consent-muted);
    font-size: clamp(14px, 1.9vw, 16px);
    line-height: 1.68;
}

.anora-consent__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
}

.anora-consent__facts span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(78, 66, 92, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.67);
    color: #585260;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
}

.anora-consent__facts span::before {
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--anora-consent-cyan), var(--anora-consent-accent));
    content: "";
}

.anora-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.anora-consent__actions button {
    min-height: 50px;
    padding: 13px 20px;
    border: 1px solid rgba(55, 43, 68, 0.2);
    border-radius: 14px;
    background: #242129;
    color: #fff;
    box-shadow: 0 8px 20px rgba(23, 19, 29, 0.11);
    font: inherit;
    font-size: 13px;
    font-weight: 740;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.anora-consent__actions button:hover {
    background: #35303c;
    box-shadow: 0 10px 24px rgba(23, 19, 29, 0.17);
    transform: translateY(-1px);
}

.anora-consent__actions button[data-consent-action="reject"],
.anora-consent__actions--preferences button[data-consent-action="save"] {
    border-color: rgba(55, 43, 68, 0.12);
    background: #efedf1;
    color: #2e2a32;
    box-shadow: 0 5px 14px rgba(23, 19, 29, 0.06);
}

.anora-consent__actions button[data-consent-action="reject"]:hover,
.anora-consent__actions--preferences button[data-consent-action="save"]:hover {
    background: #e3e1e6;
    color: #201d24;
    box-shadow: 0 7px 17px rgba(23, 19, 29, 0.09);
}

.anora-consent__actions button[data-consent-action="accept"] {
    border-color: #242129;
    background: #242129;
    color: #fff;
}

.anora-consent__actions button[data-consent-action="accept"]:hover {
    background: #35303c;
}

.anora-consent__actions button:focus-visible,
.anora-consent button:focus-visible,
.anora-consent a:focus-visible,
.anora-consent-reopen:focus-visible {
    outline: 3px solid rgba(90, 189, 193, 0.52);
    outline-offset: 3px;
}

.anora-consent__preferences-link,
.anora-consent__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px auto 0;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: #554d5d;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.anora-consent__preferences-link {
    width: 100%;
}

.anora-consent__preferences-link svg,
.anora-consent__back svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.anora-consent__preferences-link:hover,
.anora-consent__back:hover {
    color: var(--anora-consent-accent-dark);
}

.anora-consent__legal-links {
    margin: 12px 0 0;
    color: #85808a;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

.anora-consent__legal-links a {
    color: #6b6470;
    text-decoration: underline;
    text-decoration-color: rgba(107, 100, 112, 0.32);
    text-underline-offset: 3px;
}

.anora-consent__back {
    justify-content: flex-start;
    margin: -8px 0 18px -10px;
}

.anora-consent__services {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.anora-consent__service {
    overflow: hidden;
    border: 1px solid var(--anora-consent-line);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.7);
}

.anora-consent__service-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 17px;
}

.anora-consent__service-head > div,
.anora-consent__service-head > label:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.anora-consent__service-head strong {
    color: #28232d;
    font-size: 14px;
    font-weight: 760;
}

.anora-consent__service-head small {
    color: #77717c;
    font-size: 11px;
    line-height: 1.4;
}

.anora-consent__locked {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(121, 217, 220, 0.17);
    color: #3f7477;
    font-size: 10px;
    font-weight: 750;
}

.anora-consent__switch {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    width: 47px;
    height: 27px;
    cursor: pointer;
}

.anora-consent__switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.anora-consent__switch > span:not(.anora-consent__sr-only) {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(62, 53, 70, 0.2);
    border-radius: 999px;
    background: #dfdde2;
    transition: background 180ms ease, border-color 180ms ease;
}

.anora-consent__switch > span:not(.anora-consent__sr-only)::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(24, 20, 28, 0.25);
    content: "";
    transition: transform 180ms ease;
}

.anora-consent__switch input:checked + span {
    border-color: var(--anora-consent-accent);
    background: linear-gradient(135deg, var(--anora-consent-cyan), var(--anora-consent-accent));
}

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

.anora-consent__switch input:focus-visible + span {
    outline: 3px solid rgba(90, 189, 193, 0.52);
    outline-offset: 3px;
}

.anora-consent__service details {
    border-top: 1px solid var(--anora-consent-line);
}

.anora-consent__service summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 17px;
    color: #655e6a;
    font-size: 11px;
    font-weight: 720;
    list-style: none;
    cursor: pointer;
}

.anora-consent__service summary::-webkit-details-marker {
    display: none;
}

.anora-consent__service summary::marker {
    content: "";
}

.anora-consent__service summary::after {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    place-items: center;
    border-radius: 50%;
    background: rgba(73, 67, 79, 0.07);
    color: #4f4955;
    font-size: 17px;
    font-weight: 520;
    line-height: 1;
    content: "+";
}

.anora-consent__service details[open] > summary::after {
    content: "−";
}

.anora-consent__service summary:hover {
    color: #312d36;
}

.anora-consent__service details p {
    margin: 0;
    padding: 0 17px 10px;
    color: #706a75;
    font-size: 11px;
    line-height: 1.55;
}

.anora-consent__service details p:last-child {
    padding-bottom: 15px;
}

.anora-consent__service code {
    padding: 1px 5px;
    border-radius: 5px;
    background: rgba(111, 82, 143, 0.08);
    color: #66488a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
}

.anora-consent__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(55, 43, 68, 0.13);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
    color: #514a58;
    cursor: pointer;
}

.anora-consent__close svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.anora-consent__status {
    min-height: 0;
    margin: 8px 0 0;
    color: #4e7f67;
    font-size: 11px;
    text-align: center;
}

.anora-consent-reopen {
    position: fixed;
    z-index: 2147482000;
    left: max(14px, env(safe-area-inset-left));
    bottom: max(14px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 999px;
    background: rgba(31, 28, 35, 0.9);
    color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 30px rgba(15, 12, 20, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.anora-consent-reopen:hover {
    background: rgba(50, 44, 58, 0.96);
    transform: translateY(-1px);
}

.anora-consent-reopen svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--anora-consent-cyan);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.anora-consent__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.anora-global-footer .anora-footer-consent-link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.anora-global-footer .anora-footer-consent-link:hover {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .anora-consent {
        padding: 0;
    }

    .anora-consent__dialog {
        width: 100%;
        max-height: calc(100dvh - 10px);
        padding: 24px 19px max(22px, env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
    }

    .anora-consent__brand {
        margin-bottom: 19px;
    }

    .anora-consent h2 {
        font-size: clamp(25px, 8vw, 33px);
    }

    #anoraConsentPreferencesTitle {
        font-size: clamp(22px, 6.8vw, 28px);
        letter-spacing: -0.045em;
        white-space: nowrap;
    }

    .anora-consent__facts {
        display: grid;
        grid-template-columns: 1fr;
        margin: 18px 0;
    }

    .anora-consent__actions {
        grid-template-columns: 1fr;
    }

    .anora-consent__actions button {
        min-height: 48px;
    }

    .anora-consent__service-head {
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .anora-consent__locked {
        margin-top: 1px;
    }

    .anora-consent__close {
        top: 14px;
        right: 14px;
    }

    .anora-consent-reopen span {
        display: none;
    }

    .anora-consent-reopen {
        width: 40px;
        padding: 8px;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .anora-consent *,
    .anora-consent-reopen {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (forced-colors: active) {
    .anora-consent__backdrop {
        background: Canvas;
    }

    .anora-consent__dialog,
    .anora-consent__service,
    .anora-consent__actions button,
    .anora-consent-reopen {
        border: 1px solid CanvasText;
    }
}
