.cookie-consent {
    box-sizing: border-box;
    width: min(400px, calc(100% - 24px));
    padding: 18px;
    border: 1px solid #59524a;
    border-radius: 8px;
    background: #181715;
    color: #f0eee5;
    box-shadow: 0 16px 52px #0009;
    font: 14px/1.55 'Noto Sans', Arial, sans-serif;
    overflow-wrap: anywhere;
    color-scheme: dark;
}
.cookie-consent *, .cookie-consent *::before, .cookie-consent *::after { box-sizing: border-box; }
body .cookie-consent, body .cookie-consent * { font-family: 'Noto Sans', Arial, sans-serif !important; }
.cookie-banner {
    position: fixed;
    z-index: 120;
    inset-inline-start: max(12px, env(safe-area-inset-left));
    inset-block-end: max(12px, env(safe-area-inset-bottom));
}
.cookie-banner[hidden], [data-cookie-settings][hidden] { display: none; }
body:has(.cart-drawer[open], .cookie-dialog[open]) .cookie-banner { visibility: hidden; }
.cookie-consent h2, body.wot-commerce .cookie-consent h2 {
    margin: 0;
    color: #f0eee5;
    font: 650 18px/1.25 'Noto Sans', Arial, sans-serif;
    letter-spacing: normal;
    text-transform: none;
}
.cookie-consent p { margin: 9px 0 14px; color: #d2cdc4; }
.cookie-consent a { color: #e2be85; text-underline-offset: 3px; text-decoration: underline; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-consent button {
    min-height: 44px;
    padding: 7px 10px;
    border: 1px solid #75624b;
    border-radius: 4px;
    background: #28231b;
    color: #f0eee5;
    font: 600 13px/1.3 'Noto Sans', Arial, sans-serif;
    text-transform: none;
    cursor: pointer;
}
.cookie-consent button:hover { background: #382d1e; border-color: #d9b477; }
.cookie-consent :focus-visible, [data-cookie-settings]:focus-visible { outline: 2px solid #efc887; outline-offset: 2px; }
.cookie-actions > :last-child { grid-column: 1 / -1; }
.cookie-consent .cookie-settings-button { background: transparent; border-color: #494540; }
.cookie-dialog {
    width: min(480px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    margin: auto;
    overflow: auto;
}
.cookie-dialog::backdrop { background: #000a; }
.cookie-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-dialog .cookie-dialog-close { min-width: 44px; padding: 0; font-size: 26px; background: transparent; }
.cookie-categories { margin-top: 10px; }
.cookie-categories > * {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #443f37;
}
.cookie-categories > div { display: block; }
.cookie-categories strong { display: block; font-size: 14px; font-weight: 650; }
.cookie-categories small { display: block; margin-top: 3px; color: #d2cdc4; font: inherit; font-size: 13px; }
.cookie-categories div span { display: block; margin-top: 3px; color: #e2be85; font-size: 12px; }
.cookie-categories label { color: #f0eee5; cursor: pointer; }
.cookie-categories input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: #d9b477; }
.footer-cookie-settings {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
}
.footer-cookie-settings:hover { color: #e2be85; }
@media (max-width: 600px) {
    .cookie-banner {
        width: auto;
        inset-inline-end: max(12px, env(safe-area-inset-right));
        max-width: min(100%, 400px);
    }
    body:has(#jivosite_widget_code-js) .cookie-banner {
        inset-block-end: calc(100px + env(safe-area-inset-bottom));
    }
    .cookie-consent { padding: 14px; }
}
