.open-consultation[hidden] {
  display: none;
}

.open-consultation {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  box-sizing: border-box;
  width: min(380px, calc(100% - 48px));
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 4px;
  background: var(--mh-white);
  color: var(--mh-black);
  box-shadow: 0 5px 28px rgb(0 45 89 / 18%);
  font-family: var(--font-sans);
}

.open-consultation h2 {
  margin: 0 24px 18px 0;
  color: var(--mh-blue);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  hyphens: none;
  overflow-wrap: normal;
}

.open-consultation__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mh-blue);
  font: 400 28px/1 var(--font-sans);
  cursor: pointer;
}

.open-consultation__times {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.open-consultation__directions {
  box-sizing: border-box;
  width: 100%;
  text-align: center;
}

.open-consultation__note {
  margin-top: 14px;
  color: var(--mh-gray);
  font-size: 16px;
  line-height: 1.3;
}

.open-consultation__note p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

body.has-cookie-consent-open .open-consultation,
body.is-menu-open .open-consultation {
  display: none;
}

@media (max-width: 767px) {
  .open-consultation {
    right: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 32px);
    padding: 24px;
    max-height: calc(100dvh - 180px);
  }

  .open-consultation h2 {
    font-size: 24px;
  }

  .open-consultation__times {
    font-size: 21px;
  }
}
