html.cookie-preferences-modal-open { overflow: hidden; }
.cookie-preferences-dialog {
    box-sizing: border-box;
    width: min(560px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: clamp(20px, 4vw, 32px);
    border: 1px solid #59482f;
    border-radius: 16px;
    color: #f8efdd;
    background: #171713;
    color-scheme: dark;
    font-family: 'DM Sans', Arial, sans-serif;
    box-shadow: 0 18px 70px #0007;
    overflow: auto;
    overscroll-behavior: contain;
}
.cookie-preferences-dialog::backdrop { background: #000b; backdrop-filter: blur(3px); }
.cookie-preferences-dialog .cookie-preferences-heading {
    margin: 0 0 20px;
    color: #f8efdd;
    font: 600 clamp(1.45rem, 4vw, 1.8rem)/1.25 'DM Sans', Arial, sans-serif;
    letter-spacing: -.02em;
}
.cookie-preferences-dialog p { margin: 0 0 18px; color: #ddd4c3; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.cookie-preferences-dialog .cookie-preferences-note { margin-bottom: 24px; color: #c6bdad; font-size: 14px; line-height: 1.6; }
.cookie-preferences-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cookie-preferences-dialog .cookie-preferences-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    width: 100%;
    padding: 12px 16px;
    margin: 0;
    border: 1px solid #d1a35f;
    border-radius: 10px;
    color: #251e14;
    background: #d1a35f;
    font: 600 16px/1.4 'DM Sans', Arial, sans-serif;
    text-align: center;
    cursor: pointer;
}
.cookie-preferences-dialog .cookie-preferences-choice:hover { background: #e1b777; border-color: #e1b777; }
.cookie-preferences-dialog .cookie-preferences-policy { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: #dfb77e; font-size: 14px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.cookie-preferences-dialog :is(button, a):focus-visible { outline: 3px solid #f7e9c9; outline-offset: 4px; }
.cookie-preferences-dialog .cookie-preferences-heading:focus { outline: none; }
.footer [data-cookie-preferences-open]:not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: #dfb77e; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.footer [data-cookie-preferences-open]:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer [data-cookie-preferences-open]:focus-visible { outline: 3px solid #dfb77e; outline-offset: 4px; }
@media (max-width: 480px) {
    .cookie-preferences-dialog { width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 24px 20px; border-radius: 12px; }
    .cookie-preferences-actions { grid-template-columns: minmax(0, 1fr); }
    .cookie-preferences-dialog .cookie-preferences-policy { margin-top: 12px; }
}
