/* Only the independent external-cargo creation workspace uses these rules. */
.desktop-workspace .external-booking-workspace {
  --booking-input-height: 54px; --booking-input-font: 24px; --booking-label-font: 20px; --booking-row-gap: 8px;
  display: flex; flex: 1; flex-direction: column; min-height: 0; width: 100%;
  padding: 8px 16px; gap: 8px; color: var(--web-ink, #293632); font-size: 20px; line-height: 1.25;
}
.external-booking-workspace *, .external-booking-workspace *::before, .external-booking-workspace *::after { box-sizing: border-box; }
.external-booking-workspace [hidden] { display: none !important; }
.desktop-workspace .external-booking-workspace h1, .desktop-workspace .external-booking-workspace h2, .desktop-workspace .external-booking-workspace p { margin: 0; }
.desktop-workspace .external-booking-workspace h1 { font-size: 28px; line-height: 1.25; }
.desktop-workspace .external-booking-workspace h2 { font-size: 22px; line-height: 1.25; }
.desktop-workspace .external-booking-workspace button { min-width: 0; min-height: 38px; padding: 6px 10px; border: 1px solid var(--web-line, #bdcdc6); border-radius: 5px; background: var(--monet-field, #f4f6f3); color: var(--web-ink, #293632); font-size: 18px; line-height: 1.25; font-weight: 600; box-shadow: none; }
.booking-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-shrink: 0; }
.booking-heading > div { display: flex; align-items: baseline; gap: 16px; }
.booking-heading > div > span { font-size: 16px; color: var(--web-muted, #53655f); font-weight: 400; }
.booking-heading-actions { align-items: center !important; gap: 8px !important; }
.desktop-workspace .external-booking-workspace .booking-review-toggle { display: none; }
.booking-steps { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.desktop-workspace .external-booking-workspace .booking-steps button { display: flex; align-items: center; gap: 10px; border-color: transparent; background: transparent; font-size: 20px; padding: 3px 12px 3px 3px; min-height: 38px; }
.booking-steps b { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--web-line, #bdcdc6); border-radius: 50%; font-size: 20px; background: var(--monet-field, #f4f6f3); }
.desktop-workspace .external-booking-workspace .booking-steps button[aria-current=step] { color: var(--web-red, #c40012); font-weight: 700; }
.booking-steps button[aria-current=step] b { background: var(--web-red, #c40012); color: #fff; border-color: var(--web-red, #c40012); }
.booking-step-arrow { color: var(--web-muted, #53655f); }
.booking-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 27%); gap: 12px; flex: 1; min-height: 0; align-items: stretch; }
.booking-form, .booking-review { min-width: 0; min-height: 0; background: var(--monet-panel, #eef2ef); border: 1px solid var(--web-line, #bdcdc6); border-radius: 8px; }
.booking-form { display: flex; flex-direction: column; gap: 6px; padding: 10px; margin: 0; }
.booking-route-page { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: clamp(16px, 2vh, 24px); padding: 12px clamp(8px, 2vw, 40px); }
.booking-route-page .booking-field { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.booking-route-page .booking-date { width: max-content; max-width: 100%; min-width: 0; }
.booking-route-page .booking-field > span { font-size: 24px; }
.booking-stations-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.booking-sites-method-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
.booking-delivery-choice { display: flex; flex-direction: column; gap: 4px; }
.booking-route-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--web-muted, #53655f); font-size: 16px; }
.desktop-workspace .external-booking-workspace .booking-route-status button { min-height: 28px; font-size: 16px; padding: 2px 6px; }
.booking-pickup-note { color: var(--web-muted, #53655f); font-size: 18px; }
.booking-details-page, .booking-fees-page, .booking-section { display: flex; flex-direction: column; gap: var(--booking-row-gap); }
.booking-details-page, .booking-fees-page { flex: 1; justify-content: center; padding: 12px clamp(8px, 2vw, 40px); gap: clamp(24px, 4vh, 48px); }
.booking-details-page .booking-people { gap: clamp(24px, 4vh, 48px); }
.booking-details-page .booking-field, .booking-fees-page .booking-field { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.booking-fees-page .booking-section { gap: 16px; }
.booking-field { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; margin: 0; font-size: var(--booking-label-font); font-weight: 600; line-height: 1.2; }
.booking-field > span { color: var(--web-muted, #53655f); font-size: var(--booking-label-font); line-height: 1.2; white-space: nowrap; }
.desktop-workspace .external-booking-workspace :is(input, select):not([type=checkbox]):not([type=radio]):not([type=file]) {
  width: 100%; min-width: 0; height: var(--booking-input-height); min-height: var(--booking-input-height); padding: 6px 10px;
  border: 1px solid var(--web-line, #bdcdc6); border-radius: 5px; color: var(--web-ink, #293632); background: var(--monet-field, #f4f6f3);
  font-size: var(--booking-input-font); font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums;
}
.desktop-workspace .external-booking-workspace .booking-route-page :is(input, select):not([type=checkbox]):not([type=radio]):not([type=file]) { height: 64px; min-height: 64px; font-size: 28px; }
.desktop-workspace .external-booking-workspace .booking-date input:not([type=checkbox]):not([type=radio]):not([type=file]) { width: calc(12ch + 2.25em); max-width: 100%; font-weight: 700; }
.booking-route-control { display: flex; align-items: center; gap: 6px; min-width: 0; }
.desktop-workspace .external-booking-workspace .booking-route-control button { min-height: 54px; padding: 6px; font-size: 20px; flex: 0 0 auto; }
.booking-sender-row, .booking-recipient-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; }
.booking-recipient-name > span { color: var(--monet-red-ink, #8f3045); }
.desktop-workspace .external-booking-workspace .booking-recipient-name input:not([type=checkbox]):not([type=radio]):not([type=file]) { font-weight: 700; border-color: #9aafa4; background: #fff; }
.booking-goods-row { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) repeat(2, minmax(0, .8fr)); gap: 10px; }
.booking-fees { border-top: 1px solid var(--web-line, #bdcdc6); padding-top: 8px; }
.booking-fee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.booking-fee-grid .booking-field { gap: 8px; }
.booking-fee-note { font-size: 16px; font-weight: 400; line-height: 20px; color: var(--web-muted, #53655f); }
.booking-save-bar { margin-top: auto; padding-top: 2px; flex-shrink: 0; }
.booking-feedback { font-size: 16px; line-height: 20px; margin-bottom: 4px; color: #266846; font-weight: 600; overflow-wrap: anywhere; }
.booking-feedback:has(> span:empty) { display: none; }
.booking-error { color: #a11c32; }
.booking-save-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.booking-step-caption { font-size: 20px; color: var(--web-muted, #53655f); }
.booking-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.booking-total > span { font-size: 18px; color: var(--web-muted, #53655f); }
.booking-total strong { color: var(--web-red, #c40012); font-size: 30px; line-height: 1.2; }
.desktop-workspace .external-booking-workspace :is(button.booking-save, button.booking-next) { min-height: 54px; padding: 8px 20px; color: #fff; background: var(--web-red, #c40012); border-color: var(--web-red, #c40012); font-size: 22px; }
.desktop-workspace .external-booking-workspace button.booking-previous { min-height: 54px; font-size: 20px; }
.booking-review { display: flex; flex-direction: column; padding: 12px; gap: 8px; }
.booking-review-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.booking-review-heading > div > span { display: block; margin-top: 5px; color: var(--web-muted, #53655f); font-size: 16px; font-variant-numeric: tabular-nums; }
.desktop-workspace .external-booking-workspace .booking-review-heading button { padding: 6px; display: grid; place-items: center; }
.booking-review-status { color: var(--web-muted, #53655f); font-size: 14px; line-height: 1.3; font-weight: 400; }
.desktop-workspace .external-booking-workspace .booking-review-status button { padding: 0 4px; min-height: 24px; font-size: 14px; border: 0; background: transparent; text-decoration: underline; }
.booking-cards { display: flex; flex-direction: column; gap: 10px; }
.booking-card { padding: 12px; border: 1px solid var(--web-line, #bdcdc6); border-radius: 6px; background: var(--monet-field, #f4f6f3); }
.booking-card-top, .booking-card-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.booking-card-top > strong { min-width: 0; font-size: 24px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-card-top > span { font-size: 16px; white-space: nowrap; color: var(--web-muted, #53655f); }
.booking-card dl { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.booking-card dl > div { display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: 8px; font-size: 18px; line-height: 1.3; }
.booking-card dt { color: var(--web-muted, #53655f); font-weight: 400; }
.booking-card dd { min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-card-bottom { border-top: 1px solid var(--web-line, #bdcdc6); padding-top: 7px; }
.booking-card-bottom > span { font-size: 12px; color: var(--web-muted, #53655f); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.booking-card-bottom > strong { font-size: 22px; color: var(--monet-red-ink, #8f3045); white-space: nowrap; }
.booking-empty { padding: 24px 12px; color: var(--web-muted, #53655f); font-size: 20px; font-weight: 400; line-height: 1.6; }
.booking-saved-receipt { padding: 8px 10px; border: 1px solid #8caf9c; border-radius: 5px; background: #edf5ee; }
.booking-saved-receipt > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.booking-saved-receipt strong { min-width: 0; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-saved-receipt b { font-size: 18px; color: var(--monet-red-ink, #8f3045); white-space: nowrap; }
.booking-saved-receipt > span { display: block; margin-top: 4px; color: var(--web-muted, #53655f); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-review-pagination { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; font-size: 16px; }
.desktop-workspace .external-booking-workspace .booking-review-pagination button { font-size: 16px; padding: 5px 8px; min-height: 36px; }
@media (min-width: 1081px) and (max-height: 800px) {
  .booking-route-page { gap: 12px; padding: 4px 16px; }
  .booking-route-page .booking-field { gap: 6px; }
  .booking-route-page .booking-date { grid-template-columns: max-content minmax(0, 1fr); gap: 16px; }
  .booking-fee-note { display: none; }
  .booking-review { gap: 6px; }
  .booking-card { padding: 6px 8px; }
  .booking-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0; }
  .booking-card dl > div { gap: 4px; }
  .booking-review:has(.booking-saved-receipt) { padding: 10px; gap: 4px; }
  .booking-review:has(.booking-saved-receipt) .booking-cards { gap: 6px; }
  .booking-review:has(.booking-saved-receipt) .booking-saved-receipt { padding: 6px 8px; }
  .booking-review:has(.booking-saved-receipt) .booking-review-pagination { padding-top: 4px; }
  .booking-review:has(.booking-saved-receipt) .booking-card { padding: 6px 8px; }
  .booking-review:has(.booking-saved-receipt) .booking-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0; }
  .booking-review:has(.booking-saved-receipt) .booking-card dl > div { gap: 4px; }
  .booking-review:has(.booking-saved-receipt) .booking-card-bottom { padding-top: 5px; }
}
@media (min-height: 950px) and (min-width: 1440px) {
  .desktop-workspace .external-booking-workspace { --booking-input-height: 70px; --booking-input-font: 32px; --booking-label-font: 24px; --booking-row-gap: 14px; padding: 20px 24px; gap: 16px; }
  .desktop-workspace .external-booking-workspace h1 { font-size: 36px; }
  .desktop-workspace .external-booking-workspace h2 { font-size: 26px; }
  .desktop-workspace .external-booking-workspace .booking-steps button { font-size: 26px; min-height: 46px; }
  .booking-steps b { width: 40px; height: 40px; font-size: 24px; }
  .booking-columns { gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(340px, 27%); }
  .booking-form, .booking-review { padding: 20px; gap: 14px; }
  .booking-route-page .booking-field > span { font-size: 30px; }
  .desktop-workspace .external-booking-workspace .booking-route-page :is(input, select):not([type=checkbox]):not([type=radio]):not([type=file]) { height: 80px; min-height: 80px; font-size: 36px; }
  .desktop-workspace .external-booking-workspace :is(button.booking-save, button.booking-next, button.booking-previous) { min-height: 70px; font-size: 28px; padding-inline: 24px; }
  .booking-total > span { font-size: 24px; }
  .booking-total strong { font-size: 38px; }
  .booking-card { padding: 18px; }
  .booking-card-top > strong { font-size: 30px; }
  .booking-card dl > div { font-size: 22px; }
  .booking-card dl { margin: 14px 0; gap: 10px; }
  .booking-card-bottom > strong { font-size: 28px; }
}
/* Keep the same three pages on small devices; the document may extend naturally. */
@media (max-width: 1080px) {
  .booking-heading > div > span { display: none; }
  .desktop-workspace .external-booking-workspace .booking-review-toggle { display: inline-flex; }
  .booking-columns { display: flex; align-items: stretch; }
  .booking-form, .booking-review { width: 100%; flex: 1; }
  .external-booking-workspace .booking-review { display: none; }
  .external-booking-workspace[data-booking-view=review] .booking-review { display: flex; }
  .external-booking-workspace[data-booking-view=review] .booking-form { display: none; }
  .booking-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  html:has(.external-booking-workspace), body:has(.external-booking-workspace), #root:has(.external-booking-workspace) { height: auto; min-height: 100%; overflow: visible; }
  .desktop-workspace:has(.external-booking-workspace) { height: auto; min-height: 100dvh; overflow: visible; grid-template-columns: minmax(0, 1fr); }
  .desktop-workspace:has(.external-booking-workspace) > .sidebar { display: none; }
  .desktop-workspace:has(.external-booking-workspace) > main { height: auto; min-height: 100dvh; overflow: visible; }
  .desktop-workspace:has(.external-booking-workspace) > main > .top-strip { min-height: 42px; height: 42px; padding: 0 8px; gap: 8px; }
  .desktop-workspace:has(.external-booking-workspace) .top-strip .user-chip,
  .desktop-workspace:has(.external-booking-workspace) .top-strip .web-reading-mode { display: none; }
  .desktop-workspace:has(.external-booking-workspace) .top-strip .ghost { font-size: 14px; min-height: 36px; padding: 4px; }
  .desktop-workspace .external-booking-workspace { --booking-input-height: 48px; --booking-input-font: 22px; --booking-label-font: 18px; --booking-row-gap: 12px; flex: 1 0 auto; min-height: calc(100dvh - 42px); padding: 8px; gap: 8px; overflow: visible; }
  .desktop-workspace .external-booking-workspace h1 { font-size: 22px; }
  .desktop-workspace .external-booking-workspace .booking-back { font-size: 14px; padding: 5px; }
  .desktop-workspace .external-booking-workspace .booking-review-toggle { font-size: 14px; padding: 5px; }
  .booking-heading { gap: 6px; }
  .booking-heading-actions { gap: 4px !important; }
  .booking-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .booking-step-arrow { display: none; }
  .desktop-workspace .external-booking-workspace .booking-steps button { flex-direction: column; font-size: 16px; gap: 4px; padding: 3px 0; }
  .booking-steps b { width: 24px; height: 24px; font-size: 16px; }
  .booking-columns { flex: 1 0 auto; }
  .booking-form, .booking-review { padding: 10px; flex: 1 0 auto; }
  .booking-route-page { padding: 8px 0 16px; gap: 22px; }
  .booking-route-page .booking-date { width: max-content; max-width: 100%; min-width: 0; }
  .booking-route-page .booking-field > span { font-size: 20px; }
  .booking-route-page .booking-field { gap: 8px; }
  .booking-stations-row { gap: 16px; }
  .desktop-workspace .external-booking-workspace .booking-route-page :is(input, select):not([type=checkbox]):not([type=radio]):not([type=file]) { height: 54px; min-height: 54px; font-size: 24px; }
  .booking-route-control { flex-wrap: wrap; }
  .desktop-workspace .external-booking-workspace .booking-route-control button { min-height: 40px; font-size: 16px; }
  .booking-details-page, .booking-fees-page { padding: 8px 0 16px; gap: 24px; }
  .booking-details-page .booking-people { gap: 24px; }
  .booking-field { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .booking-sender-row, .booking-recipient-row { grid-template-columns: 1fr 1.2fr; gap: 12px; }
  .booking-goods-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .booking-goods-row > .booking-field:first-child { grid-column: 1 / -1; }
  .booking-fee-grid { gap: 12px; }
  .booking-fee-grid .booking-field { gap: 5px; }
  .booking-fee-note { font-size: 14px; }
  .booking-save-bar { padding-top: 12px; }
  .booking-save-actions { gap: 8px; flex-wrap: wrap; }
  .desktop-workspace .external-booking-workspace :is(button.booking-save, button.booking-next, button.booking-previous) { min-height: 48px; padding: 8px 12px; font-size: 20px; }
  .booking-total { gap: 6px; margin-left: auto; }
  .booking-total > span { font-size: 16px; }
  .booking-total strong { font-size: 28px; }
  .desktop-workspace .external-booking-workspace button.booking-save { width: 100%; }
  .booking-cards { display: flex; }
  .booking-review { min-height: 350px; }
  .booking-review-pagination { padding-top: 16px; }
}
