.ads-consent {
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(760px, calc(100% - 2rem));
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ads-consent[hidden],
.ads-settings[hidden] {
  display: none;
}

.ads-consent-copy {
  min-width: 0;
}

.ads-consent-copy p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ads-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.6rem;
}

.ads-settings {
  position: fixed;
  z-index: 9999;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.ads-settings:hover,
.ads-settings:focus-visible {
  color: var(--text);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .ads-consent {
    align-items: stretch;
    flex-direction: column;
  }

  .ads-consent-actions {
    justify-content: flex-end;
  }
}
