/* Scoped public consent controls; no portal or theme-wide selectors. */
.hasp-cookie-consent { --hasp-cookie-primary: var(--ha-primary, #9d2b78); --hasp-cookie-dark: var(--ha-primary-dark, #7b1f5d); color: #102b3a; font: 400 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.hasp-cookie-consent *, .hasp-cookie-consent *::before, .hasp-cookie-consent *::after { box-sizing: border-box; }
.hasp-cookie-consent [hidden] { display: none !important; }
.hasp-cookie-consent h2, .hasp-cookie-consent h3, .hasp-cookie-consent p { color: inherit; padding: 0; text-transform: none; }
.hasp-cookie-consent h2 { margin: 0 0 6px; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.3; }
.hasp-cookie-consent h3, .hasp-cookie-consent label { margin: 0; font-size: 15px; font-weight: 650; }
.hasp-cookie-consent p { margin: 0; font-size: 14px; line-height: 1.5; }
.hasp-cookie-consent a { color: var(--hasp-cookie-primary); text-decoration: underline; text-underline-offset: 2px; }
.hasp-cookie-consent button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--hasp-cookie-primary); border-radius: 6px; background: var(--hasp-cookie-primary); color: #fff; cursor: pointer; font: 600 14px/1.3 system-ui, sans-serif; text-transform: none; letter-spacing: normal; white-space: normal; box-shadow: none; }
.hasp-cookie-consent button:hover { background: var(--hasp-cookie-dark); border-color: var(--hasp-cookie-dark); }
.hasp-cookie-consent button:focus-visible, .hasp-cookie-consent input:focus-visible, .hasp-cookie-consent a:focus-visible { outline: 3px solid #c76308; outline-offset: 3px; }
.hasp-cookie-banner { position: fixed; z-index: 2147483000; right: 16px; bottom: 16px; left: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 300px); gap: 14px 22px; width: auto; max-width: 1120px; max-height: min(75vh, 640px); overflow-y: auto; margin: 0 auto; padding: 18px 20px; background: #fff; border: 1px solid #b9d2d4; border-radius: 10px; box-shadow: 0 3px 20px #073b421a; }
.hasp-cookie-copy { align-self: center; }
.hasp-cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hasp-cookie-actions button { flex: 1 1 140px; }
.hasp-cookie-banner .hasp-cookie-actions button { flex-basis: 100%; }
.hasp-cookie-consent [data-ha-consent="manage"] { background: #fff; color: var(--hasp-cookie-primary); }
.hasp-cookie-consent [data-ha-consent="manage"]:hover { background: #edf5f5; }
.hasp-cookie-banner .hasp-cookie-error { grid-column: 1 / -1; }
.hasp-cookie-preferences { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: 22px; border: 0; border-radius: 10px; background: #fff; color: #193a42; font: inherit; }
.hasp-cookie-preferences:not([open]) { display: none; }
.hasp-cookie-preferences::backdrop { background: #092d37a6; }
.hasp-cookie-heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hasp-cookie-heading h2 { margin: 0; font-size: 20px; }
.hasp-cookie-heading [data-ha-consent="close"] { flex: 0 0 44px; width: 44px; padding: 0; background: #edf5f5; border-color: transparent; color: #193a42; font-size: 26px; }
.hasp-cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid #dce8e9; }
.hasp-cookie-category:first-of-type { margin-top: 16px; }
.hasp-cookie-category p { margin-top: 4px; color: #405e65; }
.hasp-cookie-category label { display: inline-block; padding: 4px 0; cursor: pointer; }
.hasp-cookie-category input { flex: 0 0 24px; width: 24px; height: 24px; margin: 0 2px; padding: 0; appearance: auto; accent-color: var(--hasp-cookie-primary); cursor: pointer; }
.hasp-cookie-required { flex-shrink: 0; padding: 4px 7px; border-radius: 4px; background: #e5f2ef; color: #22574a; font-size: 12px; font-weight: 600; }
.hasp-cookie-preferences .hasp-cookie-note { margin: 0 0 16px; font-size: 12px; color: #405e65; }
.hasp-cookie-consent .hasp-cookie-error { margin: 8px 0; color: #8f2034; font-weight: 600; }
.hasp-cookie-footer { display: flex; align-items: center; justify-content: center; padding: 4px 16px; background: #fff; }
.hasp-cookie-footer #hasp-cookie-reopen { min-height: 44px; border: 0; border-radius: 0; padding: 8px 12px; background: transparent; color: var(--hasp-cookie-primary); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.hasp-cookie-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hasp-cookie-noscript { padding: 12px 16px !important; text-align: center; }
@media (max-width: 760px) {
    .hasp-cookie-banner { grid-template-columns: minmax(0, 1fr); gap: 12px; right: 12px; left: 12px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); padding: 15px; max-height: calc(100dvh - 110px); }
    .hasp-cookie-banner .hasp-cookie-actions button { flex: 1 1 120px; padding: 10px; }
    .hasp-cookie-banner .hasp-cookie-actions [data-ha-consent="manage"] { flex-basis: 100%; }
    .hasp-cookie-consent h2 { font-size: 17px; }
    .hasp-cookie-consent p { font-size: 13px; }
    .hasp-cookie-preferences { padding: 18px; }
    .hasp-cookie-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .hasp-cookie-consent * { scroll-behavior: auto; transition: none; } }
@media (forced-colors: active) { .hasp-cookie-consent button, .hasp-cookie-banner, .hasp-cookie-preferences { border: 1px solid CanvasText; } }
