/* Self-contained consent UI, using the site's local type and palette. */
.cookie-banner,
.cookie-settings {
  box-sizing: border-box;
  color: var(--ink, #1c2638);
  background: #fcfcfa;
  font-family: var(--sans, Arial, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  color-scheme: light;
}
.cookie-banner *,
.cookie-settings * { box-sizing: border-box; }
.cookie-banner [hidden],
.cookie-settings [hidden],
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
  position: fixed;
  z-index: 80;
  inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: auto;
  max-width: 1120px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0 auto;
  padding: 20px 24px;
  border: 1px solid #c2cdce;
  scrollbar-color: #819a9e #edf0ed;
}
.cookie-banner h2,
.cookie-settings h2,
.cookie-settings h3 { margin: 0; color: inherit; }
.cookie-banner h2 { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.cookie-banner-copy { min-width: 0; max-width: 65ch; }
.cookie-banner p { margin: 6px 0 0; color: #525f65; font-size: 14px; }
.cookie-banner-links { display: flex; flex-wrap: wrap; column-gap: 20px; margin-top: 1px; }
.cookie-banner-links a,
.cookie-banner-links button,
.cookie-settings-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.cookie-banner-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 0 0 368px; }
.cookie-choice,
.cookie-save,
.cookie-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid #6d8189;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: 500 14px/1.35 var(--sans, Arial, sans-serif);
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
  touch-action: manipulation;
}
@media (hover: hover) {
  .cookie-choice:hover,
  .cookie-close:hover { background: #e8eeec; border-color: #334b58; }
  .cookie-banner-links a:hover,
  .cookie-banner-links button:hover,
  .cookie-settings-actions a:hover { color: #315c6b; }
  .cookie-save:hover { background: #334b58; border-color: #334b58; }
}
.cookie-banner :is(a, button):focus-visible,
.cookie-settings :is(a, button, input):focus-visible {
  outline: 2px solid #315c6b;
  outline-offset: 3px;
}
.cookie-settings h2:focus { outline: none; }
body.cookie-settings-open { overflow: hidden; }
dialog.cookie-settings {
  position: fixed;
  inset: 0;
  width: min(540px, calc(100% - 32px));
  max-width: 540px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  border: 1px solid #c2cdce;
  border-radius: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #819a9e #edf0ed;
}
.cookie-settings::backdrop { background: rgb(24 36 44 / 52%); }
.cookie-settings-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.cookie-settings h2 { font-size: 25px; line-height: 1.2; letter-spacing: -.025em; font-weight: 500; padding-top: 7px; }
.cookie-close { flex-shrink: 0; min-height: 44px; padding: 8px 12px; font-weight: 400; }
.cookie-settings > p { margin: 0; color: #525f65; }
.cookie-settings-form { margin-top: 24px; }
.cookie-setting { padding: 20px 0; border-top: 1px solid #d4d9d8; }
.cookie-setting-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
.cookie-setting h3,
.cookie-maps-label { font-size: 16px; font-weight: 600; line-height: 1.4; }
.cookie-setting-heading > span,
.cookie-optional { color: #525f65; font-size: 12px; font-weight: 400; }
.cookie-setting p { margin: 9px 0 0; color: #525f65; font-size: 14px; line-height: 1.55; }
.cookie-maps-label { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; margin: -10px 0 -5px; cursor: pointer; }
.cookie-optional { display: inline-block; margin-left: 8px; }
.cookie-maps-label input { width: 22px; height: 22px; flex: 0 0 auto; margin: 0 3px 0 0; accent-color: #315c6b; cursor: pointer; }
.cookie-settings-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; }
.cookie-save { background: #1c2638; color: #fcfcfa; border-color: #1c2638; }
.cookie-settings-status:empty { display: none; }
.cookie-settings-status,
.cookie-banner .cookie-memory-notice,
.cookie-settings .cookie-memory-notice { margin: 12px 0 0; color: #525f65; font-size: 13px; line-height: 1.5; }
.cookie-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Works with either a button or an ordinary link in the shared footer. */
.footer [data-cookie-settings] {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.footer [data-cookie-settings]:hover { color: #8ec6d4; }
.footer [data-cookie-settings]:focus-visible { outline: 2px solid #8ec6d4; outline-offset: 4px; }
.footer-bottom > div :is(a, [data-cookie-settings]) { font-size: 11px; }
.cookie-text-link {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.cookie-text-link:focus-visible { outline: 2px solid #315c6b; outline-offset: 3px; }

@media (max-width: 900px) {
  .cookie-banner { align-items: stretch; flex-direction: column; gap: 10px; }
  .cookie-banner-actions { flex: none; }
}
@media (max-width: 480px) {
  .cookie-banner { padding: 17px; inset-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); max-height: calc(100dvh - 20px); }
  .cookie-banner-actions { gap: 8px; }
  .cookie-choice { padding: 10px 8px; }
  dialog.cookie-settings { padding: 22px 20px; }
  .cookie-settings h2 { font-size: 22px; }
  .cookie-settings-heading { gap: 10px; }
  .cookie-settings-actions { align-items: stretch; flex-direction: column-reverse; gap: 8px; }
  .cookie-settings-actions a { justify-content: center; }
  .cookie-optional { display: block; margin: 2px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-choice,
  .cookie-save,
  .cookie-close { transition: none; }
}
@media (forced-colors: active) {
  .cookie-choice,
  .cookie-save,
  .cookie-close { border-color: ButtonText; }
}
