.order-confirm-dialog { width: min(660px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #cfdbcd; border-radius: 20px; background: var(--card); color: var(--ink); padding: 24px; box-shadow: 0 24px 72px rgba(10, 35, 25, 0.3); }
.order-confirm-dialog::backdrop { background: rgba(14, 33, 25, 0.58); }
.order-confirm-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.order-confirm-header h2 { font-size: 22px; color: var(--green-d); margin-bottom: 8px; }
.order-confirm-header .ghost { font-size: 20px; min-width: 40px; min-height: 40px; padding: 6px; }
.order-confirm-hint { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; }
.order-review-customer { padding: 16px; border: 1px solid #c8d9c4; border-left: 4px solid var(--green); background: #eef5ec; border-radius: 12px; margin: 14px 0; }
.order-review-customer > small { color: var(--muted); font-size: 12px; }
.order-review-customer > strong { display: block; font-size: 24px; color: var(--green-d); margin: 6px 0; overflow-wrap: anywhere; }
.order-review-phone { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; margin-bottom: 8px; }
.order-review-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.order-review-warning { color: #835819; background: #fff0cf; border-radius: 8px; padding: 9px 12px; margin: 12px 0; font-size: 13px; line-height: 1.5; }
.order-review-lines { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 14px 0; max-height: 180px; overflow-y: auto; }
.order-review-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--line); font-size: 13px; align-items: baseline; }
.order-review-line:last-child { border: 0; }
.order-review-line > span:first-child { overflow-wrap: anywhere; }
.order-review-line small { display: block; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.order-review-line .review-qty { color: var(--muted); white-space: nowrap; }
.order-review-line b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-review-line.in { color: var(--red); }
.order-review-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.order-review-amount { background: #f2f3ed; border: 1px solid var(--line); padding: 10px 12px; border-radius: 10px; min-width: 0; }
.order-review-amount span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.order-review-amount b { font-size: 18px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.order-review-amount.has-debt { background: #fff2d8; border-color: #e1c592; color: #7b5518; }
.order-review-received { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--green-d); color: #fff; border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.order-review-received b { font-size: 26px; font-variant-numeric: tabular-nums; }
.order-review-footer { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 12px 0 4px; }
.order-review-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.order-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: sticky; bottom: -24px; background: var(--card); padding: 16px 0 0; margin-top: 12px; }
.order-confirm-actions .ghost { background: #fff; }
@media (max-width: 699px) {
  .order-confirm-dialog { padding: 18px; max-height: calc(100dvh - 24px); }
  .order-confirm-actions { bottom: -18px; gap: 10px; }
  .order-review-customer > strong { font-size: 21px; }
  .order-review-received { flex-wrap: wrap; }
  .order-review-line { gap: 8px; }
}
.ui-update-banner { position: sticky; top: 0; z-index: 22; background: #fff0cd; color: #6c4b15; border-bottom: 1px solid #dfbd78; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; line-height: 1.5; }
.order-confirm-dialog:not([open]) { display: none; }
.order-confirm-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(14, 33, 25, 0.58); }
.order-confirm-dialog.dialog-fallback { display: block; position: fixed; top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); margin: 0; z-index: 81; }
body.review-modal-open { overflow: hidden; }
@media (max-width: 699px) { .ui-update-banner { padding: 10px 14px; } }
.order-review-price-alert { color: #a3271c; background: #fdece9; border: 1px solid #eec5bd; border-radius: 8px; padding: 9px 12px; margin: 12px 0; font-size: 13px; line-height: 1.6; }
.order-review-price-alert strong { display: block; }
.order-review-price-alert span { display: block; }
.order-review-line.price-bad { color: #a3271c; background: #fdece9; border-radius: 8px; }
.order-review-line.price-bad b { color: #a3271c; }
.order-review-line .price-bad-hint { color: #a3271c; font-weight: 700; }
