/* Orange booking design: Steps 2/3 and explicitly marked journey-edit view.
   No unscoped body, :root, Step 1 or embedded-widget styling. */
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) {
  --orange-border: #e0e7ef;
  --orange-ink: #17243a;
  --orange-muted: #617087;
  --orange-accent: #d43146;
  --orange-gradient: linear-gradient(105deg, #d43146, #ff8215);
  width: min(100%, 1100px);
  padding: 24px 18px 48px;
  color: var(--orange-ink);
}
.sbe-flow .sbe-quote-step .sbe-step-two-form {
  --sbe-step2-soft: #f6f9fc;
  --sbe-step2-border: #e0e7ef;
  --sbe-booking-step-two-selected-colour: #d43146;
  --sbe-booking-step-two-selected-background-colour: #fff6f3;
}
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-progress {
  margin-bottom: 18px;
}
.sbe-flow .sbe-quote-step .sbe-orange-heading { text-align: center; margin: 8px 0 18px; }
.sbe-flow .sbe-quote-step .sbe-orange-heading h2 {
  margin: 0 0 6px; font-size: clamp(23px, 3vw, 30px); line-height: 1.2; font-weight: 650;
}
.sbe-flow .sbe-quote-step .sbe-orange-heading p {
  margin: 0; font-size: 13px; line-height: 1.5; color: var(--orange-muted);
}
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-orange-route {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
  gap: 12px; padding: 16px 18px; margin: 0 0 20px;
  border: 1px solid var(--orange-border); border-radius: 10px; background: #fff;
  box-shadow: 0 5px 18px #17243a05;
}
.sbe-flow .sbe-confirmation-step .sbe-orange-route { grid-template-columns: minmax(0, 1fr); }
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-main {
  display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) minmax(180px, .9fr);
  align-items: center; gap: 14px; min-width: 0;
}
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-place {
  display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left;
}
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-place > div { min-width: 0; }
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-place:last-child {
  padding-left: 14px; border-left: 1px solid var(--orange-border);
}
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-place svg {
  width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: #425671; stroke-width: 1.7; stroke-linejoin: round;
}
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-place small {
  display: block; font-size: 10px; line-height: 1.5; color: var(--orange-muted); margin-bottom: 2px;
}
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-place strong {
  display: block; font-size: 12px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere;
}
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-arrow {
  font-size: 23px; text-align: center; color: #425671;
}
.sbe-flow .sbe-quote-step .sbe-edit-journey {
  margin: 3px 0 0; padding: 10px 4px; min-height: 44px; border: 0; border-radius: 4px;
  background: transparent; color: #344963; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer;
}
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-extra {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf0f4;
  color: #46566d; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere;
}
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-information { margin-top: 8px; }
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-information > summary {
  display: list-item; width: fit-content; padding: 6px 0; cursor: pointer; color: var(--orange-muted); font-size: 11px;
}
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; padding-top: 8px;
}
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-facts > div {
  font-size: 12px; line-height: 1.6; display: flex; flex-wrap: wrap; gap: 4px; overflow-wrap: anywhere;
}
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-facts strong { font-weight: 600; }
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-review {
  color: #a94e09; background: #fff6e9; padding: 10px; border-radius: 6px; font-size: 12px; line-height: 1.5;
}
.sbe-flow .sbe-quote-step .sbe-panel { border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.sbe-flow .sbe-quote-step .sbe-booker-panel { background: #f6f9fc; }
.sbe-flow .sbe-quote-step .sbe-booker-heading { margin-bottom: 14px; }
.sbe-flow .sbe-quote-step .sbe-booker-panel .sbe-detail-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px;
}
.sbe-flow .sbe-quote-step .sbe-booker-panel .sbe-detail-grid__wide { grid-column: auto; }
.sbe-flow .sbe-quote-step .sbe-panel input:not([type="checkbox"]):not([type="radio"]),
.sbe-flow .sbe-quote-step .sbe-panel select,
.sbe-flow .sbe-quote-step .sbe-panel textarea {
  width: 100%; min-width: 0; min-height: 42px; border-radius: 7px; font-size: 13px; padding: 10px 12px;
}
.sbe-flow .sbe-quote-step .sbe-panel select { padding-right: 34px; }
.sbe-flow .sbe-quote-step .sbe-panel textarea { min-height: 96px; resize: vertical; }
.sbe-flow .sbe-quote-step .sbe-label-text { font-size: 12px; line-height: 1.5; }
.sbe-flow .sbe-quote-step :is(.sbe-travel-detail-panel, .sbe-party-panel) {
  margin: 20px 0 14px; padding: 16px; background: #fff; border-radius: 9px;
}
.sbe-flow .sbe-quote-step .sbe-travel-detail-heading { margin-bottom: 14px; }
.sbe-flow .sbe-quote-step .sbe-meet-greet-option { grid-column: 1 / -1; }
.sbe-flow .sbe-quote-step :is(.sbe-passenger-fields, .sbe-account-fields) {
  margin: -1px 0 10px; padding: 16px; background: #fff; border-radius: 0 0 8px 8px;
}
.sbe-flow .sbe-quote-step .sbe-orange-disclosure {
  border: 1px solid var(--orange-border); border-radius: 8px; background: #fff; margin: 10px 0;
}
.sbe-flow .sbe-quote-step .sbe-orange-disclosure > summary {
  list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  position: relative; padding: 12px 44px 12px 14px; min-height: 44px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.sbe-flow .sbe-quote-step .sbe-orange-disclosure > summary::-webkit-details-marker { display: none; }
.sbe-flow .sbe-quote-step .sbe-orange-disclosure > summary small { color: var(--orange-muted); font-size: 12px; font-weight: 400; }
.sbe-flow .sbe-quote-step .sbe-orange-disclosure > summary::after,
.sbe-flow .sbe-quote-step .sbe-disclosure-arrow {
  content: ''; width: 8px; height: 8px; border-right: 1.5px solid #425671; border-bottom: 1.5px solid #425671;
  transform: rotate(45deg); transition: transform .15s ease; justify-self: center;
}
.sbe-flow .sbe-quote-step .sbe-orange-disclosure > summary::after { position: absolute; right: 18px; top: 16px; }
.sbe-flow .sbe-quote-step .sbe-orange-disclosure[open] > summary::after,
.sbe-flow .sbe-quote-step .sbe-orange-toggle:has(input:checked) .sbe-disclosure-arrow { transform: rotate(225deg); }
.sbe-flow .sbe-quote-step .sbe-orange-disclosure > .sbe-detail-grid { padding: 4px 14px 16px; }
.sbe-flow .sbe-quote-step .sbe-orange-toggle {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) 18px; align-items: center; gap: 10px;
  border: 1px solid var(--orange-border); background: #fff; border-radius: 8px; min-height: 46px; padding: 10px 14px; margin: 8px 0;
}
.sbe-flow .sbe-quote-step .sbe-orange-toggle input { margin: 0; }
.sbe-flow .sbe-quote-step .sbe-orange-toggle strong { font-size: 13px; font-weight: 600; }
.sbe-flow .sbe-quote-step .sbe-extras-disclosure .sbe-extras-panel { margin: 0; border: 0; padding: 0 14px 14px; }
.sbe-flow .sbe-quote-step .sbe-note-field { display: grid; gap: 9px; margin: 20px 0 14px; }
.sbe-flow .sbe-quote-step .sbe-voucher-field { margin: 14px 0 20px; }
.sbe-flow .sbe-quote-step .sbe-payment-section { padding: 18px; border-radius: 9px; background: #fff; }
.sbe-flow .sbe-quote-step .sbe-payment-total-card { border-radius: 8px; padding: 14px 18px; }
.sbe-flow .sbe-quote-step .sbe-bottom-actions { gap: 12px; margin-top: 16px; }
.sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-gradient-action {
  background: var(--orange-gradient); min-height: 46px; border-radius: 8px;
}
.sbe-flow .sbe-quote-step #submit-booking::after { content: ' →'; margin-left: 12px; }
.sbe-flow .sbe-quote-step :is(.sbe-edit-journey, summary):focus-visible {
  outline: 2px solid #d43146; outline-offset: 3px;
}
.sbe-flow .sbe-quote-step .sbe-validation-summary { color: #b45508; font-size: 12px; font-weight: 400; line-height: 1.5; }
.sbe-flow .sbe-confirmation-step .sbe-confirm-card { padding: 20px; background: #f6f9fc; border-color: var(--orange-border); }
.sbe-flow .sbe-confirmation-step .sbe-confirm-banner { padding: 24px; gap: 18px; }
.sbe-flow .sbe-confirmation-step .sbe-confirm-banner h2 { font-size: 26px; }
.sbe-flow .sbe-confirmation-step .sbe-confirm-banner p { font-size: 13px; line-height: 1.6; }
.sbe-flow .sbe-confirmation-step .sbe-confirm-details { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sbe-flow .sbe-confirmation-step .sbe-confirm-details > div { padding: 16px; overflow-wrap: anywhere; }
.sbe-flow .sbe-confirmation-step .sbe-confirm-details > div:last-child { grid-column: 1 / -1; }
.sbe-flow .sbe-confirmation-step .sbe-confirm-details span { font-size: 12px; }
.sbe-flow .sbe-confirmation-step .sbe-confirm-details strong { font-size: 15px; line-height: 1.5; }
@media (max-width: 820px) {
  .sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-main { grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); }
  .sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-place:last-child { grid-column: 1 / -1; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--orange-border); }
  .sbe-flow .sbe-quote-step .sbe-booker-panel .sbe-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sbe-flow .sbe-confirmation-step .sbe-confirm-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) { padding: 14px 10px 30px; }
  .sbe-flow .sbe-quote-step .sbe-orange-heading { margin-bottom: 14px; }
  .sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-orange-route { padding: 14px; gap: 4px; grid-template-columns: minmax(0, 1fr); }
  .sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-main { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-arrow { display: none; }
  .sbe-flow :is(.sbe-quote-step, .sbe-confirmation-step) .sbe-route-facts { grid-template-columns: minmax(0, 1fr); }
  .sbe-flow .sbe-quote-step .sbe-edit-journey { justify-self: end; margin: 0; padding: 8px; }
  .sbe-flow .sbe-quote-step .sbe-panel { padding: 14px; }
  .sbe-flow .sbe-quote-step .sbe-booker-panel .sbe-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sbe-flow .sbe-quote-step :is(.sbe-travel-detail-panel, .sbe-party-panel, .sbe-payment-section) { padding: 12px; }
  .sbe-flow .sbe-quote-step .sbe-panel input:not([type="checkbox"]):not([type="radio"]),
  .sbe-flow .sbe-quote-step .sbe-panel select,
  .sbe-flow .sbe-quote-step .sbe-panel textarea { font-size: 16px; min-height: 46px; }
  .sbe-flow .sbe-quote-step .sbe-orange-toggle { padding: 10px; }
  .sbe-flow .sbe-confirmation-step .sbe-confirm-card { padding: 12px; }
  .sbe-flow .sbe-confirmation-step .sbe-confirm-banner { padding: 16px; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .sbe-flow .sbe-confirmation-step .sbe-confirm-banner h2 { font-size: 23px; }
  .sbe-flow .sbe-confirmation-step .sbe-confirm-check { width: 30px; height: 30px; }
  .sbe-flow .sbe-confirmation-step .sbe-confirm-details { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .sbe-flow .sbe-quote-step :is(.sbe-disclosure-arrow, .sbe-orange-disclosure > summary::after) { transition: none; }
}

/* Compact phone editor reached from Step 2. The marker is set only by
   Edit journey/Back and removed when leaving the editor. Widgets never get it. */
@media (max-width: 760px) {
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-step-one {
    min-height: 0; padding: 12px 0 24px; overflow: visible;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-itinerary-card {
    box-sizing: border-box; width: calc(100% - 20px); max-width: 480px;
    min-width: 0; padding: 16px; border-radius: 12px; margin: 0 auto;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-itinerary-card__header {
    margin-bottom: 16px; gap: 0;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-itinerary-card__intro {
    display: block; min-width: 0;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] :is(.sbe-quote-kicker, .sbe-round-icon, .sbe-price-badge, .sbe-mobile-subtitle, .sbe-trust-row) {
    display: none;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-itinerary-card h1 {
    font-family: "Segoe UI", Arial, sans-serif; font-size: 22px; line-height: 1.25; font-weight: 600; margin: 0;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-step-one__fields {
    grid-template-columns: minmax(0, 1fr); gap: 12px;
    padding: 0; border: 0; border-radius: 0; background: transparent;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-step-field {
    min-width: 0; gap: 5px; font-size: 13px; font-weight: 500; line-height: 1.4;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-input-shell {
    min-height: 46px; border-width: 1px; border-radius: 7px; padding: 0 10px; gap: 8px;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-input-shell > svg {
    width: 18px; height: 18px;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-input-shell .sbe-chevron { display: none; }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-input-shell :is(input, select, textarea) {
    min-width: 0; min-height: 44px; padding: 8px 0; font-size: 16px; line-height: 1.4;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-journey-tabs {
    gap: 6px; padding: 4px; border-radius: 8px;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-journey-tabs button {
    min-height: 44px; padding: 8px 10px; border-radius: 6px; font-size: 13px;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-trip-switch {
    grid-template-columns: 22px minmax(0, 1fr) 48px; gap: 8px;
    min-height: 54px; padding: 9px 10px; border-radius: 8px;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-trip-switch__icon { width: 22px; height: 22px; }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-trip-switch i { position: relative; inset: auto; margin: 0; }
  .sbe-flow[data-editing-journey="true"][data-step="1"] :is(.sbe-trip-switch, .sbe-flexible-option) strong {
    font-size: 13px; line-height: 1.35; font-weight: 600;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] :is(.sbe-trip-switch, .sbe-flexible-option) small {
    margin-top: 2px; font-size: 11px; line-height: 1.4;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-journey-options { min-height: 44px; padding: 4px 0; }
  .sbe-flow[data-editing-journey="true"][data-step="1"] :is(.sbe-return-panel, .sbe-via-panel, .sbe-hourly-panel) {
    min-width: 0; padding: 12px; gap: 10px; border-radius: 8px;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] :is(.sbe-return-panel__grid, .sbe-via-panel__grid, .sbe-hourly-panel__grid) {
    grid-template-columns: minmax(0, 1fr); gap: 10px;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] :is(.sbe-return-panel__heading, .sbe-via-panel__heading, .sbe-hourly-panel__heading) {
    font-size: 13px; line-height: 1.4;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] :is(.sbe-via-add, .sbe-via-remove) {
    min-height: 44px; max-width: 100%; padding: 8px 10px; border-radius: 7px; font-size: 12px; white-space: normal;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] :is(.sbe-form-error, .sbe-route-note) {
    min-height: 0; margin: 10px 0; font-size: 12px; line-height: 1.5; font-weight: 400;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] :is(.sbe-form-error, .sbe-route-note):empty { display: none; }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-gradient-action {
    min-height: 46px; padding: 12px; border-radius: 8px; gap: 10px; font-size: 14px; margin-top: 14px;
  }
  .sbe-flow[data-editing-journey="true"][data-step="1"] .sbe-gradient-action svg { width: 20px; height: 20px; }
}
