/* Q1 User Charging IoT Motor: the few things the Q2 styles (charging.css)
   do not already have. Everything else reuses Q2's classes as they are. */

/* Motor switch arrows on the home stage; the model name under the photo. */
.stage .ibtn{width:auto;height:auto;padding:4px}
.motorname{color:#EDEDED;margin-top:-6px}

/* "Motor dipilih" on light screens (Q2 shows it only on the dark inbox). */
.selm{width:100%;text-align:left;color:inherit}
.selm.light{background:#fff;border:1px solid var(--bddis);border-radius:12px;margin:0 0 10px;padding:12px 14px}
.selm.light .link{flex:none}

/* The charging permission on the motor, inside the access status card. */
.permline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid var(--bddis)}
.permline .chip{margin-top:0}

/* Station list: the four statuses, and per-unit verdicts. */
.legendrow{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 6px}
.tagrow{display:inline-flex;gap:6px;flex-wrap:wrap}
.inline.warnline{background:var(--warn2);color:var(--warnink);border-color:#E9C95A}
.stgroup .stgcard+.stgcard{margin-top:12px}

/* Simulator additions. */
.simsec{display:flex;flex-direction:column;gap:6px;color:#C9CACA}
.simsel{height:38px;border-radius:10px;border:1px solid #6B6C6C;background:#1F2120;color:#EDEDED;padding:0 10px;font:inherit;font-size:13px;max-width:100%}
.flagrow{display:flex;align-items:flex-start;gap:8px}
.flagrow .chip{flex:none}
.flagrow .m4{color:#C9CACA;line-height:1.4}
.clist .cc .row .m3b{white-space:nowrap}

/* Loading icons turn wherever they sit (chips: "Mengirim izin ke motor…"). */
.ic.spin{animation:ch-spin 1s linear infinite;transform-origin:50% 50%}
@media (prefers-reduced-motion:reduce){.ic.spin{animation:none}}

/* My EV and Change Motorcycle, as My ALVA shows them. */
.evtop{padding-bottom:40px}
.evwrap{margin-top:-40px;position:relative;z-index:2}
.evlink{color:var(--green);text-decoration:underline}
.buysheet .evlink{color:var(--tbrand2);text-decoration:none}
.evcard{position:relative;overflow:hidden;min-height:200px}
.evcard>.m4{max-width:56%;overflow-wrap:anywhere}
.evname{font-size:22px;line-height:28px;font-weight:700;max-width:62%}
.evpic{position:absolute;right:14px;bottom:14px;width:40%;max-width:170px;aspect-ratio:3/2;background:var(--dark);border-radius:12px;display:flex;align-items:center;justify-content:center}
.evpic img{width:92%}
.evtag{flex:none;background:#33FFC9;color:var(--tp);font-size:12px;font-weight:600;padding:4px 10px;border-radius:4px}
.evlist{display:flex;flex-direction:column;gap:10px;margin-top:14px;max-height:50vh;overflow-y:auto}
.evitem{display:flex;align-items:center;gap:12px;text-align:left;padding:12px;border:1px solid var(--bddis);border-radius:8px;background:#fff;color:var(--tp)}
.evitem.on{border-color:#02CF99;background:var(--succ2)}
.evitem .block{display:block}
.evthumb{width:84px;height:56px;flex:none;background:var(--dark);border-radius:8px;display:flex;align-items:center;justify-content:center}
.evthumb img{width:90%}
.evitem .evtag{align-self:flex-start}

/* Pull to refresh (on-demand tracking), as My ALVA draws it: a white disc
   with a refresh arrow that follows the pull and spins while it works. */
.ptr{position:fixed;top:64px;left:50%;width:44px;height:44px;margin-left:-22px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:var(--sh300);z-index:60;opacity:0;pointer-events:none;transform:translateY(-60px);transition:transform .2s ease,opacity .2s ease}
.ptr.on{opacity:1}
.ptr.drag{transition:none}
.ptr.spinning .ic{animation:ch-spin .9s linear infinite}

/* Cari station map: OpenStreetMap tiles through CESA's CesaMap (map.js), in
   Q1's colours. Green ring = a connector free, grey = none free (full or in
   maintenance). */
.map .qmap{position:absolute;inset:0}
/* The motor, from its IoT's lat/lon: a blue dot above every station. */
.cmap-marker.cmap-motor{width:22px;height:22px;margin:-11px 0 0 -11px;border:4px solid #fff;background:#435CCE;
  box-shadow:0 0 0 6px rgba(67,92,206,.25),0 1px 5px rgba(0,0,0,.4);z-index:2}
.map .fabloc{position:absolute;right:12px;bottom:44px;z-index:5;width:44px;height:44px;border-radius:50%;border:1px solid #E7E7E7;
  background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.cmap{position:relative;overflow:hidden;background:#E8ECEA;cursor:grab;touch-action:none;user-select:none}
.cmap.cmap-dragging{cursor:grabbing}
.cmap-tiles,.cmap-overlay{position:absolute;inset:0}
.cmap-overlay{pointer-events:none}
.cmap-tile{position:absolute;top:0;left:0;width:256px;height:256px;outline:1px solid transparent;pointer-events:none}
.cmap-marker,.cmap-cluster{position:absolute;top:0;left:0;pointer-events:auto;margin:0;padding:0;border:none;font:inherit;cursor:pointer}
.cmap-marker{width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;border:3px solid #9E9F9F;
  background:#fff url('/favicon.svg') center/18px 18px no-repeat;box-shadow:0 1px 5px rgba(0,0,0,.4)}
.cmap-marker.cmap-active{border-color:#02CF99}
.cmap-cluster{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border-radius:50%;
  font-weight:700;font-size:13px;line-height:1;color:#00664B;background:#fff;border:3px solid #9E9F9F;
  box-shadow:0 2px 6px rgba(31,33,32,.3);translate:-50% -50%}
.cmap-cluster::before{content:'';display:block;width:38%;height:38%;background:url('/favicon.svg') center/contain no-repeat}
.cmap-cluster-active{border-color:#02CF99}
.cmap-zoom{position:absolute;top:10px;left:10px;display:flex;flex-direction:column;gap:2px;z-index:5}
.cmap-zoom button{width:34px;height:34px;border:1px solid #E7E7E7;background:#fff;color:#1F2120;font-size:18px;line-height:1;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.cmap-attr{position:absolute;right:0;bottom:16px;z-index:5;background:rgba(255,255,255,.85);font-size:11px;padding:2px 6px;border-top-left-radius:6px;color:#6B6C6C}
.cmap-attr a{color:#435CCE}
.cmap-popup{position:absolute;z-index:6;min-width:200px;max-width:280px;background:#fff;border:1px solid #E7E7E7;border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.18);padding:10px 30px 10px 12px;font-size:14px;line-height:1.35;pointer-events:auto}
.cmap-popup::after,.cmap-popup::before{content:'';position:absolute;left:50%;border:8px solid transparent}
.cmap-popup::before{bottom:-17px;margin-left:-8px;border-top-color:#E7E7E7}
.cmap-popup::after{bottom:-15px;margin-left:-8px;border-top-color:#fff}
.cmap-popup-x{position:absolute;top:4px;right:6px;border:none;background:none;font-size:20px;line-height:1;color:#6B6C6C}
.cmap-popup-body{max-height:260px;overflow-y:auto}
.cmap-list-head{font-size:12px;color:#6B6C6C;margin-bottom:4px}
.qpop{display:block;width:100%;text-align:left;padding:6px 0;border-top:1px solid #F0F0F0}
.qpop:first-child{border-top:none}
.qpop b{display:block;font-weight:700}
.qpop span{display:block;font-size:12px;color:#09765A;margin-top:2px}
/* Aktivasi ALVA Charging: once per account (option B, 3 Nov 2026) */
.stepcard{margin-top:12px;padding:14px;border-radius:12px;border:1px solid var(--bddis);background:#fff}
.stepcard.done{border-color:var(--bdsucc);background:var(--succ2)}
.stepcard.dim{opacity:.55}
.stepcard .ic{vertical-align:-3px}
.stepcard .cbx{width:100%}
.snum{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--dark);color:#fff;font-size:12px;margin-right:4px}
.tinput{display:block;width:100%;height:44px;padding:0 12px;border:1px solid var(--bd1);border-radius:10px;font:inherit;font-size:15px;color:var(--tp);background:#fff}
.tinput:focus{outline:2px solid var(--bdsucc);outline-offset:0}
/* Aktivasi: the per-VIN terms point by point, in a box that scrolls; Ganti email steps */
.tncbox{max-height:230px;overflow-y:auto;padding:12px 14px;border:1px solid var(--bddis);border-radius:10px;background:var(--bg2);overscroll-behavior:contain}
.tncbox:focus{outline:2px solid var(--bdsucc)}
.tncbox ol{margin:6px 0 0;padding-left:18px}
.tncbox li{font-size:13px;line-height:19px;color:var(--tp);margin-top:6px;padding-left:2px}
.btnrow{display:flex;gap:8px;flex-wrap:wrap}
.btnrow .btn{flex:1 1 0;min-width:0}
.wfull{width:100%}
.brk{overflow-wrap:anywhere}
.otpsteps{display:flex;gap:8px;margin-bottom:18px}
.otpsteps span{flex:1;padding:8px 6px;border-radius:8px;background:var(--bg2);color:var(--ts);font-size:12px;font-weight:600;text-align:center}
.otpsteps span.on{background:var(--dark);color:#fff}
.otpsteps span.done{background:var(--succ1);color:var(--tbrand2)}
