.meta-consent-banner {
  position: fixed;
  z-index: 3000;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 40px);
  left: clamp(16px, 3vw, 40px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px;
  color: #fff7ea;
  background: rgba(15, 15, 16, 0.96);
  border: 1px solid rgba(255, 247, 234, 0.18);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-family: var(--font-sans);
}

.meta-consent-copy {
  max-width: 690px;
}

.meta-consent-copy h2 {
  margin: 0 0 8px;
  color: #fff7ea;
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1;
}

.meta-consent-copy p {
  margin: 0;
  color: rgba(255, 247, 234, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.meta-consent-copy .meta-consent-links {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
}

.meta-consent-links a {
  color: #fff7ea;
  /* styles.css strips underlines from every anchor, so without this the two
     legal links are distinguished from body copy by opacity alone. */
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meta-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.meta-consent-button,
.meta-consent-settings {
  border: 1px solid transparent;
  /* legal.css defines the tokens but no button reset, so cursor stays here. */
  font: 600 13px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.meta-consent-button {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
}

.meta-consent-deny {
  color: #fff7ea;
  background: transparent;
  border-color: rgba(255, 247, 234, 0.32);
}

.meta-consent-deny:hover,
.meta-consent-deny:focus-visible {
  border-color: #fff7ea;
}

.meta-consent-accept {
  color: var(--c-near-black);
  background: #fff7ea;
}

/* Near-black on the accent reaches 5.47:1. White on the accent is 3.46:1, which
   fails WCAG AA for 13px/600 text (not large text at that size). */
.meta-consent-accept:hover,
.meta-consent-accept:focus-visible {
  background: var(--c-accent);
  color: var(--c-near-black);
}

.meta-consent-button:focus-visible,
.meta-consent-settings:focus-visible,
.meta-consent-links a:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

.meta-consent-settings {
  position: fixed;
  z-index: 2900;
  bottom: 12px;
  left: 12px;
  padding: 9px 12px;
  color: rgba(255, 247, 234, 0.88);
  background: rgba(15, 15, 16, 0.86);
  border-color: rgba(255, 247, 234, 0.18);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  font-size: 11px;
}

/* Hidden while the banner is open: the pill sits underneath it on narrow
   viewports, where the banner spans the full width. */
.meta-consent-settings[hidden] {
  display: none;
}

.meta-consent-settings:hover {
  color: #fff;
  border-color: rgba(255, 247, 234, 0.48);
}

@media (max-width: 720px) {
  .meta-consent-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 15px;
  }

  .meta-consent-actions {
    width: 100%;
  }

  .meta-consent-button {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meta-consent-button,
  .meta-consent-settings {
    transition: none;
  }
}
