body:not(.customer-auth-resolved) #authScreen,
body:not(.customer-auth-resolved) #appScreen { display: none !important; }
html.customer-session-cached body:not(.customer-auth-resolved) #authScreen { display: none !important; }
html.customer-session-cached body:not(.customer-auth-resolved) #appScreen { display: block !important; }
html.customer-session-cached body[data-customer-page]:not([data-customer-page="home"]) #appScreen .hero,
html.customer-session-cached body[data-customer-page]:not([data-customer-page="home"]) #appScreen .cta-grid { display: none !important; }
html.customer-session-cached body[data-customer-page="new-order"] #newOrderPanel,
html.customer-session-cached body[data-customer-page="progress"] #progressPanel,
html.customer-session-cached body[data-customer-page="support"] #supportPanel { display: block !important; }
.customer-page-hidden { display: none !important; }
#appScreen.customer-subpage .app-shell { padding-top: 18px; }
#appScreen.customer-subpage #inlinePageHost { margin-top: 0; }

/* Customer sign-up phone verification */
#authScreen .customer-phone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}
#authScreen .customer-phone-row .secondary,
#authScreen .customer-verification-row .secondary {
  min-width: 92px;
  border-color: #5c91d4;
  color: #164b8b;
  background: #edf5ff;
}
#authScreen .customer-verification-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
}
#authScreen .customer-verification-row.hidden { display: none; }
#authScreen .customer-verification-row > span {
  position: absolute;
  right: 105px;
  bottom: 15px;
  color: #f87171;
  font-size: 10px;
  font-weight: 900;
}
#authScreen .customer-verified-message {
  padding: 9px 11px;
  border: 1px solid rgba(52, 211, 153, .45);
  border-radius: 10px;
  color: #86efac;
  background: rgba(6, 78, 59, .3);
  font-size: 11px;
  font-weight: 900;
}
#authScreen .customer-verified-message.hidden { display: none; }
#authScreen .customer-verification-status {
  min-height: 0;
  color: #fca5a5;
  font-size: 10px;
  font-weight: 800;
}
@media (max-width: 380px) {
  #authScreen .customer-phone-row { grid-template-columns: 1fr; }
  #authScreen .customer-phone-row .secondary { width: 100%; }
}

/* Active delivery route timeline */
#progressPanel .order-route-timeline {
  display: grid;
  margin: 0 0 10px;
}
#progressPanel .order-route-point {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  min-height: 49px;
}
#progressPanel .order-route-point:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;
  bottom: -5px;
  left: 11px;
  border-left: 2px dotted #ff5a22;
}
#progressPanel .route-point-marker {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin: 1px 0 0 4px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #f15a24;
  box-shadow: 0 0 0 1px rgba(241, 90, 36, .12);
}
#progressPanel .order-route-point.waypoint .route-point-marker {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  margin-left: 5px;
  background: #ff8a3d;
}
#progressPanel .route-point-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-bottom: 8px;
}
#progressPanel .route-point-copy b {
  color: #172033;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}
#progressPanel .route-point-copy span {
  color: #5c6b7d;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
#progressPanel .order-route-point:last-child {
  min-height: 38px;
}

@media (max-width: 640px) {
  #progressPanel .order-route-point { min-height: 46px; }
  #progressPanel .route-point-copy span { font-size: 12px; }
}

/* Professional delivery request workspace */
body[data-customer-page="new-order"] #appScreen.app-screen {
  background: #f3f6fa;
}
body[data-customer-page="new-order"] #newOrderPanel {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce4ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(30, 51, 80, .09);
}
body[data-customer-page="new-order"] #newOrderPanel > .panel-head {
  min-height: 126px;
  margin: 0;
  padding: 26px 32px;
  align-items: flex-start;
  color: #fff;
  background: linear-gradient(125deg, #0a376b 0%, #0d5db7 62%, #1682d4 100%);
}
.order-page-heading { display: grid; gap: 5px; }
.order-page-heading .order-eyebrow {
  color: #9ed4ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}
body[data-customer-page="new-order"] #newOrderPanel .order-page-heading h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.04em;
}
.order-page-heading p { margin: 1px 0 0; color: #d8ebff; font-size: 13px; }
body[data-customer-page="new-order"] #closeOrderForm {
  min-width: 68px;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.1);
}
.order-form-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 19px 32px;
  list-style: none;
  border-bottom: 1px solid #e5ebf3;
  background: #f9fbfd;
}

