/* Cookie banner and preferences dialog (markup in Components/App.razor, behaviour in js/consent.js). */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; background: var(--espresso); color: #E9DFD3; border-radius: var(--r); box-shadow: 0 12px 40px rgba(30,18,11,.35); }
.cookie-banner[hidden], .cookie-modal-bg[hidden] { display: none !important; }
.cookie-banner-inner { max-width: var(--shell); margin: 0 auto; padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cookie-text { flex: 1 1 420px; }
.cookie-text strong { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.cookie-text p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.cookie-text a { color: var(--golden); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn.ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.cookie-banner .btn.ghost:hover { color: var(--golden); border-color: var(--golden); }

.cookie-modal-bg { position: fixed; inset: 0; z-index: 160; background: rgba(30,18,11,.55); display: grid; place-items: center; padding: 20px; }
.cookie-modal { background: #fff; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; border-radius: var(--r); box-shadow: 0 20px 60px rgba(30,18,11,.35); }
.cookie-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 26px 0; }
.cookie-modal-head h3 { margin: 0; font-size: 21px; }
.cookie-modal-close { background: none; border: 0; font-size: 18px; line-height: 1; cursor: pointer; color: var(--slate); padding: 4px; }
.cookie-modal-body { padding: 16px 26px 24px; }
.cookie-modal-body > p { font-size: 14px; color: var(--slate); margin: 0 0 16px; }
.cookie-option { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 16px 0; border-top: 1px solid var(--hairline); }
.cookie-option .name { font-weight: 600; font-size: 15px; color: var(--espresso); }
.cookie-option p { font-size: 13.5px; color: var(--slate); margin: 4px 0 0; }
.cookie-modal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.cookie-modal-foot > div { display: flex; flex-wrap: wrap; gap: 10px; }

.cookie-switch { position: relative; flex-shrink: 0; width: 46px; height: 24px; cursor: pointer; }
.cookie-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-slider { position: absolute; inset: 0; background: var(--hairline); border-radius: 24px; transition: background .2s var(--ease); }
.cookie-slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.cookie-switch input:checked + .cookie-slider { background: var(--tangerine); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(22px); }
.cookie-switch input:focus-visible + .cookie-slider { outline: 2px solid var(--terracotta); outline-offset: 2px; }

@media print { .cookie-banner, .cookie-modal-bg { display: none !important; } }
