/* A aceitação e a recusa têm a mesma visibilidade. */
.consent-banner {
  position: fixed;
  z-index: 90;
  left: max(20px, var(--sidebar-size, 0px));
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1040px;
  margin-inline: auto;
  padding: 24px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 42px #0005;
}
.consent-banner[hidden] { display: none; }
.consent-banner-copy { max-width: 63ch; }
.consent-banner h2 { margin: 0 0 6px; font-size: 1.14rem; line-height: 1.3; }
.consent-banner p { margin: 0 0 8px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.consent-banner a { font-size: .88rem; text-underline-offset: 3px; }
.consent-banner-actions { display: flex; flex-direction: column; flex-shrink: 0; text-align: center; }
.consent-choice-buttons { display: flex; gap: 10px; }
.consent-choice-buttons > button {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}
.consent-choice-buttons > button:hover { border-color: var(--accent); }
.consent-text-button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  margin-top: 8px;
  min-height: 36px;
  padding: 4px 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-dialog { width: min(100% - 32px, 600px); max-height: calc(100dvh - 32px); padding: 28px; }
.consent-dialog > p { color: var(--muted); }
.consent-dialog h2 { font-size: 1.5rem; }
.consent-dialog h3 { font-size: 1rem; margin: 0; }
.consent-necessary { border-block: 1px solid var(--line); padding-block: 20px; margin-top: 22px; }
.consent-necessary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.consent-necessary > div > span { color: var(--muted); font-size: .82rem; }
.consent-necessary p { margin-bottom: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.consent-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.consent-status { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 1000px) {
  .consent-banner { left: 20px; gap: 20px; padding: 20px; }
}
@media (max-width: 640px) {
  .consent-banner { left: 12px; right: 12px; bottom: 80px; flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
  .consent-banner-actions { width: 100%; }
  .consent-banner-actions > button { flex: 1; white-space: normal; }
  .consent-dialog { padding: 22px; }
  .consent-dialog-actions { flex-direction: column-reverse; }
  .consent-dialog-actions button { min-height: 44px; }
}
