:root{color:#0f172a;background:#f8fafc;font-family:Inter,system-ui,sans-serif}*{box-sizing:border-box}body{background:#f8fafc;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}main{background:radial-gradient(circle at 100% 0,#16a34a14,#0000 280px),#f8fafc;min-height:100vh;padding:0 16px 90px}header{z-index:20;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;color:#fff;background:#0f172a;align-items:center;gap:12px;margin:0 -16px 18px;display:flex;position:sticky;top:0;box-shadow:0 8px 24px #0f172a26}header button{color:#fff;background:#16a34a;border:0;border-radius:13px;place-items:center;width:42px;height:42px;font-size:20px;font-weight:900;display:grid}header h1{margin:0;font-size:18px}header p{color:#cbd5e1;margin:3px 0 0;font-size:12px}.welcome{color:#fff;background:linear-gradient(135deg,#16a34a,#15803d);border-radius:22px;padding:20px;box-shadow:0 16px 34px #16a34a33}.welcome small{letter-spacing:.14em;font-weight:800}.welcome h2{margin:6px 0}.welcome p{color:#dcfce7;margin:0}.actions{gap:11px;margin-top:16px;display:grid}.actions>button{text-align:left;color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:18px;grid-template-columns:auto 1fr;align-items:center;gap:14px;width:100%;padding:16px;display:grid;box-shadow:0 5px 18px #0f172a0d}.actions>button>svg{color:#15803d;background:#dcfce7;border-radius:14px;width:46px;height:46px;padding:10px}.actions b,.actions span{display:block}.actions span{color:#64748b;margin-top:4px;font-size:12px}.actions button:disabled{opacity:.45}.assistant{color:#475569;background:#fff;border:1px dashed #94a3b8;border-radius:15px;padding:14px}.search{background:#fff;border:1px solid #cbd5e1;border-radius:16px;align-items:center;gap:10px;padding:0 14px;display:flex}.search input{border:0;outline:0;width:100%;height:52px}.list{gap:9px;margin-top:12px;display:grid}.product{text-align:left;color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:16px;justify-content:space-between;align-items:center;width:100%;padding:14px;display:flex}.product b,.product span{display:block}.product span{color:#64748b;margin-top:4px;font-size:12px}.product>svg{color:#15803d}.cart,.form,.receipt{background:#fff;border:1px solid #e2e8f0;border-radius:20px;margin-top:16px;padding:17px}.cart h2{margin-top:0}.line{border-bottom:1px solid #f1f5f9;grid-template-columns:1fr auto;gap:8px 12px;padding:13px 0;display:grid}.line span{color:#64748b;font-size:12px;display:block}.qty{align-items:center;gap:8px;display:flex}.qty button,.line>button{background:#dcfce7;border:0;border-radius:9px;place-items:center;width:30px;height:30px;display:grid}.qty svg,.line>button svg{width:16px}.pay{grid-template-columns:repeat(4,1fr);gap:6px;margin-top:16px;display:grid}.pay button{color:#475569;background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:10px 4px;font-size:11px;font-weight:800}.pay .active{color:#fff;background:#15803d;border-color:#15803d}.total{justify-content:space-between;align-items:center;padding:17px 0;font-size:18px;display:flex}.primary,.secondary{border-radius:15px;width:100%;min-height:52px;font-weight:800}.primary{color:#fff;background:#16a34a;border:0}.primary:disabled{opacity:.45}.secondary{color:#0f172a;background:#fff;border:1px solid #cbd5e1;margin-top:10px}.form{gap:12px;display:grid}.form input,.form select,.form textarea{background:#fff;border:1px solid #cbd5e1;border-radius:13px;width:100%;min-height:49px;padding:11px 12px}.form textarea{min-height:100px}.empty{text-align:center;color:#64748b;padding:28px}.center{text-align:center;place-content:center;min-height:100vh;padding:30px;display:grid}.center p{color:#475569;max-width:340px}.success{color:#fff;background:#16a34a;border-radius:50%;place-items:center;width:64px;height:64px;margin:24px auto;display:grid}.receipt{text-align:left}.receipt h2,.receipt>p{text-align:center}.receipt>div{border-bottom:1px solid #f1f5f9;justify-content:space-between;gap:12px;padding:10px 0;display:flex}@media (width>=680px){main{max-width:620px;margin:auto}}.purchase-top{margin-bottom:14px}.purchase-top label,.purchase-item label,.payment-section label{color:#334155;gap:6px;font-size:12px;font-weight:700;display:grid}.purchase-items{margin-top:18px}.purchase-items h2,.payment-section h2{margin:0 0 12px;font-size:18px}.purchase-item{background:#fff;border:1px solid #e2e8f0;border-radius:16px;margin-bottom:12px;padding:14px}.purchase-item-title{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.purchase-item-title button{color:#dc2626;background:#fee2e2;border:0;border-radius:10px;place-items:center;width:36px;height:36px;display:grid}.purchase-field-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.purchase-field-grid input,.purchase-top input,.purchase-top select,.payment-section input,.payment-section select{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:12px;outline:none;width:100%;min-height:46px;padding:10px 11px}.purchase-line-total{border-top:1px dashed #cbd5e1;justify-content:space-between;align-items:center;margin-top:12px;padding-top:12px;display:flex}.payment-section{margin-top:18px}@media (width<=430px){.purchase-field-grid{grid-template-columns:1fr}}.receipt-business{text-align:center;border-bottom:1px dashed #cbd5e1;padding-bottom:14px}.receipt-business h2{margin:0}.receipt-business p{color:#64748b;margin:5px 0 0}.receipt-meta-row{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;gap:14px;padding:11px 0;font-size:13px;display:flex}.receipt-item-list{border-bottom:1px dashed #cbd5e1;gap:10px;padding:15px 0;display:grid}.receipt-item-row{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.receipt-item-row>div{gap:4px;display:grid}.receipt-item-row span{color:#64748b;font-size:12px}.receipt-grand-total{padding:16px 0;font-size:19px}.receipt-download-backdrop{z-index:200;background:#0f172a99;justify-content:center;align-items:flex-end;padding:16px;display:flex;position:fixed;inset:0}.receipt-download-sheet{background:#fff;border-radius:22px;width:min(100%,520px);padding:22px}.receipt-download-sheet h3{margin:0 0 6px;font-size:20px}.receipt-download-sheet p{color:#64748b;margin:0 0 18px}.receipt-download-sheet .secondary,.receipt-download-sheet .text-button{margin-top:10px}
