/* Pago con Yape/Plin, "Reportar esta tienda" y aviso de cookies del píxel (catalogo/vender.js).
   Mismo tono que el carrito: hoja clara, tinta #20242c, sin colores de marca de Yape/Plin
   (son marcas ajenas). En celular sube desde abajo; en PC queda centrada. */
.tvv-capa{position:fixed;inset:0;z-index:80;display:flex;align-items:flex-end;justify-content:center;background:rgba(10,12,16,0);transition:background .2s ease;}
.tvv-capa.abierta{background:rgba(10,12,16,.55);}
body.tvv-abierta{overflow:hidden;}
.tvv-hoja{position:relative;width:100%;max-width:440px;max-height:92vh;max-height:92dvh;overflow-y:auto;box-sizing:border-box;
  padding:1.6rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));border-radius:1.25rem 1.25rem 0 0;background:#fff;color:#20242c;
  font-size:.92rem;line-height:1.45;transform:translateY(24px);opacity:0;transition:transform .22s ease,opacity .22s ease;-webkit-font-smoothing:antialiased;}
.tvv-capa.abierta .tvv-hoja{transform:none;opacity:1;}
@media (min-width:640px){
  .tvv-capa{align-items:center;padding:1.5rem;}
  .tvv-hoja{border-radius:1.25rem;padding:1.8rem 1.6rem 1.5rem;}
}
@media (prefers-reduced-motion:reduce){.tvv-capa,.tvv-hoja{transition:none;}}
.tvv-hoja svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.tvv-x{position:absolute;top:.7rem;right:.7rem;width:2.4rem;height:2.4rem;display:grid;place-items:center;border:0;border-radius:50%;background:#f1f2f4;color:#20242c;cursor:pointer;}
.tvv-x svg{width:1.05rem;height:1.05rem;}
.tvv-x:hover{background:#e6e8eb;}
.tvv-ok{width:2.8rem;height:2.8rem;display:grid;place-items:center;border-radius:50%;background:#e5f5ec;color:#17733e;margin-bottom:.8rem;}
.tvv-ok svg{width:1.4rem;height:1.4rem;stroke-width:2.6;}
.tvv-h{font-size:1.18rem;line-height:1.25;margin:0 2.4rem .3rem 0;font-weight:700;letter-spacing:-.01em;color:#20242c;}
.tvv-sub{margin:0 0 1rem;color:#5b6371;font-size:.88rem;}
.tvv-sub b{color:#20242c;}
.tvv-espera{display:flex;gap:.6rem;align-items:flex-start;margin:0 0 1rem;padding:.75rem .85rem;border-radius:.85rem;background:#fff6e5;color:#7a4b00;font-size:.84rem;line-height:1.4;}
.tvv-espera svg{width:1.15rem;height:1.15rem;flex:none;margin-top:.1rem;}
.tvv-espera b{color:#5c3800;}

.tvv-pago{border:1.5px solid #e4e6ea;border-radius:1rem;padding:.95rem .95rem .35rem;}
.tvv-metodos{display:flex;gap:.4rem;margin-bottom:.75rem;}
.tvv-chip{font-size:.74rem;font-weight:700;letter-spacing:.02em;padding:.22rem .6rem;border-radius:999px;background:#20242c;color:#fff;}
.tvv-qr{margin:0 0 .8rem;text-align:center;}
.tvv-qr img{display:block;width:min(220px,62vw);height:auto;aspect-ratio:1;object-fit:contain;margin:0 auto;border-radius:.75rem;background:#fff;border:1px solid #eceef1;}
.tvv-qr figcaption{margin-top:.45rem;font-size:.76rem;color:#6b7280;}
.tvv-fila{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.6rem;padding:.6rem 0;border-top:1px solid #eef0f2;}
.tvv-fila:first-of-type{border-top:0;}
.tvv-et{font-size:.78rem;color:#6b7280;white-space:nowrap;}
.tvv-val{font-weight:700;text-align:right;min-width:0;overflow-wrap:anywhere;}
.tvv-num{font-size:1.06rem;font-variant-numeric:tabular-nums;letter-spacing:.02em;}
.tvv-fila:not(:has(.tvv-copiar)) .tvv-val{grid-column:2 / 4;}
.tvv-copiar{display:inline-flex;align-items:center;gap:.3rem;min-height:2.2rem;padding:0 .7rem;border:1.5px solid #20242c;border-radius:999px;background:#fff;color:#20242c;font:inherit;font-size:.78rem;font-weight:700;cursor:pointer;white-space:nowrap;}
.tvv-copiar svg{width:.95rem;height:.95rem;}
.tvv-copiar.hecho{background:#e5f5ec;border-color:#17733e;color:#17733e;}
.tvv-pasos{margin:1rem 0 0;padding-left:1.2rem;font-size:.84rem;color:#3f4652;}
.tvv-pasos li{margin-bottom:.35rem;}
.tvv-pasos b{color:#20242c;}
.tvv-legal{margin:.9rem 0 1rem;padding-top:.85rem;border-top:1px solid #eef0f2;font-size:.76rem;line-height:1.45;color:#6b7280;}
.tvv-legal b{color:#3f4652;}
.tvv-legal a,.tvv-link{color:#3f4652;text-decoration:underline;text-underline-offset:2px;}
.tvv-link{border:0;background:none;padding:0;font:inherit;cursor:pointer;}
.tvv-btn{display:block;width:100%;min-height:3rem;border:0;border-radius:999px;background:#20242c;color:#fff;font:inherit;font-size:.95rem;font-weight:700;cursor:pointer;}
.tvv-btn:hover{background:#000;}
.tvv-btn:disabled{opacity:.6;cursor:wait;}
.tvv-btn-wa{display:flex;align-items:center;justify-content:center;gap:.5rem;background:#157a42;text-decoration:none;}
.tvv-btn-wa:hover{background:#0f6033;}
.tvv-btn-wa svg{width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.tvv-btn-sec{margin-top:.5rem;background:transparent;color:#3f4652;border:1.5px solid #d6d9de;}
.tvv-btn-sec:hover{background:#f3f4f6;}
.tvv-hoja button:focus-visible,.tvv-hoja a:focus-visible,.tvv-hoja input:focus-visible,.tvv-hoja textarea:focus-visible{outline:2px solid #20242c;outline-offset:2px;}

/* Reportar */
.tvv-form{display:flex;flex-direction:column;gap:.85rem;}
.tvv-motivos{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem;}
.tvv-motivos legend{font-weight:700;font-size:.86rem;margin-bottom:.45rem;padding:0;}
.tvv-motivo{display:flex;align-items:center;gap:.6rem;padding:.6rem .75rem;border:1.5px solid #e4e6ea;border-radius:.75rem;cursor:pointer;font-size:.86rem;}
.tvv-motivo:has(input:checked){border-color:#20242c;background:#f7f7f8;}
.tvv-motivo input{width:1.05rem;height:1.05rem;margin:0;accent-color:#20242c;flex:none;}
.tvv-campo{display:flex;flex-direction:column;gap:.35rem;font-size:.84rem;font-weight:600;}
.tvv-campo small{font-weight:400;color:#6b7280;}
.tvv-campo textarea,.tvv-campo input{width:100%;box-sizing:border-box;padding:.65rem .75rem;border:1.5px solid #e4e6ea;border-radius:.7rem;background:#fff;color:#20242c;font:inherit;font-size:16px;font-weight:400;resize:vertical;}
.tvv-trampa{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;}
.tvv-error{margin:0;padding:.55rem .75rem;border-radius:.65rem;background:#fdecea;color:#b42318;font-size:.8rem;}
.tvv-nota{margin:0;font-size:.76rem;color:#6b7280;line-height:1.45;}
.tvv-nota a{color:#3f4652;}

/* Pie del catálogo: "Cómo pagar" y "Reportar esta tienda". Espacio abajo para que el botón
   flotante del carrito no tape los últimos links (antes ya tapaba "Catálogo creado con"). */
.pub-footer{padding-bottom:6.5rem;}
.pub-footer-btn{display:inline-flex;align-items:center;gap:.3rem;border:0;background:none;padding:0;color:var(--text-faint);font:inherit;font-size:.8rem;text-decoration:underline;text-underline-offset:2px;cursor:pointer;}
.pub-footer-btn svg{width:.85rem;height:.85rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.pub-footer-btn:hover{color:var(--text-dim);}

/* Aviso de cookies del píxel de Meta (solo si el vendedor puso su píxel) */
.tvv-cookies{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:79;max-width:520px;margin:0 auto;
  display:flex;flex-direction:column;gap:.7rem;padding:.9rem 1rem;border-radius:1rem;background:#20242c;color:#f2f3f5;font-size:.8rem;line-height:1.45;box-shadow:0 10px 30px rgba(0,0,0,.25);}
.tvv-cookies p{margin:0;}
.tvv-cookies a{color:#fff;}
.tvv-cookies-btns{display:flex;gap:.5rem;justify-content:flex-end;}
.tvv-cookies-btns button{min-height:2.3rem;padding:0 1rem;border-radius:999px;border:1.5px solid rgba(255,255,255,.35);background:transparent;color:#fff;font:inherit;font-weight:700;cursor:pointer;}
.tvv-cookies-btns button.si{background:#fff;color:#20242c;border-color:#fff;}

/* Paso "Pagar" dentro del carrito (2026-11-22): mismo bloque de pago que la hoja, pero en el
   cajón del carrito, antes de enviar el pedido. El cajón siempre es claro (ver .cart-drawer). */
.cart-pago{padding:.4rem 0 1rem;}
.cart-pago svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.cart-pago-volver{display:inline-flex;align-items:center;gap:.25rem;min-height:2.4rem;margin:0 0 .4rem -.35rem;padding:0 .35rem;border:0;background:none;color:var(--text-faint);font:inherit;font-size:.82rem;font-weight:600;cursor:pointer;}
.cart-pago-volver svg{width:1.05rem;height:1.05rem;}
.cart-pago-volver:hover{color:var(--text);}
.cart-pago-h{font-size:1.08rem;margin:0 0 .2rem;}
.cart-pago-sub{margin:0 0 .9rem;font-size:.84rem;color:var(--text-faint);}
.cart-pago-sub b{color:var(--text);}
.cart-pago .tvv-pago{background:#fff;}
.cart-pago .tvv-fila-monto .tvv-num{font-size:1.2rem;}
.cart-pago-nota{margin-top:.6rem;}
.cart-pago .tvv-legal{margin-bottom:0;}
.cart-pago .tvv-copiar:focus-visible,.cart-pago-volver:focus-visible{outline:2px solid #20242c;outline-offset:2px;}
.cart-pagar-despues{display:block;width:100%;min-height:2.6rem;margin-top:.45rem;border:0;background:none;color:var(--text-faint);font:inherit;font-size:.84rem;font-weight:600;text-decoration:underline;text-underline-offset:2px;cursor:pointer;}
.cart-pagar-despues:hover{color:var(--text);}
.cart-pagar-despues[hidden]{display:none;}
