/* HHvD Cookie Consent · installed 2026-10-02 */
.hhvd-consent[hidden],
.hhvd-consent__details[hidden] {
  display: none !important;
}

.hhvd-consent {
  position: fixed;
  z-index: 9999;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(.75rem, 2vw, 1.5rem);
  pointer-events: none;
}

.hhvd-consent__panel {
  width: min(1180px, 100%);
  max-height: calc(100dvh - 1.5rem);
  margin-inline: auto;
  overflow: auto;
  border: 1px solid rgba(8, 47, 88, .16);
  border-radius: 1.2rem;
  color: #14202b;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 26px 80px rgba(6, 31, 59, .28);
  pointer-events: auto;
  overscroll-behavior: contain;
}

.hhvd-consent__main {
  display: grid;
  align-items: center;
  gap: 1.25rem clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, .85fr);
}

.hhvd-consent__eyebrow {
  display: block;
  margin-bottom: .45rem;
  color: #075795;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hhvd-consent h2 {
  margin: 0 0 .55rem;
  color: #082f58;
  font-family: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1;
}

.hhvd-consent p {
  max-width: 66ch;
  margin: 0;
  color: #5b6875;
  font-size: .94rem;
  line-height: 1.55;
}

.hhvd-consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  margin-top: .75rem;
  font-size: .82rem;
}

.hhvd-consent__links a {
  color: #075795;
  text-underline-offset: 3px;
}

.hhvd-consent__actions {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hhvd-consent__button {
  min-height: 3rem;
  padding: .75rem 1rem;
  border: 2px solid #075795;
  border-radius: .65rem;
  color: #fff;
  background: #075795;
  cursor: pointer;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.hhvd-consent__button--reject {
  border-color: #082f58;
  background: #082f58;
}

.hhvd-consent__button--settings {
  grid-column: 1 / -1;
  color: #082f58;
  border-color: #ccd8e2;
  background: #fff;
}

.hhvd-consent__button:hover {
  transform: translateY(-1px);
}

.hhvd-consent__button:focus-visible,
.hhvd-consent__switch input:focus-visible + span,
.hhvd-cookie-settings-button:focus-visible,
.legal-inline-button:focus-visible {
  outline: 3px solid rgba(7, 87, 149, .35);
  outline-offset: 3px;
}

.hhvd-consent__details {
  padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid #ccd8e2;
}

.hhvd-consent__details-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem 1rem;
}

.hhvd-consent__details h3 {
  margin: 0;
  color: #082f58;
  font-size: 1.1rem;
}

.hhvd-consent__close {
  border: 0;
  color: #075795;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.hhvd-consent__categories {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hhvd-consent__category {
  position: relative;
  min-width: 0;
  padding: 1rem;
  border: 1px solid #ccd8e2;
  border-radius: .8rem;
  background: #f7f9fb;
}

.hhvd-consent__category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .55rem;
}

.hhvd-consent__category strong {
  color: #082f58;
}

.hhvd-consent__category p {
  font-size: .8rem;
  line-height: 1.45;
}

.hhvd-consent__switch {
  position: relative;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 1.55rem;
}

.hhvd-consent__switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.hhvd-consent__switch span {
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  background: #9aa9b6;
  cursor: pointer;
}

.hhvd-consent__switch span::after {
  position: absolute;
  top: .2rem;
  left: .2rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 160ms ease;
}

.hhvd-consent__switch input:checked + span {
  background: #075795;
}

.hhvd-consent__switch input:checked + span::after {
  transform: translateX(1.2rem);
}

.hhvd-consent__switch input:disabled + span {
  cursor: not-allowed;
  opacity: .72;
}

.hhvd-consent__save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.site-footer__legal .hhvd-cookie-settings-button,
.legal-inline-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
}

.legal-inline-button {
  color: #075795;
  font-weight: 700;
}

@media (max-width: 780px) {
  .hhvd-consent {
    padding: .55rem;
  }

  .hhvd-consent__panel {
    max-height: calc(100dvh - 1.1rem);
    border-radius: .9rem;
  }

  .hhvd-consent__main {
    grid-template-columns: 1fr;
  }

  .hhvd-consent__categories {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .hhvd-consent__actions {
    grid-template-columns: 1fr;
  }

  .hhvd-consent__button--settings {
    grid-column: auto;
  }

  .hhvd-consent__save-row .hhvd-consent__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hhvd-consent *,
  .hhvd-consent *::before,
  .hhvd-consent *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}