.order-dialog-open { overflow: hidden; }

body .order-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 22, 21, .66);
}

body .order-overlay .order-dialog {
  width: min(760px, 100%);
  max-height: min(900px, calc(100vh - 48px));
  overflow: auto;
  color: #202523;
  border: 1px solid #d8dcda;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(18, 22, 21, .24);
  font-family: inherit;
}

body .order-overlay .order-dialog__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  color: #202523;
  border-bottom: 1px solid #e4e7e5;
  background: #fff;
}

body .order-overlay .order-dialog__header h2 {
  margin: 0;
  color: #202523;
  font: inherit;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
}

body .order-overlay .order-dialog__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: #202523;
  border: 1px solid #cdd2cf;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

body .order-overlay .order-dialog__close:hover { background: #f3f5f4; }

body .order-overlay .order-dialog__close:focus-visible,
body .order-overlay .order-primary:focus-visible,
body .order-overlay .order-link:focus-visible,
body .order-overlay .order-saved-email button:focus-visible {
  outline: 3px solid rgba(32, 37, 35, .24);
  outline-offset: 2px;
}

body .order-overlay .order-dialog__close svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

body .order-overlay .order-progress {
  display: grid;
  grid-template-columns: 36px 1fr 36px 1fr 36px;
  align-items: center;
  padding: 22px 32px 4px;
}

body .order-overlay .order-progress span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #646b68;
  border: 1px solid #cdd2cf;
  border-radius: 50%;
  background: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
}

body .order-overlay .order-progress span.is-active,
body .order-overlay .order-progress span.is-done {
  color: #fff;
  border-color: #202523;
  background: #202523;
}

