.pp-order-modal-v21{display:grid;gap:14px;color:#172033}
.pp-order-modal-v21__header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:8px 48px 14px 2px;border-bottom:1px solid #e3e8ef}
.pp-order-modal-v21__eyebrow,.pp-order-modal-v21__label{display:block;color:#7b8495;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.pp-order-modal-v21__header h2{margin:4px 0 3px;font-size:24px;line-height:1.08;letter-spacing:-.04em;color:#172033}
.pp-order-modal-v21__header p{margin:0;color:#667085;font-size:13px;font-weight:700}
.pp-order-modal-v21__total{color:#e51c23;font-size:22px;white-space:nowrap}
.pp-order-modal-v21__timeline{padding:13px;background:#fff;border:1px solid #e4e9f0;border-radius:18px}
.pp-order-modal-v21__state-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pp-order-modal-v21__state,.pp-order-modal-v21__next,.pp-order-modal-v21__items,.pp-order-modal-v21__totals,.pp-order-modal-v21__note,.pp-order-modal-v21__actions{background:#fff;border:1px solid #e4e9f0;border-radius:18px;padding:14px}
.pp-order-modal-v21__state strong,.pp-order-modal-v21__next strong{display:block;margin:5px 0 3px;font-size:16px}
.pp-order-modal-v21__state p,.pp-order-modal-v21__next p,.pp-order-modal-v21__note p{margin:0;color:#667085;font-size:13px;line-height:1.45}
.pp-order-modal-v21__details{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.pp-order-modal-v21__details>div{background:#fff;border:1px solid #e4e9f0;border-radius:15px;padding:12px;min-width:0}
.pp-order-modal-v21__details .is-wide{grid-column:1/-1}
.pp-order-modal-v21__details span{display:block;color:#7b8495;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}
.pp-order-modal-v21__details strong{display:block;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.pp-order-modal-v21__section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.pp-order-modal-v21__items ul{display:grid;gap:8px;list-style:none;margin:0;padding:0}
.pp-order-modal-v21__items li{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #edf0f4}
.pp-order-modal-v21__items li:last-child{border-bottom:0;padding-bottom:0}
.pp-order-modal-v21__items li>div{min-width:0}
.pp-order-modal-v21__items li strong{display:block;font-size:14px}
.pp-order-modal-v21__items li small{display:grid;gap:2px;margin-top:4px;color:#667085;font-size:12px}
.pp-order-modal-v21__items li b{white-space:nowrap;font-size:14px}
.pp-order-modal-v21__empty{margin:0;color:#667085}
.pp-order-modal-v21__totals div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;color:#667085;font-size:13px}
.pp-order-modal-v21__totals div+div{border-top:1px solid #f0f2f5}
.pp-order-modal-v21__totals b{color:#172033}
.pp-order-modal-v21__totals .is-total{margin-top:5px;padding-top:11px;font-size:18px;color:#172033;border-top:2px solid #172033}
.pp-order-modal-v21__action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.pp-order-modal-v21__action{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:44px;border:0;border-radius:14px;padding:10px 12px;background:#172033;color:#fff;font-weight:900;cursor:pointer}
.pp-order-modal-v21__action--cancel_order{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}
.pp-order-modal-v21__action--reopen_order{background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe}
.pp-order-modal-v21__closed{grid-column:1/-1;border-radius:14px;background:#f1f5f9;color:#475569;padding:12px;text-align:center;font-weight:900}
.pp-order-modal-v21__utilities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pp-order-modal-v21__utility{display:flex;align-items:center;justify-content:center;min-height:42px;border:1px solid #dfe4eb;border-radius:14px;background:#fff;color:#172033;text-decoration:none;font-weight:900;cursor:pointer}
.pp-order-modal-v21__utility.is-whatsapp{background:#ecfdf3;color:#08783e;border-color:#bbf7d0}
@media(max-width:600px){
  .pp-order-details-modal{padding:8px;padding-bottom:calc(8px + var(--pp-safe-bottom))}
  .pp-order-details-box{max-height:calc(100dvh - 16px - var(--pp-safe-bottom));border-radius:24px 24px 18px 18px}
  .pp-order-details-content{padding:13px 12px calc(20px + var(--pp-safe-bottom))}
  .pp-order-modal-v21__header{gap:10px;padding-right:42px}
  .pp-order-modal-v21__header h2{font-size:21px}
  .pp-order-modal-v21__total{font-size:18px}
  .pp-order-modal-v21__state-grid,.pp-order-modal-v21__details{grid-template-columns:1fr}
  .pp-order-modal-v21__details .is-wide{grid-column:auto}
  .pp-order-modal-v21__action-grid,.pp-order-modal-v21__utilities{grid-template-columns:1fr}
}

.pp-app .pp-delivery-panel .pp-card,
.pp-app .pp-driver-card{padding:13px!important;border-radius:20px!important;}.pp-app .pp-delivery-panel .pp-form,
.pp-app .pp-driver-card form{gap:8px!important;}.pp-delivery-line{background:#f8fafc!important;border:1px solid #e2e8f0!important;border-radius:14px!important;padding:10px 12px!important;margin-top:8px!important}.pp-delivery-msg{font-size:12px;font-weight:900;line-height:1.35;margin:7px 0 10px;padding:9px 11px;border-radius:14px;background:#f8fafc;color:#64748b;border:1px solid #e2e8f0}.pp-delivery-msg:empty{display:none}.pp-delivery-msg.is-ok{background:#ecfdf5;color:#047857;border-color:#bbf7d0}.pp-delivery-msg.is-error{background:#fff1f2;color:#be123c;border-color:#fecdd3}.pp-delivery-msg{font-size:13px!important;font-weight:900!important;line-height:1.45!important;margin:10px 0 12px!important;padding:12px 14px!important;border-radius:16px!important}.pp-delivery-msg.is-ok{background:#ecfdf5!important;color:#065f46!important;border:1px solid #86efac!important;box-shadow:0 8px 22px rgba(16,185,129,.10)!important}.pp-delivery-msg.is-error{background:#fff1f2!important;color:#9f1239!important;border:1px solid #fb7185!important;box-shadow:0 8px 22px rgba(244,63,94,.12)!important}.pp-order-print-date{margin:4px 0 0!important;color:#64748b!important;font-size:12px!important;font-weight:800!important;}.pp-order-print-full{grid-column:1/-1!important;}.pp-order-modal-items li small{display:block!important;margin-top:4px!important;color:#64748b!important;font-size:12px!important;font-weight:700!important;line-height:1.35!important;}.pp-order-print-totals{margin-top:12px!important;background:#fff!important;border:1px solid #e5e7eb!important;border-radius:16px!important;padding:10px 12px!important;}.pp-order-print-totals div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:6px 0!important;border-bottom:1px solid #f1f5f9!important;}.pp-order-print-totals div:last-child{border-bottom:0!important;}.pp-order-print-totals span{color:#64748b!important;font-size:13px!important;font-weight:900!important;}.pp-order-print-totals b{color:#111827!important;font-size:14px!important;font-weight:950!important;}.pp-order-print-total{margin-top:4px!important;padding-top:10px!important;border-top:2px solid #111827!important;font-size:18px!important;}.pp-order-print-total span,.pp-order-print-total b{font-size:18px!important;color:#111827!important;}.pp-order-print-footer{margin-top:12px!important;text-align:center!important;color:#64748b!important;font-size:11px!important;font-weight:800!important;}.pp-orders-pagination{margin:18px 0 4px}.pp-orders-pagination .page-numbers{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:center;list-style:none;margin:0;padding:0}.pp-orders-pagination .page-numbers li{margin:0;padding:0}.pp-orders-pagination a.page-numbers,.pp-orders-pagination span.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;padding:8px 11px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#334155;font-weight:800;text-decoration:none}.pp-orders-pagination span.current{background:#111827;color:#fff;border-color:#111827}.pp-orders-pagination a.page-numbers:hover{border-color:#94a3b8;background:#f8fafc}


/* PedidoPop 2.2 — confirmação acessível de correções e ações críticas. */
.pp-order-confirm-dialog{position:fixed;inset:0;z-index:2147483600;display:grid;place-items:center;padding:18px}
.pp-order-confirm-dialog__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(6px)}
.pp-order-confirm-dialog__panel{position:relative;width:min(430px,100%);display:grid;gap:16px;padding:20px;border-radius:24px;background:#fff;border:1px solid rgba(255,255,255,.75);box-shadow:0 30px 90px rgba(15,23,42,.32);outline:none}
.pp-order-confirm-dialog__head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.pp-order-confirm-dialog__head small{display:block;margin-bottom:4px;color:#64748b;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.pp-order-confirm-dialog__head h3{margin:0;color:#0f172a;font-size:20px;line-height:1.2;font-weight:950}
.pp-order-confirm-dialog__close{width:36px;height:36px;border:0;border-radius:999px;background:#f1f5f9;color:#334155;font-size:23px;line-height:1;cursor:pointer}
.pp-order-confirm-dialog__panel>p{margin:0;color:#475569;font-size:14px;line-height:1.55;font-weight:700}
.pp-order-confirm-dialog__detail{padding:12px 13px;border-radius:15px;background:#f8fafc;border:1px solid #e2e8f0;color:#64748b;font-size:12px;line-height:1.5;font-weight:700}
.pp-order-confirm-dialog.is-correction .pp-order-confirm-dialog__detail{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.pp-order-confirm-dialog__actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.pp-order-confirm-dialog__actions button{min-height:44px;padding:10px 12px;border-radius:14px;font:inherit;font-size:13px;font-weight:900;cursor:pointer}
.pp-order-confirm-dialog__back{background:#fff;color:#475569;border:1px solid #d8dee8}
.pp-order-confirm-dialog__confirm{background:#e51c23;color:#fff;border:1px solid #e51c23}
.pp-order-confirm-dialog.is-correction .pp-order-confirm-dialog__confirm{background:#ea580c;border-color:#ea580c}
.pp-order-modal-v21.is-status-updating{opacity:.78;transition:opacity .18s ease}
.pp-order-modal-v21__action--correct_status{background:#fff;color:#475569;border:1px solid #cbd5e1;box-shadow:none}
.pp-order-modal-v21__action-grid .pp-order-state-form--correction{grid-column:1/-1;padding-top:8px;border-top:1px dashed #d9dee7}
@media(max-width:520px){.pp-order-confirm-dialog__actions{grid-template-columns:1fr}.pp-order-confirm-dialog__panel{padding:17px;border-radius:21px}}
@media(prefers-reduced-motion:reduce){.pp-order-modal-v21{transition:none}}
