.af-consent[hidden], .af-consent [hidden], [data-google-consent-open][hidden] { display: none !important; }
.af-consent {
  position: fixed;
  z-index: 65;
  left: 20px;
  bottom: 20px;
  width: min(390px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line, #dfe2e7);
  border-radius: 16px;
  background: var(--paper, #fff);
  color: var(--text, #0f172a);
  box-shadow: 0 8px 36px rgba(2, 6, 23, .14);
  animation: af-consent-in .18s ease-out;
}
.af-consent h2 { margin: 0 30px 9px 0; font-size: 1rem; line-height: 1.4; letter-spacing: 0; }
.af-consent h2::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #eeed00; }
.af-consent p { margin: 0; color: var(--muted, #475569); font-size: .88rem; line-height: 1.55; }
.af-consent .af-consent-current { margin-top: 9px; font-size: .8rem; }
.af-consent-actions { display: flex; gap: 9px; margin: 16px 0 10px; }
.af-consent-actions button {
  flex: 1;
  min-height: 44px;
  padding: 10px 8px;
  border: 1px solid var(--line, #dfe2e7);
  border-radius: 9px;
  background: var(--bg, #f7f7fb);
  color: var(--text, #0f172a);
  font: inherit;
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.af-consent-actions button:hover { border-color: var(--muted, #475569); background: var(--paper, #fff); }
.af-consent-actions button[data-google-consent-choice="denied"] {
  border-color: transparent;
  background: transparent;
  color: var(--muted, #475569);
  font-size: .8rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.af-consent-actions button[data-google-consent-choice="denied"]:hover { color: var(--text, #0f172a); }
.af-consent-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted, #475569); font: 26px/1 system-ui, sans-serif; cursor: pointer; }
.af-consent-close:hover { background: var(--bg, #f7f7fb); }
.af-consent-details { color: var(--muted, #475569); font-size: .76rem; text-decoration: underline; text-underline-offset: 3px; }
.af-consent button:focus-visible, .af-consent a:focus-visible, .af-consent-open:focus-visible { outline: 2px solid var(--heading, #0b1220); outline-offset: 3px; }
.af-consent-open { border: 0; padding: 6px 0; background: none; color: var(--muted, #475569); font: inherit; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes af-consent-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .af-consent { left: 12px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 24px); padding: 18px; max-height: calc(100dvh - 106px - env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .af-consent { animation: none; } .af-consent-actions button { transition: none; } }
@media print { .af-consent, .af-consent-open { display: none !important; } }
