/* Stable, standalone consent component. Intentionally independent of Tailwind/app.css. */
html:has(#base-tracking-root:not([hidden])) {
  overflow: hidden;
  overscroll-behavior: none;
}

#base-tracking-root[hidden],
.consent-banner.hidden,
.consent-banner .hidden {
  display: none !important;
}

.consent-banner,
.consent-banner * {
  box-sizing: border-box;
}

.consent-banner {
  --consent-bg: #181818;
  --consent-surface: #202020;
  --consent-surface-soft: #242424;
  --consent-text: #f3f4f6;
  --consent-muted: #b6bac2;
  --consent-gold: #f5a623;
  --consent-gold-dark: #c8841a;
  --consent-border: rgba(245, 166, 35, 0.3);
  --consent-input: rgba(255, 255, 255, 0.24);
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  color: var(--consent-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
}

.consent-banner__surface {
  width: min(100%, 56rem);
  height: 33.5rem;
  max-height: calc(100% - 2rem);
  overflow-x: hidden;
  overflow-y: auto;
  pointer-events: auto;
  border: 1px solid var(--consent-border);
  border-radius: 0.875rem;
  background: rgba(24, 24, 24, 0.98);
  color: var(--consent-text);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 166, 35, 0.5) transparent;
}

.consent-banner__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
}

.consent-banner__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.consent-banner__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.consent-banner__title {
  max-width: 48rem;
  margin: 0;
  color: var(--consent-text);
  font: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.333333;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.consent-banner__text {
  max-width: 48rem;
  margin: 0.75rem 0 0;
  color: var(--consent-muted);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.consent-banner__text a {
  color: var(--consent-text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--consent-border);
  text-underline-offset: 4px;
}

.consent-banner__text a:hover,
.consent-banner__text a:focus-visible {
  text-decoration-color: var(--consent-text);
}

.consent-banner__close {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--consent-border);
  border-radius: 999px;
  background: var(--consent-surface);
  color: var(--consent-muted);
  font: inherit;
  cursor: pointer;
}

.consent-banner__close.inline-flex {
  display: inline-flex;
}

.consent-banner__close svg {
  width: 1rem;
  height: 1rem;
}

.consent-banner__settings {
  display: none;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.consent-banner__settings.grid {
  display: grid;
}

.consent-option {
  display: flex;
  width: 100%;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--consent-border);
  border-radius: 0.625rem;
  background: transparent;
  color: var(--consent-text);
}

label.consent-option {
  cursor: pointer;
}

label.consent-option:hover,
label.consent-option:has(.consent-option__input:checked) {
  border-color: rgba(245, 166, 35, 0.55);
  background: rgba(245, 166, 35, 0.06);
}

.consent-option--required {
  background: rgba(255, 255, 255, 0.035);
}

.consent-option__control {
  position: relative;
  display: flex;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.125rem;
}

.consent-option__input {
  position: absolute;
  inset: 0;
  width: 1rem;
  height: 1rem;
  margin: 0;
  appearance: none;
  border: 1px solid var(--consent-input);
  border-radius: 0.25rem;
  background: #0a0a0a;
  cursor: pointer;
}

.consent-option__input:checked {
  border-color: var(--consent-gold);
  background: var(--consent-gold);
}

.consent-option__input:focus-visible {
  outline: 2px solid var(--consent-gold);
  outline-offset: 3px;
}

.consent-option__input:disabled {
  cursor: not-allowed;
}

.consent-option__check {
  position: relative;
  z-index: 1;
  display: none;
  width: 0.75rem;
  height: 0.75rem;
  color: #0a0a0a;
  pointer-events: none;
}

.consent-option__input:checked + .consent-option__check {
  display: block;
}

.consent-option__check svg {
  display: block;
  width: 100%;
  height: 100%;
}

.consent-option__body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.125rem;
}

.consent-option__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.consent-option__title,
.consent-option__description {
  color: var(--consent-text);
  font: inherit;
  font-size: 0.875rem;
}

.consent-option__title {
  font-weight: 600;
}

.consent-option__description {
  color: var(--consent-muted);
  font-weight: 400;
  line-height: 1.45;
}

.consent-option__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  border: 1px solid var(--consent-border);
  border-radius: 999px;
  background: var(--consent-surface-soft);
  color: var(--consent-muted);
  font: inherit;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.consent-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.consent-button {
  display: inline-flex;
  width: 100%;
  min-height: 2.5rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.5rem;
  background: var(--consent-surface);
  color: var(--consent-text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  box-shadow: 0 8px 18px -16px rgba(0, 0, 0, 0.85);
}

.consent-button:hover,
.consent-button:focus-visible,
.consent-banner__close:hover,
.consent-banner__close:focus-visible {
  border-color: var(--consent-gold);
}

.consent-button:focus-visible,
.consent-banner__close:focus-visible {
  outline: 2px solid var(--consent-gold);
  outline-offset: 3px;
}

.consent-button--primary {
  border-color: var(--consent-gold);
  background: linear-gradient(135deg, var(--consent-gold), var(--consent-gold-dark));
  color: #0a0a0a;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(245, 166, 35, 0.18);
}

.consent-button.inline-flex {
  display: inline-flex;
}

@media (min-width: 640px) {
  .consent-banner__surface {
    height: 18rem;
  }

  .consent-banner__content {
    padding: 2rem;
  }

  .consent-banner__title {
    font-size: 1.875rem;
    line-height: 1.2;
  }

  .consent-option {
    padding: 1.25rem;
  }

  .consent-banner__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .consent-button {
    width: auto;
  }
}
