.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    width: min(920px, calc(100% - 48px));
    transform: translateX(-50%);
    padding: 16px 18px 16px 20px;
    border-radius: 18px;
    background: rgb(var(--white, 247 247 243) / 0.92);
    color: rgb(var(--ink, 29 29 29));
    border: 1px solid rgb(var(--line-soft, 202 202 198));
    box-shadow:
        0 10px 28px -16px rgb(var(--ink, 29 29 29) / 0.28),
        0 24px 50px -28px rgb(var(--ink, 29 29 29) / 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.cookie-banner p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    letter-spacing: -0.015em;
    color: rgb(var(--ink, 29 29 29));
}

.cookie-more {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.cookie-more:hover { opacity: 0.6; }

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 550;
    letter-spacing: -0.01em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.cookie-btn-deny {
    background: transparent;
    color: rgb(var(--ink, 29 29 29));
    border-color: rgb(var(--line, 191 191 186));
}

.cookie-btn-deny:hover {
    background: rgb(var(--paper-soft, 243 243 239));
}

.cookie-btn-allow {
    background: rgb(var(--ink, 29 29 29));
    color: rgb(var(--paper, 229 228 224));
}

.cookie-btn-allow:hover { opacity: 0.88; }

.cookie-dialog {
    width: min(520px, calc(100vw - 32px));
    padding: 28px 28px 22px;
    border: 1px solid rgb(var(--line-soft, 202 202 198));
    border-radius: 20px;
    background: rgb(var(--white, 247 247 243));
    color: rgb(var(--ink, 29 29 29));
    box-shadow: 0 24px 60px -24px rgb(var(--ink, 29 29 29) / 0.35);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-dialog::backdrop {
    background: rgb(29 29 29 / 0.38);
    backdrop-filter: blur(6px);
}

.cookie-dialog h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 550;
    letter-spacing: -0.045em;
}

.cookie-dialog p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.55;
    color: rgb(var(--muted, 91 91 86));
}

.cookie-dialog a {
    color: inherit;
    font-weight: 550;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

@media (max-width: 740px) {
    .cookie-banner {
        bottom: 12px;
        width: calc(100% - 24px);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 16px;
    }

    .cookie-actions { justify-content: stretch; }
    .cookie-btn { flex: 1; }
}

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