/* Le lien local reste disponible sans JavaScript et sans cookies optionnels. */
#qe-floating-appointment {
  position: fixed;
  left: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 1000;
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: calc(100vw - 100px);
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid #20201e;
  border-radius: 0;
  background: #20201e;
  color: #fff !important;
  box-shadow: 0 3px 16px rgb(0 0 0 / 14%);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

#qe-floating-appointment:hover {
  background: #454540;
}

#qe-floating-appointment svg {
  flex-shrink: 0;
}

#qe-floating-appointment:focus-visible,
#qe-booking-help a:focus-visible,
#qe-booking-help button:focus-visible {
  outline: 2px solid #20201e;
  outline-offset: 4px;
}

#qe-booking-help {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 56px 32px 30px;
  overflow: auto;
  border: 1px solid #deded7;
  border-radius: 0;
  background: #fff;
  color: #20201e;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  box-shadow: 0 12px 60px rgb(0 0 0 / 20%);
}

#qe-booking-help:not([open]) {
  display: none;
}

#qe-booking-help::backdrop {
  background: rgb(0 0 0 / 40%);
}

#qe-booking-help h2 {
  margin: 0 0 18px;
  color: #20201e;
  font-family: inherit;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: none;
}

#qe-booking-help p {
  margin: 0 0 24px;
  color: #575752;
  font-size: 14px;
  line-height: 1.75;
}

#qe-booking-help button {
  font-family: inherit;
  font-weight: 400;
  text-transform: none;
}

#qe-booking-help .qe-booking-help-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #20201e;
  font-size: 26px;
  line-height: 1;
}

#qe-booking-help .qe-booking-help-action {
  min-height: 48px;
  margin: 0 0 18px;
  padding: 12px 18px;
  border: 1px solid #20201e;
  border-radius: 0;
  background: #20201e;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

#qe-booking-help .qe-booking-help-action[hidden] {
  display: none !important;
}

#qe-booking-help .qe-booking-direct {
  display: block;
  color: #454540;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 540px) {
  #qe-floating-appointment {
    left: 16px;
    bottom: max(18px, env(safe-area-inset-bottom));
    gap: 8px;
    max-width: calc(100vw - 88px);
    padding: 12px 14px;
    font-size: 12px;
  }

  #qe-booking-help {
    padding: 56px 24px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #qe-floating-appointment {
    transition: none;
  }
}

@media print {
  #qe-floating-appointment,
  #qe-booking-help {
    display: none !important;
  }
}
