:root {
  --consent-primary: #276675;
  --consent-primary-dark: #183f4b;
  --consent-accent: #e6a65f;
  --consent-accent-bright: #f2c58c;
  --consent-cream: #fffaf0;
  --consent-ink: #304c55;
  --consent-muted: #687a80;
}

.consent-overlay,
.consent-overlay * { box-sizing: border-box; }

html.consent-open,
html.consent-open body {
  overflow: hidden;
}

.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 30px;
  background: rgba(16, 30, 24, .66);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}

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

.consent-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.consent-dialog {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100vh - 60px);
  max-height: calc(100dvh - 60px);
  overflow: auto;
  color: var(--consent-ink);
  text-align: center;
  background:
    radial-gradient(circle at 50% -25%, rgba(232, 196, 114, .32), transparent 42%),
    var(--consent-cream);
  border: 1px solid rgba(255, 255, 255, .72);
  border-top: 7px solid var(--consent-accent);
  border-radius: 24px;
  padding: 42px 46px 24px;
  box-shadow: 0 30px 90px rgba(8, 22, 16, .42), 0 0 0 1px rgba(232, 196, 114, .18);
  transform: translateY(18px) scale(.985);
  transition: transform .32s ease;
}

.consent-overlay.is-visible .consent-dialog {
  transform: translateY(0) scale(1);
}

.consent-sprout {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--consent-primary);
  background: linear-gradient(145deg, #fffdf7, #f5e8c8);
  border: 1px solid rgba(33, 74, 56, .18);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(33, 74, 56, .12);
}

.consent-sprout svg {
  width: 39px;
  height: 39px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.consent-sprout .consent-wave { stroke: var(--consent-accent); }

.consent-eyebrow {
  margin: 0 0 10px;
  color: var(--consent-primary);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 10px;
  font-weight: 800;
}

.consent-dialog h2 {
  margin: 0;
  color: var(--consent-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 6vw, 45px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.consent-copy {
  max-width: 500px;
  margin: 20px auto 0;
  color: #4f5d55;
  font-size: 15.5px;
  line-height: 1.62;
  text-wrap: balance;
}

.consent-assurance {
  max-width: 490px;
  margin: 14px auto 0;
  color: var(--consent-muted);
  font-size: 13px;
  line-height: 1.5;
  text-wrap: balance;
}

.consent-actions {
  display: grid;
  gap: 12px;
  max-width: 410px;
  margin: 34px auto 0;
}

.consent-button {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.consent-button:hover { transform: translateY(-1px); }
.consent-button:focus-visible,
.consent-privacy-link:focus-visible,
.consent-settings-link:focus-visible {
  outline: 3px solid var(--consent-accent);
  outline-offset: 3px;
}

.consent-accept {
  color: #172d23;
  background: linear-gradient(135deg, var(--consent-accent-bright), var(--consent-accent));
  border: 1px solid rgba(74, 54, 16, .18);
  box-shadow: 0 10px 25px rgba(123, 89, 24, .22);
}

.consent-accept:hover {
  box-shadow: 0 13px 30px rgba(123, 89, 24, .29);
}

.consent-decline {
  color: var(--consent-primary-dark);
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(33, 74, 56, .28);
  font-weight: 400;
}

.consent-decline:hover { background: rgba(255, 255, 255, .82); }

.consent-privacy-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--consent-muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-settings-link {
  color: inherit;
  opacity: .82;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 2px;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
}

.consent-settings-wrap {
  display: inline-block;
  margin-left: 14px;
}

@media (max-width: 560px) {
  .consent-overlay { padding: 14px; }
  .consent-dialog {
    max-height: calc(100vh - 28px);
    border-radius: 19px;
    padding: 30px 22px 25px;
  }
  .consent-sprout { width: 54px; height: 54px; margin-bottom: 15px; }
  .consent-sprout svg { width: 33px; height: 33px; }
  .consent-copy { margin-top: 15px; font-size: 14px; line-height: 1.6; }
  .consent-assurance { font-size: 12px; }
  .consent-actions { margin-top: 21px; }
  .consent-button { min-height: 48px; }
}

@media (max-height: 800px) {
  .consent-overlay { padding: 24px; }
  .consent-dialog { max-height: calc(100vh - 48px); padding: 30px 38px 18px; }
  .consent-sprout { width: 56px; height: 56px; margin-bottom: 14px; }
  .consent-sprout svg { width: 36px; height: 36px; }
  .consent-eyebrow { margin-bottom: 8px; }
  .consent-dialog h2 { font-size: clamp(30px, 5.5vw, 41px); }
  .consent-copy { margin-top: 15px; font-size: 14.5px; line-height: 1.58; }
  .consent-assurance { margin-top: 10px; font-size: 12.5px; line-height: 1.5; }
  .consent-actions { margin-top: 24px; gap: 10px; }
  .consent-button { min-height: 49px; padding: 11px 20px; }
  .consent-privacy-link { margin-top: 14px; }
}

@media (max-height: 650px) {
  .consent-dialog { padding: 23px 32px 16px; }
  .consent-sprout { width: 48px; height: 48px; margin-bottom: 10px; }
  .consent-sprout svg { width: 31px; height: 31px; }
  .consent-dialog h2 { font-size: clamp(28px, 5vw, 36px); }
  .consent-copy { margin-top: 11px; font-size: 13.5px; line-height: 1.48; }
  .consent-assurance { margin-top: 7px; font-size: 11.5px; line-height: 1.4; }
  .consent-actions { margin-top: 19px; gap: 10px; }
  .consent-button { min-height: 45px; padding: 9px 18px; }
  .consent-privacy-link { margin-top: 10px; }
}

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