/* Yummy receipt: a warm paper ticket inside the existing order dialog. */
body .candy-dialog:has(#live-order) { width:700px; max-width:calc(100vw - 28px); padding:20px; background:#21192f; border-color:#78568d; border-radius:25px; }
.candy-dialog:has(#live-order) #dialog-content { padding-top:30px; }
.candy-dialog:has(#live-order) .dialog-close { top:9px; right:12px; width:29px; height:29px; min-height:29px; font-size:22px; background:#382b48; }
body .order-receipt { --receipt-ink:#30263b; --receipt-muted:#75687c; --receipt-line:#e2d6dc; --status-ink:#765514; --status-bg:#f8e8c6; color:var(--receipt-ink); background:#fffaf1; border:1px solid #f9e4b8; border-radius:17px; overflow:hidden; box-shadow:0 12px 36px #0f091c30; }
body .order-receipt[data-status=SUCCEEDED],body .order-receipt[data-status=REFUNDED] { --status-ink:#246652; --status-bg:#e0f0e5; }
body .order-receipt[data-status=VERIFIED] { --status-ink:#3f5f92; --status-bg:#e4ecf9; }
body .order-receipt:is([data-status=FAILED],[data-status=EXPIRED]) { --status-ink:#a43d48; --status-bg:#f9e5e5; }
body .order-receipt[data-status=CANCELLED] { --status-ink:#685b73; --status-bg:#ebe5ee; }
body .order-receipt .receipt-brand { position:relative; margin:0; padding:23px 25px; gap:12px; border:0; background:radial-gradient(ellipse at 90% 15%,#86659a66,transparent 63%),url('/assets/brand/yummy-starlight-20261003.svg') 80% 42% / 700px,linear-gradient(115deg,#382049,#24192f); }
body .receipt-brand .ys-mark { width:43px; height:43px; flex:none; }
body .receipt-brand strong { font-size:22px; color:#ffe0a0; line-height:1.2; }
body .receipt-brand>div>span { font-size:8px; letter-spacing:2.2px; color:#d4bedf; margin-top:7px; }
body .receipt-brand .receipt-kind { font-size:8px; letter-spacing:1px; color:#f7d69c; border:1px solid #dabb7c59; padding:6px 8px; border-radius:6px; margin-left:auto; text-align:center; }
.receipt-paper { padding:0 25px 22px; }
.receipt-reference { position:relative; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 -25px 25px; padding:17px 25px; border-bottom:1px dashed #d0bdcb; background:#f5eadf; }
.receipt-reference::before,.receipt-reference::after { content:''; position:absolute; width:20px; height:20px; bottom:-10px; border-radius:50%; background:#21192f; }
.receipt-reference::before { left:-11px; }.receipt-reference::after { right:-11px; }
.receipt-reference>div { min-width:0; }
.receipt-reference>div>span { display:block; font-size:8px; letter-spacing:1.7px; font-weight:700; color:#8a707e; margin-bottom:3px; }
.receipt-reference strong { font-size:12px; letter-spacing:.5px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
body .receipt-copy { color:#654675; background:#fff9f0; border:1px solid #d8c2d2; border-radius:7px; padding:7px 11px; font-size:11px; font-weight:700; min-height:34px; flex:none; cursor:pointer; }
.receipt-status { display:flex; align-items:center; gap:15px; }
.receipt-status-icon { display:grid; place-items:center; width:54px; height:54px; flex:none; border-radius:18px; background:var(--status-bg); color:var(--status-ink); box-shadow:inset 0 0 0 1px #00000005; }
.receipt-status-icon .ui-icon { width:31px; height:31px; stroke-width:1.7; }
.receipt-status-label { display:block; color:var(--status-ink); font-size:8px; font-weight:800; letter-spacing:1.2px; margin-bottom:5px; }
body .order-receipt h2 { font-family:YummyDisplay,Jakarta,sans-serif; font-size:29px; font-weight:400; color:var(--receipt-ink); line-height:1.12; letter-spacing:.1px; margin:0; }
body .order-receipt h3 { color:var(--receipt-ink); }
body .order-receipt .order-progress { margin:25px 0 20px; gap:5px; }
body .order-receipt .order-progress.vip-progress { grid-template-columns:repeat(3,minmax(0,1fr)); }
body .order-receipt .order-progress li { font-size:9px; color:#817489; font-weight:500; }
body .order-receipt .order-progress li::before { content:''; position:absolute; left:calc(-50% + 19px); right:calc(50% + 19px); top:14px; height:1px; background:#dfd1de; }
body .order-receipt .order-progress li:first-child::before { content:none; }
body .order-receipt .order-progress b { width:29px; height:29px; font-size:11px; color:#8b7b91; background:#eee6eb; border:1px solid #e0d3df; }
body .order-receipt .order-progress .done { color:#654479; }
body .order-receipt .order-progress .done b { color:#fff4e0; background:#694481; border-color:#694481; }
body .order-receipt .order-progress .done::before { background:#a187b1; }
body .order-receipt .order-thanks { margin:0 0 20px; padding:11px 14px; background:#edf3e9; border-left:3px solid #8bad89; border-radius:0 8px 8px 0; color:#45694e; font-size:11px; line-height:1.65; }
body .order-receipt .order-product { padding:17px 0 12px; border-top:1px solid var(--receipt-line); }
.receipt-product-heading { display:flex; align-items:center; gap:12px; margin-bottom:11px; }
.receipt-product-heading>div { min-width:0; }
.receipt-product-art { display:grid; place-items:center; flex:none; width:50px; height:50px; background:#ede2f1; border:1px solid #d7c4de; border-radius:12px; color:#715286; overflow:hidden; }
.receipt-product-art img { display:block; width:100%; height:100%; object-fit:cover; }
.receipt-product-art .ui-icon { width:25px; height:25px; }
.receipt-section-label { display:block; color:#8b737f; font-size:8px; letter-spacing:1.4px; font-weight:800; margin-bottom:6px; }
body .receipt-product-heading h3 { font-size:17px; margin:0; line-height:1.4; letter-spacing:-.4px; overflow-wrap:anywhere; }
body .order-receipt .summary-line { padding:9px 0; border-color:var(--receipt-line); gap:15px; font-size:11px; }
body .order-receipt .summary-line span { color:var(--receipt-muted); min-width:0; }
body .order-receipt .summary-line strong { color:var(--receipt-ink); font-weight:700; font-variant-numeric:tabular-nums; }
body .order-receipt .receipt-payment { padding:15px 0 8px; }
body .order-receipt .summary-total { position:relative; background:linear-gradient(115deg,#f5e3ba,#f8ecd3); border:1px solid #e2c997; border-radius:11px; margin:13px 0 8px; padding:16px; gap:12px; color:#5a412e; }
body .order-receipt .summary-total>span { font-size:11px; color:#71543b; }
body .order-receipt .summary-total strong { font-size:27px; color:#422d3f; letter-spacing:-1px; font-variant-numeric:tabular-nums; }
body .order-receipt .field-note { font-size:10px; line-height:1.7; color:var(--receipt-muted); }
body .order-receipt .notice { background:#eee8f4; border:1px solid #d8cae1; color:#59416b; font-size:11px; }
body .order-receipt .notice.warning { background:#fbecd7; border-color:#e2ccab; color:#805a2e; }
body .order-receipt .notice p { color:inherit; }
body .order-receipt .order-qris { margin:15px 0; padding:20px 14px 4px; background:#fffefa; border:1px solid #e3d8dc; border-radius:13px; }
body .order-receipt .payment-qr { display:block; max-width:100%; width:240px; height:auto; padding:10px; border-radius:8px; background:white; margin:auto; }
body .order-receipt .order-qris>p { font-size:11px; color:var(--receipt-muted); }
body .order-receipt .receipt-proof { padding-top:17px; border-top:1px dashed #d0bdcb; margin-top:16px; }
body .order-receipt .receipt-proof h3 { font-size:12px; margin:0 0 10px; }
.receipt-proof h3>span { font-size:9px; color:#8a717f; font-weight:500; margin-left:5px; }
body .order-receipt .receipt-sn { font-size:11px; line-height:1.7; color:#604e6b; background:#f1e9f0; border:1px dashed #cbb4d1; border-radius:9px; margin:0 0 10px; padding:12px; }
body .order-receipt .btn-secondary { background:#f3eaf2; border-color:#d7c5dc; color:#654675; font-size:11px; min-height:35px; padding:8px 13px; }
body .order-receipt .receipt-foot { text-align:center; border-top:1px dashed #d0bdcb; padding:18px 0 0; margin:23px 0 0; color:#89717d; }
.receipt-foot>strong { display:block; color:#72547e; font-size:13px; letter-spacing:-.2px; margin-bottom:6px; }
.receipt-foot>span { display:block; font-size:9px; line-height:1.6; }
body #live-order-message { font-size:11px; color:#c6b6d3; text-align:center; margin:16px 0 12px; }
body #live-order-actions { gap:9px; }
body #live-order-actions .btn { font-size:12px; }
body #live-order-actions .btn-primary { box-shadow:0 3px 0 #a67e40; }
@media(min-width:600px) {
 .receipt-paper { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:24px; }
 .receipt-reference,.receipt-status,.order-progress,.order-thanks,.order-qris,.receipt-paper>.notice,.receipt-proof,.receipt-foot { grid-column:1/-1; }
 body .order-receipt .receipt-payment { padding-top:17px; border-top:1px solid var(--receipt-line); }
 body .order-receipt .summary-total { display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
}
@media(max-width:480px) {
 body .candy-dialog:has(#live-order) { max-width:calc(100vw - 18px); padding:11px; border-radius:19px; }
 body .order-receipt { border-radius:13px; }
 body .order-receipt .receipt-brand { padding:18px 16px; gap:9px; }
 body .receipt-brand .ys-mark { width:35px; height:35px; }
 body .receipt-brand strong { font-size:19px; }
 body .receipt-brand>div>span { font-size:6px; letter-spacing:1.7px; }
 body .receipt-brand .receipt-kind { font-size:6px; padding:5px; letter-spacing:.7px; max-width:74px; }
 .receipt-paper { padding:0 16px 18px; }
 .receipt-reference { margin:0 -16px 21px; padding:14px 16px; }
 .receipt-reference strong { font-size:11px; }
 .receipt-status { gap:11px; }
 .receipt-status-icon { width:45px; height:45px; border-radius:14px; }
 .receipt-status-icon .ui-icon { width:26px; height:26px; }
 body .order-receipt h2 { font-size:25px; }
 body .order-receipt .order-progress li { font-size:8px; }
 body .receipt-product-heading h3 { font-size:15px; }
 .receipt-product-art { width:43px; height:43px; border-radius:10px; }
 body .order-receipt .summary-line { font-size:10px; }
 body .order-receipt .summary-total { padding:13px 12px; }
 body .order-receipt .summary-total strong { font-size:24px; }
 .receipt-foot>span { font-size:8px; }
}
@media print {
 body.printing-yummy-invoice #store-dialog { background:white!important; }
 body.printing-yummy-invoice .order-receipt .receipt-foot { display:block!important; }
 body .order-receipt { background:white; border:1px solid #d7cbdc; box-shadow:none; color:#28202d; }
 body .order-receipt .receipt-brand { background:#f6eef8; border-bottom:1px solid #d7cbdc; }
 body .receipt-brand strong { color:#4a2859; }
 body .receipt-brand>div>span,body .receipt-brand .receipt-kind { color:#735d7e; }
 .receipt-reference::before,.receipt-reference::after,[data-copy-invoice] { display:none!important; }
 body .order-receipt h2 { font-family:Jakarta,sans-serif; font-size:24px; font-weight:800; }
 body .order-receipt .receipt-paper { padding-bottom:15px; }
 body .candy-dialog:has(#live-order) #dialog-content { padding-top:0; }
 .receipt-status,.receipt-reference,.order-progress { break-inside:avoid; }
}
