.static-cookie-consent[hidden],
.static-cookie-consent__panel[hidden],
.static-cookie-consent__settings[hidden],
.static-cookie-consent__backdrop[hidden] {
  display: none !important;
}

/* Lock background scroll while the settings dialog is open (toggled from JS). */
.static-cookie-consent-locked {
  overflow: hidden;
}

/* The landing "slides" framework makes <body> the scroll container
   (html.scrollable body{overflow-y:auto}, specificity 0,1,1), so locking only
   <html> is a no-op there. Also lock <body> with !important to actually freeze
   background scroll behind the open settings dialog. */
html.static-cookie-consent-locked body {
  overflow: hidden !important;
}

/* The landing "slides" framework rebuilds <body> and re-adds this overlay's
   source `hidden`, but never touches <html>. While JS holds this class on
   <html>, force the overlay visible so a stale `hidden` attribute can't hide it.
   Higher specificity than `.static-cookie-consent[hidden]`, so it wins. */
html.static-cookie-consent-visible .static-cookie-consent {
  display: flex !important;
}

.static-cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #14342b;
  pointer-events: none;
}

.static-cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 52, 43, 0.28);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.static-cookie-consent__panel,
.static-cookie-consent__settings {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 1px solid rgba(20, 52, 43, 0.14);
  box-shadow: 0 24px 80px rgba(20, 52, 43, 0.16);
  pointer-events: auto;
}

.static-cookie-consent__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 22px 24px;
  border-radius: 24px;
}

.static-cookie-consent__content {
  max-width: 680px;
}

.static-cookie-consent__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e9f8ef;
  color: #15783f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.static-cookie-consent__title,
.static-cookie-consent__settings-title {
  margin: 0;
  color: #14342b;
  font-weight: 800;
  line-height: 1.2;
}

.static-cookie-consent__title {
  margin-bottom: 6px;
  font-size: 22px;
}

.static-cookie-consent__settings-title {
  font-size: 28px;
}

.static-cookie-consent__text,
.static-cookie-consent__settings-intro {
  margin: 0;
  color: rgba(20, 52, 43, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.static-cookie-consent__actions,
.static-cookie-consent__settings-buttons {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.static-cookie-consent__button {
  min-width: 150px;
  border: 1px solid rgba(20, 52, 43, 0.16);
  border-radius: 14px;
  padding: 13px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.static-cookie-consent__button:hover {
  transform: translateY(-1px);
}

.static-cookie-consent__button:focus-visible,
.static-cookie-consent__close:focus-visible,
.static-cookie-consent__switch input:focus-visible + span {
  outline: 3px solid rgba(33, 150, 83, 0.28);
  outline-offset: 3px;
}

/* The panel and settings section receive focus only to announce themselves to
   assistive tech, so they should not paint a focus ring like a real control. */
.static-cookie-consent__panel:focus,
.static-cookie-consent__settings:focus {
  outline: none;
}

.static-cookie-consent__button--secondary {
  background: #ffffff;
  color: #14342b;
}

.static-cookie-consent__button--secondary:hover {
  border-color: rgba(20, 52, 43, 0.3);
  background: #f6fbf8;
}

.static-cookie-consent__button--primary {
  /* #1a7a44 gives white text 5.4:1 (WCAG AA); #219653 was only 3.78:1. */
  border-color: #1a7a44;
  background: #1a7a44;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(26, 122, 68, 0.22);
}

.static-cookie-consent__button--primary:hover {
  border-color: #156238;
  background: #156238;
}

.static-cookie-consent__settings {
  align-self: center;
  width: min(780px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border-radius: 24px;
}

.static-cookie-consent__settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.static-cookie-consent__close {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(20, 52, 43, 0.14);
  border-radius: 50%;
  background: #ffffff;
  color: #14342b;
  cursor: pointer;
}

/* The X is drawn with two bars rather than an <svg> or a glyph: the landing
   bundle (slides.min.css) forces `button svg { width:auto !important }`, which
   collapses an inline icon to 0 width, and a text "×" doesn't center cleanly.
   Two centered, rotated bars sidestep both and are always perfectly centered. */
.static-cookie-consent__close::before,
.static-cookie-consent__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  margin: -1px 0 0 -8px;
  border-radius: 2px;
  background: currentColor;
}

.static-cookie-consent__close::before {
  transform: rotate(45deg);
}

.static-cookie-consent__close::after {
  transform: rotate(-45deg);
}

.static-cookie-consent__settings-intro {
  margin-bottom: 18px;
}

.static-cookie-consent__preference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(20, 52, 43, 0.12);
  border-radius: 18px;
  background: #fbfefc;
}

.static-cookie-consent__preference--locked {
  background: #f6fbf8;
}

.static-cookie-consent__preference-copy {
  display: grid;
  gap: 5px;
}

.static-cookie-consent__preference-copy strong {
  color: #14342b;
  font-size: 16px;
  line-height: 1.25;
}

.static-cookie-consent__preference-copy span {
  color: rgba(20, 52, 43, 0.68);
  font-size: 14px;
  line-height: 1.45;
}

.static-cookie-consent__locked {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: #e9f8ef;
  color: #15783f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.static-cookie-consent__switch {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 32px;
}

.static-cookie-consent__switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.static-cookie-consent__switch span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #dbe6e1;
  transition: background-color 0.2s ease;
}

.static-cookie-consent__switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(20, 52, 43, 0.2);
  transition: transform 0.2s ease;
}

.static-cookie-consent__switch input:checked + span {
  background: #219653;
}

.static-cookie-consent__switch input:checked + span::after {
  transform: translateX(22px);
}

.static-cookie-consent__notice {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #f5f8f6;
  color: rgba(20, 52, 43, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

.static-cookie-consent__notice strong {
  color: #14342b;
}

.static-cookie-consent__settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.static-cookie-consent__privacy-link {
  color: #15783f;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .static-cookie-consent {
    padding: 14px;
  }

  .static-cookie-consent__panel {
    display: block;
    padding: 20px;
    border-radius: 20px;
  }

  .static-cookie-consent__actions,
  .static-cookie-consent__settings-buttons,
  .static-cookie-consent__settings-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    margin-top: 18px;
  }

  .static-cookie-consent__button {
    width: 100%;
  }

  .static-cookie-consent__settings {
    padding: 20px;
    border-radius: 20px;
  }

  .static-cookie-consent__settings-title {
    font-size: 24px;
  }

  .static-cookie-consent__preference {
    align-items: flex-start;
  }
}

@supports (padding: max(0px)) {
  .static-cookie-consent {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .static-cookie-consent__button,
  .static-cookie-consent__switch span,
  .static-cookie-consent__switch span::after {
    transition: none;
  }

  .static-cookie-consent__button:hover {
    transform: none;
  }
}

/* Windows High Contrast / forced-colors: the close X and the toggle indicators
   are painted with `background`, which the OS force-clears to the canvas colour
   (white-on-white => invisible). Repaint them with system colours so they stay
   visible, and give the switch track a border so its on/off state reads. */
@media (forced-colors: active) {
  .static-cookie-consent__close::before,
  .static-cookie-consent__close::after {
    background: CanvasText;
  }

  .static-cookie-consent__switch span {
    border: 1px solid CanvasText;
  }

  .static-cookie-consent__switch span::after {
    background: CanvasText;
  }

  .static-cookie-consent__switch input:checked + span {
    background: Highlight;
  }

  .static-cookie-consent__switch input:checked + span::after {
    background: Canvas;
  }
}
