.booking-help-entry {
  position: fixed;
  display: block;
  z-index: 50;
  right: max(16px, calc((100vw - 960px) / 2 - 56px));
  bottom: calc(16px + env(safe-area-inset-bottom));
  margin: 0;
  visibility: hidden;
}
.booking-help-entry.is-visible { visibility: visible; }

.booking-help-open {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #67471f;
  cursor: pointer;
  font: 700 1rem/1 var(--font-body);
}

.booking-help-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #67471f;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 4px 14px rgba(42, 37, 34, 0.16);
}
.booking-help-open:hover .booking-help-icon { background: #f4e9da; }
.booking-help-label { display: none; }
.booking-help-open::after {
  position: absolute;
  top: 50%;
  right: calc(100% + 0.5rem);
  width: max-content;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  background: #302b26;
  color: #fff;
  content: attr(data-help-label);
  font: 600 0.75rem/1.3 var(--font-body);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
}
.booking-help-open:hover::after,
.booking-help-open:focus-visible::after { opacity: 1; }

@media (min-width: 1280px) {
  .booking-help-entry { right: max(12px, calc((100vw - 960px) / 2 - 160px)); }
  .booking-help-open {
    display: inline-flex;
    justify-content: center;
    gap: 7px;
    width: 150px;
    padding: 0 10px;
    border: 1px solid #67471f;
    border-radius: 999px;
    background: #fffdf8;
    box-shadow: 0 4px 14px rgba(42, 37, 34, 0.16);
    font: 700 0.875rem/1 var(--font-body);
  }
  .booking-help-icon {
    display: inline;
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 1.1rem;
  }
  .booking-help-label { display: inline; white-space: nowrap; }
  .booking-help-open:hover { background: #f4e9da; }
  .booking-help-open::after { display: none; }
}

.booking-help-overlay[hidden] { display: none; }
.booking-help-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(25, 22, 19, 0.76);
}

.booking-help-dialog {
  box-sizing: border-box;
  width: min(100%, 35rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: 12px;
  background: #fffdf8;
  color: #302b26;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  font-family: var(--font-body);
}

.booking-help-header, .booking-help-actions, .booking-help-actions > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.booking-help-header, .booking-help-actions { justify-content: space-between; }
.booking-help-header h2 { margin: 0; font: 600 1.8rem/1.2 var(--font-heading); }
.booking-help-dialog p { line-height: 1.55; }
.booking-help-progress { margin: 1.6rem 0 0.35rem; color: #67471f; font-weight: 700; }
.booking-help-dialog h3 { margin: 0; font: 600 1.4rem/1.3 var(--font-heading); }
#booking-help-step-copy { min-height: 5em; max-width: 65ch; }
.booking-help-actions { margin-top: 1.5rem; }
.booking-help-dialog button {
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid #67471f;
  border-radius: 6px;
  background: transparent;
  color: #67471f;
  cursor: pointer;
  font: 700 0.9rem/1.3 var(--font-body);
}
.booking-help-dialog button:hover { background: #f4e9da; }
.booking-help-dialog #booking-help-next { background: #67471f; color: #fff; }
.booking-help-dialog button:disabled { opacity: 0.45; cursor: default; }
.booking-help-dialog :focus-visible, .booking-help-open:focus-visible {
  outline: 3px solid #a86a1f;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .booking-help-entry { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .booking-help-actions { align-items: stretch; flex-direction: column-reverse; }
  .booking-help-actions > div { justify-content: space-between; }
  .booking-help-actions button { flex: 1; }
  #booking-help-step-copy { min-height: 0; }
}
