/* Cookie consent — matches the site's dark header/footer style (#1a202c, #667eea, Inter) */
.uc-banner {
    position: fixed; z-index: 9999; left: 50%; bottom: 20px; transform: translateX(-50%);
    width: min(860px, calc(100vw - 32px)); box-sizing: border-box;
    display: flex; gap: 20px; align-items: center;
    padding: 18px 20px; border-radius: 18px;
    background: rgba(26, 32, 44, .97); color: #fff; border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 20px 50px -12px rgba(0,0,0,.45);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font: 400 14px/1.5 'Inter', system-ui, sans-serif;
    animation: uc-in .35s cubic-bezier(.2,.9,.3,1);
}
@keyframes uc-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.uc-banner .uc-text { flex: 1; min-width: 0; }
.uc-banner strong { display: block; font-weight: 700; margin-bottom: 3px; font-size: 14.5px; }
.uc-banner p { margin: 0; color: #cbd5e0; font-size: 13px; }
.uc-banner a, .uc-modal a { color: #a3b1ff; text-decoration: underline; }
.uc-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.uc-btn {
    font: 700 13px/1 'Inter', system-ui, sans-serif; letter-spacing: .01em; cursor: pointer;
    height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; white-space: nowrap;
    transition: transform .08s, background .15s, opacity .15s;
}
.uc-btn:active { transform: translateY(1px); }
/* Accept and Reject are equally prominent (EDPB/CNIL guidance) */
.uc-accept { background: #667eea; color: #fff; }
.uc-accept:hover { background: #5a67d8; }
.uc-reject { background: #fff; color: #1a202c; }
.uc-reject:hover { background: #edf2f7; }
.uc-ghost { background: transparent; color: #cbd5e0; border-color: rgba(255,255,255,.18); }
.uc-ghost:hover { background: rgba(255,255,255,.06); color: #fff; }
.uc-btn:focus-visible, .uc-switch input:focus-visible + span { outline: 2px solid #a3b1ff; outline-offset: 2px; }

/* Room under the page while the banner is open, so the end of the page can scroll above it */
body.uc-open::after { content: ''; display: block; height: var(--uc-space, 0px); }

/* Preferences dialog */
.uc-modal {
    border: 0; padding: 0; border-radius: 20px; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
    background: #1a202c; color: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
    font: 400 14px/1.5 'Inter', system-ui, sans-serif;
}
.uc-modal::backdrop { background: rgba(10, 12, 16, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.uc-modal[open] { animation: uc-pop .2s ease-out; }
@keyframes uc-pop { from { opacity: 0; transform: scale(.97); } }
.uc-modal-body { padding: 24px 24px 8px; overflow-y: auto; max-height: calc(100vh - 160px); }
.uc-modal h2 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.uc-modal .uc-lead { color: #a0aec0; font-size: 13px; margin: 0 0 18px; }
.uc-cat { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0; }
.uc-cat-head { display: flex; align-items: center; gap: 12px; }
.uc-cat-head strong { flex: 1; font-size: 14px; }
.uc-cat p { margin: 4px 0 0; color: #a0aec0; font-size: 12.5px; }
.uc-vendors { color: #718096; font-size: 12px; margin-top: 4px; }
.uc-always { font-size: 12px; color: #a0aec0; }
.uc-modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 16px 24px 20px; flex-wrap: wrap; }

.uc-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.uc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.uc-switch span { position: absolute; inset: 0; border-radius: 99px; background: #4a5568; transition: background .15s; }
.uc-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.uc-switch input:checked + span { background: #667eea; }
.uc-switch input:checked + span::after { transform: translateX(18px); }

@media (max-width: 640px) {
    .uc-banner { flex-direction: column; align-items: stretch; bottom: 12px; padding: 16px; gap: 14px; }
    .uc-actions { flex-wrap: wrap; }
    .uc-actions .uc-btn { flex: 1; }
    .uc-actions .uc-ghost { flex-basis: 100%; order: 3; }
    .uc-modal-foot .uc-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .uc-banner, .uc-modal[open] { animation: none; } }
