.cookie-consent {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 340;
    width: min(340px, calc(100vw - 32px));
    padding: 14px;
    color: rgba(248, 250, 252, .92);
    background: rgba(7, 11, 18, .84);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 13px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .035);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
    backdrop-filter: blur(14px) saturate(115%);
    animation: cookie-consent-in .28s ease-out both;
}

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

.cookie-consent h2 {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: .01em;
}

.cookie-consent p {
    margin: 0;
    color: rgba(226, 232, 240, .62);
    font-size: 11px;
    line-height: 1.45;
}

.cookie-consent p a {
    color: rgba(251, 207, 232, .88);
    text-decoration: underline;
    text-decoration-color: rgba(244, 114, 182, .3);
    text-underline-offset: 3px;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.cookie-consent__button {
    min-height: 33px;
    padding: 0 11px;
    color: rgba(241, 245, 249, .72);
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 9px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.cookie-consent__button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .075);
    border-color: rgba(255, 255, 255, .16);
}

.cookie-consent__button--primary {
    color: #141016;
    background: #f2e9ef;
    border-color: #f2e9ef;
}

.cookie-consent__button--primary:hover {
    color: #09070a;
    background: #fff;
    border-color: #fff;
}

.cookie-consent__button:focus-visible,
#cookie-settings-open:focus-visible {
    outline: 2px solid rgba(244, 114, 182, .72);
    outline-offset: 2px;
}

@keyframes cookie-consent-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .cookie-consent {
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        width: auto;
        padding: 13px;
    }

    .cookie-consent__actions {
        align-items: stretch;
    }

    .cookie-consent__button {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        animation: none;
    }
}
