﻿/* Shop / customer portal C01–C04 (docs/ui-reference/03-customer.png). White surfaces, orange actions, one language. */
body{font-size:16px;padding-bottom:calc(128px + env(safe-area-inset-bottom))}html[lang=km] body{font-size:17px}
header.stop{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);padding:8px 12px;display:flex;gap:8px;align-items:center;z-index:5;min-height:56px}
header.stop .wordmark{font-size:20px}
.wrap{padding:12px;max-width:720px;margin:0 auto}.login{max-width:360px;margin:10vh auto}.fld{margin-bottom:6px}.fld input,.fld select{width:100%;font-size:16px;padding:9px 10px;min-height:44px}
.big{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:50px;font-size:16px;font-weight:500;margin:8px 0;border-radius:var(--r)}
.tiles4{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{flex-direction:column;align-items:flex-start;text-align:left;min-height:120px;padding:14px;gap:4px;border:1px solid var(--line);border-radius:var(--r);background:#fff}
.tile .ic{color:var(--brand)}.tile b{font-size:16px;font-weight:600}.tile span{font-size:13px;color:var(--mute);font-weight:400}
.rrow{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);cursor:pointer}.rrow:last-child{border-bottom:0}.rrow .ic{color:var(--brand)}
.task{display:block;margin:8px 0;padding:12px;border-radius:var(--r);border:1px solid var(--line);background:#fff;cursor:pointer}.cod{font-weight:600;font-variant-numeric:tabular-nums}
.sum{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}.sum div{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:8px;text-align:center}.sum b{display:block;font-size:20px}
.tabbar{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);z-index:6;padding-bottom:env(safe-area-inset-bottom)}
.tabbar button{flex-direction:column;gap:2px;border:0;border-radius:0;min-height:60px;background:none;font-size:12px;color:var(--mute)}.tabbar button .ic{width:22px;height:22px}.tabbar button.on{color:var(--pri);font-weight:600}
.full{position:fixed;inset:0;background:var(--bg);z-index:30;overflow:auto}.card{margin:8px 0}.card.ok{border-color:var(--ok)}
.stepper{display:grid;grid-template-columns:repeat(3,1fr);list-style:none;padding:0;margin:12px 0;counter-reset:s}
.stepper li{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:13px;color:var(--mute);position:relative}
.stepper li span{width:28px;height:28px;border-radius:14px;background:#E2E4E7;color:#5F6368;display:flex;align-items:center;justify-content:center;font-weight:600;z-index:1}
.stepper li:not(:first-child)::before{content:'';position:absolute;top:14px;right:50%;width:100%;height:2px;background:#E2E4E7}
.stepper li.on span,.stepper li.done span{background:var(--pri);color:#fff}.stepper li.on{color:var(--ink);font-weight:600}
.sec{display:flex;gap:10px;align-items:center;padding-bottom:8px;border-bottom:1px solid var(--line);margin-bottom:6px}.sec .ic{color:var(--brand)}
.switch{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--ink);margin:12px 0}.switch input{width:22px;height:22px;accent-color:var(--pri)}
.cta{position:sticky;bottom:64px;background:var(--bg);display:flex;gap:8px;padding:8px 0}.cta .big{margin:0}
.sum-t td{border-bottom:1px solid var(--line)}.tl{padding-left:18px}
.fld .muted{font-size:13px;line-height:1.4}
header.stop{flex-wrap:wrap}.tabbar button{min-width:0;padding:4px 2px;line-height:1.2;word-break:break-word}.tiles4 .tile{min-width:0;word-break:break-word}

@media print{body.print-stmt .noprint,body.print-stmt header,body.print-stmt .tabbar,body.print-stmt .wrap:not(.stmtv .wrap){display:none!important}body.print-stmt .stmtv{position:static}}
.tabbar.t3{grid-template-columns:repeat(3,minmax(0,1fr))}
.stmtv table{font-size:13px;display:block;overflow-x:auto;white-space:nowrap}.stmtv tfoot th{white-space:normal}
.card.decision{border-left:4px solid #E85D04}.card.decision .row{margin-top:8px;flex-wrap:wrap}
.rrow{flex-wrap:wrap}.rrow .grow{min-width:0;overflow-wrap:anywhere}.nrow .ntext{min-width:0}
.fab-sos{position:fixed;right:12px;bottom:calc(72px + env(safe-area-inset-bottom));z-index:36;display:flex;align-items:center;gap:4px;padding:8px 12px;min-height:44px;border-radius:999px;background:#fff;color:var(--pri-d);border:2px solid var(--pri);font-weight:700;box-shadow:0 2px 6px rgba(0,0,0,.2)}body:has(.full) .fab-sos,body:has(.cd-ov) .fab-sos{display:none}.wrap{padding-bottom:120px}
.chips{flex-wrap:wrap;gap:8px;margin:8px 0}.chips .chip{min-height:44px;padding:6px 14px;border-radius:999px;border:1px solid #d0d5dd;background:#fff;font-weight:600}
.chips .chip.on{background:#b42318;border-color:#b42318;color:#fff}.sos-note[aria-invalid=true]{border-color:#b42318;outline:2px solid #b42318}.sos-pick{margin:4px 0 0}
/* QA-6: the footer menu stays visible on sub-screens (orders, pickups, chat, notifications, support, COD detail) */
.full{bottom:calc(60px + env(safe-area-inset-bottom))}.full .wrap{padding-bottom:96px}.tabbar{z-index:35}
.full.sos{bottom:0;z-index:40}
/* QA-7: the new-order form keeps its draft; a slim bar says so and offers "Clear draft" */
.draftbar{display:flex;align-items:center;gap:8px;margin:8px 0;padding:8px 10px;border-radius:10px;background:var(--infobg);color:var(--ink);border:1px solid var(--line);font-size:.92rem}
.draftbar .grow{flex:1}
.draftbar button{min-height:40px}

/* MUC-34 Gói 4: money block (big), list amount right-aligned, delivery-photo dot, proof photos */
.money-block .mb-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:4px 0;font-size:16px}
.money-block .mb-row b{font-size:20px;font-variant-numeric:tabular-nums}
.money-block .mb-state{margin-top:6px;padding-top:6px;border-top:1px solid var(--line);color:var(--mute)}
.cod-amt{font-variant-numeric:tabular-nums;text-align:right}
.photo-dot{display:inline-flex;align-items:center;color:var(--pri)}.photo-dot .ic{width:16px;height:16px}
.ph-group{margin:6px 0}.ph-group .thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.ph-fig{margin:0}.ph-btn{padding:0;border:0;background:none;width:96px}.ph-btn.big{width:min(100%,520px)}.ph-btn img{width:100%;display:block}
.ph-fig:has(.ph-btn.big){flex-basis:100%}.ph-btn.big{width:100%}

/* Gói 1d: Home Screen app on iPhone — 16 px fields (iOS zooms the frame on focus below that) */
html.standalone input, html.standalone select, html.standalone textarea { font-size: 16px; }
