.checkout-dialog { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #e5e5ea; border-radius: 26px; background: #fff; color: #242424; box-shadow: 0 28px 90px #0003; overflow-y: auto; }
.checkout-dialog::backdrop { background: #16162188; backdrop-filter: blur(6px); }
.checkout-body { display: grid; gap: 16px; padding: 26px; }
.checkout-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.checkout-heading h2 { font-size: 25px; letter-spacing: -.6px; }
.checkout-heading .muted { font-size: 12px; margin-bottom: 5px; }
.checkout-close { flex-shrink: 0; border: 0; background: #f2f2f7; color: #555; width: 40px; height: 40px; border-radius: 50%; font-size: 27px; cursor: pointer; }
.checkout-total { display: grid; gap: 6px; text-align: center; padding: 18px; border-radius: 18px; background: #f2f2f7; }
.checkout-total span { font-size: 13px; color: #686870; }
.checkout-total strong { font-size: 36px; font-variant-numeric: tabular-nums; }
.checkout-dialog .btn { width: 100%; min-height: 48px; }
.checkout-dialog label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
.checkout-dialog input { font-size: 16px; min-height: 48px; }
.checkout-dialog input:focus-visible, .checkout-dialog button:focus-visible, .checkout-dialog summary:focus-visible { outline: 2px solid #666; outline-offset: 3px; }
#cashReceivedInput { font-size: 26px; text-align: center; }
.checkout-change { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: #edf6ee; color: #245831; }
.checkout-change strong { font-size: 24px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.checkout-error { color: #ad332c; font-size: 13px; }
.checkout-error:empty { display: none; }
.checkout-invoice { border-top: 1px solid #eee; padding-top: 16px; }
.checkout-invoice summary { cursor: pointer; min-height: 40px; font-weight: 600; }
.checkout-invoice form { display: grid; gap: 13px; margin-top: 16px; }
.checkout-invoice .muted { font-size: 12px; line-height: 1.5; }
.checkout-invoice > .btn { margin-top: 12px; }
.checkout-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-fiscal { border: 0; padding: 0; margin: 0; display: grid; gap: 13px; min-width: 0; }
.checkout-fiscal[hidden] { display: none; }
.checkout-fiscal .muted { font-size: 12px; line-height: 1.5; }
.checkout-preview { width: min(920px, calc(100vw - 24px)); }
.checkout-preview-tools { display: flex; gap: 16px; align-items: end; }
.checkout-preview-tools label { flex: 1; }
.checkout-preview-tools .btn { width: auto; min-width: 120px; }
#receiptPreviewContent { overflow: auto; background: #e8e8ed; border-radius: 14px; }
#receiptPreviewContent iframe { display: block; width: 100%; height: 60dvh; min-height: 300px; border: 0; }
@media (max-width: 480px) { .checkout-body { padding: 20px; } .checkout-heading h2 { font-size: 23px; } }
.invoice-customer-results{display:grid;gap:6px;margin-top:-8px;padding:6px;border:1px solid #ddd;border-radius:10px;background:#fff}.invoice-customer-results button{display:grid;gap:2px;padding:9px;text-align:left;border:0;border-radius:7px;background:#f7f7f8;cursor:pointer}.invoice-customer-results button:hover{background:#ececf0}.invoice-customer-results small{color:#666}
