.payment-card{max-width:680px;margin:auto}.payment-qr{display:block;width:min(100%,340px);height:auto;margin:24px auto;border-radius:16px}.deposit-presets{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.delivered-box{padding:20px;background:#f3f6fc;border:1px solid #dae3f0;border-radius:14px;margin:18px 0;overflow-wrap:anywhere}.delivered-box pre{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.8 monospace}.rating-form{display:flex;gap:14px;flex-wrap:wrap;align-items:center}.buy-panel fieldset{margin:16px 0;border:1px solid #dae3f0;border-radius:12px}.buy-panel summary{cursor:pointer;list-style:none}.account-card dd{overflow-wrap:anywhere}.account-card input[type=number]{padding:12px;border:1px solid #cbd5e1;border-radius:10px;font:inherit;width:min(100%,320px)}
.rating-form label{display:inline-flex;align-items:center;gap:5px}.rating-form .ic{color:#e6a817}.buy-panel summary::-webkit-details-marker{display:none}.buy-panel summary.button{display:inline-flex;align-items:center;justify-content:center;gap:8px}.payment-card .button .ic,.delivered-box .button .ic{flex:none}
/* Keep commerce controls bounded even when this stylesheet is used on its own. */
.ic{width:20px;height:20px;flex:none}
.ic-14{width:14px;height:14px}
.ic-16{width:16px;height:16px}
.ic-18{width:18px;height:18px}
.ic-20{width:20px;height:20px}
.ic-22{width:22px;height:22px}
.ic-24{width:24px;height:24px}
.ic-28{width:28px;height:28px}
.ic-32{width:32px;height:32px}
.ic-40{width:40px;height:40px}
.product-card .button,.mobile-buy .button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.product-card .button .ic,.buy-panel .button .ic,.mobile-buy .button .ic{width:20px;height:20px;max-width:22px;max-height:22px;flex:none}
.account-card .order-data-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 22px;border-radius:999px;background:var(--blue);color:#fff;font-weight:700}
.account-card .order-data-button:hover{background:#00469d;color:#fff}

/* WEBSTRUK1: seluruh gaya struk dibatasi ke halaman detail pesanan. */
.struk-card{max-width:880px;margin:24px auto;background:#fff;border:1px solid #dce5ef;border-radius:22px;box-shadow:0 12px 40px #1238660a;overflow:hidden;color:#172b46}
.struk-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:28px 32px;border-bottom:1px dashed #dce5ef}
.struk-brand{font-size:30px}
.struk-caption{font-size:12px;font-weight:600;letter-spacing:.06em;color:#64748b}
.struk-status{display:flex;align-items:center;gap:18px;padding:30px 32px;--struk-tone:#0057c2;--struk-tint:#edf5ff}
.struk-status-success{--struk-tone:#16834a;--struk-tint:#eaf8ef}
.struk-status-processing{--struk-tone:#946000;--struk-tint:#fff6df}
.struk-status-cancelled{--struk-tone:#985154;--struk-tint:#f7eeee}
.struk-status-icon{display:flex;align-items:center;justify-content:center;flex:none;width:76px;height:76px;border-radius:50%;background:var(--struk-tint);color:var(--struk-tone)}
.struk-status-copy{flex:1;min-width:0}
.struk-status-copy h2{margin:0 0 8px;font-size:23px;line-height:1.3}
.struk-status-copy p{margin:0;color:#64748b;font-size:14px;line-height:1.7}
.struk-badge{align-self:flex-start;padding:7px 12px;border-radius:999px;background:var(--struk-tint);color:var(--struk-tone);font-size:11px;font-weight:800;letter-spacing:.05em;white-space:nowrap}
.struk-info{margin:0 32px;padding:22px 0;border-top:1px dashed #dce5ef;border-bottom:1px dashed #dce5ef}
.struk-info>div,.struk-summary>div{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding:8px 0}
.struk-info dt,.struk-summary dt{color:#64748b;font-size:14px;flex-shrink:0}
.struk-info dd,.struk-summary dd{margin:0;text-align:right;font-weight:700;overflow-wrap:anywhere;min-width:0}
.struk-info-product{display:block}
.struk-products{padding:26px 32px}
.struk-products h2,.struk-delivery h2{font-size:19px;margin:0 0 18px}
.struk-table-wrap{overflow-x:auto;border:1px solid #e2e8f0;border-radius:12px}
.struk-table{width:100%;border-collapse:collapse;font-size:14px}
.struk-table th{background:#f7f9fc;color:#64748b;font-size:12px;font-weight:600}
.struk-table th,.struk-table td{padding:14px 12px;text-align:right;vertical-align:top}
.struk-table th:first-child,.struk-table td:first-child{text-align:left;min-width:180px}
.struk-table td{border-top:1px solid #e2e8f0;font-variant-numeric:tabular-nums}
.struk-table td:not(:first-child){white-space:nowrap}
.struk-table small{display:block;color:#64748b;font-size:12px;margin-top:5px;line-height:1.6}
.struk-summary{margin:18px 0 0}
.struk-summary .struk-total{margin-top:12px;padding:18px 20px;border-radius:12px;background:#eaf3ff;color:#0057c2;font-size:21px}
.struk-total dt{color:#0057c2;font-weight:700;font-size:16px}
.struk-delivery{padding:0 32px 28px;overflow-wrap:anywhere}
.struk-delivery:empty{display:none}
.struk-delivery .delivered-box{margin:16px 0}
.struk-delivery .rating-form{gap:12px}
.struk-delivery .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;white-space:normal}
.struk-footer{padding:24px 32px;text-align:center;border-top:1px dashed #dce5ef}
.struk-footer strong{font-size:15px}
.struk-footer p{margin:8px 0 0;font-size:12px;color:#64748b;line-height:1.7}
@media(max-width:600px){
  .struk-card{border-radius:16px;margin:18px auto}
  .struk-header{padding:20px;flex-wrap:wrap}
  .struk-status{padding:24px 20px;gap:12px;flex-wrap:wrap}
  .struk-status-icon{width:60px;height:60px}
  .struk-status-copy{flex-basis:calc(100% - 72px)}
  .struk-status-copy h2{font-size:20px}
  .struk-badge{margin-left:auto}
  .struk-info{margin:0 20px}
  .struk-info>div{gap:12px}
  .struk-info dt{font-size:12px}
  .struk-info dd{font-size:13px}
  .struk-products{padding:24px 20px}
  .struk-table th,.struk-table td{padding:12px 10px}
  .struk-summary .struk-total{padding:16px 12px;gap:10px;font-size:18px}
  .struk-total dt{font-size:14px}
  .struk-delivery{padding:0 20px 24px}
  .struk-footer{padding:22px 20px}
}
@media(max-width:480px){
  .struk-table-wrap{overflow:visible;min-width:0}
  .struk-table,.struk-table tbody,.struk-table tr{display:block;min-width:0}
  .struk-table{font-size:13px}
  .struk-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .struk-table tr{padding:12px}
  .struk-table tr+tr{border-top:1px solid #e2e8f0}
  .struk-table td{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border:0;min-width:0}
  .struk-table td:first-child{display:block;min-width:0;padding:0 0 8px;overflow-wrap:anywhere}
  .struk-table td:not(:first-child)::before{color:#64748b;font-size:12px;font-weight:600;text-align:left}
  .struk-table td:nth-child(2)::before{content:'Harga Satuan'}
  .struk-table td:nth-child(3)::before{content:'Qty'}
  .struk-table td:nth-child(4)::before{content:'Subtotal'}
}
