.cookie-banner[hidden], [data-cookie-settings][hidden] { display: none !important; }
.cookie-banner, .cookie-settings {
    box-sizing: border-box;
    font-family: 'Noto Kufi Arabic', sans-serif;
    color: #302b26;
    background: #fffdf9;
    border: 1px solid #d6c9b7;
    border-radius: 16px;
    box-shadow: 0 12px 45px #302b2630;
    text-align: right;
    font-size: 13px;
    line-height: 1.9;
}
.cookie-banner {
    position: fixed;
    z-index: 100000;
    inset: auto 20px 20px;
    padding: 22px 26px;
    max-width: 1080px;
    max-height: 85vh;
    overflow-y: auto;
    margin-inline: auto;
}
.cookie-banner h2, .cookie-settings h2 { font: inherit; font-weight: 700; font-size: 18px; margin: 0 0 10px; color: #302b26; }
.cookie-banner p, .cookie-settings p { margin: 0 0 14px; }
.cookie-banner a, .cookie-settings a, .cookie-notice a { color: #665036; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-button {
    background: #68543e;
    color: white;
    border: 1px solid #68543e;
    border-radius: 8px;
    padding: 10px 16px;
    min-height: 44px;
    font: inherit;
    cursor: pointer;
}
.cookie-button:hover { background: #50402f; color: white; }
.cookie-button-secondary { color: #503e2c; background: transparent; }
.cookie-button-secondary:hover { background: #eee5d9; color: #302b26; }
.cookie-button:focus-visible, .cookie-settings input:focus-visible, .cookie-footer-link:focus-visible {
    outline: 3px solid #2563a4;
    outline-offset: 3px;
}
.cookie-settings { padding: 26px; width: min(600px, calc(100% - 24px)); max-height: 85dvh; overflow-y: auto; }
.cookie-settings::backdrop { background: #211b16a6; }
.cookie-settings-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.cookie-settings-heading h2 { margin: 0; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid #e2d9cd; }
.cookie-category label { font-weight: 700; cursor: pointer; }
.cookie-category p { color: #60574e; margin: 5px 0 0; font-size: 12px; }
.cookie-category input { flex-shrink: 0; width: 24px; height: 24px; accent-color: #68543e; cursor: pointer; }
.cookie-required { white-space: nowrap; color: #526349; font-size: 11px; }
.cookie-settings-note { font-size: 12px; }
.cookie-footer-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.cookie-notice { padding: 160px 24px 70px; max-width: 900px; margin-inline: auto; line-height: 2; }
.cookie-notice h2 { font-size: 21px; margin-top: 28px; }
.cookie-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 575px) {
    .cookie-banner { inset: auto 10px 10px; padding: 18px; }
    .cookie-actions { flex-direction: column; }
    .cookie-actions .cookie-button { width: 100%; }
    .cookie-settings { padding: 20px; }
    .cookie-settings-heading h2 { font-size: 16px; }
}
