/* Google Analytics consent UI */

.analytics-consent-banner {
  background: #fff;
  border: 1px solid rgba(15, 76, 129, .16);
  border-radius: 16px;
  bottom: 20px;
  box-shadow: 0 14px 42px rgba(25, 39, 52, .18);
  box-sizing: border-box;
  color: #222;
  left: auto;
  max-height: calc(100vh - 40px);
  max-width: 560px;
  overflow-y: auto;
  position: fixed;
  right: 20px;
  width: calc(100% - 40px);
  z-index: 100000;
}

.analytics-consent-banner *,
.analytics-consent-banner *::before,
.analytics-consent-banner *::after {
  box-sizing: border-box;
}

.analytics-consent__inner {
  padding: 22px 24px 20px;
}

.analytics-consent__eyebrow {
  color: #0f4c81;
  font-size: .78rem;
  font-weight: bold;
  letter-spacing: .06em;
  line-height: 1.4;
  margin: 0 0 6px;
}

.analytics-consent__title {
  border: 0;
  color: #1c2731;
  font-size: 1.22rem;
  font-weight: bold;
  line-height: 1.45;
  margin: 0 0 10px;
  padding: 0;
}

.analytics-consent__summary,
.analytics-consent__status,
.analytics-consent__details p,
.analytics-consent__details li {
  font-size: .94rem;
  line-height: 1.72;
}

.analytics-consent__summary {
  color: #3e4953;
  margin: 0 0 12px;
}

.analytics-consent__status {
  align-items: center;
  background: #f4f7fa;
  border-radius: 999px;
  color: #53616d;
  display: inline-flex;
  font-size: .82rem;
  line-height: 1.4;
  margin: 0 0 16px;
  padding: 6px 10px;
}

.analytics-consent__status[data-consent-status="unselected"] {
  display: none;
}

.analytics-consent__actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.analytics-consent__button {
  appearance: none;
  border: 1px solid #0f4c81;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: .95rem;
  font-weight: bold;
  line-height: 1.4;
  min-height: 44px;
  padding: 10px 16px;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.analytics-consent__button[data-consent-choice="granted"] {
  background: #0f4c81;
  color: #fff;
}

.analytics-consent__button[data-consent-choice="granted"]:hover {
  background: #0b3a61;
}

.analytics-consent__button[data-consent-choice="denied"] {
  background: #fff;
  color: #0f4c81;
}

.analytics-consent__button[data-consent-choice="denied"]:hover {
  background: #f0f6fb;
}

.analytics-consent__details-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  color: #0f4c81;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: bold;
  grid-column: 1 / -1;
  justify-self: start;
  line-height: 1.5;
  margin-top: 2px;
  min-height: 36px;
  padding: 4px 2px;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.analytics-consent__details-toggle::after {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  display: inline-block;
  height: .45em;
  margin-left: 9px;
  position: relative;
  top: -.12em;
  transform: rotate(45deg);
  width: .45em;
}

.analytics-consent__details-toggle[aria-expanded="true"]::after {
  top: .12em;
  transform: rotate(-135deg);
}

.analytics-consent__details-toggle:hover {
  color: #0b3a61;
}

.analytics-consent__button:focus-visible,
.analytics-consent__details-toggle:focus-visible {
  outline: 2px solid #0f4c81;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(15, 76, 129, .14);
}

.analytics-consent-settings:focus-visible {
  border-radius: 2px;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.analytics-consent__details a:focus-visible {
  border-radius: 2px;
  outline: 2px solid #0f4c81;
  outline-offset: 3px;
}

.analytics-consent__details {
  border-top: 1px solid #dbe4eb;
  margin-top: 10px;
  padding: 14px 0 0;
}

.analytics-consent__details[hidden] {
  display: none !important;
}

.analytics-consent__facts {
  margin: 0;
  padding-left: 1.35em;
}

.analytics-consent__facts li {
  color: #3e4953;
  list-style: disc;
  margin: 0 0 7px;
  padding: 0;
}

.analytics-consent__resources-title {
  color: #53616d;
  font-size: .82rem !important;
  font-weight: bold;
  letter-spacing: .02em;
  margin: 14px 0 7px !important;
}

.analytics-consent__resources {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.analytics-consent__resources li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.analytics-consent__details a {
  color: #0f4c81;
  display: inline-block;
  font-size: inherit;
  line-height: inherit;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.analytics-consent__note {
  border-top: 1px solid #edf1f4;
  color: #66737e;
  font-size: .78rem;
  line-height: 1.55;
  margin: 14px 0 0;
  padding-top: 11px;
}

.footer-content .submenu > li > .analytics-consent-settings {
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 20px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.footer-content .submenu > li > .analytics-consent-settings:hover {
  opacity: .8;
}

@media only screen and (max-width: 560px) {
  .analytics-consent-banner {
    border-radius: 14px 14px 0 0;
    bottom: 0;
    left: 0;
    max-height: min(82vh, 640px);
    max-width: none;
    right: 0;
    width: 100%;
  }

  .analytics-consent__inner {
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  }

  .analytics-consent__eyebrow {
    font-size: .74rem;
    margin-bottom: 5px;
  }

  .analytics-consent__title {
    font-size: 1.12rem;
    margin-bottom: 8px;
  }

  .analytics-consent__summary,
  .analytics-consent__facts li,
  .analytics-consent__resources li {
    font-size: .91rem;
    line-height: 1.68;
  }

  .analytics-consent__details {
    margin-top: 8px;
    padding-top: 12px;
  }

  .analytics-consent__status {
    margin-bottom: 14px;
  }

  .analytics-consent__button {
    min-height: 46px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media only screen and (max-width: 350px) {
  .analytics-consent__actions {
    grid-template-columns: 1fr;
  }

  .analytics-consent__details-toggle {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent__button {
    transition: none;
  }
}
