/* Scoped styles preserve the site's existing Bootstrap/Tailwind layouts. */
#cookie-notice, .cookie-settings, .consent-placeholder, .privacy-policy {
    font-family: var(--body-font, "Barlow", Arial, sans-serif);
    font-size: 1rem;
    line-height: 1.5;
}
#cookie-notice [hidden], #cookie-notice[hidden], .consent-placeholder[hidden] {
    display: none !important;
}
#cookie-notice {
    position: fixed;
    inset: auto 0 0;
    z-index: 2147483000;
    box-sizing: border-box;
    padding: 1.25rem max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    border-top: 2px solid #ffdf70;
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 -3px 20px #0003;
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
    text-align: left;
}
#cookie-notice .cookie-notice-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1280px;
    margin: auto;
}
#cookie-notice h2 { color: #fff; font: bold 1.25rem/1.3 var(--body-font, Arial, sans-serif); margin: 0 0 .5rem; }
/* The legacy theme forces every paragraph to 22px; keep this banner readable
   without letting that rule fill a small screen. Relative units honor zoom. */
#cookie-notice p { margin: 0 0 .5rem; color: #fff; font-size: 1rem !important; line-height: 1.5; }
#cookie-notice a { color: #ffdf70; text-decoration: underline; }
#cookie-notice .cookie-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; flex: 0 0 auto; }
#cookie-notice .cookie-choice, .consent-placeholder button {
    min-height: 44px;
    padding: .65rem 1.1rem;
    border: 2px solid #ffdf70;
    border-radius: 4px;
    background: #ffdf70;
    color: #1a1a1a;
    font: bold 1rem/1.5 var(--body-font, Arial, sans-serif);
    cursor: pointer;
    text-align: center;
    min-width: 0;
    overflow-wrap: anywhere;
}
#cookie-notice .cookie-choice:hover, .consent-placeholder button:hover { background: #ffe99b; border-color: #ffe99b; }
#cookie-notice .cookie-close { grid-column: 1 / -1; background: transparent; color: #fff; text-decoration: underline; border: 0; min-height: 44px; cursor: pointer; font: inherit; }
.cookie-settings {
    position: fixed;
    left: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1056;
    min-height: 44px;
    padding: .5rem .85rem;
    border: 2px solid #ffdf70;
    border-radius: 4px;
    color: #fff;
    background: #1a1a1a;
    cursor: pointer;
}
#cookie-notice :focus-visible, .cookie-settings:focus-visible, .consent-footer-link:focus-visible,
.consent-placeholder :focus-visible, .privacy-policy :focus-visible {
    outline: 3px solid #ce2829;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #fff;
}
#cookie-status:empty { display: none; }
.consent-placeholder { padding: 1.5rem; border: 1px solid #c5a059; border-radius: 4px; background: #f9f7f2; color: #1a1a1a; text-align: center; }
.consent-placeholder p { color: #1a1a1a; margin: 0 0 .75rem; }
.consent-placeholder a, .privacy-policy a { color: #8b0000; text-decoration: underline; }
.consent-placeholder-video { min-height: 315px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.consent-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; padding: .75rem 0 4.5rem; }
.consent-footer .consent-footer-link { color: #fff; background: transparent; border: 0; font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.privacy-policy { max-width: 960px; margin: auto; padding: 7rem 1.25rem 3rem; color: #292929; }
.privacy-policy h1 { font-size: 2.25rem; margin-bottom: 1rem; }
.privacy-policy h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.privacy-policy p, .privacy-policy li { font-size: 1rem; line-height: 1.6; }
.privacy-policy ul { padding-left: 1.5rem; }
.privacy-policy code { color: #6b2715; overflow-wrap: anywhere; font-size: .9em; }
@media (max-width: 900px) {
    #cookie-notice .cookie-notice-content { flex-direction: column; align-items: stretch; gap: .75rem; }
    #cookie-notice .cookie-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    #cookie-notice { scroll-behavior: auto; }
}
