.cookie-consent[hidden],
.cookie-consent__preferences[hidden] {
    display: none;
}

.cookie-consent {
    --consent-accent: #00ebfa;
    --consent-blue: #3b82f6;
    --consent-ink: #e7f7ff;
    --consent-muted: #b8c9d6;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: grid;
    padding: 12px 16px;
    pointer-events: none;
    font-family: Inter, sans-serif;
}

.cookie-consent__overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 5, 12, .78);
    backdrop-filter: blur(5px);
    display: none;
    pointer-events: auto;
}

.cookie-consent.is-preferences { inset: 0; display: grid; place-items: center; padding: 20px; }
.cookie-consent.is-preferences .cookie-consent__overlay { display: block; }

.cookie-consent__dialog {
    position: relative;
    width: min(100%, 620px);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    padding: clamp(24px, 5vw, 42px);
    color: var(--consent-ink);
    background: linear-gradient(145deg, rgba(8, 19, 38, .98), rgba(5, 10, 21, .98));
    border: 1px solid rgba(0, 235, 250, .38);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .52), 0 0 32px rgba(0, 235, 250, .1);
    animation: cookie-consent-in .22s ease-out both;
    pointer-events: auto;
}

.cookie-consent h2,
.cookie-consent h3 {
    margin: 0 0 12px;
    color: var(--consent-ink);
    text-align: left;
}

.cookie-consent h2 { font-size: clamp(24px, 4vw, 32px); }
.cookie-consent h3 { font-size: 21px; }
.cookie-consent p { color: var(--consent-muted); line-height: 1.6; }
.cookie-consent__header > p { max-width: 54ch; }

.cookie-consent__choices {
    display: grid;
    gap: 10px;
    margin: 26px 0;
}

.cookie-consent__choice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 16px;
    padding: 13px 15px;
    border: 1px solid rgba(147, 197, 253, .17);
    border-radius: 10px;
    background: rgba(59, 130, 246, .07);
}

.cookie-consent__choice strong { font-size: 14px; }
.cookie-consent__choice span { color: var(--consent-muted); font-size: 12px; }
.cookie-consent__choice b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--consent-accent); font-size: 10px; text-transform: uppercase; }

.cookie-consent:not(.is-preferences) .cookie-consent__dialog { width: min(100%, 760px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 24px; padding: 18px 22px; border-radius: 8px; }
.cookie-consent:not(.is-preferences) .cookie-consent__header { grid-column: 1; }
.cookie-consent:not(.is-preferences) .cookie-consent__choices { display: none; }
.cookie-consent:not(.is-preferences) .cookie-consent__actions { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 210px; }
.cookie-consent:not(.is-preferences) .cookie-consent__actions .cookie-consent__button { width: 100%; }
.cookie-consent:not(.is-preferences) .cookie-consent__policies { grid-column: 1; margin: 8px 0 0; }

.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-consent__button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.cookie-consent__button:hover { transform: translateY(-1px); }
.cookie-consent__button:focus-visible,
.cookie-consent__back:focus-visible,
.cookie-preferences-trigger:focus-visible,
.cookie-consent a:focus-visible,
.cookie-consent input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cookie-consent__button--primary { background: var(--consent-accent); color: #03121a; }
.cookie-consent__button--secondary { background: transparent; border-color: rgba(184, 201, 214, .4); color: var(--consent-ink); }
.cookie-consent__button--text { background: transparent; color: var(--consent-accent); }
.cookie-consent__policies { margin-top: 19px; font-size: 12px; }
.cookie-consent a { color: var(--consent-accent); text-decoration: underline; text-underline-offset: 3px; }

.cookie-consent__preferences { margin-top: 4px; }
.cookie-consent__back { margin-bottom: 22px; padding: 0; border: 0; background: transparent; color: var(--consent-accent); font: inherit; font-size: 12px; cursor: pointer; }
.cookie-consent__preferences > p { margin-bottom: 20px; font-size: 13px; }
.cookie-consent__toggle { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid rgba(184, 201, 214, .14); cursor: pointer; }
.cookie-consent__toggle span { display: grid; gap: 4px; }
.cookie-consent__toggle small { color: var(--consent-muted); font-size: 12px; }
.cookie-consent__toggle input { position: absolute; opacity: 0; }
.cookie-consent__toggle i { position: relative; flex: 0 0 42px; height: 24px; border-radius: 20px; background: #526170; transition: background .18s ease; }
.cookie-consent__toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s ease; }
.cookie-consent__toggle input:checked + i { background: var(--consent-blue); }
.cookie-consent__toggle input:checked + i::after { transform: translateX(18px); }
.cookie-consent__preferences .cookie-consent__button { margin-top: 20px; }
.cookie-preferences-trigger { position: fixed; right: 18px; bottom: 16px; z-index: 9998; display: none; padding: 8px 11px; border: 1px solid rgba(0, 235, 250, .35); border-radius: 7px; background: rgba(5, 7, 13, .82); color: #cbd5df; font: 11px Inter, sans-serif; cursor: pointer; }
.cookie-preferences-trigger.is-visible { display: block; }

@keyframes cookie-consent-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 520px) {
    .cookie-consent { padding: 12px; }
    .cookie-consent__dialog { max-height: calc(100vh - 24px); padding: 24px 20px; }
    .cookie-consent:not(.is-preferences) .cookie-consent__dialog { display: block; padding: 22px 18px; }
    .cookie-consent:not(.is-preferences) .cookie-consent__actions { width: auto; margin-top: 18px; }
    .cookie-consent__actions { display: grid; }
    .cookie-consent__button { width: 100%; }
    .cookie-consent__choice { grid-template-columns: minmax(0, 1fr); }
    .cookie-consent__choice b { grid-column: 1; grid-row: auto; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .cookie-consent__dialog, .cookie-consent__button, .cookie-consent__toggle i::after { animation: none; transition: none; } }