#newOrderPanel form > .form-grid {
  display: flex;
  flex-direction: column;
}
#newOrderPanel .order-section-vehicle { order: 1; }
#newOrderPanel .order-section-condition { order: 2; }
#newOrderPanel .order-section-payment { order: 3; }
#newOrderPanel .order-section-route { order: 4; }
.order-form-steps::before {
  content: "";
  position: absolute;
  top: 35px;
  right: calc(12.5% + 18px);
  left: calc(12.5% + 18px);
  height: 2px;
  background: #dbe4ef;
}
.order-form-steps li {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #708095;
  font-size: 12px;
  font-weight: 800;
}
.order-form-steps li span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #d8e2ee;
  border-radius: 50%;
  color: #718096;
  background: #fff;
}
.order-form-steps li.active { color: #0b5fc1; }
.order-form-steps li.active span { border-color: #1269c7; color: #fff; background: #1269c7; box-shadow: 0 0 0 5px rgba(18,105,199,.1); }
body[data-customer-page="new-order"] #newOrderPanel > form { padding: 16px 20px 20px; }
body[data-customer-page="new-order"] #newOrderPanel > form > .form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "vehicle extra" "route route" "payment payment";
  gap: 10px;
}
body[data-customer-page="new-order"] #newOrderPanel > form > .form-grid > .form-section:nth-child(1) { grid-area: vehicle; }
body[data-customer-page="new-order"] #newOrderPanel > form > .form-grid > .form-section:nth-child(2) { grid-area: route; }
body[data-customer-page="new-order"] #newOrderPanel > form > .form-grid > .form-section:nth-child(3) { grid-area: extra; }
body[data-customer-page="new-order"] #newOrderPanel > form > .form-grid > .form-section:nth-child(4) { grid-area: payment; }
body[data-customer-page="new-order"] #newOrderPanel .form-section {
  margin: 0;
  padding: 14px;
  border: 1px solid #dee6f0;
  border-left: 1px solid #dee6f0 !important;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(25, 48, 78, .04);
}
body[data-customer-page="new-order"] #newOrderPanel .form-section-title {
  margin: 0 0 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8edf4;
  color: #152c47;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.02em;
}
body[data-customer-page="new-order"] #newOrderPanel .section-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  background: #176fdb;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(23, 111, 219, .2);
}
body[data-customer-page="new-order"] #newOrderPanel label,
body[data-customer-page="new-order"] #newOrderPanel .segmented-label {
  color: #44556a;
  font-size: 12px;
  font-weight: 800;
}
body[data-customer-page="new-order"] #newOrderPanel input,
body[data-customer-page="new-order"] #newOrderPanel select,
body[data-customer-page="new-order"] #newOrderPanel textarea {
  min-height: 40px;
  border: 2px solid #ced9e6;
  border-radius: 10px;
  color: #14263d;
  background: #fbfcfe;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.025);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body[data-customer-page="new-order"] #newOrderPanel input:focus,
body[data-customer-page="new-order"] #newOrderPanel select:focus,
body[data-customer-page="new-order"] #newOrderPanel textarea:focus {
  border-color: #2777cc;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(39,119,204,.11);
}
body[data-customer-page="new-order"] #newOrderPanel .segment {
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #52657a;
  background: transparent;
  box-shadow: none;
}
body[data-customer-page="new-order"] #newOrderPanel .segment:has(input:checked) {
  color: #0b5bac;
  background: transparent;
  box-shadow: none;
}
body[data-customer-page="new-order"] #newOrderPanel .segment input,
body[data-customer-page="new-order"] #newOrderPanel .segment input:focus,
body[data-customer-page="new-order"] #newOrderPanel .checkbox-segment input,
body[data-customer-page="new-order"] #newOrderPanel .checkbox-segment input:focus {
  min-height: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}
