/* Deck Monkey local cookie consent */
.cookie-banner,
.cookie-modal-backdrop {
  font-family: inherit;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 1200;
  width: min(920px, calc(100% - 32px));
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #DDE7F6;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 19, 61, 0.16);
  padding: 20px;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.cookie-banner h2 {
  margin: 0 0 6px;
  color: var(--dm-navy);
  font-size: 1rem;
  line-height: 1.2;
}

.cookie-banner p {
  margin: 0;
  color: #526079;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner a,
.cookie-modal a {
  color: #5E76A5;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn {
  appearance: none;
  border: 1px solid #D6E1F1;
  background: #fff;
  color: var(--dm-navy);
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.cookie-btn:hover,
.cookie-btn:focus {
  transform: translateY(-1px);
  border-color: #AFC6F5;
}

.cookie-btn--primary {
  background: var(--dm-blue);
  border-color: var(--dm-blue);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 67, 198, .18);
}

.cookie-btn--muted {
  color: #526079;
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 19, 61, 0.50);
  backdrop-filter: blur(8px);
}

.cookie-modal-backdrop.is-visible {
  display: grid;
}

.cookie-modal {
  width: min(640px, 100%);
  background: #fff;
  border: 1px solid #DDE7F6;
  border-radius: 24px;
  box-shadow: 0 26px 90px rgba(0, 19, 61, 0.22);
  overflow: hidden;
}

.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 24px 18px;
  border-bottom: 1px solid #E6EDF7;
}

.cookie-modal__header h2 {
  margin: 0;
  color: var(--dm-navy);
  font-size: 1.35rem;
  line-height: 1.15;
}

.cookie-modal__header p {
  margin: 8px 0 0;
  color: #526079;
  font-size: 0.92rem;
  line-height: 1.5;
}

.cookie-close {
  appearance: none;
  border: 1px solid #DDE7F6;
  background: #fff;
  color: var(--dm-navy);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.cookie-modal__body {
  padding: 18px 24px 6px;
}

.cookie-option {
  padding: 18px 0;
  border-bottom: 1px solid #EEF3FA;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.cookie-option:last-child {
  border-bottom: 0;
}

.cookie-option h3 {
  margin: 0 0 6px;
  color: var(--dm-navy);
  font-size: 1rem;
  line-height: 1.2;
}

.cookie-option p {
  margin: 0;
  color: #526079;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-status {
  color: #5E76A5;
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.cookie-toggle {
  position: relative;
  width: 52px;
  height: 30px;
  display: inline-block;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle span {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #CBD6E7;
  border-radius: 999px;
  transition: background .16s ease;
}

.cookie-toggle span::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 999px;
  transition: transform .16s ease;
  box-shadow: 0 2px 8px rgba(0, 19, 61, 0.16);
}

.cookie-toggle input:checked + span {
  background: var(--dm-blue);
}

.cookie-toggle input:checked + span::before {
  transform: translateX(22px);
}

.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px 24px;
  border-top: 1px solid #E6EDF7;
}

.footer-cookie-link {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #4B5870;
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.footer-cookie-link:hover,
.footer-cookie-link:focus {
  color: var(--dm-blue);
  text-decoration: underline;
  text-underline-offset: .18em;
}

@media (max-width: 760px) {
  .cookie-banner {
    bottom: 14px;
    border-radius: 18px;
  }

  .cookie-banner__inner {
    grid-template-columns: 1fr;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__actions .cookie-btn {
    flex: 1 1 100%;
  }

  .cookie-option {
    grid-template-columns: 1fr;
  }

  .cookie-modal__actions {
    flex-direction: column;
  }

  .cookie-modal__actions .cookie-btn {
    width: 100%;
  }
}

/* v19 cookie modal display fix */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.cookie-option {
  grid-template-columns: minmax(0, 1fr) 72px;
}

.cookie-option .cookie-toggle {
  justify-self: end;
}

.cookie-toggle {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .cookie-option {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .cookie-option .cookie-toggle {
    justify-self: end;
  }
}
