/* ui.css : shared page pieces for checkout, order, account-style pages */
* { box-sizing: border-box; }
body { margin: 0; background: #f7f7f9; color: #222; font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.page { max-width: 1100px; margin: 0 auto; padding: 22px 20px 30px; }
.page h1 { font-size: 25px; margin: 0 0 14px; }
.crumbs { font-size: 13px; color: #777; margin-bottom: 10px; } .crumbs a { color: #777; text-decoration: none; } .crumbs a:hover { color: #561373; }
.box { background: #fff; border: 1px solid #e6e6e6; border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; }
.box h2 { font-size: 17px; margin: 0 0 12px; }
.btn { display: inline-block; background: #561373; color: #fff; border: 0; border-radius: 8px; padding: 12px 26px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { filter: brightness(.92); } .btn.ghost { background: #fff; color: #561373; border: 1px solid #561373; } .btn.wide { display: block; width: 100%; }
.btn.wa { background: #25d366; } .btn:disabled { background: #bdbdbd; cursor: not-allowed; }
.msg { border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.msg.ok { background: #e7f6ee; color: #146c3f; border: 1px solid #bfe3cf; } .msg.err { background: #fdecee; color: #b00020; border: 1px solid #f3c2c9; } .msg.info { background: #fff8e1; color: #6b5200; border: 1px solid #f1dc9a; }
.msg p { margin: 0 0 4px; } .msg p:last-child { margin: 0; }
label.fl { display: block; font-size: 13.5px; font-weight: 500; margin: 12px 0 5px; } label.fl .req { color: #561373; }
.in { width: 100%; padding: 11px 12px; border: 1px solid #c9c9c9; border-radius: 8px; font: inherit; font-size: 14.5px; background: #fff; color: #222; }
.in:focus { outline: 2px solid rgba(86,19,115,.35); border-color: #561373; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; } @media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; } @media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.sumline { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; } .sumline.total { border-top: 1px solid #e6e6e6; margin-top: 6px; padding-top: 12px; font-size: 18px; font-weight: 700; color: #561373; }
.sumline .good { color: #146c3f; }
.miniitem { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13.5px; } .miniitem:last-child { border-bottom: 0; }
.miniitem .pic { width: 54px; height: 54px; border-radius: 8px; background: #f3f3f6; display: grid; place-items: center; overflow: hidden; font-size: 24px; } .miniitem .pic img { width: 100%; height: 100%; object-fit: cover; }
.miniitem small { color: #777; display: block; }
.paybox { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #d6d6d6; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; }
.paybox:has(input:checked) { border-color: #561373; background: #f9f2fc; } .paybox input { margin-top: 4px; accent-color: #561373; } .paybox small { color: #777; display: block; margin-top: 2px; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: 12.5px; font-weight: 600; background: #eee; color: #444; }
.pill.new { background: #e8f0fe; color: #1a56c4; } .pill.confirmed { background: #e0f4f4; color: #0b6b6b; } .pill.in_production { background: #fff3d6; color: #8a5a00; }
.pill.shipped { background: #efe6fb; color: #561373; } .pill.delivered { background: #e7f6ee; color: #146c3f; } .pill.cancelled { background: #fdecee; color: #b00020; }
.pill.paid { background: #e7f6ee; color: #146c3f; } .pill.pending { background: #fff3d6; color: #8a5a00; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; } .timeline li { position: relative; padding: 0 0 18px 30px; color: #999; font-size: 14.5px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #ddd; }
.timeline li::after { content: ''; position: absolute; left: 10px; top: 18px; bottom: 0; width: 2px; background: #e3e3e3; } .timeline li:last-child::after { display: none; }
.timeline li.done { color: #222; } .timeline li.done::before { background: #561373; } .timeline li.now { font-weight: 700; color: #561373; } .timeline li.now::before { box-shadow: 0 0 0 4px rgba(86,19,115,.18); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; } table.t th, table.t td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eee; vertical-align: top; } table.t th { color: #777; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.tablewrap { overflow-x: auto; }
