.mgd-wrap{max-width:760px;margin:20px auto;padding:16px;font-family:inherit}.mgd-wrap *{box-sizing:border-box}.mgd-wrap h2,.mgd-wrap h3{margin:8px 0 14px}.mgd-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mgd-wrap label{display:block;margin:10px 0;font-weight:700}.mgd-wrap input,.mgd-wrap select{width:100%;padding:12px;border:1px solid #ddd;border-radius:12px;background:#fff}#mgd-map{height:300px;border-radius:18px;overflow:hidden;margin:14px 0}.mgd-quote,.mgd-balance,.mgd-order-card,.mgd-empty{background:#fff;border:1px solid #eee;border-radius:16px;padding:16px;margin:12px 0;box-shadow:0 4px 18px rgba(0,0,0,.05)}.mgd-primary,.mgd-secondary{border:0;border-radius:12px;padding:12px 18px;font-weight:800;cursor:pointer}.mgd-primary{background:#dc6400;color:#fff}.mgd-secondary{background:#f4f4f4;color:#222}.mgd-order-card .mgd-primary{display:block;width:100%;margin-top:12px}.mgd-captain-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.mgd-captain-head .on{color:#16803a}.mgd-captain-head .off{color:#777}.mgd-balance{font-size:18px}.mgd-balance strong{display:block;font-size:28px;color:#dc6400;margin-top:6px}.mgd-tabs{position:sticky;bottom:0;background:#fff;border-top:1px solid #eee;display:grid;grid-template-columns:repeat(4,1fr);padding:12px 4px;margin-top:20px;text-align:center;font-size:13px}@media(max-width:600px){.mgd-grid{grid-template-columns:1fr}#mgd-map{height:235px}.mgd-wrap{margin:0;padding:12px}.mgd-captain-head{align-items:flex-start}}
.mgd-trip-actions{margin-top:14px}.mgd-delivery-code{gap:8px;align-items:center;flex-wrap:wrap}.mgd-delivery-code input{flex:1;min-width:140px;padding:12px;border:1px solid #ddd;border-radius:10px;font-size:18px;text-align:center}

.mgd-map-steps{display:flex;gap:8px;margin:10px 0 4px}.mgd-map-steps span{flex:1;padding:10px 12px;border-radius:12px;background:#f4f4f4;text-align:center;font-weight:700;color:#666}.mgd-map-steps span.active{background:#fff3e8;color:#b95000}.mgd-map-steps span.done{background:#edf8f0;color:#16733a}.mgd-quote{display:flex;justify-content:space-between;align-items:center}.mgd-quote span{font-weight:700}.mgd-quote strong{font-size:26px;color:#dc6400}.mgd-created>strong{font-size:20px}.mgd-secret-code{margin-top:12px;padding:12px;border:1px dashed #dc6400;border-radius:14px;background:#fff8f2}.mgd-secret-code small{display:block;font-size:13px;color:#555}.mgd-secret-code b{display:block;font-size:30px;letter-spacing:4px;color:#dc6400;margin:4px 0}.mgd-created p{margin:12px 0 0;font-weight:700}
.mgd-tracking{background:#fff;border-radius:18px;padding:18px;margin:0 0 18px;box-shadow:0 8px 24px rgba(0,0,0,.06)}.mgd-track-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.mgd-track-head strong{color:#dc6400}.mgd-track-status{margin:16px 0;padding:14px;border-radius:14px;background:#fff7ef;display:flex;flex-direction:column;gap:5px}.mgd-track-status strong{font-size:20px}.mgd-track-status small{opacity:.7}.mgd-track-captain{padding:12px 14px;border:1px solid #eee;border-radius:14px;margin-bottom:12px}.mgd-track-captain strong,.mgd-track-captain span{display:block}.mgd-track-map{height:230px;border-radius:16px;overflow:hidden;margin:12px 0}.mgd-tracking .mgd-secret-code{margin:12px 0}.mgd-tracking .mgd-secondary{width:100%}@media(max-width:600px){.mgd-track-map{height:190px}.mgd-track-status strong{font-size:18px}}
.mgd-customer-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f5f5f5;border-radius:14px;padding:4px;margin:0 0 18px}.mgd-customer-tabs a{text-align:center;padding:11px 8px;border-radius:11px;text-decoration:none!important;color:#444;font-weight:700}.mgd-customer-tabs a.active{background:#fff;color:#dc6400;box-shadow:0 2px 8px rgba(0,0,0,.08)}.mgd-my-orders{display:grid;gap:10px}.mgd-my-order{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px;border:1px solid #eee;border-radius:14px;background:#fff;text-decoration:none!important;color:inherit}.mgd-my-order div{display:flex;flex-direction:column;gap:3px}.mgd-my-order strong{color:#dc6400}.mgd-my-order span,.mgd-my-order small{font-size:12px;opacity:.72}.mgd-my-order b{font-size:16px}.mgd-back-orders{display:inline-block;margin:0 0 10px;text-decoration:none!important;font-weight:700;color:#dc6400}


/* v1.5.0 Trip Engine + customer journey */
.mgd-journey{display:flex;direction:rtl;align-items:flex-start;margin:16px 0 20px;padding:4px 2px}.mgd-journey-step{position:relative;flex:1;min-width:0;text-align:center;color:#8a8a8a;font-size:11px;font-weight:700}.mgd-journey-step:not(:last-child):before{content:"";position:absolute;top:9px;right:50%;width:100%;height:3px;background:#ddd;z-index:0}.mgd-journey-step i{position:relative;z-index:1;display:block;width:19px;height:19px;margin:0 auto 7px;border-radius:50%;background:#ddd;border:3px solid #fff;box-shadow:0 0 0 1px #ccc}.mgd-journey-step.done{color:#16733a}.mgd-journey-step.done i{background:#22a447;box-shadow:0 0 0 1px #22a447}.mgd-journey-step.done:not(:last-child):before{background:#22a447}.mgd-journey-step.current{color:#b95000}.mgd-journey-step.current i{background:#dc6400;box-shadow:0 0 0 1px #dc6400;animation:mgdPulse 1.5s infinite}.mgd-journey-step span{display:block;line-height:1.25}@keyframes mgdPulse{0%,100%{box-shadow:0 0 0 1px #dc6400,0 0 0 0 rgba(220,100,0,.25)}50%{box-shadow:0 0 0 1px #dc6400,0 0 0 7px rgba(220,100,0,0)}}
.mgd-money-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mgd-balance small,.mgd-balance span{display:block}.mgd-balance span{font-size:12px;color:#777}.mgd-current-due strong{color:#555}.mgd-trip-title{display:flex;justify-content:space-between;gap:10px;align-items:center}.mgd-trip-title span{font-size:13px;color:#b95000;font-weight:700}.mgd-active-trip{border:2px solid #f2c49f}
@media(max-width:600px){.mgd-journey{display:block;padding-right:6px}.mgd-journey-step{display:flex;align-items:center;text-align:right;min-height:38px;padding-right:34px}.mgd-journey-step i{position:absolute;right:3px;top:3px;margin:0}.mgd-journey-step:not(:last-child):before{top:21px;right:11px;width:3px;height:25px}.mgd-money-grid{grid-template-columns:1fr}.mgd-trip-title{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.mgd-journey-step.current i{animation:none}}

.mgd-finance-summary{margin:18px 0}.mgd-finance-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mgd-finance-cards>div{background:#fff;border:1px solid #eee;border-radius:14px;padding:13px}.mgd-finance-cards small,.mgd-finance-cards b{display:block}.mgd-finance-cards b{font-size:20px;margin-top:5px}.mgd-positive{color:#16803a}.mgd-negative{color:#b42318}.mgd-finance-summary details{background:#fff;border:1px solid #eee;border-radius:14px;padding:12px;margin-top:10px}.mgd-ledger-row{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:10px 0;border-bottom:1px solid #f0f0f0}.mgd-ledger-row small{grid-column:1/-1;color:#777}@media(max-width:600px){.mgd-finance-cards{grid-template-columns:1fr}.mgd-ledger-row{font-size:13px}}

.mgd-map-help{margin:8px 0 10px;font-size:14px;color:#666}.mgd-map-steps button{border:0;cursor:pointer;font:inherit}.mgd-map-steps button.active{background:#fff0e6;color:#b84f00;font-weight:700;box-shadow:0 0 0 2px #dc6400 inset}.mgd-map-steps button.done:not(.active){background:#eef8ef;color:#237a35}
.mgd-settlement-box{margin-top:14px;padding:14px;background:#fff7ed;border:1px solid #fed7aa;border-radius:14px}.mgd-settlement-box form{display:grid;gap:10px}.mgd-settlement-box label{display:grid;gap:5px}.mgd-settlement-box input{padding:11px;border:1px solid #ddd;border-radius:10px}.mgd-warning{color:#9a6700}.mgd-danger{color:#b42318;font-weight:700}

.mgd-captain-card{display:flex;align-items:center;gap:12px}.mgd-captain-card img{width:58px;height:58px;border-radius:50%;object-fit:cover;border:2px solid #eee}.mgd-captain-card>div{flex:1}.mgd-captain-card small,.mgd-captain-card span{display:block}.mgd-call{background:#dc6400;color:#fff!important;text-decoration:none;padding:9px 12px;border-radius:10px;font-weight:700;white-space:nowrap}.mgd-rating-box{margin-top:14px;padding:16px;border:1px solid #eee;border-radius:14px;background:#fff}.mgd-stars{display:flex;gap:5px;margin:8px 0}.mgd-stars button{font-size:30px;border:0;background:transparent;color:#ccc;cursor:pointer;padding:2px}.mgd-stars button.selected{color:#f5a623}.mgd-rating-box textarea{width:100%;min-height:72px;border:1px solid #ddd;border-radius:10px;padding:10px;margin:6px 0 10px}
