/* Histórico operacional e confirmação de cancelamento — PedidoPop 2.1.5 */
.pp-order-history{margin:18px 0;padding:18px;border:1px solid #e7eaf0;border-radius:18px;background:#fff}
.pp-order-history__title{display:block;margin-bottom:14px;color:#697386;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.pp-order-history__list{display:grid;gap:0;margin:0;padding:0;list-style:none}
.pp-order-history__event{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;padding:0 0 18px}
.pp-order-history__event:last-child{padding-bottom:0}
.pp-order-history__event:not(:last-child)::before{content:"";position:absolute;top:14px;bottom:0;left:6px;width:2px;background:#e6e9ef}
.pp-order-history__marker{position:relative;z-index:1;width:14px;height:14px;margin-top:3px;border:3px solid #fff;border-radius:50%;background:#8b95a7;box-shadow:0 0 0 2px #dfe3ea}
.pp-order-history__event--recebido .pp-order-history__marker{background:#e3ad22}
.pp-order-history__event--preparo .pp-order-history__marker{background:#f07a24}
.pp-order-history__event--saiu_entrega .pp-order-history__marker{background:#2f7de1}
.pp-order-history__event--pronto_retirada .pp-order-history__marker{background:#7c3aed}
.pp-order-history__event--finalizado .pp-order-history__marker{background:#2b9d67}
.pp-order-history__event--cancelado .pp-order-history__marker{background:#d64545}
.pp-order-history__copy{min-width:0}
.pp-order-history__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.pp-order-history__head strong{color:#202632;font-size:14px}
.pp-order-history__head time{flex:0 0 auto;color:#7d8798;font-size:11px}
.pp-order-history__copy p{margin:4px 0 0;color:#5e6878;font-size:13px;line-height:1.45}
.pp-order-history__copy small{display:block;margin-top:5px;color:#8a93a2;font-size:11px}
.pp-order-history__reason{padding:8px 10px;border-radius:10px;background:#fff2f2;color:#8e2c2c}

.pp-order-cancel-dialog{position:fixed;z-index:100000;inset:0;display:grid;place-items:center;padding:18px}
.pp-order-cancel-dialog__backdrop{position:absolute;inset:0;background:rgba(19,24,34,.64);backdrop-filter:blur(3px)}
.pp-order-cancel-dialog__panel{position:relative;width:min(100%,460px);max-height:calc(100vh - 36px);overflow:auto;padding:22px;border-radius:22px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.3)}
.pp-order-cancel-dialog__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.pp-order-cancel-dialog__head small{color:#8b95a7;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.pp-order-cancel-dialog__head h3{margin:3px 0 0;color:#202632;font-size:22px}
.pp-order-cancel-dialog__close{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:#f0f2f6;color:#4d5665;font-size:24px;cursor:pointer}
.pp-order-cancel-dialog__panel>p{margin:14px 0;color:#5f6978;line-height:1.5}
.pp-order-cancel-dialog__reasons{display:grid;gap:9px}
.pp-order-cancel-dialog__reasons label{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #e2e6ed;border-radius:13px;color:#2e3540;font-weight:650;cursor:pointer}
.pp-order-cancel-dialog__reasons label:has(input:checked){border-color:#d64545;background:#fff4f4;color:#a12f2f}
.pp-order-cancel-dialog__reasons input{width:17px;height:17px;accent-color:#d64545}
.pp-order-cancel-dialog__other{display:grid;gap:7px;margin-top:12px;color:#424b59;font-size:13px;font-weight:700}
.pp-order-cancel-dialog__other textarea{width:100%;resize:vertical;padding:12px;border:1px solid #dce1e8;border-radius:12px;font:inherit}
.pp-order-cancel-dialog__error{margin-top:10px;color:#bd2f2f;font-size:12px;font-weight:700}
.pp-order-cancel-dialog__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.pp-order-cancel-dialog__actions button{min-height:46px;border:0;border-radius:13px;font-weight:800;cursor:pointer}
.pp-order-cancel-dialog__back{background:#eef1f5;color:#3f4855}
.pp-order-cancel-dialog__confirm{background:#d64545;color:#fff}
@media (max-width:480px){.pp-order-history{padding:15px}.pp-order-history__head{display:grid;gap:2px}.pp-order-cancel-dialog__panel{padding:18px}.pp-order-cancel-dialog__actions{grid-template-columns:1fr}}

/* Eventos de correção permanecem visíveis e distinguíveis no histórico. */
.pp-order-history__event.is-correction .pp-order-history__marker{background:#fff7ed;border-color:#f97316}
.pp-order-history__event.is-correction .pp-order-history__copy{border-color:#fed7aa;background:#fffaf5}
.pp-order-history__event.is-correction .pp-order-history__head strong{color:#9a3412}
