.consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 10000;
  display: flex;
  max-width: 72rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.125rem;
  color: #18181b;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(24, 24, 27, 0.18);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.consent-copy h2 {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 650;
  letter-spacing: 0;
}

.consent-copy p {
  margin: 0;
  color: #52525b;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.consent-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.consent-button {
  min-height: 2.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: 6px;
  border: 1px solid #27272a;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
}

.consent-button:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 2px;
}

.consent-button-primary {
  color: #fff;
  background: #18181b;
}

.consent-button-secondary {
  color: #18181b;
  background: transparent;
}

.consent-preferences-link {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .consent-banner {
    color: #fafafa;
    background: rgba(24, 24, 27, 0.98);
    border-color: rgba(250, 250, 250, 0.2);
  }

  .consent-copy p {
    color: #d4d4d8;
  }

  .consent-button-primary {
    color: #18181b;
    background: #fafafa;
    border-color: #fafafa;
  }

  .consent-button-secondary {
    color: #fafafa;
    border-color: #a1a1aa;
  }
}

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

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner,
  .consent-button {
    scroll-behavior: auto;
    transition: none;
  }
}
