/* Aviso de cookies (barra inferior) */
.cookie-bar{--ck-bar:#dcaa2c;--ck-text:#1b1b1b;--ck-btn:#111;--ck-btn-text:#f3c33c;position:fixed;left:0;right:0;bottom:0;z-index:2147483000;background:var(--ck-bar);color:var(--ck-text);font:15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;box-shadow:0 -6px 24px #0003;padding:18px 20px calc(18px + env(safe-area-inset-bottom));box-sizing:border-box;animation:cookie-in .35s ease-out}
.cookie-bar-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:28px}
.cookie-bar p{margin:0;flex:1;color:inherit;font:inherit;text-align:left}
.cookie-bar a,.cookie-bar .cookie-link{color:inherit;font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.cookie-bar .cookie-link{background:none;border:0;padding:0;margin:0;cursor:pointer}
.cookie-bar a{margin-right:.9em}
.cookie-accept{flex:none;min-width:150px;background:var(--ck-btn);color:var(--ck-btn-text);border:0;border-radius:2px;font:700 15px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;padding:15px 28px;cursor:pointer;transition:filter .15s}
.cookie-accept:hover{filter:brightness(1.25)}
.cookie-bar :focus-visible,.cookie-prefs :focus-visible{outline:3px solid currentColor;outline-offset:3px}
@keyframes cookie-in{from{transform:translateY(100%)}}
@media(max-width:700px){.cookie-bar{font-size:14px;padding:16px 16px calc(16px + env(safe-area-inset-bottom))}.cookie-bar-inner{flex-direction:column;align-items:stretch;gap:16px}.cookie-accept{width:100%}}
@media(prefers-reduced-motion:reduce){.cookie-bar,.cookie-prefs{animation:none}}

/* Configurações avançadas (painel lateral) */
.cookie-prefs{--ck-btn:#111;--ck-btn-text:#f3c33c;position:fixed;inset:0 0 0 auto;margin:0;width:min(440px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;padding:0;border:0;background:#fff;color:#1b1b1b;font:15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;box-shadow:-10px 0 40px #0004;display:flex;flex-direction:column;box-sizing:border-box;animation:prefs-in .3s ease-out}
.cookie-prefs:not([open]){display:none}
.cookie-prefs::backdrop{background:#0008}
@keyframes prefs-in{from{transform:translateX(100%)}}
.cookie-prefs-head{display:flex;align-items:flex-start;gap:16px;padding:28px 24px 18px;border-bottom:1px solid #e6e6e6}
.cookie-prefs h2{flex:1;margin:0;font:400 26px/1.15 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#1b1b1b;letter-spacing:-.01em}
.cookie-prefs-close{flex:none;width:36px;height:36px;margin:-6px -8px 0 0;background:none;border:0;border-radius:50%;font:300 30px/1 Arial,sans-serif;color:#333;cursor:pointer}
.cookie-prefs-close:hover{background:#f1f1f1}
.cookie-prefs-list{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 24px}
.cookie-prefs section{padding:22px 0;border-bottom:1px solid #e6e6e6}
.cookie-prefs section:last-child{border-bottom:0}
.cookie-prefs label{display:flex;align-items:center;justify-content:space-between;gap:16px;font-weight:600;font-size:16px;cursor:pointer;position:relative}
.cookie-prefs section p{margin:8px 52px 0 0;font-size:13.5px;line-height:1.55;color:#555}
.cookie-prefs input{position:absolute;opacity:0;width:44px;height:24px;right:0;margin:0;cursor:pointer}
.cookie-prefs label i{flex:none;position:relative;width:44px;height:24px;border-radius:12px;background:#c9c9c9;transition:background .2s}
.cookie-prefs label i::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0004;transition:transform .2s}
.cookie-prefs input:checked+i{background:var(--ck-btn)}
.cookie-prefs input:checked+i::after{transform:translateX(20px)}
.cookie-prefs input:focus-visible+i{outline:3px solid var(--ck-btn);outline-offset:3px}
.cookie-prefs input:disabled,.cookie-prefs input:disabled+i{cursor:not-allowed;opacity:.55}
.cookie-prefs label:has(input:disabled){cursor:default}
.cookie-prefs-foot{padding:18px 24px calc(18px + env(safe-area-inset-bottom));border-top:1px solid #e6e6e6;background:#fff}
.cookie-prefs-save{width:100%;background:var(--ck-btn);color:var(--ck-btn-text);border:0;border-radius:2px;font:700 15px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;padding:16px;cursor:pointer}
.cookie-prefs-save:hover{filter:brightness(1.25)}

.privacy-choice{display:block;margin:15px auto;background:transparent;color:inherit;border:1px solid currentColor;border-radius:6px;padding:8px 12px;font:12px Arial,sans-serif;cursor:pointer}
html.consent-locked,html.consent-locked body{overflow:hidden!important;overscroll-behavior:none}
.cookie-shade{position:fixed;inset:0;z-index:2147482999;background:rgba(0,0,0,.45);animation:shade-in .35s ease-out;touch-action:none}
@keyframes shade-in{from{opacity:0}}
body[data-loading]>.cookie-bar,body[data-loading]>.cookie-shade{visibility:visible!important}
