/* CDS website cookie consent */

html {
  scroll-padding-bottom: var(--cookie-consent-offset, 0px);
}

body.cookie-consent-visible {
  padding-bottom: var(--cookie-consent-offset, 0px);
}

.cookie-consent-panel {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2000;
  padding: 1rem;
  pointer-events: none;
}

.cookie-consent-panel.is-hidden,
.cookie-preference-saved .cookie-consent-panel {
  display: none;
}

.cookie-consent-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: center;
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 1.35rem 1.5rem;
  color: var(--brand-copy, #16324a);
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--brand-line, #d9e6ee);
  border-radius: .75rem;
  box-shadow: 0 18px 55px rgba(8, 34, 56, .22);
  pointer-events: auto;
  backdrop-filter: blur(12px);
}

.cookie-consent-content {
  min-width: 0;
}

.cookie-consent-copy {
  max-width: 49rem;
}

.cookie-consent-kicker {
  margin: 0 0 .25rem;
  color: var(--brand-blue, #0d7ea8);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cookie-consent-copy h2 {
  margin: 0 0 .4rem;
  color: var(--brand-navy, #0b2a45);
  font-size: 1.15rem;
}

.cookie-consent-copy p {
  margin: 0;
  color: var(--brand-muted, #5d7184);
  font-size: .88rem;
  line-height: 1.55;
}

.cookie-consent-links {
  margin-top: .45rem !important;
}

.cookie-consent-links a {
  color: var(--brand-blue, #0d7ea8);
  font-weight: 700;
}

.cookie-consent-status {
  min-height: 1.2rem;
  margin-top: .4rem !important;
  font-size: .78rem !important;
  font-weight: 650;
}

.cookie-consent-actions {
  display: flex;
  gap: .65rem;
  align-items: center;
  justify-content: flex-end;
  padding-right: .65rem;
}

.cookie-consent-button {
  min-height: 2.65rem;
  min-width: 8.5rem;
  padding: .62rem 1rem;
  border-radius: .45rem;
  font-size: .84rem;
  font-weight: 800;
}

.cookie-consent-essential {
  color: var(--brand-navy, #0b2a45);
  background: #ffffff;
  border: 1px solid #9eb1bf;
}

.cookie-consent-essential:hover,
.cookie-consent-essential:focus-visible {
  color: var(--brand-navy-deep, #082238);
  background: var(--brand-ice, #f4f9fc);
  border-color: var(--brand-blue, #0d7ea8);
}

.cookie-consent-accept {
  color: var(--brand-navy-deep, #082238);
  background: var(--brand-orange, #f26b2b);
  border: 1px solid var(--brand-orange, #f26b2b);
}

.cookie-consent-accept:hover,
.cookie-consent-accept:focus-visible {
  color: #ffffff;
  background: var(--brand-orange-dark, #c94f16);
  border-color: var(--brand-orange-dark, #c94f16);
}

.cookie-consent-close {
  position: absolute;
  top: .55rem;
  right: .65rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: #607486;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
}

.cookie-consent-close:hover,
.cookie-consent-close:focus-visible {
  color: var(--brand-navy, #0b2a45);
  background: var(--brand-ice, #f4f9fc);
}

.cookie-consent-close.is-unavailable {
  display: none;
}

.footer-cookie-settings {
  padding: 0;
  color: #c8d4df;
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
  color: #ffffff;
}

@media (max-width: 48rem) {
  .cookie-consent-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.2rem;
  }

  .cookie-consent-actions {
    justify-content: stretch;
    padding-right: 0;
  }

  .cookie-consent-button {
    flex: 1 1 0;
  }
}

@media (max-width: 32rem) {
  .cookie-consent-panel {
    padding: .65rem;
  }

  .cookie-consent-card {
    padding: 1rem;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-consent-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent-panel,
  .cookie-consent-card,
  .cookie-consent-button {
    transition: none;
  }
}

@media print {
  .cookie-consent-panel,
  .footer-cookie-settings {
    display: none !important;
  }
}
