.cookie-consent[hidden], .cookie-settings[hidden], .cookie-consent [hidden] { display: none !important; }
.cookie-consent {
    position: fixed;
    z-index: 2147483646;
    inset: auto 20px 20px;
    width: min(1020px, calc(100% - 40px));
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px 24px;
    padding: 20px 24px;
    border: 1px solid #d4d7df;
    border-radius: 18px;
    background: #fff;
    color: #111;
    color-scheme: light;
    box-shadow: 0 14px 44px #00000035;
    font: 14px/1.5 var(--font-body, Arial, sans-serif);
}
.cookie-consent-copy { min-width: 0; }
.cookie-consent-copy > strong { font-size: 16px; }
.cookie-consent-copy p { margin: 6px 0 0; color: #303030; }
.cookie-consent-copy a { color: inherit; text-decoration: underline; }
.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 2; grid-row: 1; }
.cookie-consent button {
    appearance: none;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: #ffdf00;
    color: #111;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.cookie-consent button:hover:not(:disabled) { background: #ffe94d; color: #111; border: 0; }
.cookie-consent button:active { border: 0; }
.cookie-consent button:focus-visible, .cookie-consent input:focus-visible { outline: 2px solid #715000; outline-offset: 3px; }
.cookie-settings:focus-visible { outline: 2px solid #ffd568; outline-offset: 3px; }
.cookie-consent-preferences { grid-column: 1 / -1; }
.cookie-consent-preferences fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.cookie-consent-preferences legend { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.cookie-consent-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #dedede; }
label.cookie-consent-option { cursor: pointer; }
.cookie-consent-option-copy, .cookie-consent-option strong, .cookie-consent-option-copy > span { display: block; }
.cookie-consent-option-copy > span { color: #484848; font-size: 13px; margin-top: 2px; }
.cookie-consent-option input { appearance: auto; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: #8b6500; cursor: pointer; }
.cookie-consent-required { color: #484848; white-space: nowrap; font-size: 13px; }
/* Keep the loaded creative intact; reopening preferences must not reload an ad. */
body:has(#cookie-consent:not([hidden])) .advertisement--anchor { visibility: hidden !important; pointer-events: none !important; }
.site-info .cookie-settings { appearance: none; border: 0; padding: 0; background: transparent; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-info .cookie-settings:hover:not(:disabled) { background: transparent; color: var(--button-hover-background); }
@media (max-width: 991.98px) {
    .cookie-consent { grid-template-columns: minmax(0, 1fr); }
    .cookie-consent-actions { grid-column: 1; grid-row: auto; }
    .cookie-consent-actions button { flex: 1; }
}
@media (max-width: 767.98px) {
    .cookie-consent { inset: auto 12px 12px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 18px; gap: 14px; }
    .cookie-consent button { padding-inline: 12px; }
}
