.cookie-banner,
.cookie-dialog {
    color: #27285f;
    background: #fff;
    border: 1px solid #d8d9e4;
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(39, 40, 95, .18);
    font: 400 14px/1.5 Poppins, sans-serif;
}

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

.cookie-policy {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 64px) 20px;
    color: #27285f;
}

.cookie-policy h1 { font: 600 clamp(24px, 5vw, 38px)/1.2 "Playfair Display", serif; margin: 0 0 22px; }
.cookie-policy h2 { font: 600 18px/1.4 Poppins, sans-serif; margin: 20px 0 6px; }
.cookie-policy p { margin: 0 0 12px; }
.cookie-policy .cookie-actions { align-items: center; margin-top: 20px; }
.cookie-policy a { color: inherit; text-decoration: underline; }

.cookie-banner {
    position: fixed;
    z-index: 1000000;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1120px, calc(100% - 32px));
    padding: 16px 20px;
    max-height: calc(100dvh - 32px);
    overflow: auto;
}

.cookie-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(540px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 20px;
    overflow: auto;
}

.cookie-dialog::backdrop { background: rgba(20, 22, 44, .55); }

.cookie-banner h2,
.cookie-dialog h2 {
    color: inherit;
    margin: 0 0 4px;
    font: 600 19px/1.3 Poppins, sans-serif;
}

.cookie-banner p,
.cookie-category p { margin: 0; }

.cookie-banner a,
.cookie-dialog a {
    color: #27285f;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-actions button,
.cookie-dialog__heading button {
    background: #fff;
    border: 1px solid #27285f;
    border-radius: 6px;
    color: #27285f;
    cursor: pointer;
    min-height: 44px;
    padding: 8px 12px;
    font: 600 13px/1.3 Poppins, sans-serif;
}

.cookie-actions button:hover,
.cookie-dialog__heading button:hover { background: #f1f2f8; }

.cookie-banner :focus-visible,
.cookie-dialog :focus-visible {
    outline: 3px solid #307786;
    outline-offset: 3px;
}

.cookie-dialog__heading,
.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cookie-dialog__heading { margin-bottom: 12px; }
.cookie-dialog__heading button { min-width: 44px; font-size: 22px; }
.cookie-category { border-top: 1px solid #d8d9e4; margin: 0; padding: 12px 0; }
.cookie-category strong { display: block; }
.cookie-category input { accent-color: #27285f; flex: none; width: 22px; height: 22px; }

@media (max-width: 760px) {
    .cookie-banner { display: block; padding: 12px; }
    .cookie-banner .cookie-actions { margin-top: 10px; }
    .cookie-actions button { flex: 1 1 auto; }
}
