.cookie-consent {
    position: fixed;
    inset: auto auto 24px 50%;
    transform: translateX(-50%);
    z-index: 3000;
    width: min(720px, calc(100vw - 48px));
    color: #f6f1ea;
    font-family: var(--public-font-body);
}

.cookie-consent[hidden],
.cookie-preferences[hidden] {
    display: none;
}

body.cookie-consent-lock {
    overflow: hidden;
}

body.cookie-consent-lock > :not(.cookie-consent):not(.cookie-preferences) {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.2s ease;
}

body.public-site.cookie-consent-lock.homepage::before {
    filter: blur(8px);
}

.cookie-consent__panel,
.cookie-preferences__dialog {
    background: rgba(7, 8, 11, 0.96);
    border: 1px solid var(--public-on-dark-12);
    border-radius: var(--public-radius-22);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.cookie-consent__panel {
    padding: 22px;
}

.cookie-preferences__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--public-orange);
    font-family: var(--public-font-body, "Poppins", sans-serif);
    font-size: var(--public-type-eyebrow-size, 0.84rem);
    font-weight: var(--public-type-eyebrow-weight, 400);
    letter-spacing: var(--public-type-eyebrow-letter-spacing, 0.16em);
    text-transform: uppercase;
}

.cookie-consent h2,
.cookie-preferences h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-family: var(--public-font-heading);
    font-size: 1.24rem;
    font-weight: var(--public-type-cookie-heading-weight, 500);
    line-height: 1.16;
}

.cookie-consent p,
.cookie-preferences p {
    margin: 0;
    color: var(--public-on-dark-74);
    font-size: 0.92rem;
    font-weight: var(--public-weight-regular, 400);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.cookie-consent a,
.cookie-preferences a {
    color: #ffffff;
    border-bottom: 1px solid var(--public-on-dark-32);
}

.cookie-consent__actions,
.cookie-preferences__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.cookie-consent__actions {
    flex-wrap: nowrap;
}

.cookie-consent__button,
.cookie-preferences__button {
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--public-on-dark-18);
    border-radius: var(--public-radius-cta);
    background: var(--public-on-dark-06);
    color: #ffffff;
    font: inherit;
    font-size: 0.86rem;
    font-weight: var(--public-type-button-weight, 400);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-consent__button {
    flex: 1 1 0;
    white-space: nowrap;
}

.cookie-consent__button:hover,
.cookie-preferences__button:hover {
    background: var(--public-on-dark-12);
    border-color: var(--public-on-dark-32);
}

.cookie-consent__button--primary,
.cookie-preferences__button--primary {
    border-color: var(--public-blue);
    background: var(--public-blue);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(var(--public-blue-rgb), 0.24);
}

.cookie-consent__button--primary:hover,
.cookie-preferences__button--primary:hover {
    border-color: #2d70ff;
    background: #2d70ff;
    color: #ffffff;
}

.cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 3010;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(3, 4, 7, 0.64);
    backdrop-filter: blur(10px);
}

.cookie-preferences__dialog {
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
}

.cookie-preferences__header,
.cookie-preferences__body,
.cookie-preferences__footer {
    padding: 24px;
}

.cookie-preferences__header {
    border-bottom: 1px solid var(--public-on-dark-10);
}

.cookie-preferences__body {
    display: grid;
    gap: 12px;
    overflow: auto;
}

.cookie-preferences__footer {
    border-top: 1px solid var(--public-on-dark-10);
}

.cookie-category {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--public-on-dark-10);
    border-radius: var(--public-radius-18);
    background: var(--public-on-dark-04);
}

.cookie-category h3 {
    margin: 0 0 4px;
    color: #ffffff;
    font-family: var(--public-font-heading);
    font-size: 1rem;
    font-weight: var(--public-type-cookie-heading-weight, 500);
}

.cookie-category input[type="checkbox"] {
    width: 44px;
    height: 24px;
    accent-color: var(--public-blue);
}

.cookie-category input[disabled] {
    cursor: not-allowed;
}

.footer-legal__button {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--public-on-dark-66);
    font: inherit;
    font-size: 0.75rem;
    font-weight: var(--public-type-meta-label-weight, 400);
    line-height: 1.6;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-legal__button:hover {
    color: var(--public-on-dark-muted);
}

.footer-legal__button:focus-visible {
    outline: none;
    color: #ffffff;
}

/* This file loads last in the public stack, so it normalizes page-level button overrides. */
body.public-site .public-button--primary {
    border-color: rgba(var(--public-blue-rgb), 0.3);
    background: var(--public-blue);
    color: #ffffff;
}

body.public-site .public-button,
body.public-site [class*="button"] {
    font-weight: var(--public-type-button-weight, 400);
}

body.public-site button:not(.footer-legal__button) {
    font-weight: var(--public-type-button-weight, 400);
}

body.public-site .footer-legal__button {
    font-weight: var(--public-type-meta-label-weight, 400);
}

@media (max-width: 640px) {
    .cookie-consent {
        inset: auto auto 16px 50%;
        transform: translateX(-50%);
        width: clamp(280px, calc(100vw - 32px), 358px);
        max-width: clamp(280px, calc(100vw - 32px), 358px);
    }

    .cookie-consent__panel {
        padding: 20px;
    }

    .cookie-consent p {
        max-width: 31ch;
    }

    .cookie-consent a,
    .cookie-preferences a {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .cookie-consent__actions,
    .cookie-preferences__actions {
        flex-direction: column;
        min-width: 0;
    }

    .cookie-consent__button,
    .cookie-preferences__button {
        width: 100%;
        white-space: normal;
    }

    .cookie-preferences {
        padding: 14px;
    }

    .cookie-preferences__header,
    .cookie-preferences__body,
    .cookie-preferences__footer {
        padding: 18px;
    }

    .cookie-category {
        grid-template-columns: 1fr;
    }
}
