/* Self-hosted preference controls also work under the order/licence pages' CSP. */
#cookie-consent,#cookie-settings,#cookie-storage-status{box-sizing:border-box;font-family:inherit;color:#f4f6f3}
#cookie-consent[hidden],#cookie-settings[hidden],#cookie-storage-status[hidden]{display:none}
#cookie-consent{position:fixed;z-index:100;left:max(20px,env(safe-area-inset-left));bottom:max(20px,env(safe-area-inset-bottom));width:min(640px,calc(100vw - 40px));max-height:calc(100dvh - 40px);overflow:auto;padding:28px;background:#1b2224;box-shadow:0 12px 48px #0006;text-align:left;line-height:1.5}
#cookie-consent h2{font-size:24px;line-height:1.2;font-weight:500;letter-spacing:-.02em;margin:0 0 16px;color:#f4f6f3}
#cookie-consent p{font-size:16px;line-height:1.5;max-width:60ch;margin:0 0 16px;color:#f4f6f3}
#cookie-consent .cookie-detail{font-size:14px;line-height:1.5;color:#c2cdca}
#cookie-consent .cookie-detail:last-child{margin:14px 0 0}
#cookie-current:empty{display:none}
#cookie-consent a{color:#b5ece3;text-decoration:underline;text-underline-offset:3px}
#cookie-consent .cookie-actions{display:flex;flex-wrap:wrap;gap:12px}
#cookie-consent button,#cookie-settings{appearance:none;cursor:pointer;border:0;border-radius:0;font:inherit;font-size:16px;line-height:1.4;min-height:44px;padding:12px 20px;background:#354345;color:#f4f6f3;transition:background .18s,transform .18s}
#cookie-consent button{flex:1 1 160px;padding-inline:14px}
#cookie-consent button:hover,#cookie-settings:hover{background:#445759}
#cookie-consent button:active,#cookie-settings:active{transform:translateY(1px)}
#cookie-consent button:focus-visible,#cookie-settings:focus-visible,#cookie-consent a:focus-visible{outline:3px solid #b5ece3;outline-offset:3px}
#cookie-settings{position:relative;display:block;margin:0 var(--pad,24px) 0;font-size:14px;padding:10px 14px;background:#1b2224}
#cookie-storage-status{position:fixed;z-index:100;left:16px;bottom:70px;max-width:min(380px,calc(100vw - 32px));padding:14px;background:#1b2224;font-size:14px;line-height:1.5;margin:0}
#cookie-space{height:24px}
.cookie-consent-open #cookie-space{height:calc(var(--cookie-panel-height,300px) + 40px)}
.cookie-consent-open #ilumax-receptionist,.cookie-consent-open elevenlabs-convai{visibility:hidden;pointer-events:none}
.cookie-consent-open #comparison{bottom:calc(var(--cookie-panel-height,300px) + 40px)}
@media(max-width:700px){#cookie-consent{left:16px;bottom:max(16px,env(safe-area-inset-bottom));width:calc(100vw - 32px);padding:22px;max-height:calc(100dvh - 32px)}#cookie-consent h2{font-size:22px}#cookie-consent button{flex-basis:130px}}
@media(prefers-reduced-motion:reduce){#cookie-consent button,#cookie-settings{transition:none}}

/* The page-end control can scroll clear of both comparison tray states and Hana. */
.has-comparison #cookie-space{height:calc(var(--compare-height,64px) + 120px)}
.has-receptionist:not(.cookie-consent-open) #cookie-space{height:88px}
.has-receptionist:has(.has-comparison):not(.cookie-consent-open) #cookie-space{height:calc(var(--compare-height,64px) + 120px)}