body[data-customer-page="new-order"] #newOrderPanel .segment:focus,
body[data-customer-page="new-order"] #newOrderPanel .segment:focus-visible {
  outline: 0;
  box-shadow: none;
}
body[data-customer-page="new-order"] #newOrderPanel input[type="radio"],
body[data-customer-page="new-order"] #newOrderPanel input[type="radio"]:focus,
body[data-customer-page="new-order"] #newOrderPanel input[type="checkbox"],
body[data-customer-page="new-order"] #newOrderPanel input[type="checkbox"]:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}
body[data-customer-page="new-order"] #newOrderPanel .form-section > .form-grid { gap: 7px 9px; }
body[data-customer-page="new-order"] #newOrderPanel .segmented-row { gap: 8px; }
body[data-customer-page="new-order"] #newOrderPanel .segmented-label { gap: 7px; }
body[data-customer-page="new-order"] #newOrderPanel .segmented-group { gap: 5px 12px; }
body[data-customer-page="new-order"] #newOrderPanel .inline-option-row {
  gap: 6px;
  min-height: 28px;
}
body[data-customer-page="new-order"] #newOrderPanel .toggle-row { min-height: 34px; }

body[data-customer-page="new-order"] #newOrderPanel .condition-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
body[data-customer-page="new-order"] #newOrderPanel .condition-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #d5e0ee;
  border-radius: 12px;
  background: #fff;
}
body[data-customer-page="new-order"] #newOrderPanel .condition-card > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
body[data-customer-page="new-order"] #newOrderPanel .condition-card strong {
  color: #17233a;
  font-size: 12px;
  font-weight: 900;
}
body[data-customer-page="new-order"] #newOrderPanel .condition-card > div:first-child > span {
  color: #7b8798;
  font-size: 10px;
  white-space: nowrap;
}
body[data-customer-page="new-order"] #newOrderPanel .compact-choice {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 999px;
  background: #dfe6f0;
}
body[data-customer-page="new-order"] #newOrderPanel .compact-choice label {
  display: block;
  cursor: pointer;
}
body[data-customer-page="new-order"] #newOrderPanel .compact-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}
body[data-customer-page="new-order"] #newOrderPanel .compact-choice label span {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  color: #66758a;
  font-size: 10px;
  font-weight: 900;
  transition: .16s ease;
}
body[data-customer-page="new-order"] #newOrderPanel .compact-choice input:checked + span {
  color: #fff;
  background: #1770dd;
  box-shadow: 0 2px 7px rgba(23, 112, 221, .26);
}
body[data-customer-page="new-order"] #newOrderPanel .condition-file-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: #aab8ca;
  font-size: 16px;
}
body[data-customer-page="new-order"] #newOrderPanel .condition-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: end;
  margin-top: 10px;
}
body[data-customer-page="new-order"] #newOrderPanel .condition-detail-grid > .segmented-label,
body[data-customer-page="new-order"] #newOrderPanel .insurance-file-field {
  display: grid;
  gap: 7px;
}
body[data-customer-page="new-order"] #newOrderPanel .transport-type-tabs,
body[data-customer-page="new-order"] #newOrderPanel .payment-method-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
body[data-customer-page="new-order"] #newOrderPanel .transport-type-tabs .segment,
body[data-customer-page="new-order"] #newOrderPanel .payment-method-tabs .segment {
  justify-content: center;
  min-height: 40px;
  border: 1px solid #cdd9e8;
  border-radius: 10px;
  background: #fff;
}
body[data-customer-page="new-order"] #newOrderPanel .transport-type-tabs .segment:has(input:checked),
body[data-customer-page="new-order"] #newOrderPanel .payment-method-tabs .segment:has(input:checked) {
  border-color: #176fdb;
  color: #fff;
  background: #176fdb;
  box-shadow: 0 4px 10px rgba(23, 111, 219, .18);
}
body[data-customer-page="new-order"] #newOrderPanel .insurance-file-field input[type="file"] {
  border-style: dashed;
  background: #fbfcff;
}
body[data-customer-page="new-order"] #newOrderPanel .insurance-guide {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #ffb8b8;
  border-radius: 11px;
  color: #c43b3b;
  background: #fff3f3;
  font-size: 11px;
  line-height: 1.45;
}
body[data-customer-page="new-order"] #newOrderPanel .insurance-guide > b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: #ef7777;
}
body[data-customer-page="new-order"] #newOrderPanel .insurance-guide span > strong { margin-right: 6px; }

