.footer-privacy-choice {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 0.55rem;
  padding: 0;
  text-align: left;
}

.footer-privacy-choice:hover,
.footer-privacy-choice:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.consent-banner[hidden],
.consent-dialog:not([open]) {
  display: none !important;
}

.consent-choice-known .consent-banner {
  display: none;
}

.consent-banner {
  align-items: center;
  background: #fffaf6;
  border: 1px solid #e8cfc6;
  border-radius: 20px;
  bottom: max(1rem, env(safe-area-inset-bottom));
  box-shadow: 0 24px 70px rgba(62, 21, 22, 0.24);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 50%;
  max-width: min(1120px, calc(100vw - 2rem));
  padding: 1.1rem;
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 10000;
}

.consent-banner-copy h2,
.consent-dialog h2 {
  color: #461014;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  margin: 0.15rem 0 0.4rem;
}

.consent-banner-copy p:not(.eyebrow),
.consent-dialog p {
  color: #654d4d;
  line-height: 1.55;
  margin: 0;
}

.consent-banner-copy a {
  color: #8e1117;
  display: inline-block;
  font-weight: 700;
  margin-top: 0.55rem;
}

.consent-banner-actions,
.consent-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.consent-banner .consent-banner-actions .button.small,
.consent-dialog .consent-dialog-actions .button.small {
  min-height: 44px;
}

.consent-dialog {
  background: #fffaf6;
  border: 1px solid #e8cfc6;
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(46, 13, 15, 0.3);
  color: #2f2020;
  max-height: min(760px, calc(100vh - 2rem));
  max-width: min(680px, calc(100vw - 2rem));
  padding: 0;
  width: 100%;
}

.consent-dialog::backdrop {
  background: rgba(28, 12, 14, 0.66);
  backdrop-filter: blur(3px);
}

.consent-dialog form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.consent-dialog-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.consent-dialog-close {
  align-items: center;
  background: #f2dfd8;
  border: 0;
  border-radius: 50%;
  color: #5e161b;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 1.75rem;
  height: 44px;
  justify-content: center;
}

.consent-choice {
  align-items: center;
  background: #fff;
  border: 1px solid #ead7d0;
  border-radius: 16px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
}

.consent-choice strong {
  color: #461014;
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.consent-choice.is-required span {
  background: #f3e2dc;
  border-radius: 999px;
  color: #6b1a20;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 0.7rem;
}

.consent-choice input {
  accent-color: #9d0d11;
  flex: 0 0 24px;
  height: 24px;
  width: 24px;
}

.consent-dialog-note {
  font-size: 0.9rem;
}

.legal-policy-meta {
  color: #5e4242;
  font-size: 0.92rem;
  line-height: 1.6;
}

.legal-consent-control {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
}

.legal-consent-control h2,
.legal-consent-control p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .consent-banner {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
  }

  .consent-banner-actions,
  .consent-dialog-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .consent-banner-actions .button,
  .consent-dialog-actions .button {
    justify-content: center;
    width: 100%;
  }

  .consent-choice {
    align-items: flex-start;
  }

  .legal-consent-control {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner,
  .consent-dialog {
    scroll-behavior: auto;
  }
}
