/* Order-only spacing owner, loaded after the historical layout layers.
   Vertical rhythm: 8 / 12 / 16 / 20 / 24px. Keep type, controls and media sizes. */
html body.order-page:has(#orderForm) main.section { padding-bottom: 24px !important; overflow: clip visible !important; }
html body.order-page:has(#orderForm) main.section > .vge-subpage-viewport-rail-v441G { padding-block: 0 !important; }
html body.order-page:has(#orderForm) main.section .vge-subpage-viewport-rail-v441G > .order-shell { padding-top: 16px !important; padding-bottom: 24px !important; }
body.order-page:has(#orderForm) .compact-steps { margin-bottom: 16px !important; }
body.order-page:has(#orderForm) #orderForm .travel-grid,
body.order-page:has(#orderForm) #orderForm .applicant-grid,
body.order-page:has(#orderForm) #orderForm .compact-contact-grid { row-gap: 16px !important; }
body.order-page:has(#orderForm) #orderForm .contact-subsection { margin-top: 12px !important; padding-top: 12px !important; }
body.order-page:has(#orderForm) #orderForm .applicant-card { margin-top: 8px !important; }
body.order-page:has(#orderForm) #orderForm .applicant-card > h4 { margin-bottom: 8px !important; }
body.order-page:has(#orderForm) #orderForm .processing-estimate-note-v616U { padding-block: 8px !important; margin-block: 8px !important; }
body.order-page:has(#orderForm) #orderForm .travel-grid > .travel-processing-estimate-v1136N { grid-column: 1 / -1 !important; width: 100% !important; }
body.order-page:has(#orderForm) #orderForm .travel-grid .input-note { margin-top: 0 !important; }
body.order-page:has(#orderForm) #orderForm .fasttrack-retired-v1135ZQ { row-gap: 8px !important; }
body.order-page:has(#orderForm) #orderForm .airport-addon-switch-v590U { gap: 8px !important; }
body.order-page:has(#orderForm) #orderForm .form-step > .actions { margin-top: 16px !important; padding-top: 0 !important; }

@media (min-width: 721px) {
  /* Keep the two existing field columns explicit: legacy one-column rules
     otherwise leave an implicit second column and make -1 end too early. */
  body.order-page:has(#orderForm) #orderForm .travel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.order-page:has(#orderForm) #orderForm .travel-grid > label[for="orderTravelPurpose"] { grid-column: 1 / -1 !important; }
  body.order-page:has(#orderForm) #orderForm .applicant-upload-card-v489G { grid-template-rows: minmax(112px, 1fr) auto auto !important; }
  body.order-page:has(#orderForm) #orderForm .applicant-upload-card-v489G > .field-error { min-height: 0 !important; max-height: none !important; }
}
@media (min-width: 981px) {
  body.order-page:has(#orderForm) #orderForm .order-main { padding-block: 24px !important; }
  body.order-page:has(#orderForm) #orderForm .travel-information-section-v1137D,
  body.order-page:has(#orderForm) #orderForm .applicant-section,
  body.order-page:has(#orderForm) #orderForm .fasttrack-retired-v1135ZQ,
  body.order-page:has(#orderForm) #orderForm .special-request-section-v1136AB { padding-block: 16px !important; }
  /* The whole card uses intrinsic height. Sticky is enabled only when the
     complete card fits above the support dock; otherwise the page scrolls. */
  body.order-page:has(#orderForm) #orderForm .order-summary {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    position: static !important;
    align-self: start !important;
    padding-block: 16px !important;
    overflow: visible !important;
  }
  body.order-page:has(#orderForm) #orderForm .order-review-scroll-v561U {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 8px !important;
    overflow: visible !important;
  }
  body.order-page:has(#orderForm) #orderForm .order-summary .summary-row { padding-block: 8px !important; }
  body.order-page:has(#orderForm) #orderForm .order-summary .summary-group { margin-block: 8px !important; padding-bottom: 8px !important; }
  body.order-page:has(#orderForm) #orderForm .order-review-total-v561U { padding-top: 12px !important; flex-shrink: 0 !important; }
  body.order-page:has(#orderForm) #orderForm .order-summary .total-line { padding-block: 12px !important; }
}
/* At small desktop widths a fixed 286px CTA column squeezed the description.
   Preserve the card's reading order while allowing the copy its full width. */
@media (min-width: 981px) and (max-width: 1180px) {
  body.order-page:has(#orderForm) #orderForm .fasttrack-retired-v1135ZQ { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "title" "copy" "actions" !important; }
  body.order-page:has(#orderForm) #orderForm .airport-addon-switch-v590U { width: 100% !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 980px) {
  body.order-page:has(#orderForm) #orderForm .fasttrack-retired-v1135ZQ { padding-block: 12px !important; }
}

/* Balanced booking layout: keep typography and control behavior independent. */
body.order-page:has(#orderForm) #orderForm .travel-information-section-v1137D { margin-top: 0 !important; }
body.order-page:has(#orderForm) #orderForm .applicant-section .applicant-card:first-child { margin-top: 0 !important; }
body.order-page:has(#orderForm) #orderForm .compact-contact-grid { column-gap: 24px !important; }
body.order-page:has(#orderForm) #orderForm .compact-contact-grid > label { gap: 8px !important; }
/* All four visible outer controls share one box; phone internals remain native. */
body.order-page:has(#orderForm) #orderForm .compact-contact-grid > label > :is(input, .vge-intl-phone-v787CN) {
 width: 100% !important; min-width: 0 !important; height: 48px !important; min-height: 48px !important;
 margin: 0 !important; box-sizing: border-box !important; border-radius: 12px !important;
}
@media (min-width: 721px) {
 body.order-page:has(#orderForm) #orderForm .compact-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 8px !important;
 }
 /* Share label/control/error tracks, so wrapping never misaligns peer inputs. */
 body.order-page:has(#orderForm) #orderForm .compact-contact-grid > label {
  display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: subgrid !important; grid-row: span 3 !important;
 }
 body.order-page:has(#orderForm) #orderForm .compact-contact-grid > label > .field-label-title { grid-row: 1; }
 body.order-page:has(#orderForm) #orderForm .compact-contact-grid > label > :is(input, .vge-intl-phone-v787CN) { grid-row: 2; }
 body.order-page:has(#orderForm) #orderForm .compact-contact-grid > label > .field-error { grid-row: 3; }
}
@media (max-width: 720px) {
 body.order-page:has(#orderForm) #orderForm .compact-contact-grid { grid-template-columns: minmax(0, 1fr) !important; row-gap: 16px !important; }
}
@media (min-width: 981px) {
 body.order-page:has(#orderForm) #orderForm.order-layout { grid-template-columns: minmax(0, 1.55fr) minmax(440px, 1fr) !important; }
 body.order-page:has(#orderForm) #orderForm .order-summary { width: 100% !important; max-width: none !important; }
}

body.order-page:has(#orderForm) #orderForm .compact-contact-grid > label > :is(.field-label-title, input, .vge-intl-phone-v787CN, .field-error) { grid-column: 1 !important; }
body.order-page:has(#orderForm) #orderForm .compact-contact-grid > label > .field-label-title { margin: 0 !important; }

/* Legacy contact input rules also reached inside the phone composite. */
body.order-page:has(#orderForm) #orderForm .compact-contact-grid .vge-intl-phone-v787CN :is(.vge-phone-dial-input-v787CV, .vge-phone-national-v787CN) { height: 45px !important; min-height: 45px !important; max-height: 45px !important; }

@media (min-width: 981px) {
 body.order-page:has(#orderForm) #orderForm .order-summary[data-summary-mode="natural-sticky"] { position: sticky !important; }
}
@media (max-width: 980px) {
 body.order-page:has(#orderForm) #orderForm .review-mobile {
  height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important;
 }
 body.order-page:has(#orderForm) #orderForm .review-mobile-total-v787CP {
  position: static !important;
  margin: 12px 0 0 !important;
  padding: 12px 0 0 !important;
  border-top: 1px solid rgba(37,99,235,.16);
  border-bottom: 0;
 }
}
/* Contact blur validation must not move the Review button during pointer activation.
   Reserve one readable message line, including for empty peer fields, so both
   rows remain aligned without hiding or truncating validation messages. */
body.order-page:has(#orderForm) #orderForm .compact-contact-grid > label > .field-error {
 display: block !important;
 min-height: 1lh !important;
}
/* Trim only outer card padding; retain every reserved validation row above. */
body.order-page:has(#orderForm) #orderForm .applicant-section:has(> .contact-subsection) {
 padding-bottom: 8px !important;
}
