.bfrxConsentBanner,
.bfrxConsentDialog {
  --bfrx-consent-green: #0e3c31;
  --bfrx-consent-cream: #fdf7f0;
  --bfrx-consent-line: rgba(14, 60, 49, 0.18);
  --bfrx-consent-muted: #52635e;
  color: var(--bfrx-consent-green);
  font-family: BarefacedBody, Inter, system-ui, sans-serif;
}

.bfrxConsentBanner[hidden] {
  display: none;
}

.bfrxConsentBanner {
  position: fixed;
  z-index: 10000;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  padding: 14px max(18px, calc((100vw - 1180px) / 2));
  border: 0;
  border-top: 1px solid var(--bfrx-consent-line);
  border-radius: 0;
  background: rgba(253, 247, 240, 0.98);
  box-shadow: 0 -12px 40px rgba(14, 60, 49, 0.14);
  backdrop-filter: blur(12px);
}

.bfrxConsentCopy {
  max-width: 660px;
}

.bfrxConsentCopy strong,
.bfrxConsentOption strong {
  font-family: BarefacedSubhead, Inter, system-ui, sans-serif;
  font-weight: 400;
}

.bfrxConsentCopy p,
.bfrxConsentOption p,
.bfrxConsentIntro {
  margin: 6px 0 0;
  color: var(--bfrx-consent-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.bfrxConsentActions,
.bfrxConsentDialogActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footerPrivacyLinks a,
.footerPrivacyButton {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bfrxConsentButton {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--bfrx-consent-green);
  border-radius: 999px;
  font: inherit;
  font-family: BarefacedSubhead, Inter, system-ui, sans-serif;
  cursor: pointer;
}

.bfrxConsentButton.is-primary {
  color: #fff;
  background: var(--bfrx-consent-green);
}

.bfrxConsentButton.is-secondary {
  color: var(--bfrx-consent-green);
  background: var(--bfrx-consent-cream);
}

.bfrxConsentButton.is-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-color: var(--bfrx-consent-line);
  border-radius: 50%;
  color: var(--bfrx-consent-green);
  background: transparent;
}

.bfrxConsentButton.is-icon:hover {
  background: #e5edeb;
}

.bfrxConsentButton.is-icon svg {
  width: 18px;
  height: 18px;
}

.bfrxConsentButton:focus-visible,
.bfrxConsentClose:focus-visible,
.footerPrivacyButton:focus-visible {
  outline: 3px solid #ef8367;
  outline-offset: 3px;
}

.bfrxConsentDialog {
  position: fixed;
  inset: 0;
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--bfrx-consent-cream);
  box-shadow: 0 24px 90px rgba(51, 43, 39, 0.24);
}

.bfrxConsentDialog::backdrop {
  background: rgba(47, 42, 39, 0.42);
  backdrop-filter: blur(3px);
}

.bfrxConsentDialogInner {
  padding: 28px;
}

.bfrxConsentDialogHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.bfrxConsentDialog h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.bfrxConsentEyebrow {
  margin: 0 0 6px;
  color: #ef8367;
  font-family: BarefacedAccent, Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.bfrxConsentClose {
  width: 40px;
  height: 40px;
  border: 1px solid var(--bfrx-consent-line);
  border-radius: 50%;
  color: var(--bfrx-consent-green);
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.bfrxConsentIntro {
  margin: 14px 0 20px;
}

.bfrxConsentOption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--bfrx-consent-line);
}

.bfrxConsentOption input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: var(--bfrx-consent-green);
}

.bfrxConsentDialogActions {
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--bfrx-consent-line);
}

.footerPrivacyLinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footerPrivacyButton {
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 760px) {
  .bfrxConsentBanner {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
  }

  .bfrxConsentActions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .bfrxConsentActions .is-icon {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
  }

  .bfrxConsentActions [data-bfrx-consent="necessary"] {
    grid-column: 2;
    grid-row: 1;
  }

  .bfrxConsentActions [data-bfrx-consent="all"] {
    grid-column: 1;
    grid-row: 1;
  }

  .bfrxConsentDialogActions {
    align-items: stretch;
    flex-direction: column;
  }

  .bfrxConsentDialogActions .bfrxConsentButton {
    width: 100%;
  }

  .bfrxConsentDialog {
    width: min(640px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
  }

  .bfrxConsentDialogInner {
    padding: 20px;
  }
}