body .order-overlay .order-progress i { height: 1px; background: #d8dcda; }
body .order-overlay .order-dialog__body { min-height: 190px; padding: 22px 32px 30px; }

body .order-overlay .order-loading,
body .order-overlay .order-availability-error {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin: 0;
  text-align: center;
}

body .order-overlay .order-loading h3,
body .order-overlay .order-availability-error h3 {
  margin: 14px 0 0;
  color: #202523;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}

body .order-overlay .order-loading__spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #d8dcda;
  border-top-color: #202523;
  border-radius: 50%;
  animation: order-loading-spin .8s linear infinite;
}

body .order-overlay .order-availability-error p {
  max-width: 48ch;
  margin: 8px auto 0;
  color: #646b68;
}

body .order-overlay .order-availability-error .order-primary { width: auto; min-width: 180px; }

body .order-overlay .order-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

body .order-overlay .order-step-heading > span {
  color: #646b68;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.4;
}

body .order-overlay .order-step-heading h3 {
  margin: 0 0 5px;
  color: #202523;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

body .order-overlay :is(.order-step-heading, .order-result, .order-availability-error) h3:focus { outline: none; }

body .order-overlay .order-step-heading p { margin: 0; color: #646b68; }
body .order-overlay .order-fields { display: grid; gap: 16px; }
body .order-overlay .order-fields--two { grid-template-columns: 1fr 1fr; }

body .order-overlay .order-form label,
body .order-overlay .order-sms-form label {
  display: grid;
  gap: 7px;
  color: #202523;
  font-weight: 600;
}

body .order-overlay .order-form label > span,
body .order-overlay .order-sms-form label > span { font-size: .9rem; }
body .order-overlay .order-form small { color: #747b78; font-weight: 400; }

body .order-overlay .order-form input,
body .order-overlay .order-form select,
body .order-overlay .order-form textarea,
body .order-overlay .order-sms-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: #202523;
  border: 1px solid #cdd2cf;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

body .order-overlay .order-form textarea { resize: vertical; }

body .order-overlay .order-form input:focus,
body .order-overlay .order-form select:focus,
body .order-overlay .order-form textarea:focus,
body .order-overlay .order-sms-form input:focus {
  border-color: #202523;
  outline: 3px solid rgba(32, 37, 35, .16);
}

body .order-overlay .order-field-wide { margin-top: 16px; }

body .order-overlay .order-consent {
  grid-template-columns: 22px 1fr !important;
  align-items: start !important;
  margin: 18px 0;
  color: #565d5a !important;
}

body .order-overlay .order-consent input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 2px 0 0;
}

body .order-overlay .order-consent a,
body .order-overlay .order-saved-email button,
body .order-overlay .order-link { color: #303633; }

body .order-overlay .order-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  padding: 13px 18px;
  color: #fff !important;
  border: 1px solid #202523;
  border-radius: 8px;
  background: #202523;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

body .order-overlay .order-primary:hover { background: #343a37; }
body .order-overlay .order-primary:disabled { color: #777d7a !important; border-color: #e1e4e2; background: #e9ebe9; cursor: not-allowed; }
body .order-overlay .order-primary svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

body .order-overlay .order-saved-email {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  color: #565d5a;
  border: 1px solid #e1e4e2;
  border-radius: 8px;
  background: #f6f7f6;
}

body .order-overlay .order-saved-email[hidden] { display: none; }

body .order-overlay .order-saved-email button,
body .order-overlay .order-link {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: underline;
  cursor: pointer;
}

body .order-overlay .order-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid #e1e4e2;
  border-radius: 8px;
  background: #f6f7f6;
}

body .order-overlay .order-price span { color: #646b68; }
body .order-overlay .order-price strong { color: #202523; font: inherit; font-size: 1.5rem; font-weight: 700; line-height: 1; }
body .order-overlay .order-payment { margin: 20px 0 0; padding: 0; border: 0; }
body .order-overlay .order-payment legend { margin-bottom: 10px; font-weight: 700; }
body .order-overlay .order-payment > div { display: flex; flex-wrap: wrap; gap: 10px; }
body .order-overlay .order-payment label { position: relative; }
body .order-overlay .order-payment input { position: absolute; opacity: 0; }

body .order-overlay .order-payment span {
  display: block;
  padding: 11px 15px;
  border: 1px solid #cdd2cf;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

body .order-overlay .order-payment input:checked + span {
  color: #fff;
  border-color: #202523;
  background: #202523;
  font-weight: 700;
}

body .order-overlay .order-payment input:focus-visible + span { outline: 3px solid rgba(32, 37, 35, .2); outline-offset: 2px; }

body .order-overlay .order-challenge {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #e1e4e2;
  border-radius: 8px;
  background: #f6f7f6;
}

body .order-overlay .order-challenge h4 { margin: 0 0 12px; }
body .order-overlay .order-challenge p { min-height: 22px; margin: 8px 0; color: #646b68; }
body .order-overlay .order-challenge-host { min-height: 70px; }
body .order-overlay .order-challenge-frame { display: block; width: 100%; height: 78px; border: 0; }

body .order-overlay .order-error {
  margin: 0 0 16px;
  padding: 13px 15px;
  color: #9b2c2c;
  border: 1px solid #c95a5a;
  border-radius: 8px;
  background: #fff8f8;
}

body .order-overlay .order-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 24px;
  color: #747b78;
  border-top: 1px solid #e4e7e5;
  background: #fafbfa;
  font-size: .76rem;
}

body .order-overlay .order-dialog__footer svg { width: 17px; fill: none; stroke: #747b78; stroke-width: 1.8; }
body .order-overlay .order-sms-form { max-width: 440px; margin: auto; }
body .order-overlay .order-sms-form input { font-size: 1.6rem; text-align: center; }
body .order-overlay .order-result { padding: 16px 0 8px; text-align: center; }

body .order-overlay .order-result h3 {
  margin: 18px 0 8px;
  color: #202523;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

body .order-overlay .order-result p { color: #646b68; }
body .order-overlay .order-success-icon { width: 70px; fill: #eef1ef; stroke: #202523; stroke-width: 2; }
body .order-overlay .order-profile-note { max-width: 520px; margin: 12px auto; }
body .order-overlay .order-result-actions { max-width: 420px; margin: auto; }
.summary-lines li { display: flex; justify-content: space-between; gap: 16px; }
.summary-lines li strong { white-space: nowrap; }
.booking-gate-status[data-kind="ready"] { color: inherit; }
.booking-gate-status[data-kind="error"] { color: #9b2c2c; }
.zone-control,
[data-travel] { display: none !important; }
.analytics-dialog p { color: #565d5a !important; }

/* The first-visit consent must never cover the booking action. Keep it compact
 * and neutral across the seven independent brand themes. */
body .analytics-dialog[data-astro-cid-iadcamot] {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: auto;
  max-width: 820px;
  margin-inline: auto;
  padding: 15px 17px;
  gap: 14px;
  border-radius: 12px;
  bottom: 12px;
  left: 12px;
  right: 12px;
  box-shadow: 0 0 28px rgba(20, 24, 22, .13);
}

body .analytics-dialog[data-astro-cid-iadcamot] h2[data-astro-cid-iadcamot] {
  margin: 0 0 4px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
}

body .analytics-dialog[data-astro-cid-iadcamot] p[data-astro-cid-iadcamot] {
  max-width: 62ch;
  font-size: .82rem;
  line-height: 1.4;
}

body .analytics-actions[data-astro-cid-iadcamot] {
  display: grid;
  grid-template-columns: repeat(2, minmax(116px, auto));
  flex-wrap: nowrap;
  gap: 8px;
}

body .analytics-actions[data-astro-cid-iadcamot] button[data-astro-cid-iadcamot] {
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 8px;
  font-family: inherit;
  font-size: .78rem;
  line-height: 1.15;
}

@keyframes order-loading-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  body .order-overlay { place-items: stretch; padding: 0; }
  body .order-overlay .order-dialog { width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  body .order-overlay .order-dialog__header { padding: 15px 18px; }
  body .order-overlay .order-progress { padding: 18px 20px 2px; }
  body .order-overlay .order-dialog__body { padding: 20px 18px 26px; }
  body .order-overlay .order-fields--two { grid-template-columns: 1fr; }
  body .order-overlay .order-saved-email { grid-column: auto; }
  body .order-overlay .order-dialog__footer { position: static; padding-bottom: max(13px, env(safe-area-inset-bottom)); }
  body .order-overlay .order-price { align-items: flex-start; flex-direction: column; }
  body .order-overlay .order-price strong { font-size: 1.4rem; }
  body .order-overlay .order-challenge { padding: 14px; }
  body .order-overlay .order-challenge-frame { height: 90px; }

  body .analytics-dialog[data-astro-cid-iadcamot] {
    grid-template-columns: 1fr;
    align-items: stretch;
    max-width: none;
    padding: 13px 14px;
    gap: 9px;
    bottom: 8px;
    left: 8px;
    right: 8px;
  }

  body .analytics-dialog[data-astro-cid-iadcamot] p[data-astro-cid-iadcamot] {
    font-size: .76rem;
    line-height: 1.35;
  }

  body .analytics-actions[data-astro-cid-iadcamot] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  body .analytics-actions[data-astro-cid-iadcamot] button[data-astro-cid-iadcamot] {
    min-width: 0;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .order-overlay * { scroll-behavior: auto !important; transition: none !important; }
  body .order-overlay .order-loading__spinner { animation: none; border-top-color: #d8dcda; }
}
