.order-wizard { max-width: 1120px; max-height: 94dvh; color: #e2e8f0; }
.order-wizard-body { min-width: 0; min-height: 0; width: 100%; margin: 0; padding: 24px 28px; }
.order-wizard-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.order-wizard-footer { padding: 16px 28px; flex-shrink: 0; background: #0f172a; border-radius: 0 0 16px 16px; }
.order-wizard .input-dark, .order-wizard .wizard-input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #475569; border-radius: 8px; padding: 10px 12px; background: #172235; color: #f8fafc; font-size: 14px; line-height: 20px; color-scheme: dark; }
.order-wizard input:focus-visible, .order-wizard select:focus-visible, .order-wizard button:focus-visible { outline: 2px solid #f59e0b; outline-offset: 3px; }
/* The search container already provides the rounded focus indicator. */
.order-wizard input[placeholder="Digite Nome, CPF ou Telefone..."] { min-width: 0; }
.order-wizard input[placeholder="Digite Nome, CPF ou Telefone..."]:focus { outline: none; box-shadow: none; }
.order-wizard input:disabled, .order-wizard select:disabled { opacity: .5; }
.order-wizard .label-text, .wizard-field { display: block; font-size: 13px; line-height: 20px; color: #cbd5e1; font-weight: 500; }
.wizard-field > input, .wizard-field > select { display: block; margin-top: 6px; }
.wizard-intro { color: #94a3b8; font-size: 14px; margin: 0 0 24px; }
.registration-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 36px; }
.registration-grid > div { min-width: 0; }
.registration-grid > div + div { border-left: 1px solid #334155; padding-left: 36px; }
.order-wizard .wizard-state { width: 64px; flex-shrink: 0; }
.wizard-section { min-width: 0; }
.wizard-section h4 { font-size: 16px; line-height: 24px; font-weight: 650; color: #f8fafc; margin-bottom: 16px; }
.order-workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.order-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.order-main > section + section { border-top: 1px solid #334155; padding-top: 22px; }
.wizard-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wizard-fields .field-full { grid-column: 1 / -1; }
.wizard-choice { display: flex; gap: 8px; margin-bottom: 16px; }
.wizard-choice button { flex: 1; border-radius: 8px; border: 1px solid #334155; padding: 10px; color: #cbd5e1; background: transparent; font-size: 13px; transition: background .15s; }
.wizard-choice button[aria-pressed=true] { background: #f59e0b; border-color: #f59e0b; color: #111827; font-weight: 700; }
.wizard-choice button:hover { border-color: #f59e0b; }
.wizard-inline-note { color: #94a3b8; font-size: 12px; line-height: 18px; margin-top: 8px; }
.wizard-add-row { display: flex; align-items: stretch; gap: 12px; margin-top: 18px; }
.wizard-quantity { display: flex; align-items: center; gap: 12px; border: 1px solid #475569; border-radius: 8px; padding: 2px 6px; }
.wizard-quantity button { padding: 10px; }
.wizard-quantity strong { min-width: 24px; text-align: center; }
.wizard-add-button { flex: 1; min-height: 44px; display: flex; gap: 8px; align-items: center; justify-content: center; border-radius: 8px; background: #f59e0b; color: #111827; font-weight: 700; }
.wizard-add-button:hover { background: #fbbf24; }
.wizard-add-button:disabled { opacity: .45; cursor: not-allowed; }
.wizard-summary { position: static; background: #172235; border-radius: 12px; padding: 20px; min-width: 0; }
.wizard-summary h4 { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 16px; font-weight: 650; font-size: 16px; }
.wizard-item-list { max-height: 290px; overflow-y: auto; }
.wizard-order-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #334155; font-size: 13px; }
.wizard-order-item > span { overflow-wrap: anywhere; }
.wizard-order-item button { padding: 8px; color: #f87171; }
.wizard-order-item small { display: block; margin-top: 4px; color: #94a3b8; }
.wizard-empty { padding: 24px 0; color: #94a3b8; font-size: 14px; line-height: 22px; }
.wizard-totals { border-top: 1px solid #475569; margin-top: 16px; padding-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.wizard-money-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.wizard-money-row input { width: 116px !important; text-align: right; }
.wizard-total { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 20px; color: #fbbf24; border-top: 1px solid #475569; padding-top: 16px; }
.wizard-availability { font-size: 12px; color: #94a3b8; margin-top: 14px; }
.wizard-availability summary { cursor: pointer; padding: 8px 0; }
.wizard-availability-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #334155; }
@media (max-width: 760px) {
 .order-wizard-overlay { padding: 8px; }
 .order-wizard { max-height: 98dvh; }
 .order-wizard-body { padding: 20px 16px; }
 .order-wizard-footer { padding: 14px 16px; gap: 10px; }
 .order-wizard-footer button { padding: 12px 16px; font-size: 13px; }
 .registration-grid, .order-workspace { grid-template-columns: minmax(0, 1fr); gap: 24px; }
 .registration-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid #334155; padding-top: 24px; }
 .wizard-summary { position: static; }
}
@media (max-width: 420px) { .wizard-fields { grid-template-columns: minmax(0, 1fr); } .registration-grid .grid-cols-2 { grid-template-columns: minmax(0, 1fr); } }

/* Customer registration and delivery are separate, sequential forms. */
.wizard-progress {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:0;padding:0 24px;border-bottom:1px solid #334155;flex-shrink:0;}
.wizard-progress li {display:flex;align-items:center;justify-content:center;gap:8px;padding:18px 4px;border-bottom:2px solid transparent;color:#94a3b8;font-size:13px;font-weight:600;}
.wizard-progress li.is-current {color:#fbbf24;border-bottom-color:#f59e0b;}
.wizard-progress li.is-complete {color:#e2e8f0;}
.wizard-step-number {display:flex;width:24px;height:24px;align-items:center;justify-content:center;border:1px solid #475569;border-radius:50%;font-size:12px;flex-shrink:0;}
.is-current .wizard-step-number {color:#0f172a;background:#f59e0b;border-color:#f59e0b;}
.wizard-form-step {max-width:680px;margin:0 auto;display:flex;flex-direction:column;gap:22px;}
.wizard-step-heading {margin-bottom:2px;}
.wizard-step-heading h4 {font-size:21px;line-height:28px;color:#f8fafc;font-weight:650;margin:0 0 6px;}
.wizard-step-heading p {font-size:14px;line-height:22px;color:#94a3b8;margin:0;}
.wizard-form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
.wizard-form-field, .wizard-form-grid>div {min-width:0;}
.wizard-form-field label,.wizard-form-grid .label-text {display:block;font-size:13px;line-height:20px;color:#cbd5e1;font-weight:500;margin-bottom:6px;}
.wizard-form-step .input-dark {min-width:0;width:100%;}
.order-wizard-body {overflow-x:hidden;}
@media(max-width:580px){.wizard-form-grid {grid-template-columns:minmax(0,1fr);gap:18px;}.wizard-progress {padding:0 8px;}.wizard-progress li {flex-direction:column;gap:6px;font-size:11px;padding:12px 2px;}.wizard-form-step {gap:20px;}.order-wizard-footer button {font-size:12px;padding:12px;}}
