/* Compra rápida en ventana (Cultura 506, 2026-10-27) — mmr-compra.js. Celular primero: hoja a pantalla completa
   desde abajo; en compu, ventana centrada de 480 px. Usa los colores de mmr-redesign.css. */
.mc-sin-scroll, .mc-sin-scroll body { overflow: hidden !important; }
.mc-ov { position: fixed; inset: 0; z-index: 10040; display: none; align-items: flex-end; justify-content: center; background: rgba(18, 41, 46, .6); }
.mc-ov.is-open { display: flex; animation: mcFondo .2s ease; }
.mc-box { background: #fff; color: var(--mmr-ink, #12292E); width: 100%; max-width: 480px; height: 100%; max-height: 100%; display: flex; flex-direction: column;
  font-family: var(--mmr-font-body, 'Figtree', system-ui, sans-serif); animation: mcSube .28s ease; }
@media (min-width: 600px) {
  .mc-ov { align-items: center; padding: 24px; }
  .mc-box { height: auto; max-height: calc(100vh - 48px); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.35); }
}
@keyframes mcFondo { from { opacity: 0; } to { opacity: 1; } }
@keyframes mcSube { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

.mc-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--mmr-ink, #12292E); color: #fff; flex: 0 0 auto; }
.mc-x { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; width: 44px; height: 44px; margin: -8px 0 -8px -8px; cursor: pointer; }
.mc-tot { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mc-tot small { font-size: 12px; opacity: .8; }
.mc-tot strong { font-size: 26px; font-weight: 800; color: var(--mmr-accent, #EA6A1D); line-height: 1.1; font-family: var(--mmr-font-display, inherit); }
.mc-tot span { font-size: 12px; opacity: .8; }
.mc-ver { background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; min-height: 40px; cursor: pointer; }

.mc-items { flex: 0 0 auto; max-height: 40vh; overflow: auto; background: #F6F7F8; border-bottom: 1px solid #E3E8EE; padding: 6px 16px; }
.mc-items[hidden] { display: none; }
.mc-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.mc-item + .mc-item { border-top: 1px solid #E3E8EE; }
.mc-item img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; background: #fff; }
.mc-item div { flex: 1; min-width: 0; }
.mc-item b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-item small { display: inline-block; margin-right: 8px; color: #5B6675; }
.mc-item span { font-weight: 700; white-space: nowrap; }
.mc-item.mc-sub { padding: 4px 0; color: #5B6675; }

.mc-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; }
.mc-paso[hidden] { display: none; }
.mc-campo { margin-bottom: 14px; }
.mc-campo[hidden] { display: none; }
.mc-campo label, .mc-lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.mc-campo label small { font-weight: 400; color: #5B6675; }
.mc-campo input, .mc-campo select, .mc-campo textarea, .mc-cod input {
  width: 100%; font-size: 16px; /* 16 px: el iPhone no hace zoom */ padding: 12px 14px; border: 1.5px solid #C9D1DA; border-radius: 12px; background: #fff; color: inherit; min-height: 48px; box-sizing: border-box; }
.mc-campo textarea { resize: vertical; min-height: 64px; }
.mc-campo input:focus, .mc-campo select:focus, .mc-campo textarea:focus, .mc-cod input:focus { outline: 0; border-color: var(--mmr-accent, #EA6A1D); box-shadow: 0 0 0 3px rgba(234,106,29,.18); }
.mc-oculto { display: none !important; }
.mc-aparece { animation: mcAparece .3s ease; }
@keyframes mcAparece { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.mc-envio { background: #EEF6F1; color: #1E5A3A; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.mc-envio:empty { display: none; }
.mc-pref { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mc-pref[hidden] { display: none; }
.mc-pref .mc-lbl { width: 100%; }
.mc-chip { position: relative; margin: 0; }
.mc-chip input, .mc-met input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mc-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #C9D1DA; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; }
.mc-chip input:checked + span { border-color: var(--mmr-ink, #12292E); background: var(--mmr-ink, #12292E); color: #fff; }
/* El tema de SMA dibuja radios con input[type=radio]+span::before: aquí no */
.mc-chip input + span::before, .mc-met input + span::before { content: none !important; display: none !important; }

.mc-metodos { display: grid; gap: 10px; margin-bottom: 12px; }
.mc-met { position: relative; margin: 0; display: block; cursor: pointer; font-weight: 400; }
.mc-met span { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 48px; border: 1.5px solid #C9D1DA; border-radius: 14px; min-height: 56px; justify-content: center; }
.mc-met span::after { content: ''; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid #9AA6B2; border-radius: 50%; box-sizing: border-box; }
.mc-met b { font-size: 16px; }
.mc-met small { font-size: 13px; color: #5B6675; }
.mc-met.is-sel span { border-color: var(--mmr-accent, #EA6A1D); background: #FFF6F0; }
.mc-met.is-sel span::after { border: 6px solid var(--mmr-accent, #EA6A1D); }
.mc-met.is-off { opacity: .45; cursor: not-allowed; }
.mc-cod { font-size: 14px; }
.mc-cod a { color: var(--mmr-link, #0B6E8A); display: inline-block; min-height: 32px; }
.mc-cod a[hidden], .mc-cod > div[hidden] { display: none; }
.mc-cod > div { display: flex; gap: 8px; margin-top: 6px; }
.mc-cod > div .mmr-btn { white-space: nowrap; }
.mc-cod small { display: block; color: #5B6675; margin-top: 4px; }

.mc-pasos { list-style: none; counter-reset: p; padding: 0; margin: 0 0 14px; }
.mc-pasos li { counter-increment: p; position: relative; padding: 0 0 16px 40px; }
.mc-pasos li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--mmr-ink, #12292E); color: #fff;
  font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.mc-pasos li > span { display: block; font-size: 14px; color: #5B6675; margin-bottom: 4px; }
.mc-pasos li > small { display: block; font-size: 13px; color: #5B6675; margin-top: 2px; }
.mc-copia { display: flex; align-items: center; gap: 10px; }
.mc-copia strong { font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.mc-copia button { margin-left: auto; border: 1.5px solid var(--mmr-ink, #12292E); background: #fff; color: var(--mmr-ink, #12292E); border-radius: 999px; padding: 0 16px; min-height: 40px; font-weight: 700; font-size: 14px; cursor: pointer; }
.mc-foto { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; border: 2px dashed #9AA6B2; border-radius: 14px; font-weight: 700; font-size: 15px; cursor: pointer; padding: 10px; text-align: center; margin: 4px 0 0; }
.mc-foto input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mc-foto.is-ok { border-style: solid; border-color: #1E7A46; background: #EEF6F1; color: #1E5A3A; }
#mc-foto-ver { display: block; max-width: 100%; max-height: 180px; margin-top: 10px; border-radius: 10px; border: 1px solid #E3E8EE; }
#mc-foto-ver[hidden] { display: none; }

.mc-espera { text-align: center; padding: 24px 8px; }
.mc-reloj { position: relative; width: 132px; height: 132px; margin: 0 auto 18px; }
.mc-reloj svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mc-reloj circle { fill: none; stroke-width: 9; }
.mc-r0 { stroke: #E3E8EE; }
.mc-r1 { stroke: var(--mmr-accent, #EA6A1D); stroke-linecap: round; transition: stroke-dashoffset .2s linear, stroke .3s; }
.mc-reloj b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; }
.mc-reloj.is-ok .mc-r1 { stroke: #1E7A46; }
.mc-reloj.is-ok b { color: #1E7A46; }
.mc-reloj.is-fin .mc-r1 { stroke: var(--mmr-ink, #12292E); }
.mc-espera h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.mc-espera p { margin: 0 auto; max-width: 340px; color: #5B6675; font-size: 15px; line-height: 1.45; }

.mc-msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: #FDECEA; color: #B42318; border: 1px solid #F5C2BC; }
.mc-msg[hidden] { display: none; }
.mc-msg.is-aviso { background: #FFF6E5; color: #8A5300; border-color: #F3D9A4; }
.mc-foot { flex: 0 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #E3E8EE; background: #fff; }
.mc-foot .mmr-btn { min-height: 52px; font-size: 17px; }
.mc-foot .mmr-btn[disabled] { opacity: .45; cursor: not-allowed; }
.mc-foot .mmr-btn[hidden] { display: none; }
.mc-wa { display: block; text-align: center; font-size: 13px; color: #5B6675; margin-top: 8px; min-height: 24px; }

/* Ficha del producto: "Comprar ahora" + "Agregar al carrito" */
.mmr-sticky-bar .mmr-buy-now { flex: 1; }
.mmr-sticky-bar .mmr-add-cart-btn.mmr-btn--icono { width: 52px; min-width: 52px; padding: 0; flex: 0 0 52px; font-size: 20px; }

/* Página "¡Listo!" (compra_lista.php) */
.cl-wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }
.cl-card { background: #fff; border: 1px solid #E3E8EE; border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.cl-est { display: flex; gap: 14px; align-items: center; }
.cl-ico { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; background: #EEF6F1; }
.cl-ico.is-wait { background: #FFF6E5; }
.cl-ico.is-bad { background: #FDECEA; }
.cl-est h1 { font-size: 22px; margin: 0 0 4px; font-weight: 800; }
.cl-est p { margin: 0; color: #5B6675; font-size: 14px; }
.cl-card h2 { font-size: 18px; margin: 0 0 6px; font-weight: 800; }
.cl-card > p { color: #5B6675; font-size: 14px; margin: 0 0 12px; }
.cl-card .mmr-btn { min-height: 52px; }
.cl-card textarea { width: 100%; font-size: 16px; padding: 12px; border: 1.5px solid #C9D1DA; border-radius: 12px; margin: 10px 0; box-sizing: border-box; min-height: 64px; }
.cl-ok { color: #1E7A46; font-weight: 600; font-size: 14px; margin-top: 8px; }
.cl-err { color: #B42318; font-size: 14px; margin-top: 8px; }
.cl-items { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.cl-items li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #E3E8EE; }
.cl-items li:last-child { border: 0; font-weight: 800; }

/* Mensaje fugaz "Elegí tu talla" (2026-10-28, window.mmrAviso): arriba de la barra fija de la ficha */
#mc-aviso { position: fixed; left: 50%; bottom: calc(96px + var(--mmr-cookiebar-h, 0px)); z-index: 2147483000; max-width: calc(100% - 32px);
    transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: #13262f; color: #fff; font-weight: 700; font-size: 15px;
    padding: 12px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25); text-align: center; width: max-content; white-space: normal; transition: opacity .2s, transform .2s; }
#mc-aviso.is-visible { opacity: 1; transform: translate(-50%, 0); animation: mc-aviso-sacude .4s .1s; }
@keyframes mc-aviso-sacude { 0%, 100% { margin-left: 0; } 25% { margin-left: -6px; } 75% { margin-left: 6px; } }
@media (min-width: 768px) { #mc-aviso { bottom: 40px; } }

/* Compra rápida: "Continuar" con datos incompletos se ve apagado pero se puede tocar y marca lo que falta (2026-10-28) */
#mc-sig.is-incompleto { opacity: .6; }
.mc-falta { outline: 3px solid #e74c3c; outline-offset: 2px; border-radius: 10px; animation: mc-aviso-sacude .4s; }
