/*
 * MTG Checkout Core Universal
 * CSS limpio.
 */

.mtg-checkout-core{
  width:100%;
}

.mtg-checkout-core .tm1-shell,
.mtg-checkout-core .tm1-checkout-shell .tm1-shell,
.mtg-checkout-core .tm1-cart-shell .tm1-shell{
  width:90% !important;
  max-width:none !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

.mtg-checkout-core-empty{
  width:90%;
  margin:70px auto;
  padding:40px;
  border:1px solid #e5e7eb;
  background:#fff;
  text-align:center;
}

.mtg-thank-you-core{
  width:90%;
  margin:80px auto;
}

.mtg-thank-you-core__box{
  border:1px solid #e5e7eb;
  background:#fff;
  padding:50px;
  text-align:center;
}

/* Matar intentos viejos */
.mtg-cart-badge-wrap,
.mtg-cart-badge,
#mtg-header-cart-source,
.mtg-header-cart,
.mtg-header-cart-simple,
.mtg-real-header-cart-v1,
.mtg-header-cart-core{
  display:none !important;
}

/* ==========================================================
   MTG HEADER CART FINAL LOOK
   Carrito simple: icono + circulito naranja con número.
========================================================== */

.mtg-header-actions .mtg-hcart{
  width:58px !important;
  height:50px !important;
  min-width:58px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  position:relative !important;
  background:#ffffff !important;
  border:2px solid #0f172a !important;
  color:#0f172a !important;
  text-decoration:none !important;
  box-shadow:none !important;
  border-radius:0 !important;
  margin:0 4px 0 0 !important;
  padding:0 !important;
  line-height:1 !important;
  overflow:visible !important;
  opacity:1 !important;
  visibility:visible !important;
}

.mtg-header-actions .mtg-hcart__icon{
  font-size:25px !important;
  line-height:1 !important;
  display:block !important;
}

.mtg-header-actions .mtg-hcart__count{
  position:absolute !important;
  top:-11px !important;
  right:-11px !important;
  min-width:26px !important;
  height:26px !important;
  padding:0 7px !important;
  border-radius:999px !important;
  background:#f97316 !important;
  color:#ffffff !important;
  font-size:13px !important;
  font-weight:900 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
  border:2px solid #ffffff !important;
  box-sizing:border-box !important;
  z-index:5 !important;
}

.mtg-header-actions .mtg-hcart:hover{
  background:#ffffff !important;
  color:#0f172a !important;
  text-decoration:none !important;
}

@media(max-width:700px){
  .mtg-header-actions .mtg-hcart{
    width:52px !important;
    height:46px !important;
    min-width:52px !important;
  }

  .mtg-header-actions .mtg-hcart__icon{
    font-size:23px !important;
  }

  .mtg-header-actions .mtg-hcart__count{
    min-width:24px !important;
    height:24px !important;
    top:-10px !important;
    right:-10px !important;
  }
}

/* ==========================================================
   MTG: ocultar WhatsApp huérfano inferior
   Conserva el botón WhatsApp del header.
========================================================== */

body > a[href*="api.whatsapp.com"],
body > a[href*="wa.me"],
body > a[href*="whatsapp.com"]:not(.mtg-header-btn--wa),
body a[href*="api.whatsapp.com"]:not(.mtg-header-btn--wa):not(.mtg-header-btn),
body a[href*="wa.me"]:not(.mtg-header-btn--wa):not(.mtg-header-btn){
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  width:0 !important;
  height:0 !important;
  overflow:hidden !important;
  pointer-events:none !important;
}

/* Pero si está dentro del header, sí se muestra */
.mtg-header-actions a.mtg-header-btn--wa{
  display:inline-flex !important;
  visibility:visible !important;
  opacity:1 !important;
  width:auto !important;
  height:auto !important;
  overflow:visible !important;
  pointer-events:auto !important;
}
