/* Independent, neutral design for the centered cookie notice. */
html.cookie-pending body { overflow: hidden; }
html.cookie-pending body > .home-brand,
html.cookie-pending body > .container,
html.cookie-pending body > footer { visibility: hidden !important; }
html.cookie-pending body::before,
html.cookie-pending .home-brand,
html.cookie-pending .container main::after,
html.cookie-pending .container,
html.cookie-pending .container *,
html.cookie-pending footer,
html.cookie-pending footer * { animation-play-state: paused !important; }

.cookie-banner:not([open]),
.cookie-banner [hidden] { display: none !important; }

.cookie-banner {
    color-scheme: light;
    position: fixed;
    inset: 0;
    margin: auto;
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 520px;
    max-height: calc(100vh - 40px);
    max-height: calc(100svh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 40px;
    border: 1px solid #E5E2DB;
    border-radius: 20px;
    background: #FFFEFC;
    color: #565953;
    box-shadow: 0 24px 80px rgba(30, 35, 29, 0.09), 0 2px 8px rgba(30, 35, 29, 0.03);
    font: 400 14px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-align: left;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
}

.cookie-banner::backdrop {
    background: radial-gradient(ellipse at 50% 40%, #F7F6F2 0%, #E9E7E0 100%);
}

.cookie-banner::before {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    margin-bottom: 24px;
    border-radius: 2px;
    background: #58836A;
}

.cookie-banner h2 {
    margin: 0 0 20px;
    color: #222820;
    font: 400 34px/1.15 Georgia, "Times New Roman", serif;
    letter-spacing: -0.8px;
}

.cookie-banner p { margin: 0 0 16px; }
.cookie-banner > p + p { color: #666961; font-size: 13px; }
.cookie-banner a {
    color: #394432;
    font-size: 12px;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #A6ACA0;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}
.cookie-banner a:hover { color: #182213; text-decoration-color: currentColor; }

.cookie-actions {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #EBE9E3;
}

.cookie-button {
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #DCDDD6;
    border-radius: 10px;
    background: transparent;
    color: #3E4539;
    font: 500 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}
.cookie-button:hover { background: #F1F2EC; border-color: #B6BDAD; }
.cookie-button-primary {
    flex: 1 1 190px;
    border-color: #2E4939;
    background: #2E4939;
    color: #FFFFFF;
}
.cookie-button-primary:hover { background: #3A4635; border-color: #3A4635; }

.cookie-details {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #E8E9E1;
    border-radius: 12px;
    background: #F6F7F1;
}
.cookie-details h3 {
    margin: 0 0 16px;
    color: #2E4939;
    font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.cookie-details dl { margin: 0; font-size: 12px; }
.cookie-details dt { margin: 0 0 4px; color: #384132; font-weight: 600; }
.cookie-details dd { margin: 0 0 16px; color: #60675A; line-height: 1.65; }
.cookie-details dd:last-child { margin-bottom: 0; }
.cookie-banner :focus-visible { outline: 2px solid #607651; outline-offset: 4px; }

@media (max-width: 480px) {
    .cookie-banner { width: calc(100% - 28px); padding: 28px 24px; border-radius: 16px; }
    .cookie-banner h2 { font-size: 30px; }
    .cookie-actions { gap: 10px; margin-top: 24px; padding-top: 20px; }
    .cookie-button { padding-inline: 12px; }
    .cookie-button-primary { flex-basis: 150px; }
}

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