/* HV Consent CMP — Figma Cookie / Cookie/V10 */

.hv-consent {
  --hv-c-navy: #0a2d62;
  --hv-c-btn: #1a3b6c;
  --hv-c-text: #0a2d62;
  --hv-c-muted: #5a646c;
  --hv-c-muted-2: #6e7880;
  --hv-c-muted-3: #6f6c8f;
  --hv-c-line: #e8ebf0;
  --hv-c-border: #f1f2f9;
  --hv-c-bg: #ffffff;
  --hv-c-icon-bg: #e7effd;
  --hv-c-shadow:
    0 4px 32px -4px rgba(111, 108, 143, 0.12),
    0 3px 12px -2px rgba(170, 170, 190, 0.06);
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
  font-family: Inter, system-ui, sans-serif;
}

.hv-consent:not([hidden]) {
  pointer-events: auto;
}

.hv-consent__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 29, 66, 0.28);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.hv-consent.is-open .hv-consent__scrim {
  opacity: 1;
}

.hv-consent__panel {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  width: min(808px, calc(100vw - 32px));
  background: var(--hv-c-bg);
  border-radius: 20px;
  box-shadow: var(--hv-c-shadow);
  border: 1px solid var(--hv-c-border);
  padding: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.hv-consent.is-open .hv-consent__panel:not([hidden]) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hv-consent__panel--settings {
  width: min(630px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  bottom: 50%;
  border-radius: 24px;
  padding: 20px 0;
  transform: translateX(-50%) translateY(calc(50% + 12px));
}

.hv-consent.is-open .hv-consent__panel--settings:not([hidden]) {
  transform: translateX(-50%) translateY(50%);
}

.hv-consent__top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 32px 40px 0 32px;
  position: relative;
}

.hv-consent__panel--settings .hv-consent__top {
  padding: 0 20px;
  flex-direction: column;
  gap: 8px;
}

.hv-consent__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--hv-c-icon-bg);
  box-shadow:
    inset 0 -1.2px 1.2px rgba(50, 50, 204, 0.13),
    inset 0 1.4px 1.4px rgba(255, 255, 255, 0.35),
    inset 0 -5px 5.7px rgba(171, 182, 233, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.hv-consent__icon img,
.hv-consent__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.hv-consent__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 12px;
}

.hv-consent__title {
  margin: 0;
  font-family: Archivo, Inter, sans-serif;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--hv-c-navy);
  letter-spacing: -0.2px;
}

.hv-consent__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #514f6e;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hv-consent__panel--settings .hv-consent__close {
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: linear-gradient(#fff, #f1f2f9);
  box-shadow: inset 0 -0.7px 0.7px rgba(150, 161, 172, 0.12);
}

.hv-consent__close:hover {
  color: var(--hv-c-navy);
  background: #f0f3f8;
}

.hv-consent__close img,
.hv-consent__close svg {
  width: 16px;
  height: 16px;
  display: block;
}

.hv-consent__panel--settings .hv-consent__close img,
.hv-consent__panel--settings .hv-consent__close svg {
  width: 11px;
  height: 11px;
}

.hv-consent__lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 23.2px;
  font-weight: 400;
  color: var(--hv-c-muted);
}

.hv-consent__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--hv-c-muted-3);
}

.hv-consent__bot {
  padding: 24px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--hv-c-line);
  margin-top: 24px;
}

.hv-consent__panel--settings .hv-consent__bot {
  margin-top: 0;
  padding: 0 20px;
  border-top: 1px solid var(--hv-c-line);
  padding-top: 20px;
}

.hv-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hv-consent__actions--settings {
  justify-content: flex-start;
  width: 100%;
}

.hv-consent__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: 500 16px/24px Inter, system-ui, sans-serif;
  padding: 10px 24px;
  min-width: 178px;
  text-align: center;
  border-radius: 0;
  background: var(--hv-c-btn);
  color: #fff;
  transition: background 0.15s ease, transform 0.1s ease;
}

