.consent-dialog-open { overflow: hidden; }

.privacy-consent-banner {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  max-width: 1120px;
  margin-inline: auto;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(23, 31, 28, .98);
  color: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
}

.privacy-consent-banner[hidden],
.privacy-consent-overlay[hidden] { display: none !important; }

.privacy-consent-banner-copy { min-width: 0; }
.privacy-consent-banner-copy strong { display: block; font-size: 1.05rem; }
.privacy-consent-banner-copy p { margin: 6px 0; max-width: 68ch; color: rgba(255,255,255,.82); line-height: 1.5; }
.privacy-consent-banner-copy a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.privacy-consent-actions,
.privacy-consent-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.privacy-consent-action {
  appearance: none;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 17px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.privacy-consent-action-main {
  background: #fff;
  color: #17201c;
  border-color: #fff;
}

.privacy-consent-action-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.58);
}

.privacy-consent-action:hover { transform: translateY(-1px); }
.privacy-consent-action:focus-visible,
.privacy-consent-option input:focus-visible,
.footer-legal-links button:focus-visible {
  outline: 3px solid #f3c85c;
  outline-offset: 3px;
}

.privacy-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 12, 10, .68);
}

.privacy-consent-dialog {
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 24px;
  background: #fff;
  color: #17201c;
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
}

.privacy-consent-dialog-head p {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  font-weight: 800;
}

.privacy-consent-dialog-head h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.privacy-consent-intro { margin: 12px 0 20px; color: #53605a; line-height: 1.55; }
.privacy-consent-options { display: grid; gap: 12px; margin-bottom: 22px; }

.privacy-consent-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 14px;
  border: 1px solid #d9dfdc;
  border-radius: 16px;
}

.privacy-consent-option input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: #486f5f;
}

.privacy-consent-option input:disabled { opacity: 1; }
.privacy-consent-option strong { display: block; margin-bottom: 3px; }
.privacy-consent-option small { display: block; color: #5d6964; line-height: 1.45; }

.privacy-consent-dialog .privacy-consent-action-main {
  background: #203c31;
  border-color: #203c31;
  color: #fff;
}

.privacy-consent-dialog .privacy-consent-action-outline {
  color: #203c31;
  border-color: #819089;
}

.consent-embed-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  background: #eef1ef;
  color: #20352d;
}

.consent-embed-placeholder h3,
.consent-embed-placeholder p { margin: 0; }
.consent-embed-placeholder p { max-width: 55ch; }
.consent-embed-placeholder a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.consent-embed:not(.is-consented) iframe { display: none; }

.footer-legal-links button {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 780px) {
  .privacy-consent-banner {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 18px;
  }
  .privacy-consent-actions,
  .privacy-consent-dialog-actions { display: grid; grid-template-columns: 1fr; }
  .privacy-consent-action { width: 100%; }
}

@media (max-width: 430px) {
  .privacy-consent-banner {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 15px;
    border-radius: 17px;
  }
  .privacy-consent-overlay { padding: 10px; }
  .privacy-consent-dialog { max-height: calc(100vh - 20px); border-radius: 18px; padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-consent-action { transition: none; }
  .privacy-consent-action:hover { transform: none; }
}
