/* Consent choices deliberately have identical size, contrast and emphasis. */
.cookie-consent {
  position: fixed;
  z-index: 90;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100vw - 48px));
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: 26px;
  border: 1px solid #bacdd6;
  border-radius: 4px;
  background: #fff;
  color: #17365b;
  box-shadow: 0 8px 40px #17365b26;
  font-family: 'DM Sans', Arial, sans-serif;
  text-align: left;
}
.cookie-consent[hidden], .cookie-consent [hidden] { display: none; }
.cookie-consent h2 {
  margin: 0 0 12px;
  color: #1c427d;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.cookie-consent p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.65;
}
.cookie-consent__privacy {
  display: inline-block;
  padding-block: 5px;
  color: #1c427d;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-consent .cookie-consent__status {
  margin: 8px 0 15px;
  color: #536c7d;
  font-size: 12px;
}
.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cookie-consent__choice {
  min-width: 0;
  min-height: 46px;
  padding: 10px 8px;
  border: 1px solid #1c427d;
  border-radius: 2px;
  background: #1c427d;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}
.cookie-consent__choice:hover { background: #14315d; }
.cookie-consent__close, [data-cookie-settings] {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cookie-consent__close {
  display: block;
  min-height: 44px;
  margin: 7px auto -12px;
  padding: 10px 14px;
  font-size: 12px;
}
[data-cookie-settings] { min-height: 44px; padding: 10px 4px; }
.cookie-consent :focus-visible, .cookie-consent:focus-visible,
[data-cookie-settings]:focus-visible { outline: 3px solid #25738c; outline-offset: 3px; }
.cookie-settings-fallback {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 50;
  padding: 10px 14px;
  border: 1px solid #bacdd6;
  background: #fff;
  color: #1c427d;
  font-size: 12px;
}
@media (max-width: 800px) {
  .has-mobile-actions .cookie-consent {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100svh - 90px - env(safe-area-inset-bottom, 0px));
  }
  .has-mobile-actions .cookie-settings-fallback {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 560px) {
  .cookie-consent {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 24px);
    max-height: calc(100svh - 24px - env(safe-area-inset-bottom, 0px));
    padding: 20px;
  }
  .has-mobile-actions .cookie-consent {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100svh - 90px - env(safe-area-inset-bottom, 0px));
  }
  .cookie-consent h2 { font-size: 25px; }
  .cookie-consent__actions { gap: 8px; }
}
@media print {
  .cookie-consent, [data-cookie-settings] { display: none !important; }
}
