/* =====================================================================
   p-order.css — the customer's ordering flow and live tracking
   (customer/new-order.php, customer/track.php).  Loaded after cx.css.
   Every class here is prefixed o… so it can never collide with the kit.
   ===================================================================== */

/* guests and staff get the public shell, which has no .wrap of its own */
.o-page { padding-block: clamp(24px, 3vw, 44px) 72px; }

/* the rail sticks under the floating public header, not under a portal bar */
.oform .grid-main > .rail,
.otrack > .rail { top: calc(var(--head-h) + 36px); }
@media (max-height: 760px) {
  .oform .grid-main > .rail,
  .otrack > .rail { position: static; }
}

/* ---------- new order: progress strip ---------- */
.ostrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ostrip a { display: flex; align-items: center; gap: .8rem; min-height: 60px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--muted); text-decoration: none; font-weight: 700; transition: border-color var(--ease), background var(--ease), color var(--ease); }
.ostrip a:hover { border-color: rgba(var(--brand-rgb), .45); color: var(--ink); }
.ostrip .no, .ostep .no { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); color: var(--muted); font-weight: 800; }
.ostrip li.is-done a { border-color: rgba(var(--brand-rgb), .4); color: var(--ink); }
.ostrip li.is-done .no, .ostep.is-done .ostep-h .no { background: var(--brand); border-color: var(--brand); color: #fff; }
.ostrip li.is-done .no .num, .ostep.is-done .ostep-h .no .num { display: none; }
.ostrip li.is-done .no::before, .ostep.is-done .ostep-h .no::before { content: "\F26E"; font-family: "bootstrap-icons"; font-size: 1.1rem; line-height: 1; }
@media (max-width: 575.98px) {
  .ostrip { gap: 8px; }
  .ostrip a { flex-direction: column; justify-content: center; gap: .3rem; padding: 10px 6px; text-align: center; line-height: 1.35; }
}

/* ---------- new order: the three steps ---------- */
.ostep { min-width: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.ostep-h { display: flex; align-items: flex-start; gap: .9rem; padding: clamp(16px, 2vw, 22px) clamp(16px, 2vw, 24px) 6px; }
.ostep-h .no { width: 40px; height: 40px; background: var(--brand); border-color: var(--brand); color: #fff; }
.ostep-h h2 { font-size: 20px; margin: 0; }
.ostep-h p { margin: .1rem 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.ostep-b { display: grid; gap: 1.5rem; padding: 14px clamp(16px, 2vw, 24px) clamp(18px, 2vw, 24px); }
.ostep-b > .fm-section { margin: 0; padding: 0; border: 0; }
.ostep-b > .fm-section + .fm-section { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.ostep textarea.fm-input { min-height: 96px; }

.odot { display: inline-block; width: 12px; height: 12px; margin-inline-end: .5rem; border-radius: 50%; border: 3px solid var(--green); vertical-align: -1px; }
.odot.to { border-radius: 3px; border-color: var(--ink); background: var(--ink); }

.osaved { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.osaved > .muted { font-weight: 700; }
.osaved .btx i { color: var(--brand-ink); }

/* address field + its "pin on map" button; the suggestion list drops from .oadr */
.oadr { position: relative; }
.oadr-in { display: flex; flex-wrap: wrap; gap: .5rem; }
.oadr-in .fm-input { flex: 1 1 200px; min-width: 0; }
.oadr-in .btx { flex: 0 0 auto; }
.btx.is-armed { background: rgba(var(--brand-rgb), .1); border-color: var(--brand); color: var(--brand-ink); }
.btx.is-armed:hover { background: rgba(var(--brand-rgb), .16); color: var(--brand-ink); }

.omap { display: grid; gap: .6rem; }
.omap-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.omap-bar .fm-hint { flex: 1 1 220px; margin: 0; }
#mapHint.err { color: var(--danger); font-weight: 700; }
.oguide summary { display: flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--brand-ink); font-weight: 700; cursor: pointer; }
.oguide ol { margin: 0 0 .4rem; padding-inline-start: 1.5rem; display: grid; gap: .3rem; color: var(--muted); font-size: 15px; }

/* vehicle cards: the radio is a sibling in front of its label */
.ocats { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.ocats > input { position: absolute; opacity: 0; pointer-events: none; }
.ocat { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "ico" "t" "p"; gap: .35rem; justify-items: stretch; align-items: center; padding: 16px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--surface); cursor: pointer; transition: border-color var(--ease), background var(--ease), transform var(--ease), box-shadow var(--ease); }
.ocat:hover { border-color: rgba(var(--brand-rgb), .45); transform: translateY(-2px); }
.ocat-ico { grid-area: ico; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); font-size: 1.6rem; transition: background var(--ease), color var(--ease); }
.ocat-ico.ico-veh { display: flex; width: 100%; height: 84px; border-radius: 16px; padding: 8px 12px; }
.ocat-t { grid-area: t; display: grid; min-width: 0; }
.ocat-t b { font-weight: 800; font-size: 17px; }
.ocat-sub { color: var(--muted); font-size: 15px; line-height: 1.5; }
.ocat-price { grid-area: p; font-weight: 800; font-size: 18px; color: var(--brand-ink); }
.ocat-tick { position: absolute; top: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: transparent; font-size: 15px; transition: all var(--ease); }
/* chosen: the same deep card as the sign-up choices (cx.css .wz-card), the vehicle tile stays light so the picture reads */
.ocats > input:checked + .ocat { border-color: transparent; background: linear-gradient(160deg, #2a2a2a, var(--accent)); color: #fff; box-shadow: 0 12px 26px rgba(10, 20, 12, .25); }
.ocats > input:checked + .ocat .ocat-sub { color: rgba(255,255,255,.78); }
.ocats > input:checked + .ocat .ocat-price { color: #5be06e; }
.ocats > input:checked + .ocat .ocat-tick { border-color: transparent; background: #fff; color: var(--brand-ink); }
.ocats > input:checked + .ocat .ocat-ico { background: var(--brand); color: #fff; }
.ocats > input:checked + .ocat .ocat-ico.ico-veh { background: linear-gradient(180deg, #fff, #e3f3e5); }
@media (prefers-reduced-motion: reduce) { .ocat:hover { transform: none; } }
.ocats > input:focus-visible + .ocat { outline: 3px solid rgba(var(--brand-rgb), .55); outline-offset: 2px; }

.oopt { align-items: flex-start; margin-top: 1rem; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.oopt b { display: block; font-size: 16px; }

/* ---------- the rail (new order and tracking) ---------- */
.orail .box-h h2 { display: flex; align-items: center; }
.orail .legs { margin-bottom: 14px; }
.o-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.box .kv { margin-bottom: 0; }
.ofare { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block: 14px; padding: 12px 16px; border-radius: 16px; background: rgba(var(--brand-rgb), .07); font-weight: 700; }
.ofare b { font-size: 26px; font-weight: 800; color: var(--brand-ink); line-height: 1.3; }
.ofoot { margin: .6rem 0 0; text-align: center; }

/* ---------- tracking ---------- */
.ocopy { display: inline-flex; align-items: center; gap: .6rem; padding-block: 4px; padding-inline: 14px 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.oacts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.oacts > form { flex: 1 1 180px; margin: 0; }

.otmain { display: grid; gap: 0; min-width: 0; }
.otmap { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.otmap .map { height: clamp(380px, 60vh, 640px); border: 0; border-radius: 0; }

.osheet { container-type: inline-size; container-name: osheet; position: relative; display: grid; gap: 1.1rem; margin-top: clamp(14px, 1.6vw, 22px); padding: clamp(18px, 2vw, 26px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.osheet-grab { display: none; }
.osheet-t { margin: 0; font-size: 18px; }

.odrv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem 1rem; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); }
.odrv .avatar-lg { background: var(--surface); }
.odrv-t { display: grid; min-width: 0; }
.odrv-l { color: var(--muted); font-size: 15px; font-weight: 700; }
.odrv-t b { font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.odrv-v { color: var(--muted); font-weight: 600; }

.owait { display: flex; align-items: center; gap: 1rem; padding: 14px 16px; border: 1.5px dashed rgba(var(--brand-rgb), .4); border-radius: 18px; background: rgba(var(--brand-rgb), .05); }
.owait p { margin: 0; font-weight: 600; }
.owait-pulse { width: 14px; height: 14px; flex: 0 0 auto; border-radius: 50%; background: var(--green); animation: o-pulse 1.6s ease-out infinite; }
@keyframes o-pulse { from { box-shadow: 0 0 0 0 rgba(var(--green-rgb), .5); } to { box-shadow: 0 0 0 16px rgba(var(--green-rgb), 0); } }

/* the stepper turns vertical when the SHEET is narrow, not only when the
   screen is: next to the account menu and the rail it is only ~600px wide */
@container osheet (max-width: 719.98px) {
  .osheet .track { grid-auto-flow: row; gap: 0; }
  .osheet .track li { grid-template-columns: 34px minmax(0, 1fr); justify-items: start; align-items: center; gap: .8rem; padding: 0 0 18px; text-align: start; min-height: 52px; }
  .osheet .track li:last-child { padding-bottom: 0; }
  .osheet .track li::after { top: 34px; bottom: -4px; height: auto; inset-inline-start: 16px; inset-inline-end: auto; border-top: 0; border-inline-start: 3px dashed #cbd3cb; }
  .osheet .track li.is-done::after { border-inline-start-style: solid; border-color: var(--brand); }
  .osheet .track li:first-child::after { display: none; }
  .osheet .track li:not(:first-child)::after { display: block; top: -18px; bottom: auto; height: 18px; }
}

/* the delivery code: one box per digit */
.ocode-v { display: flex; justify-content: center; gap: 10px; margin-bottom: .8rem; }
.ocode-d { width: 58px; height: 68px; display: grid; place-items: center; border: 1.5px solid rgba(var(--brand-rgb), .35); border-radius: 16px; background: rgba(var(--brand-rgb), .06); color: var(--brand-ink); font-size: 30px; font-weight: 800; }
.ocode .fm-hint { margin: 0 0 .8rem; text-align: center; }
.ocancel { margin-top: .9rem; }

@media (max-width: 575.98px) {
  .odrv { grid-template-columns: auto minmax(0, 1fr); }
  .odrv .btx { grid-column: 1 / -1; }
}

/* phone: the status card rides up over the map's lower edge like a bottom
   sheet. The map keeps 28px of its own padding underneath, so the sheet
   covers that — never Google's logo and terms links. */
@media (max-width: 767.98px) {
  .otmap { overflow: visible; padding-bottom: 28px; border: 0; border-radius: 0; box-shadow: none; }
  .otmap .map { height: clamp(340px, 56vh, 520px); border: 1px solid var(--line); border-radius: 22px; }
  .osheet { z-index: 2; margin-top: -28px; padding-top: 14px; border-radius: 26px 26px 20px 20px; box-shadow: var(--shadow-lg); }
  .osheet-grab { display: block; width: 44px; height: 5px; margin: 0 auto 2px; border-radius: 5px; background: var(--line); }
  .ocode-d { width: 52px; height: 62px; font-size: 26px; }
}

/* =====================================================================
   Wizard (customer/new-order.php) — the web-design skill's ShopLab checkout:
   numbered step cards, one open at a time; a finished step folds into one line
   with "edit"; the summary rail stays beside it. Still one simple question per
   card. Without JavaScript every card is open and the form posts as one page.
   ===================================================================== */
.wz-main { display: grid; gap: 14px; min-width: 0; align-content: start; counter-reset: wz; }

.wz-step { counter-increment: wz; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: none; }
.oform.wz-on .wz-step { display: block; }
.wz-on .wz-step.is-cur { border-color: rgba(var(--brand-rgb), .45); box-shadow: var(--shadow); animation: wz-in 260ms cubic-bezier(.2,.7,.3,1); }
@keyframes wz-in { from { opacity: .6; transform: translateY(8px); } }

.wz-head { display: flex; align-items: center; gap: .9rem; padding: 16px 20px; }
.wz-no { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-weight: 800; }
.wz-no::before { content: counter(wz); }
.wz-step.is-cur .wz-no { background: var(--brand); color: #fff; }
.wz-step.is-done .wz-no { background: var(--ok); color: #fff; font-size: 0; }
.wz-step.is-done .wz-no::before { content: "\F26E"; font-family: "bootstrap-icons"; font-size: 1.2rem; }
.wz-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 19px; line-height: 1.4; }
.wz-step:not(.is-cur):not(.is-done) .wz-head h2 { color: var(--muted); }
.wz-edit { display: none; min-height: 44px; padding: 0 .8rem; border: 0; background: none; color: var(--brand-ink); font: 800 15px var(--font); text-decoration: underline; cursor: pointer; }
.wz-on .wz-step.is-done .wz-edit { display: inline-block; }
.wz:not(.wz-on) .wz-edit { display: none; }
.wz-done { display: none; margin: 0; padding: 0 20px 16px; padding-inline-start: 74px; color: var(--muted); overflow-wrap: anywhere; }
.wz-on .wz-step.is-done .wz-done { display: block; }
.wz-done:empty { display: none !important; }

.wz-pane { padding: 4px 20px 22px; }
.wz-on .wz-step:not(.is-cur) .wz-pane { display: none; }
.wz-help { margin: 0 0 1.1rem; color: var(--muted); font-size: 16px; }
.wz-body { display: grid; gap: 1.3rem; margin-top: 0; }
.wz-step .fm-input { min-height: 56px; font-size: 17px; }
.wz-step textarea.fm-input { min-height: 110px; }

/* the one map, carried into whichever location card is open */
.wz-map { margin-top: 1.3rem; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.wz-map[hidden] { display: none; }
.wz-map .map { border-radius: 16px; }

.wz-more { border: 1.5px dashed #c6cec6; border-radius: 16px; padding: 4px 16px; }
.wz-more summary { display: flex; align-items: center; gap: .6rem; min-height: 50px; cursor: pointer; color: var(--brand-ink); font-weight: 800; list-style: none; }
.wz-more summary::-webkit-details-marker { display: none; }
.wz-more[open] { padding-bottom: 16px; border-style: solid; }

/* Back / Continue, inside the open card */
.wz-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.4rem; padding: 0; background: none; position: static; }
.wz-msg { flex: 1 1 200px; margin: 0; color: var(--danger); font-weight: 700; }
.wz-msg:empty { display: none; }
.wz-nav .btx-lg { min-width: 180px; margin-inline-start: auto; }
.wz-nav #wzBack { margin-inline-start: 0; min-width: 0; }
.wz:not(.wz-on) .wz-nav #wzNext, .wz:not(.wz-on) .wz-nav #wzBack { display: none; }
.wz:not(.wz-on) .wz-step { margin-bottom: 14px; }

/* the summary rail */
.orail .box-h { display: flex; align-items: center; justify-content: space-between; }
.wz-fare, .ofare { padding: 16px 20px; border-radius: 18px; background: rgba(var(--brand-rgb), .06); }
.ofare b { font-size: 30px; }
.leg > .text-link { align-self: start; min-height: 36px; font-size: 15px; }
@media (max-width: 1099.98px) {
  /* the library collapses its summary on phones: route and price stay, the detail rows fold away */
  .oform .grid-main > .rail { order: -1; }
  .oform .orail #summary, .oform .orail .ofoot { display: none; }
}
@media (max-width: 575.98px) { .wz-nav .btx-lg { flex: 1 1 100%; } .wz-nav #wzBack { flex: 0 0 auto; } .wz-head { padding: 14px 16px; } .wz-pane { padding: 4px 16px 20px; } .wz-done { padding-inline-start: 70px; } }
@media (prefers-reduced-motion: reduce) { .wz-on .wz-step.is-cur { animation: none; } }

/* the map in the rail (every step except the two that place the pins) */
.orail-map { margin-bottom: 14px; }
.orail-map:empty { display: none; }
.wz-map.is-rail { margin: 0; }
.wz-map.is-rail .omap-bar, .wz-map.is-rail .oguide { display: none; }
.wz-map.is-rail .map { height: 230px; border-radius: 16px; }
@media (max-width: 1099.98px) { .wz-map.is-rail .map { height: 170px; } }
.wz-map.is-rail .leaflet-control-layers { display: none; }

/* ---------- the hero of the order page (public shell): HeroLab #h01, compact ---------- */
.oh { padding-block: clamp(20px, 3vw, 36px) 0; }
.oh-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.oh-copy h1 { margin: 0 0 .5rem; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.15; }
.oh-lede { margin: 0 0 1.1rem; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.oh-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.oh-chips li { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 15px; }
.oh-chips i { color: var(--brand-ink); }
.oh-art { position: relative; }
.oh-art picture { display: block; }
.oh-art img { display: block; width: 100%; height: clamp(200px, 22vw, 270px); object-fit: cover; border-radius: 28px; border-end-start-radius: 110px; box-shadow: var(--shadow-lg); }
.oh-float { position: absolute; display: inline-flex; align-items: center; gap: .5rem; padding: 8px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-lg); font-weight: 800; font-size: 15px; }
.oh-float i { color: var(--brand-ink); }
.oh-float.a { inset-block-start: 16px; inset-inline-start: -14px; }
.oh-float.b { inset-block-end: 18px; inset-inline-end: 18px; }
@media (max-width: 860px) {
  .oh-in { grid-template-columns: minmax(0, 1fr); }
  .oh-art { order: -1; }
  .oh-float.a { inset-inline-start: 12px; }
}
@media (max-width: 575.98px) { .oh-chips { display: none; } .oh-art img { height: 150px; } .oh-copy h1 { font-size: 32px; } .oh-lede { margin-bottom: 0; } }

.orail-near { display: flex; align-items: center; gap: .5rem; margin: -4px 0 14px; padding: 8px 12px; border-radius: 12px; background: rgba(var(--brand-rgb), .07); color: var(--brand-ink); font-weight: 700; font-size: 15px; line-height: 1.5; }
.orail-near[hidden] { display: none; }
