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

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
    font-family: "Inter", sans-serif;
    background: rgba(8, 4, 20, 0.48);
    -webkit-backdrop-filter: blur(12px) saturate(0.72);
    backdrop-filter: blur(12px) saturate(0.72);
    pointer-events: auto;
    overscroll-behavior: contain;
}

.cookie-consent__bar {
    position: relative;
    width: 100%;
    max-height: min(78vh, 640px);
    max-height: min(78dvh, 640px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid rgba(196, 181, 253, 0.32);
    color: #f8f7ff;
    background:
        radial-gradient(circle at 12% 0%, rgba(168, 85, 247, 0.22), transparent 34%),
        radial-gradient(circle at 90% 100%, rgba(37, 99, 235, 0.16), transparent 30%),
        linear-gradient(120deg, rgba(28, 18, 62, 0.99), rgba(10, 8, 28, 0.995));
    box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.58);
    outline: none;
    pointer-events: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(196, 181, 253, 0.46) transparent;
}

.cookie-consent__main-row {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.cookie-consent__copy h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-family: "Manrope", sans-serif;
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 900;
    line-height: 1.25;
}

.cookie-consent__copy p {
    max-width: 820px;
    margin: 0 auto;
    color: rgba(245, 243, 255, 0.84);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.65;
}

.cookie-consent__copy a,
.cookie-consent__policy-links a {
    color: #d8b4fe;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(216, 180, 254, 0.48);
    text-underline-offset: 3px;
}

.cookie-consent__copy a:hover,
.cookie-consent__copy a:focus-visible,
.cookie-consent__policy-links a:hover,
.cookie-consent__policy-links a:focus-visible {
    color: #ffffff;
    text-decoration-color: currentColor;
    outline: none;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    flex-wrap: wrap;
}

.cookie-btn {
    min-width: 138px;
    min-height: 44px;
    border-radius: 10px;
    padding: 10px 20px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        color 180ms ease;
}

.cookie-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.cookie-btn:focus-visible {
    outline: 3px solid rgba(216, 180, 254, 0.38);
    outline-offset: 3px;
}

.cookie-btn:disabled {
    opacity: 0.62;
    cursor: wait;
}

.cookie-btn--primary {
    border: 1px solid #c084fc;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 12px 30px rgba(126, 34, 206, 0.32);
}

.cookie-btn--primary:hover:not(:disabled) {
    border-color: #d8b4fe;
    background: linear-gradient(135deg, #8b5cf6, #b05cf5);
    box-shadow: 0 15px 34px rgba(126, 34, 206, 0.42);
}

.cookie-btn--secondary {
    border: 1px solid rgba(255, 255, 255, 0.68);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.045);
}

.cookie-btn--secondary:hover:not(:disabled) {
    border-color: #d8b4fe;
    background: rgba(168, 85, 247, 0.16);
}

.cookie-consent__preferences {
    border-top: 1px solid rgba(196, 181, 253, 0.18);
    background: rgba(4, 3, 14, 0.34);
}

.cookie-consent__preferences[hidden] {
    display: none;
}

.cookie-consent__preference-grid {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cookie-consent__preference-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(196, 181, 253, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.cookie-consent__preference-row strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.cookie-consent__preference-row p {
    margin: 4px 0 0;
    color: rgba(237, 233, 254, 0.68);
    font-size: 11px;
    line-height: 1.5;
}

.cookie-consent__required {
    flex: 0 0 auto;
    border: 1px solid rgba(52, 211, 153, 0.34);
    border-radius: 999px;
    padding: 7px 10px;
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.10);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cookie-consent__toggle-row {
    cursor: pointer;
}

.cookie-switch {
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 28px;
}

.cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cookie-switch__track {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(196, 181, 253, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    transition: background 180ms ease, border-color 180ms ease;
}

.cookie-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: transform 180ms ease;
}

.cookie-switch input:checked + .cookie-switch__track {
    border-color: #a855f7;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.cookie-switch input:checked + .cookie-switch__track::after {
    transform: translateX(20px);
}

.cookie-switch input:focus-visible + .cookie-switch__track {
    outline: 3px solid rgba(192, 132, 252, 0.30);
    outline-offset: 3px;
}

.cookie-consent__preference-actions {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 14px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.cookie-btn--text {
    border: 1px solid rgba(196, 181, 253, 0.34);
    color: #f5f3ff;
    background: rgba(255, 255, 255, 0.045);
}

.cookie-btn--text:hover:not(:disabled) {
    border-color: rgba(216, 180, 254, 0.68);
    background: rgba(168, 85, 247, 0.13);
}

.cookie-btn--save {
    border: 1px solid #c084fc;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 10px 24px rgba(126, 34, 206, 0.26);
}

.cookie-consent__policy-links {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(196, 181, 253, 0.52);
    font-size: 11px;
}

.cookie-consent__status {
    min-height: 0;
    margin: 0;
    padding: 0;
    color: rgba(237, 233, 254, 0.78);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.cookie-consent__status:not(:empty) {
    min-height: 28px;
    padding: 0 18px 12px;
}

html.cookie-consent-active,
html.cookie-consent-active body,
body.cookie-consent-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

@keyframes cookieOverlayEnter {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cookieBannerEnter {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent:not([hidden]) {
    animation: cookieOverlayEnter 220ms ease-out both;
}

.cookie-consent:not([hidden]) .cookie-consent__bar {
    animation: cookieBannerEnter 280ms ease-out both;
}

@media (max-width: 820px) {
    .cookie-consent__preference-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .cookie-consent {
        -webkit-backdrop-filter: blur(9px) saturate(0.75);
        backdrop-filter: blur(9px) saturate(0.75);
    }

    .cookie-consent__main-row,
    .cookie-consent__preference-grid,
    .cookie-consent__preference-actions,
    .cookie-consent__policy-links {
        width: min(100% - 24px, 980px);
    }

    .cookie-consent__main-row {
        padding: 18px 0 16px;
        gap: 14px;
    }

    .cookie-consent__copy h2 {
        font-size: 16px;
    }

    .cookie-consent__copy p {
        font-size: 12px;
        line-height: 1.55;
    }

    .cookie-consent__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .cookie-consent__actions .cookie-btn,
    .cookie-consent__preference-actions .cookie-btn {
        width: 100%;
        min-width: 0;
        padding-inline: 12px;
    }

    .cookie-consent__actions .cookie-btn--primary {
        grid-column: 1 / -1;
    }

    .cookie-consent__preference-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-consent__preference-row {
        align-items: flex-start;
    }

    .cookie-consent__required {
        white-space: nowrap;
    }
}

@media (max-width: 390px) {
    .cookie-consent__actions,
    .cookie-consent__preference-actions {
        grid-template-columns: 1fr;
    }

    .cookie-consent__actions .cookie-btn--primary {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent,
    .cookie-consent *,
    .cookie-consent *::before,
    .cookie-consent *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
