/* Confirmações e acompanhamento usam a identidade configurada na loja. */
.store-confirm{box-sizing:border-box;width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:28px;border:1px solid var(--theme-border);border-radius:18px;background:var(--theme-surface);color:var(--theme-text);box-shadow:0 22px 70px #0003}
.store-confirm::backdrop{background:#140c17a6}
.store-confirm-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
.store-confirm-symbol{display:grid;place-items:center;width:42px;height:42px;background:var(--theme-selection);color:var(--theme-selection-text);border-radius:13px;font-size:24px;font-weight:700}
.store-confirm .store-confirm-close{width:36px;height:36px;min-height:36px;padding:0;background:var(--theme-background);color:var(--theme-text);border:1px solid var(--theme-border);border-radius:50%;font-size:23px;line-height:1}
.store-confirm h2{margin:0 0 12px;font-size:24px;letter-spacing:-.04em;line-height:1.3}
.store-confirm p{font-size:14px;line-height:1.7;margin:0 0 24px;white-space:pre-line;overflow-wrap:anywhere}
.store-confirm-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}
.store-confirm-actions button{min-height:44px;padding:12px 17px;font-size:13px;border-radius:8px;white-space:normal;overflow-wrap:anywhere}
.order-action-icon{display:block;width:18px;height:18px;flex:0 0 18px}
.admin-order-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:18px 0}
.admin-order-controls .admin-order-update{flex:1 1 480px;margin:0;align-items:flex-end;min-width:0;flex-wrap:wrap}
.admin-order-update label{flex:1 1 180px;min-width:0;margin:0}
.admin-order-update select{width:100%;min-width:0}
.admin-order-update button,.admin-order-delete button,.admin-order-restore button,.customer-order-delete button,.store-confirm-actions button,.admin-orders-tabs a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px}
.admin-order-delete,.admin-order-restore{margin:0}
.admin-orders-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}
.admin-orders-tabs a{font-size:13px;padding:11px 15px}
@media(max-width:540px){.admin-order-controls{align-items:stretch}.admin-order-controls>form{flex-basis:100%;min-width:0}.admin-order-update button,.admin-order-delete button{width:100%}.admin-order-update label{flex-basis:100%}}
.order-flow .order-flow-stages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:24px 0;padding:0}
.order-flow .order-flow-stages li{position:relative;min-width:0;display:flex;align-items:center;gap:10px;padding:15px 12px 19px;border:1px solid var(--line);border-radius:10px;background:var(--theme-surface);color:var(--theme-muted);font-size:12px;line-height:1.4;overflow:hidden}
.flow-step-icon{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:var(--theme-background)}
.flow-step-icon svg{display:block;width:19px;height:19px}
.order-flow .order-flow-stages .done{background:var(--theme-background);color:var(--theme-text)}
.order-flow-stages .done .flow-step-icon{background:var(--theme-selection);color:var(--theme-selection-text)}
.order-flow .order-flow-stages .current{border-color:var(--theme-button);color:var(--theme-text);font-weight:700;box-shadow:inset 0 0 0 1px var(--theme-button)}
.order-flow-stages .current .flow-step-icon{background:var(--theme-button);color:var(--theme-button-text)}
.customer-order-steps .step-in-progress{position:relative;padding-bottom:9px;overflow:hidden}
.step-in-progress:after{content:"";position:absolute;left:0;bottom:0;width:32%;height:3px;border-radius:4px;background:var(--theme-button);opacity:0;animation:store-step-sweep 1.4s ease-in-out 3}
@keyframes store-step-sweep{0%{transform:translateX(-110%);opacity:0}15%{opacity:.7}85%{opacity:.7}100%{transform:translateX(330%);opacity:0}}
@media(prefers-reduced-motion:reduce){.step-in-progress:after{animation:none}}
@media(max-width:1000px){.order-flow .order-flow-stages{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.order-flow .order-flow-stages{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.order-flow .order-flow-stages li{padding:12px 10px 16px;gap:8px;font-size:11px}.store-confirm{padding:22px}.store-confirm-actions button{flex:1 1 120px}.store-confirm h2{font-size:22px}}

/* Pedidos: comunicação e exclusão permanente. */
.order-communication{border-top:1px solid var(--line);padding-top:20px;margin-top:24px;overflow-wrap:anywhere}
.order-communication .inline-form{align-items:center;gap:12px;flex-wrap:wrap}
.order-communication form{margin:0}.order-communication button,.order-whatsapp{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.order-email-history{margin-top:16px}.order-email-history li{margin:14px 0;line-height:1.6}
.order-purge{margin:18px 0 24px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--theme-surface)}
.order-purge summary{cursor:pointer;font-weight:700}.order-purge summary svg{display:inline-block;vertical-align:middle;margin-right:8px}
.order-purge button{display:inline-flex;align-items:center;gap:8px}.order-purge form{margin:0}
@media(max-width:540px){.order-communication .inline-form>*{width:100%;min-width:0}.order-communication button{width:100%}.order-purge{padding:14px}.order-purge button{width:100%;justify-content:center}}

.order-purge-trigger{margin:18px 0}.order-purge-trigger button{display:inline-flex;align-items:center;gap:8px}.order-purge-dialog{max-height:90vh;overflow:auto}.order-purge-dialog .check{margin:22px 0}.order-purge-dialog form{margin:0}