.hv-consent__btn:hover {
  background: #234a83;
}

.hv-consent__btn:active {
  transform: translateY(1px);
}

.hv-consent__link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  font: 500 16px/24px Inter, system-ui, sans-serif;
  color: var(--hv-c-btn);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.hv-consent__link:hover {
  color: #0a2d62;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hv-consent__legal {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hv-consent__legal a {
  font-size: 12.5px;
  line-height: 19.4px;
  color: var(--hv-c-muted-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hv-consent__legal a:hover {
  color: var(--hv-c-navy);
}

.hv-consent__cats {
  list-style: none;
  margin: 0;
  padding: 12px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--hv-c-line);
  margin-top: 16px;
}

.hv-consent__cat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
}

.hv-consent__cat-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  max-width: 388px;
}

.hv-consent__cat-text strong {
  font-size: 14px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--hv-c-navy);
}

.hv-consent__cat-text span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--hv-c-muted-3);
}

.hv-consent__switch {
  position: relative;
  width: 36px;
  height: 20px;
  margin-top: 0;
  flex: 0 0 auto;
  cursor: pointer;
  align-self: center;
}

.hv-consent__switch.is-locked {
  cursor: default;
  opacity: 0.95;
}

.hv-consent__switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.hv-consent__slider {
  position: absolute;
  inset: 0;
  background: #c5cbd6;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.hv-consent__slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}

.hv-consent__switch input:checked + .hv-consent__slider {
  background: var(--hv-c-btn);
}

.hv-consent__switch input:checked + .hv-consent__slider::after {
  transform: translateX(16px);
}

.hv-consent__switch input:focus-visible + .hv-consent__slider {
  outline: 2px solid #1552a8;
  outline-offset: 2px;
}

/* Map placeholder when media consent denied */
.hv-map-ph {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
  background: #e9eef5;
  border: 1px solid #c9d3e0;
  border-radius: 10px;
  color: var(--hv-c-navy);
}

.hv-map-ph__addr {
  margin: 0;
  font: 600 15px/1.4 Inter, system-ui, sans-serif;
}

.hv-map-ph__btn {
  appearance: none;
  border: 1px solid var(--hv-c-navy);
  background: #fff;
  color: var(--hv-c-navy);
  font: 600 13px/1 Inter, system-ui, sans-serif;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.hv-map-ph__btn:hover {
  background: var(--hv-c-navy);
  color: #fff;
}

iframe[data-hv-map][data-hv-blocked='1'] {
  display: none !important;
}

@media (max-width: 640px) {
  .hv-consent__panel {
    bottom: 16px;
    width: calc(100vw - 20px);
    border-radius: 20px;
  }

  .hv-consent__panel--settings {
    bottom: 12px;
    max-height: calc(100vh - 24px);
    transform: translateX(-50%) translateY(12px);
    border-radius: 20px;
  }

  .hv-consent.is-open .hv-consent__panel--settings:not([hidden]) {
    transform: translateX(-50%) translateY(0);
  }

  .hv-consent__top {
    padding: 24px 28px 0 20px;
  }

  .hv-consent__icon {
    display: none;
  }

  .hv-consent__bot {
    padding: 20px;
    margin-top: 20px;
  }

  .hv-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    width: 100%;
  }

  .hv-consent__actions .hv-consent__btn {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
  }

  .hv-consent__actions .hv-consent__link {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4px;
  }

  .hv-consent__actions--settings {
    grid-template-columns: 1fr 1fr;
  }

  .hv-consent__cats {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Slim legal strip on pages without full footer */
.hv-legal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #0a2d62;
  color: rgba(255, 255, 255, 0.75);
  font: 500 12.5px/1.3 Inter, system-ui, sans-serif;
}

.hv-legal-strip a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hv-legal-strip a:hover {
  color: #fff;
}

body.has-mobile-dock .hv-legal-strip {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