body[data-customer-page="new-order"] #newOrderPanel .payment-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
body[data-customer-page="new-order"] #newOrderPanel .payment-main-column,
body[data-customer-page="new-order"] #newOrderPanel .fuel-info-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d5e1f0;
  border-radius: 13px;
  background: #f8fbff;
}
body[data-customer-page="new-order"] #newOrderPanel .payment-main-column { background: #fff; }
body[data-customer-page="new-order"] #newOrderPanel .payment-help {
  margin: -4px 0 2px;
  color: #7a8798;
  font-size: 10px;
}
body[data-customer-page="new-order"] #newOrderPanel .fuel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
body[data-customer-page="new-order"] #newOrderPanel .fuel-card-head strong { color: #17233a; font-size: 13px; }
body[data-customer-page="new-order"] #newOrderPanel .fuel-card-head span { color: #7c8898; font-size: 10px; }
body[data-customer-page="new-order"] #newOrderPanel .nonsmoking-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
}
body[data-customer-page="new-order"] #newOrderPanel .nonsmoking-option input { min-height: 16px; }
body[data-customer-page="new-order"] #newOrderPanel .tax-toggle-row {
  padding-top: 4px;
  border-top: 1px solid #e0e8f2;
}
body[data-customer-page="new-order"] #newOrderPanel .payment-request-fields {
  gap: 9px;
  margin-top: 10px;
}
body[data-customer-page="new-order"] #newOrderPanel .mini-map-button {
  min-height: 32px;
  border-radius: 8px;
  color: #155da9;
  background: #eef6ff;
}
body[data-customer-page="new-order"] #newOrderPanel .address-map-wrap {
  padding: 10px;
  border: 1px solid #dce6f0;
  border-radius: 13px;
  background: #f8fafc;
}
body[data-customer-page="new-order"] #newOrderPanel .route-map { height: 270px; border-radius: 11px; }
body[data-customer-page="new-order"] #newOrderPanel .waypoint-row {
  padding: 14px;
  border: 1px dashed #b9cbe0;
  border-radius: 12px;
  background: #f8fbff;
}
.order-submit-bar {
  position: sticky;
  bottom: 16px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid #cbd9e8;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 32px rgba(24, 54, 91, .16);
  backdrop-filter: blur(12px);
}
.order-submit-bar > div { display: grid; gap: 3px; }
.order-submit-bar strong { color: #1b3049; font-size: 14px; }
.order-submit-bar span { color: #718096; font-size: 11px; }
body[data-customer-page="new-order"] #createOrderButton {
  min-width: 210px;
  min-height: 44px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 900;
  background: linear-gradient(110deg, #0e58b0, #087ee0);
  box-shadow: 0 8px 20px rgba(9, 99, 196, .24);
}
@media (max-width: 820px) {
  body[data-customer-page="new-order"] #newOrderPanel { border-radius: 14px; }
  body[data-customer-page="new-order"] #newOrderPanel > .panel-head { min-height: 112px; padding: 21px 18px; }
  .order-page-heading p { max-width: 250px; font-size: 11px; }
  .order-form-steps { padding: 14px 8px; }
  .order-form-steps::before { top: 30px; right: 13%; left: 13%; }
  .order-form-steps li { flex-direction: column; gap: 5px; font-size: 10px; }
  .order-form-steps li span { width: 30px; height: 30px; }
  body[data-customer-page="new-order"] #newOrderPanel > form { padding: 9px; }
  body[data-customer-page="new-order"] #newOrderPanel > form > .form-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "vehicle" "route" "extra" "payment";
    gap: 8px;
  }
  body[data-customer-page="new-order"] #newOrderPanel .form-section { padding: 11px; border-radius: 10px; }
  body[data-customer-page="new-order"] #newOrderPanel .form-section-title { margin-bottom: 7px; padding-bottom: 6px; }
  body[data-customer-page="new-order"] #newOrderPanel .condition-card-grid { grid-template-columns: 1fr 1fr; }
  body[data-customer-page="new-order"] #newOrderPanel .condition-detail-grid,
  body[data-customer-page="new-order"] #newOrderPanel .payment-workspace { grid-template-columns: 1fr; }
  body[data-customer-page="new-order"] #newOrderPanel .route-map { height: 210px; }
  .order-submit-bar { position: static; align-items: stretch; flex-direction: column; gap: 8px; margin-top: 9px; padding: 10px; }
  body[data-customer-page="new-order"] #createOrderButton { width: 100%; min-width: 0; }
}
@media (max-width: 520px) {
  body[data-customer-page="new-order"] #newOrderPanel .condition-card-grid { grid-template-columns: 1fr; }
}
