.consent-banner,
.consent-settings {
  --consent-red: #5b2521;
  --consent-red-dark: #461b18;
  --consent-ink: #111111;
  --consent-muted: #3f3935;
  --consent-line: rgba(17, 17, 17, 0.18);
  --consent-soft: #e8e2de;
  --consent-paper: #fffdf8;
  --consent-panel: #f7dfbd;
  color: var(--consent-ink);
  font-family: "Manrope Local", Manrope, Arial, sans-serif;
}

.clubhaus-page:not(.legal-page) .consent-banner,
.clubhaus-page:not(.legal-page) .consent-settings {
  --consent-red: #a71920;
  --consent-red-dark: #7f1016;
  --consent-ink: #171717;
  --consent-muted: #67615d;
  --consent-line: #dedad4;
  --consent-soft: #f5f3f0;
  --consent-paper: #ffffff;
  --consent-panel: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  max-width: 72rem;
  max-height: calc(100vh - 2rem);
  margin: 0 auto;
  overflow: auto;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--consent-line);
  border-top: 0.3rem solid var(--consent-red);
  background: var(--consent-panel);
  box-shadow: 0 1.25rem 4rem rgba(23, 23, 23, 0.18);
}

.consent-banner h2,
.consent-settings h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.consent-banner p,
.consent-settings p {
  margin: 0;
  color: var(--consent-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.consent-banner a {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-underline-offset: 0.2rem;
}

.consent-eyebrow {
  margin-bottom: 0.45rem !important;
  color: var(--consent-red) !important;
  font-size: 0.68rem !important;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.consent-banner__actions,
.consent-settings__actions {
  display: grid;
  gap: 0.65rem;
}

.consent-button,
.consent-text-button,
.consent-close,
.cookie-settings-link {
  font: inherit;
}

.consent-button {
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--consent-red);
  background: var(--consent-paper);
  color: var(--consent-red);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.consent-button[data-consent-all],
.consent-button[data-settings-save] {
  background: var(--consent-red);
  color: var(--consent-paper);
}

.consent-button:hover {
  background: var(--consent-red-dark);
  border-color: var(--consent-red-dark);
  color: var(--consent-paper);
}

.consent-text-button,
.cookie-settings-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.consent-text-button {
  min-height: 2.5rem;
  color: var(--consent-red);
  font-size: 0.78rem;
  font-weight: 700;
}

.cookie-settings-link {
  font-size: inherit;
}

.consent-settings {
  width: min(calc(100% - 2rem), 42rem);
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  background: var(--consent-paper);
  border-top: 0.3rem solid var(--consent-red);
  box-shadow: 0 1.25rem 4rem rgba(23, 23, 23, 0.28);
}

.consent-settings::backdrop {
  background: rgba(23, 23, 23, 0.72);
}

.consent-settings__panel {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.consent-settings__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.consent-close {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--consent-line);
  background: transparent;
  color: var(--consent-red);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--consent-line);
}

.consent-category strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.consent-category span span,
.consent-category p {
  display: block;
  color: var(--consent-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.consent-category input {
  width: 1.35rem;
  height: 1.35rem;
  accent-color: var(--consent-red);
}

.consent-settings__note {
  margin: 1rem 0 1.5rem !important;
  color: var(--consent-muted);
}

@media (min-width: 48rem) {
  .consent-banner {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
    align-items: end;
    padding: 1.5rem;
  }

  .consent-banner__actions,
  .consent-settings__actions {
    grid-template-columns: 1fr 1fr;
  }

  .consent-text-button {
    grid-column: 1 / -1;
  }
}
