/* AUGEUM · Consent Mode v2 + Banner de Cookies (LGPD) · Colégio Objetivo Santa Cruz, copiado do molde do Cáscio em 27/10/2026.
   Tema claro com as cores e a fonte do site (marinho #0D3880, amarelo #FDD703, Nunito), tiradas de src/styles/tema.css. */
:root {
  --ac-primary:  #0d3880;   /* marinho Polinésio */
  --ac-accent:   #fdd703;   /* amarelo Tangerina, só foco */
  --ac-surface:  #ffffff;
  --ac-ink:      #212529;
  --ac-muted:    #47536e;
  --ac-line:     #d9e2ef;
  --ac-soft:     #eef4fb;
  --ac-radius:   12px;
  --ac-shadow:   0 -8px 32px rgba(13,56,128,.18);
  --ac-z:        2147483000;
  --ac-font: 'Nunito Variable', 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
#augeum-cookie-bar, #augeum-cookie-bar * { box-sizing: border-box; }
#augeum-cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--ac-z);
  background: var(--ac-surface); color: var(--ac-ink);
  border-top: 4px solid var(--ac-accent); box-shadow: var(--ac-shadow);
  font-family: var(--ac-font);
  font-size: 15px; line-height: 1.55;
  transform: translateY(110%); transition: transform .4s cubic-bezier(.16,1,.3,1);
}
#augeum-cookie-bar.is-visible { transform: translateY(0); }
.acb-wrap {
  max-width: 1180px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.acb-copy { flex: 1 1 420px; min-width: 280px; }
.acb-copy h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--ac-primary); }
.acb-copy p { margin: 0; color: var(--ac-muted); font-size: 14px; max-width: none; }
.acb-copy a { color: #0a58ca; text-decoration: underline; font-weight: 700; }
.acb-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.acb-btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 15px;
  padding: 11px 20px; border-radius: 999px; transition: background .15s, color .15s;
  white-space: nowrap; min-height: 44px;
}
.acb-btn:focus-visible { outline: 3px solid var(--ac-accent); outline-offset: 2px; }
.acb-btn--primary { background: var(--ac-primary); color: #fff; }
.acb-btn--primary:hover { background: #002877; }
.acb-btn--ghost { background: transparent; color: var(--ac-primary); border: 2px solid var(--ac-primary); }
.acb-btn--ghost:hover { background: var(--ac-soft); }
.acb-btn--link { background: transparent; color: var(--ac-muted); padding: 11px 8px; text-decoration: underline; border-radius: 0; font-weight: 700; }
.acb-btn--link:hover { color: var(--ac-primary); }

/* Botão flutuante do WhatsApp sobe enquanto o banner está aberto */
body.acb-open .flutuante { bottom: calc(var(--acb-h, 0px) + 12px); }

/* Painel "Personalizar" */
#augeum-cookie-modal {
  position: fixed; inset: 0; z-index: calc(var(--ac-z) + 1);
  display: none; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0,29,87,.55);
}
#augeum-cookie-modal.is-open { display: flex; }
.acm-card {
  background: var(--ac-surface); color: var(--ac-ink); width: 100%; max-width: 560px;
  max-height: 88vh; overflow: auto; border-radius: var(--ac-radius);
  box-shadow: 0 24px 80px rgba(0,29,87,.35);
  font-family: var(--ac-font);
}
.acm-head { padding: 24px 24px 8px; }
.acm-head h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--ac-primary); }
.acm-head p { margin: 0; font-size: 14px; color: var(--ac-muted); }
.acm-body { padding: 8px 24px 4px; }
.acm-row { padding: 16px 0; border-top: 1px solid var(--ac-line); display: flex; gap: 16px; align-items: flex-start; }
.acm-row:first-child { border-top: 0; }
.acm-row-txt { flex: 1; }
.acm-row-txt h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; color: var(--ac-primary); }
.acm-row-txt p { margin: 0; font-size: 14px; color: var(--ac-muted); }
.acm-switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; margin-top: 2px; }
.acm-switch input { opacity: 0; width: 0; height: 0; }
.acm-slider { position: absolute; inset: 0; background: #b8c3d6; border-radius: 26px; transition: background .2s; cursor: pointer; }
.acm-slider::before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.acm-switch input:checked + .acm-slider { background: var(--ac-primary); }
.acm-switch input:checked + .acm-slider::before { transform: translateX(20px); }
.acm-switch input:focus-visible + .acm-slider { outline: 3px solid var(--ac-accent); outline-offset: 2px; }
.acm-switch input:disabled + .acm-slider { background: var(--ac-primary); opacity: .5; cursor: not-allowed; }
.acm-foot {
  padding: 16px 24px 22px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
  border-top: 1px solid var(--ac-line); position: sticky; bottom: 0; background: var(--ac-surface);
}

/* Celular: banner compacto, para não cobrir a primeira tela */
@media (max-width: 760px) {
  #augeum-cookie-bar { font-size: 13px; line-height: 1.45; }
  .acb-wrap { padding: 12px 16px; gap: 10px; }
  .acb-copy { flex-basis: 100%; min-width: 0; }
  .acb-copy h2, .acb-long { display: none; }
  .acb-copy p { font-size: 13px; }
  .acb-actions { width: 100%; flex-wrap: nowrap; gap: 8px; }
  .acb-btn { padding: 10px 12px; font-size: 14px; }
  .acb-btn--link { padding: 10px 2px; }
  .acb-btn--primary, .acb-btn--ghost { flex: 1 1 auto; text-align: center; }
}
