/* V36 UI FIX — preserve V35 features, improve mobile booking layout */
@media (max-width: 640px) {
  html, body { min-height:100%; overflow-x:hidden!important; }
  body.customer-one-screen {
    height:auto!important;
    min-height:100dvh!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    background:#f8f5fb!important;
  }
  body.customer-one-screen .top {
    position:sticky!important;
    top:0!important;
    z-index:120!important;
    height:64px!important;
    min-height:64px!important;
    overflow:visible!important;
    background:#fff!important;
    border-bottom:1px solid #eee7f4!important;
  }
  body.customer-one-screen .top .bar {
    height:64px!important;
    min-height:64px!important;
    padding:7px 14px!important;
  }
  body.customer-one-screen .logo{width:42px!important;height:42px!important;border-radius:14px!important;font-size:21px!important}
  body.customer-one-screen .brand b{font-size:15px!important;letter-spacing:-.2px!important}
  body.customer-one-screen .brand small{display:none!important}
  body.customer-one-screen .header-actions{display:none!important}

  body.customer-one-screen .wrap {
    height:auto!important;
    min-height:calc(100dvh - 64px)!important;
    padding:10px 10px 150px!important;
    overflow:visible!important;
  }
  body.customer-one-screen #customerView {
    height:auto!important;
    min-height:100%!important;
    padding:0!important;
    overflow:visible!important;
  }
  body.customer-one-screen #customerView>.premium-hero{display:none!important}

  body.customer-one-screen .premium-order-card {
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    margin:0!important;
    padding:0 0 12px!important;
    border-radius:22px!important;
    overflow:visible!important;
    box-shadow:0 10px 34px rgba(65,32,83,.08)!important;
    border:1px solid #eee7f2!important;
    background:#fff!important;
    gap:0!important;
  }
  body.customer-one-screen .order-top{display:none!important}

  /* Customer account card: compact and readable */
  body.customer-one-screen .premium-order-card>.order-section:nth-of-type(1){
    order:1!important;
    margin:12px 12px 8px!important;
    padding:12px!important;
    border-radius:18px!important;
    border:1px solid #eee8f1!important;
    background:linear-gradient(180deg,#fff,#fcfaff)!important;
    box-shadow:0 5px 16px rgba(59,28,79,.04)!important;
  }
  body.customer-one-screen .premium-order-card>.order-section:nth-of-type(1) .section-head{
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    margin-bottom:8px!important;
  }
  body.customer-one-screen .premium-order-card>.order-section:nth-of-type(1) .section-num{
    width:34px!important;height:34px!important;min-width:34px!important;border-radius:12px!important;font-size:14px!important;
  }
  body.customer-one-screen .premium-order-card>.order-section:nth-of-type(1) .section-head b{font-size:13px!important}
  body.customer-one-screen .premium-order-card>.order-section:nth-of-type(1) .section-head small{font-size:10px!important;line-height:1.2!important;color:#8a7e90!important}
  body.customer-one-screen .premium-grid{grid-template-columns:1fr 1fr!important;gap:7px!important}
  body.customer-one-screen .premium-grid label{font-size:0!important}
  body.customer-one-screen .premium-grid input{
    height:38px!important;min-height:38px!important;padding:0 11px!important;border-radius:12px!important;font-size:12px!important;background:#faf8fc!important;
  }
  body.customer-one-screen .v35-privacy{
    margin-top:7px!important;padding:8px 10px!important;min-height:0!important;border-radius:12px!important;font-size:10px!important;line-height:1.25!important;
    white-space:normal!important;
  }

  /* Route + map */
  body.customer-one-screen .premium-order-card>.order-section:nth-of-type(2){
    order:2!important;
    margin:0 12px 6px!important;
    padding:0!important;
    overflow:visible!important;
  }
  body.customer-one-screen .route-inputs{
    border:1px solid #ece5f1!important;
    border-radius:18px!important;
    background:#fff!important;
    padding:4px 9px!important;
    box-shadow:0 7px 18px rgba(49,23,70,.05)!important;
  }
  body.customer-one-screen .route-field{
    min-height:48px!important;height:48px!important;padding:4px 3px!important;border:0!important;border-radius:0!important;
    grid-template-columns:24px minmax(0,1fr) 38px!important;gap:7px!important;
  }
  body.customer-one-screen .route-field+.route-line{height:1px!important;background:#eee7f3!important;margin-left:29px!important}
  body.customer-one-screen .route-dot{width:15px!important;height:15px!important;border-width:4px!important}
  body.customer-one-screen .route-field small{font-size:8px!important;line-height:1!important;color:#704584!important}
  body.customer-one-screen .route-value{gap:5px!important}
  body.customer-one-screen .route-value-icon{font-size:16px!important}
  body.customer-one-screen .route-field input{height:24px!important;min-height:24px!important;font-size:13px!important;font-weight:800!important;background:transparent!important;padding:0!important}
  body.customer-one-screen .route-arrow{width:34px!important;height:34px!important;min-width:34px!important;font-size:19px!important;border-radius:50%!important}
  body.customer-one-screen .map-hint,.customer-map-legend{display:none!important}

  body.customer-one-screen .map-stage{
    position:relative!important;
    height:238px!important;
    min-height:238px!important;
    margin:8px 0 0!important;
    border-radius:18px!important;
    overflow:hidden!important;
    border:1px solid #ebe4f0!important;
    box-shadow:0 8px 20px rgba(56,25,78,.07)!important;
    background:#faf9fc!important;
  }
  body.customer-one-screen .premium-order-card .map-stage #map,
  body.customer-one-screen .premium-order-card #map{
    width:100%!important;height:100%!important;min-height:238px!important;margin:0!important;border:0!important;border-radius:18px!important;
  }
  body.customer-one-screen .premium-maptools{
    position:absolute!important;left:8px!important;top:58px!important;z-index:700!important;
    display:flex!important;flex-direction:column!important;gap:4px!important;margin:0!important;width:36px!important;
  }
  body.customer-one-screen .premium-maptools .btn{
    width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border-radius:10px!important;font-size:0!important;box-shadow:0 4px 12px rgba(41,20,56,.12)!important;
  }
  body.customer-one-screen #myLoc{font-size:17px!important}
  body.customer-one-screen #modePickup:before{content:'+';font-size:23px!important;font-weight:400!important}
  body.customer-one-screen #modeDest:before{content:'−';font-size:22px!important;font-weight:500!important}
  body.customer-one-screen .gps-map-chip{top:10px!important;left:10px!important;padding:7px 10px!important;border-radius:999px!important;font-size:10px!important;z-index:701!important}

  /* Five services in one row — no wrapping */
  body.customer-one-screen .premium-services{
    order:3!important;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:6px!important;
    padding:8px 12px 6px!important;
    margin:0!important;
  }
  body.customer-one-screen .premium-services button{
    width:auto!important;min-width:0!important;max-width:none!important;
    height:62px!important;min-height:62px!important;
    padding:5px 2px!important;border-radius:15px!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;
    border:1px solid #ebe5ef!important;background:#fff!important;
    box-shadow:0 5px 14px rgba(48,22,66,.045)!important;
  }
  body.customer-one-screen .premium-services button.active{
    border:2px solid #7628e7!important;
    background:linear-gradient(180deg,#fff,#f7f1ff)!important;
    box-shadow:0 6px 16px rgba(109,40,217,.12)!important;
  }
  body.customer-one-screen .premium-services .service-icon{font-size:21px!important;line-height:22px!important}
  body.customer-one-screen .premium-services button b{font-size:9px!important;line-height:1!important;margin:0!important;white-space:nowrap!important}
  body.customer-one-screen .premium-services button small{display:none!important}
  body.customer-one-screen .service-caption{display:none!important}
  body.customer-one-screen .food-help{order:4!important;margin:3px 12px 5px!important;padding:8px 10px!important;border-radius:12px!important;min-height:0!important}
  body.customer-one-screen .food-help b{font-size:10px!important}
  body.customer-one-screen .food-help small{font-size:9px!important;line-height:1.25!important}

  /* Trip options */
  body.customer-one-screen .trip-options-launch{
    order:5!important;
    min-height:54px!important;height:54px!important;
    margin:5px 12px 6px!important;padding:7px 12px!important;border-radius:15px!important;
    border:1px solid #ebe5f0!important;background:#fff!important;box-shadow:none!important;
  }
  body.customer-one-screen .trip-options-launch .trip-options-icon{width:34px!important;height:34px!important;font-size:17px!important;border-radius:11px!important}
  body.customer-one-screen .trip-options-launch b{font-size:11px!important}
  body.customer-one-screen .trip-options-launch small{font-size:9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:220px!important}
  body.customer-one-screen .trip-options-launch i{font-size:25px!important}

  /* Secondary driver chooser remains functional but unobtrusive */
  body.customer-one-screen .premium-order-card>.order-section:nth-of-type(3){
    order:6!important;
    margin:0 12px 6px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
  }
  body.customer-one-screen .premium-order-card>.order-section:nth-of-type(3) .section-head{display:none!important}
  body.customer-one-screen .driver-picker-button{height:40px!important;min-height:40px!important;border-radius:13px!important;font-size:11px!important;padding:0 12px!important}
  body.customer-one-screen .mx-quick-row{display:none!important}

  /* Compact summary */
  body.customer-one-screen .trip-summary{
    order:7!important;
    margin:5px 12px 10px!important;padding:6px!important;border-radius:15px!important;
    background:linear-gradient(135deg,#4d1c76,#6f24d9 60%,#7c3aed)!important;
    box-shadow:0 8px 18px rgba(76,29,149,.16)!important;
  }
  body.customer-one-screen .trip-summary-title{display:none!important}
  body.customer-one-screen .trip-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}
  body.customer-one-screen .trip-metrics>div{min-height:46px!important;padding:6px!important;border-radius:10px!important;background:rgba(255,255,255,.10)!important}
  body.customer-one-screen .trip-metrics span{font-size:7px!important;line-height:1.1!important;color:#e2d5f5!important}
  body.customer-one-screen .trip-metrics b{font-size:10px!important;line-height:1.1!important;margin-top:4px!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.customer-one-screen .trip-metrics .fare-metric{background:rgba(255,255,255,.15)!important}
  body.customer-one-screen .trip-metrics .fare-metric span,body.customer-one-screen .trip-metrics .fare-metric b{color:#fff!important}

  /* Always-visible order button above bottom nav */
  body.customer-one-screen .order-action{
    order:8!important;
    position:fixed!important;
    left:10px!important;right:10px!important;bottom:64px!important;
    z-index:95!important;
    width:auto!important;max-width:920px!important;
    margin:0 auto!important;padding:7px!important;
    background:rgba(255,255,255,.96)!important;
    border:1px solid #e8dff0!important;
    border-radius:18px!important;
    box-shadow:0 12px 34px rgba(52,20,76,.18)!important;
    backdrop-filter:blur(14px)!important;
  }
  body.customer-one-screen .order-action .action-copy{display:none!important}
  body.customer-one-screen .premium-order-btn{
    width:100%!important;height:50px!important;min-height:50px!important;
    border-radius:14px!important;font-size:16px!important;font-weight:900!important;letter-spacing:.1px!important;
    box-shadow:0 8px 18px rgba(91,33,182,.23)!important;
  }
  body.customer-one-screen .premium-order-card>#cMsg{order:9!important;margin:0 12px!important;max-height:none!important;overflow:visible!important}

  body.customer-one-screen .customer-bottom-nav{
    height:58px!important;min-height:58px!important;bottom:0!important;
    width:100%!important;border-radius:0!important;
    background:rgba(255,255,255,.985)!important;
    box-shadow:0 -8px 22px rgba(47,20,66,.07)!important;
    z-index:94!important;
  }
  body.customer-one-screen .customer-bottom-nav button span{height:25px!important;width:30px!important;font-size:17px!important}
  body.customer-one-screen .customer-bottom-nav button small{font-size:8px!important}

  /* Modals and tracking unaffected */
  body.location-picker-open{overflow:hidden!important;height:100dvh!important}
}

@media (max-width: 390px) {
  body.customer-one-screen .wrap{padding-left:7px!important;padding-right:7px!important}
  body.customer-one-screen .premium-order-card>.order-section:nth-of-type(1),
  body.customer-one-screen .premium-order-card>.order-section:nth-of-type(2),
  body.customer-one-screen .premium-services,
  body.customer-one-screen .trip-options-launch,
  body.customer-one-screen .premium-order-card>.order-section:nth-of-type(3),
  body.customer-one-screen .trip-summary{margin-left:9px!important;margin-right:9px!important}
  body.customer-one-screen .premium-services{padding-left:9px!important;padding-right:9px!important;gap:4px!important}
  body.customer-one-screen .premium-services button{height:58px!important;min-height:58px!important;border-radius:13px!important}
  body.customer-one-screen .premium-services .service-icon{font-size:19px!important}
  body.customer-one-screen .premium-services button b{font-size:8.2px!important}
  body.customer-one-screen .map-stage{height:220px!important;min-height:220px!important}
  body.customer-one-screen .premium-order-card .map-stage #map,body.customer-one-screen .premium-order-card #map{min-height:220px!important}
  body.customer-one-screen .order-action{left:7px!important;right:7px!important}
}

@media (max-height: 700px) and (max-width: 640px) {
  body.customer-one-screen .map-stage{height:190px!important;min-height:190px!important}
  body.customer-one-screen .premium-order-card .map-stage #map,body.customer-one-screen .premium-order-card #map{min-height:190px!important}
}


/* V37 - tarif harus terlihat sebelum pelanggan memesan */
.fare-checkout{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:3px 4px;
}
.fare-checkout>span{font-size:10px;font-weight:900;letter-spacing:.55px;color:#76568f}
.fare-checkout>b{font-size:24px;line-height:1.05;color:#4d1978;white-space:nowrap}
.fare-checkout>small{font-size:10px;color:#7f7587;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-action{display:grid!important;grid-template-columns:minmax(128px,.82fr) minmax(160px,1.18fr)!important;align-items:center!important;gap:9px!important}
@media(max-width:420px){
  body.customer-one-screen .order-action{
    display:grid!important;
    grid-template-columns:minmax(120px,.82fr) minmax(145px,1.18fr)!important;
    gap:7px!important;
    padding:7px 8px!important;
  }
  body.customer-one-screen .fare-checkout{display:flex!important;padding-left:3px!important}
  body.customer-one-screen .fare-checkout>span{font-size:8px!important;color:#7a6589!important}
  body.customer-one-screen .fare-checkout>b{font-size:18px!important;color:#4d1978!important}
  body.customer-one-screen .fare-checkout>small{font-size:8px!important;max-width:145px!important}
  body.customer-one-screen .premium-order-btn{height:50px!important;min-height:50px!important;font-size:15px!important}
}
@media(max-width:340px){
  body.customer-one-screen .order-action{grid-template-columns:1fr!important;gap:5px!important}
  body.customer-one-screen .fare-checkout{align-items:center!important;text-align:center!important}
  body.customer-one-screen .fare-checkout>small{max-width:250px!important}
  body.customer-one-screen .premium-order-btn{height:46px!important;min-height:46px!important}
}
