/* Quiwi Studio — aviso e preferências de cookies */
.qc-banner,
.qc-modal {
  --qc-semente: #0A1505;
  --qc-nevoa: #E8F6DC;
  --qc-texto: rgba(232, 246, 220, 0.72);
  --qc-kiwi: #1BC404;
  --qc-linha: rgba(188, 226, 159, 0.16);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--qc-nevoa);
  -webkit-font-smoothing: antialiased;
}
.qc-banner *,
.qc-modal * { box-sizing: border-box; }
.qc-banner h2,
.qc-modal h2,
.qc-modal h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #F4FBEE;
}

/* ---------- Banner ---------- */
.qc-banner {
  position: fixed;
  left: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 150;
  width: min(440px, calc(100vw - 40px));
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(30, 60, 16, 0.78), rgba(10, 21, 5, 0.9));
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px var(--qc-linha),
    0 30px 60px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.qc-banner.qc-visivel { opacity: 1; transform: none; }
.qc-topo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.qc-topo h2 { font-size: 1.2rem; }
.qc-topo { gap: 12px; }
.qc-topo--painel { margin: 0; }
.qc-cookie { flex: none; width: 38px; height: 38px; overflow: visible; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45)); transform-origin: 50% 60%; }
.qc-cookie__massa { fill: #D9A35B; }
.qc-cookie__borda { fill: none; stroke: #F0C27F; stroke-width: 1.6; stroke-linecap: round; opacity: 0.7; }
.qc-cookie__gota { fill: #4A2C14; }
.qc-cookie__farelo { fill: #D9A35B; }
.qc-banner.qc-visivel .qc-cookie { animation: qc-balanco 1.1s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0.35s both; }
.qc-banner:hover .qc-cookie { animation: qc-balanco 0.9s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
@keyframes qc-balanco {
  0% { transform: rotate(0) scale(0.6); }
  30% { transform: rotate(-14deg) scale(1.08); }
  50% { transform: rotate(10deg) scale(1); }
  70% { transform: rotate(-6deg); }
  85% { transform: rotate(3deg); }
  100% { transform: rotate(0); }
}
.qc-banner p,
.qc-modal p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--qc-texto); }
.qc-banner a,
.qc-modal a { color: var(--qc-nevoa); text-decoration: underline; text-decoration-color: var(--qc-kiwi); text-underline-offset: 3px; }

.qc-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.qc-botao {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
/* "Aceitar" e "Recusar" com o mesmo peso visual */
.qc-botao--forte {
  color: var(--qc-semente);
  background: var(--qc-nevoa);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.qc-botao--forte:hover { background: var(--qc-kiwi); }
.qc-botao--texto { flex: 0 0 auto; color: var(--qc-nevoa); background: transparent; box-shadow: inset 0 0 0 1px var(--qc-linha); }
.qc-botao--texto:hover { box-shadow: inset 0 0 0 1px rgba(188, 226, 159, 0.45); }
.qc-botao:focus-visible,
.qc-chave:focus-visible,
.qc-fechar:focus-visible { outline: 2px solid var(--qc-kiwi); outline-offset: 3px; }

/* ---------- Painel de preferências ---------- */
.qc-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.35s;
}
.qc-modal.qc-visivel { opacity: 1; }
.qc-fundo { position: absolute; inset: 0; background: rgba(5, 10, 2, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.qc-painel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100svh - 32px);
  overflow: auto;
  padding: clamp(20px, 4vw, 32px);
  border-radius: 28px;
  background: linear-gradient(180deg, #16300B, var(--qc-semente));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px var(--qc-linha), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.qc-modal.qc-visivel .qc-painel { transform: none; }
.qc-painel-cab { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qc-painel-cab h2 { font-size: 1.5rem; }
.qc-fechar {
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--qc-nevoa);
  background: rgba(232, 246, 220, 0.08);
  cursor: pointer;
}
.qc-intro { margin: 12px 0 8px !important; }
.qc-cat { padding: 18px 0; border-top: 1px solid var(--qc-linha); }
.qc-cat-cab { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 6px; }
.qc-cat h3 { font-size: 1.05rem; }
.qc-sempre { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--qc-kiwi); }
.qc-registro { margin-top: 6px !important; font-size: 0.8rem !important; }

.qc-chave {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(232, 246, 220, 0.16);
  cursor: pointer;
  transition: background 0.3s;
}
.qc-chave span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--qc-nevoa);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.qc-chave[aria-checked="true"] { background: var(--qc-kiwi); }
.qc-chave[aria-checked="true"] span { transform: translateX(20px); }

@media (max-width: 520px) {
  .qc-banner { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; padding: 18px; }
  .qc-acoes .qc-botao--forte { flex: 1 1 40%; }
  .qc-acoes .qc-botao--texto { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .qc-banner, .qc-modal, .qc-painel, .qc-chave span { transition: none; }
}
