/* Centro Pokémon — Pedido en ventana emergente (estilo Pony) */
.cp-order {
  --o-ink: #1d1d1f; --o-red: #e3350d; --o-muted: rgba(29, 29, 31, .62); --o-line: rgba(29, 29, 31, .12);
  position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 16px;
  font-family: 'Lato', system-ui, sans-serif;
}
.cp-order[hidden] { display: none; }
.cp-order *, .cp-order *::before, .cp-order *::after { box-sizing: border-box; }
.cp-order__overlay { position: absolute; inset: 0; background: rgba(20, 22, 26, .6); backdrop-filter: blur(3px); animation: cpoFade .2s ease; }
.cp-order__dialog {
  position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; color: var(--o-ink); border-radius: 22px; padding: 24px 24px 20px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); animation: cpoPop .28s cubic-bezier(.2, .8, .2, 1);
}
@keyframes cpoFade { from { opacity: 0 } }
@keyframes cpoPop { from { opacity: 0; transform: translateY(16px) scale(.98) } }
.cp-order__x {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; padding: 0 !important; border-radius: 50%; border: 0;
  background: #f1f1ee !important; color: var(--o-ink) !important; cursor: pointer; display: grid; place-items: center; box-shadow: none !important; min-height: 0 !important;
}
.cp-order__head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; padding-right: 40px; }
.cp-order__ball {
  flex: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--o-ink);
  background: linear-gradient(var(--o-red) 0 44%, var(--o-ink) 44% 56%, #fff 56%);
}
.cp-order__ball::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; border: 3px solid var(--o-ink); }
.cp-order__ball--big { width: 110px; height: 110px; border-width: 7px; animation: cpoWobble 1.2s cubic-bezier(.2, .8, .2, 1) 2; }
.cp-order__ball--big::after { border-width: 6px; }
@keyframes cpoWobble { 0%, 100% { transform: rotate(0) } 20% { transform: rotate(-16deg) } 45% { transform: rotate(12deg) } 70% { transform: rotate(-6deg) } }
.cp-order__eyebrow { margin: 0 !important; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--o-red); }
.cp-order .cp-order__title { margin: 2px 0 0 !important; font-style: italic; font-weight: 900 !important; text-transform: uppercase; font-size: 26px !important; line-height: 1.05 !important; color: var(--o-ink); }
.cp-order__summary { background: #f7f7f5; border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.cp-order__loading { margin: 4px 0 !important; color: var(--o-muted); font-size: 14px; }
.cp-order__items { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 8px; }
.cp-order__items li { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 10px; align-items: center; font-size: 14px; margin: 0; }
.cp-order__items img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--o-line); }
.cp-order__iname { font-weight: 700; line-height: 1.25; }
.cp-order__iqty { color: var(--o-muted); }
.cp-order__iprice { font-weight: 900; white-space: nowrap; }
.cp-order__form { display: grid; gap: 12px; margin: 0; }
.cp-field { display: grid; gap: 5px; margin: 0; border: 0; padding: 0; min-width: 0; }
.cp-field[hidden] { display: none; }
.cp-field label, .cp-field legend { font-size: 13px; font-weight: 700; padding: 0; color: var(--o-ink); }
.cp-opt { font-weight: 400; color: var(--o-muted); }
.cp-order .cp-field input, .cp-order .cp-field select, .cp-order .cp-field textarea {
  font: inherit; font-size: 16px !important; width: 100%; height: auto !important; min-height: 46px; padding: 11px 12px !important; border-radius: 10px !important;
  border: 1.5px solid var(--o-line) !important; background: #fff !important; color: var(--o-ink) !important; box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s;
}
.cp-order .cp-field input:focus, .cp-order .cp-field select:focus, .cp-order .cp-field textarea:focus { outline: 0; border-color: var(--o-red) !important; box-shadow: 0 0 0 4px rgba(227, 53, 13, .15) !important; }
.cp-pay { gap: 8px; }
.cp-pay legend { margin-bottom: 6px; }
.cp-pay__opt { display: flex !important; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1.5px solid var(--o-line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.cp-pay__opt[hidden] { display: none !important; }
.cp-pay__opt:has(input:checked) { border-color: var(--o-red); background: rgba(227, 53, 13, .05); }
.cp-order .cp-pay__opt input { width: auto !important; min-height: 0 !important; margin-top: 3px; accent-color: var(--o-red); }
.cp-pay__opt span { display: grid; gap: 2px; font-size: 15px; }
.cp-pay__opt small { color: var(--o-muted); font-size: 13px; }
.cp-more-fields summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--o-red); }
.cp-more-fields[open] summary { margin-bottom: 10px; }
.cp-more-fields .cp-field + .cp-field { margin-top: 10px; }
.cp-order__error { margin: 0 !important; padding: 8px 10px; border-radius: 10px; background: #fdecea; color: #a42a1c; font-size: 13px; font-weight: 700; }
.cp-order__totals { display: grid; gap: 4px; font-size: 14px; padding-top: 6px; border-top: 1px solid var(--o-line); }
.cp-order__totals > div { display: flex; justify-content: space-between; }
.cp-order__totals em { color: var(--o-muted); font-style: normal; }
.cp-order__total { font-size: 19px; font-weight: 900; padding-top: 4px; }
.cp-free { color: #1e8e3e; }
.cp-order .cp-order__submit {
  display: flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border: 0 !important; border-radius: 14px !important; cursor: pointer;
  background: #25d366 !important; color: #fff !important; font: inherit; font-size: 17px !important; font-weight: 900 !important; text-transform: none !important; letter-spacing: 0 !important;
  text-decoration: none !important; box-shadow: 0 4px 0 #1a9e4b !important; transition: transform .15s, box-shadow .15s, opacity .15s; padding: 0 18px !important;
}
.cp-order .cp-order__submit::before { display: none !important; }
.cp-order .cp-order__submit:hover { transform: translateY(-1px); background: #2bdc6f !important; }
.cp-order .cp-order__submit:active { transform: translateY(3px); box-shadow: 0 1px 0 #1a9e4b !important; }
.cp-order .cp-order__submit:disabled { opacity: .5; cursor: progress; }
.cp-order__fine { margin: 0 !important; text-align: center; font-size: 12px; color: var(--o-muted); }
.cp-order__done { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 10px 0; }
.cp-order__done p { margin: 0 !important; font-size: 15px; line-height: 1.5; }
.cp-order__ghost { border: 0 !important; background: none !important; box-shadow: none !important; color: var(--o-muted) !important; font-weight: 700 !important; cursor: pointer; text-decoration: underline; min-height: 0 !important; padding: 6px !important; text-transform: none !important; }
.cp-order__ghost::before { display: none !important; }
.cp-pulse { animation: cpoPulse 1.2s ease-in-out infinite; }
@keyframes cpoPulse { 50% { box-shadow: 0 4px 0 #1a9e4b, 0 0 0 8px rgba(37, 211, 102, .25) !important; } }
@media (max-width: 600px) {
  .cp-order { padding: 0; align-items: end; }
  .cp-order__dialog { border-radius: 22px 22px 0 0; max-height: 94vh; padding: 20px 18px 18px; }
}
.cp-order__step[hidden] { display: none !important; }
.cp-pay { margin: 0; }

/* Forma de pago alineada */
.cp-order fieldset.cp-pay { padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; min-width: 0; display: grid; gap: 8px; }
.cp-order fieldset.cp-pay legend { float: left; width: 100%; padding: 0 !important; margin: 0 0 8px !important; font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.cp-order .cp-pay__opt { position: relative; align-items: center !important; gap: 12px !important; padding: 12px 14px !important; margin: 0 !important; }
.cp-order .cp-pay__opt input[type=radio] {
  position: static !important; flex: none; width: 20px !important; height: 20px !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 !important; appearance: auto; -webkit-appearance: radio; opacity: 1 !important; transform: none !important;
}
.cp-order .cp-pay__opt span { flex: 1; }
