/* Finalizar compra y página de gracias */
.ck-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.ck-pasos { display: grid; gap: 16px; }
.ck-card { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r); background: var(--surf); border: 1px solid var(--line); box-shadow: var(--inset-hi); }
.ck-card h2 { font-family: var(--font-display); font-size: 1.25rem; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ck-card h2 .n { width: 28px; height: 28px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.opts { display: grid; gap: 10px; }
.opt .opt-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; flex: none; }
.opt .opt-ico .ic-svg { width: 20px; height: 20px; }
.opt .opt-t { flex: 1; min-width: 0; }
.opt .opt-nota { display: block; margin-top: 4px; font-size: 12.5px; color: var(--accent-2); font-weight: 700; }
.opt .opt-nota:empty { display: none; }
.opt.off { opacity: .55; cursor: not-allowed; }
.opt.off .opt-nota { color: var(--warn); }
.err-msg { display: none; font-size: 12.5px; color: var(--bad); font-weight: 600; margin-top: 6px; }
.res-card { position: sticky; top: calc(var(--nav-h) + var(--cats-h) + 16px); padding: 22px; border-radius: var(--r); background: var(--surf); border: 1px solid var(--line); display: grid; gap: 12px; }
.res-card h3 { font-family: var(--font-display); font-size: 20px; }
.res-row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--muted); }
.res-row b { color: var(--text); }
.res-tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; }
.res-tot b { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ck-items { display: grid; gap: 8px; max-height: 320px; overflow: auto; padding-right: 4px; }
.ck-it { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.ck-it .ck-ph { position: relative; width: 52px; height: 52px; border-radius: 10px; background: var(--tile); border: 1px solid var(--line); display: grid; place-items: center; overflow: visible; color: var(--dim); }
.ck-it .ck-ph img { width: 100%; height: 100%; object-fit: contain; padding: 3px; border-radius: 10px; }
.ck-it .ck-ph i { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.ck-it .ck-t { min-width: 0; line-height: 1.3; font-weight: 600; }
.ck-it .ck-t small { display: block; color: var(--dim); font-weight: 400; font-size: 12.5px; }
.ck-it b { white-space: nowrap; font-family: var(--font-display); }
/* gracias */
.gr-head { text-align: center; padding: clamp(28px, 5vw, 60px) 0 10px; }
.gr-head .gr-ico { width: 72px; height: 72px; border-radius: 999px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.gr-head .gr-ico .ic-svg { width: 36px; height: 36px; }
.gr-head .gr-ico.bad { background: var(--bad-soft); color: var(--bad); }
.gr-head .gr-ico.warn { background: var(--warn-soft); color: var(--warn); }
.gr-head h1 { font-size: var(--fs-display); }
.gr-head .lead { margin: 12px auto 0; }
.gr-codigo { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 16px; border-radius: 999px; background: var(--surf); border: 1px solid var(--line2); font-family: var(--mono); font-weight: 700; font-size: 15px; }
.gr-codigo button { border: 0; background: transparent; color: var(--accent-2); display: grid; place-items: center; }
.gr-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
/* vista del pedido (seguimiento) */
.pv-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; margin-top: 24px; align-items: start; }
.linea-t { list-style: none; display: grid; gap: 0; position: relative; padding-left: 30px; }
.linea-t::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: var(--line2); }
.linea-t li { position: relative; padding: 8px 0 16px; color: var(--dim); }
.linea-t li::before { content: ""; position: absolute; left: -26px; top: 12px; width: 14px; height: 14px; border-radius: 999px; background: var(--bg); border: 2px solid var(--line2); }
.linea-t li.ok { color: var(--text); }
.linea-t li.ok::before { background: var(--ok); border-color: var(--ok); }
.linea-t li.actual { color: var(--text); font-weight: 700; }
.linea-t li.actual::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.linea-t li.anulado::before { background: var(--bad); border-color: var(--bad); }
.linea-t small { display: block; font-weight: 400; color: var(--dim); font-size: 12.5px; }
.pv-datos dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14.5px; }
.pv-datos dt { color: var(--muted); } .pv-datos dd { margin: 0; font-weight: 600; }
.pv-items { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 6px; }
.pv-items .ck-it { padding: 8px 0; border-bottom: 1px solid var(--line); }
.pv-eventos { list-style: none; display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.pv-eventos small { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-right: 8px; }
@media (max-width: 960px) { .ck-grid { grid-template-columns: 1fr; } .res-card { position: static; } .ck-resumen { order: -1; } .ck-items { max-height: 200px; } .pv-grid { grid-template-columns: 1fr; } }
