/* Trang khách gọi món (T3) — nhẹ, phông hệ thống (không tải phông / emoji), 390 px trước. Màu thương hiệu Mepo: xanh dương + xanh lá. */
:root {
  --nen: #f5f7fb; --the: #fff; --chu: #14213d; --phu: #5b6475; --vien: #dfe4ee;
  --chinh: #1565c0; --chinh-dam: #0d47a1; --la: #2e7d32; --loi: #b3261e; --vang: #8a5a00; --nen-vang: #fff4d6;
  --bo: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* hidden phải thắng mọi display của lớp (.nut-nhanh, .hang-ma…) */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nen); color: var(--chu); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; padding-bottom: 88px; }
h1 { font-size: 1.25rem; margin: 0; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; margin: 0 0 8px; overflow-wrap: anywhere; }
h3 { font-size: 1rem; margin: 18px 16px 8px; color: var(--phu); overflow-wrap: anywhere; }
.phu { color: var(--phu); margin: 2px 0 0; overflow-wrap: anywhere; }
.nho { font-size: .85rem; }
.giua { text-align: center; padding: 32px 16px; }
.dau { background: var(--the); border-bottom: 1px solid var(--vien); padding: 12px 16px; position: sticky; top: 0; z-index: 5; }
.nut-nhanh { display: flex; gap: 8px; margin-top: 10px; }
.nut-nhanh .nut { flex: 1 1 0; }
.nut { min-height: 48px; border-radius: var(--bo); border: 1px solid var(--vien); background: var(--the); color: var(--chu); font: inherit; font-weight: 600; padding: 10px 14px; cursor: pointer; }
.nut:disabled { opacity: .5; cursor: not-allowed; }
.nut-chinh { background: var(--chinh); color: #fff; border-color: var(--chinh); }
.nut-chinh:active { background: var(--chinh-dam); }
.nut-phu { background: var(--the); }
.nut-rong { width: 100%; }
.nut-tron { width: 48px; min-height: 48px; border-radius: 50%; font-size: 1.4rem; padding: 0; }
.thong-bao { margin: 12px 16px 0; padding: 12px 14px; border-radius: var(--bo); background: var(--nen-vang); color: var(--vang); overflow-wrap: anywhere; }
.thong-bao.tot { background: #e7f5ea; color: var(--la); }
.thong-bao.xau { background: #fde7e5; color: var(--loi); }
.mon { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--the); margin: 0 16px 8px; padding: 12px 14px; border-radius: var(--bo); border: 1px solid var(--vien); }
.mon-chu { min-width: 0; flex: 1 1 auto; }
.mon-ten { font-weight: 600; overflow-wrap: anywhere; }
.mon-gia { color: var(--chinh-dam); font-weight: 600; white-space: nowrap; }
.mon .nut { flex: 0 0 auto; min-width: 72px; }
.thanh-gio { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(245,247,251,.96); border-top: 1px solid var(--vien); z-index: 6; }
.lop { position: fixed; inset: 0; background: rgba(20,33,61,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.lop[hidden] { display: none; }
.hop { background: var(--the); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); }
.nhan { display: block; font-weight: 600; margin: 14px 0 6px; }
/* Ô nhập LUÔN ≥ 16px (iOS tự phóng to trang nếu nhỏ hơn) và cao ≥ 48px. */
textarea, input, select { width: 100%; font: inherit; font-size: 16px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--vien); border-radius: 10px; color: var(--chu); background: #fff; }
textarea { min-height: 0; }
input:disabled { background: var(--nen); color: var(--phu); }
body { overflow-x: hidden; }
.nhom-chon { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.nhom-chon legend { font-weight: 600; padding: 0; margin-bottom: 6px; overflow-wrap: anywhere; }
.chon { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 4px; border-bottom: 1px solid var(--nen); }
.chon input { width: 20px; height: 20px; flex: 0 0 auto; }
.chon span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.chon .gia { flex: 0 0 auto; color: var(--phu); }
.dong-sl { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 16px 0 4px; font-size: 1.2rem; font-weight: 700; }
.hang-nut { display: flex; gap: 10px; margin-top: 14px; }
.hang-nut .nut { flex: 1 1 0; }
.loi { color: var(--loi); margin: 10px 0 0; overflow-wrap: anywhere; }
.gio-ds { list-style: none; margin: 0; padding: 0; }
.gio-ds li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--nen); }
.gio-ds .gio-chu { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.gio-ds .gio-sl { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.the-don { background: var(--the); margin: 12px 16px; padding: 14px; border-radius: var(--bo); border: 1px solid var(--vien); }
.the-don .tt { font-weight: 700; }
.the-don.tot .tt { color: var(--la); }
.the-don.xau .tt { color: var(--loi); }
.chon input[type="checkbox"], .chon input[type="radio"] { min-height: 0; padding: 0; }
.chon-dong-y { align-items: flex-start; margin-top: 14px; min-height: 48px; }
.chon-dong-y input { margin-top: 2px; }
.mon-anh { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; background: var(--nen); }
.the-ghi, .the-ma { margin: 12px 16px 0; padding: 12px 14px; border-radius: var(--bo); border: 1px solid var(--vien); background: var(--the); overflow-wrap: anywhere; }
.the-ma h2 { margin: 0 0 4px; }
.hang-ma { display: flex; gap: 8px; margin-top: 10px; }
.hang-ma input { flex: 1 1 auto; min-width: 0; letter-spacing: .3em; text-align: center; font-weight: 700; }
.hang-ma .nut { flex: 0 0 auto; }
.ma-da-xn { margin: 12px 16px 0; color: var(--la); font-weight: 600; }
.ma-don { font-weight: 700; font-size: 1.1rem; margin-top: 4px; overflow-wrap: anywhere; }
.buoc { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 4px; }
.buoc li { flex: 1 1 0; min-width: 0; text-align: center; font-size: .75rem; line-height: 1.25; padding: 6px 2px; border-top: 4px solid var(--vien); color: var(--phu); overflow-wrap: anywhere; }
.buoc li.xong { border-top-color: var(--la); color: var(--la); }
.buoc li.dang { border-top-color: var(--chinh); color: var(--chinh-dam); font-weight: 700; }
.chi-tiet { margin-top: 10px; }
.chi-tiet summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--chinh-dam); }
.chi-tiet-ds { list-style: none; margin: 0 0 6px; padding: 0; }
.chi-tiet-ds li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--nen); }
.ct-ten { min-width: 0; overflow-wrap: anywhere; }
.ct-tien { flex: 0 0 auto; color: var(--phu); }
.tong-da-goi { margin: 12px 16px; font-weight: 700; text-align: right; }
@media (min-width: 720px) {
  .the-ghi, .the-ma, .ma-da-xn, .tong-da-goi { max-width: 688px; margin-left: auto; margin-right: auto; }
  main, .dau, .thong-bao { max-width: 720px; margin-left: auto; margin-right: auto; }
  .thanh-gio .nut { max-width: 688px; display: block; margin: 0 auto; }
  .lop { align-items: center; }
  .hop { border-radius: 16px; }
}
.dai-xt { background: var(--chu); color: #fff; text-align: center; font-weight: 700; padding: 8px 16px; overflow-wrap: anywhere; }
