/*
 * MTG Universal Sales Flow CSS
 * Estilos universales para shop, single product, cart, checkout, review-payment y thankyou.
 * NO pertenece a TM1, TM2 ni TM3.
 * Creado y distribuido por antoniocarpio.com (web developer with IA)
 */

/* =========================================================
   BASE BLANCA UNIVERSAL
   ========================================================= */

html,
body.mtg-universal-sale-page,
body.mtg-white-commerce-page{
    background:#ffffff !important;
}

body.mtg-universal-sale-page #page,
body.mtg-universal-sale-page .site,
body.mtg-universal-sale-page main,
body.mtg-white-commerce-page #page,
body.mtg-white-commerce-page .site,
body.mtg-white-commerce-page main{
    background:#ffffff !important;
}

body.mtg-universal-sale-page::before,
body.mtg-universal-sale-page::after,
body.mtg-white-commerce-page::before,
body.mtg-white-commerce-page::after{
    display:none !important;
    content:none !important;
}

:root{
    --mtg-sale-bg:#ffffff;
    --mtg-sale-card:#ffffff;
    --mtg-sale-ink:#08111f;
    --mtg-sale-muted:#64748b;
    --mtg-sale-soft:#f8fafc;
    --mtg-sale-line:#e2e8f0;
    --mtg-sale-blue:#2563eb;
    --mtg-sale-blue-dark:#1d4ed8;
    --mtg-sale-green:#16a34a;
    --mtg-sale-green-dark:#0f8a3a;
    --mtg-sale-shadow:0 20px 48px rgba(15,23,42,.08);
    --mtg-sale-radius:24px;
}

/* =========================================================
   CONTENEDORES UNIVERSALES
   ========================================================= */

.tm1-cart-shell,
.tm1-checkout-shell,
.tm1-review-clean,
.tm1-thankyou-shell,
.mtg-cart-page,
.mtg-checkout-page,
.mtg-review-payment-page,
.mtg-thankyou-page,
.mtg-storefront-page,
.mtg-single-product-page,
.mtg-archive-product-page{
    width:90% !important;
    max-width:1220px !important;
    margin:0 auto !important;
    padding:56px 0 78px !important;
    color:var(--mtg-sale-ink) !important;
    background:#ffffff !important;
    box-sizing:border-box !important;
}

.tm1-cart-shell *,
.tm1-checkout-shell *,
.tm1-review-clean *,
.tm1-thankyou-shell *,
.mtg-cart-page *,
.mtg-checkout-page *,
.mtg-review-payment-page *,
.mtg-thankyou-page *,
.mtg-storefront-page *,
.mtg-single-product-page *,
.mtg-archive-product-page *{
    box-sizing:border-box !important;
}

/* Apagar fondos verdosos o degradados viejos dentro del flujo */
.tm1-cart-shell,
.tm1-checkout-shell,
.tm1-review-clean,
.tm1-thankyou-shell,
.tm1-cart-shell section,
.tm1-checkout-shell section,
.tm1-review-clean section,
.tm1-thankyou-shell section,
.tm1-cart-shell > div,
.tm1-checkout-shell > div,
.tm1-review-clean > div,
.tm1-thankyou-shell > div{
    background-color:#ffffff !important;
    background-image:none !important;
}

/* =========================================================
   TITULARES
   ========================================================= */

.tm1-cart-head,
.tm1-checkout-head,
.tm1-review-clean header,
.tm1-thankyou-head{
    margin:0 0 28px !important;
}

.tm1-cart-head h1,
.tm1-checkout-head h1,
.tm1-review-clean h1,
.tm1-thankyou-head h1,
.mtg-cart-page h1,
.mtg-checkout-page h1,
.mtg-review-payment-page h1,
.mtg-thankyou-page h1{
    margin:0 0 10px !important;
    color:var(--mtg-sale-ink) !important;
    font-size:38px !important;
    line-height:1.05 !important;
    font-weight:950 !important;
    letter-spacing:-.04em !important;
}

.tm1-cart-head p,
.tm1-checkout-head p,
.tm1-review-clean p,
.tm1-thankyou-head p{
    color:var(--mtg-sale-muted) !important;
    font-size:17px !important;
    line-height:1.6 !important;
}

/* =========================================================
   CARDS / CAJAS
   ========================================================= */

.tm1-cart-card,
.tm1-cart-summary,
.tm1-checkout-card,
.tm1-checkout-section,
.tm1-checkout-fields,
.tm1-checkout-box,
.tm1-checkout-summary,
.tm1-review-clean__card,
.tm1-review-clean__empty,
.tm1-thankyou-card,
.tm1-cart-empty,
.tm1-checkout-empty,
.mtg-cart-card,
.mtg-checkout-card{
    background:#ffffff !important;
    border:1px solid var(--mtg-sale-line) !important;
    border-radius:var(--mtg-sale-radius) !important;
    box-shadow:var(--mtg-sale-shadow) !important;
}

/* =========================================================
   CART
   ========================================================= */

.tm1-cart-layout{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 360px !important;
    gap:28px !important;
    align-items:start !important;
}

.tm1-cart-items{
    display:grid !important;
    gap:16px !important;
}

.tm1-cart-item{
    display:grid !important;
    grid-template-columns:96px minmax(0,1fr) 280px !important;
    gap:18px !important;
    align-items:center !important;
    padding:18px !important;
    background:#ffffff !important;
align-items:cx solid var(--mtg-sale-line) !important;
    border-radius:22px !important;
    box-shadow:0 12px 30px rgba(15,23,42,.045) !important;
}

.tm1-cart-item__img,
.tm1-cart-item img:first-child{
    width:96px !important;
    height:96px !important;
    border-radius:18px !important;
    overflow:hidden !important;
    background:#f1f5f9 !important;
    object-fit:cover !important;
}

.tm1-cart-item img{
    object-fit:cover !important;
}

.tm1-cart-item h3,
.tm1-cart-item__title{
    margin:0 0 6px !important;
    color:var(--mtg-sale-ink) !important;
    font-size:19px !important;
    line-height:1.2 !important;
    font-weight:950 !important;
}

.tm1-cart-item p,
.tm1-cart-item__meta,
.tm1-cart-item span{
    color:var(--mtg-sale-muted) !important;
}

.tm1-cart-item input[type="number"],
.tm1-cart-item input[type="text"]{
    width:100% !important;
    min-height:42px !important;
    border:1px solid #cbd5e1 !important;
    border-radius:12px !important;
    padding:8px 10px !important;
    background:#ffffff !important;
    color:var(--mtg-sale-ink) !important;
}

.tm1-cart-summary{
    padding:24px !important;
    position:sticky !important;
    top:24px !important;
}

.tm1-cart-summary h2{
    margin:0 0 16px !important;
    color:var(--mtg-sale-ink) !important;
    font-size:27px !important;
    font-weight:950 !important;
    letter-spacing:-.03em !important;
}

.tm1-cart-row,
.tm1-checkout-row{
    display:flex !important;
    justify-content:space-between !important;
    gap:16px !important;
    padding:11px 0 !important;
    border-bottom:1px solid #eef2f7 !important;
    color:#334155 !important;
}

.tm1-cart-total,
.tm1-checkout-total{
    display:flex !important;
    justify-content:space-between !important;
    gap:16px !important;
    margin-top:16px !important;
    padding-top:16px !important;
    border-top:1px solid var(--mtg-sale-line) !important;
    color:var(--mtg-sale-ink) !important;
    font-size:24px !important;
    font-weight:950 !important;
}

/* =========================================================
   CHECKOUT
   ========================================================= */

.tm1-checkout-layout{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 390px !important;
    gap:30px !important;
    align-items:start !important;
}

.tm1-checkout-form{
    display:grid !important;
    gap:20px !important;
}

.tm1-checkout-section,
.tm1-checkout-fields,
.tm1-checkout-box{
    padding:24px !important;
}

.tm1-checkout-section h2,
.tm1-checkout-fields h2,
.tm1-checkout-box h2,
.tm1-checkout-summary h2{
    margin:0 0 18px !important;
    color:var(--mtg-sale-ink) !important;
    font-size:26px !important;
    line-height:1.12 !important;
    font-weight:950 !important;
    letter-spacing:-.035em !important;
}

.tm1-checkout-grid,
.tm1-checkout-fields-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:16px !important;
}

.tm1-checkout-field,
.tm1-checkout-form label{
    display:grid !important;
    gap:8px !important;
}

.tm1-checkout-field label,
.tm1-checkout-form label,
.tm1-checkout-form strong{
    color:var(--mtg-sale-ink) !important;
    font-weight:900 !important;
}

.tm1-checkout-form input[type="text"],
.tm1-checkout-form input[type="email"],
.tm1-checkout-form input[type="tel"],
.tm1-checkout-form input[type="number"],
.tm1-checkout-form select,
.tm1-checkout-form textarea,
.tm1-checkout-field input,
.tm1-checkout-field select,
.tm1-checkout-field textarea{
    width:100% !important;
    min-height:50px !important;
    border:1px solid #cbd5e1 !important;
    border-radius:14px !important;
    padding:12px 14px !important;
    background:#ffffff !important;
    color:var(--mtg-sale-ink) !important;
    outline:none !important;
    box-shadow:none !important;
}

.tm1-checkout-form input:focus,
.tm1-checkout-form select:focus,
.tm1-checkout-form textarea:focus,
.tm1-checkout-field input:focus,
.tm1-checkout-field select:focus,
.tm1-checkout-field textarea:focus{
    border-color:var(--mtg-sale-blue) !important;
    box-shadow:0 0 0 4px rgba(37,99,235,.12) !important;
}

.tm1-checkout-methods,
.tm1-payment-methods,
.tm1-shipping-methods{
    display:grid !important;
    gap:14px !important;
}

.tm1-checkout-method,
.tm1-payment-card,
.tm1-shipping-card{
    display:grid !important;
    grid-template-columns:auto 1fr !important;
    gap:13px !important;
    align-items:center !important;
    padding:18px !important;
    border:1px solid var(--mtg-sale-line) !important;
    border-radius:20px !important;
    background:#ffffff !important;
    cursor:pointer !important;
    transition:.18s ease !important;
}

.tm1-checkout-method:hover,
.tm1-payment-card:hover,
.tm1-shipping-card:hover{
    border-color:#93c5fd !important;
    box-shadow:0 12px 30px rgba(37,99,235,.08) !important;
}

.tm1-payment-card img,
.tm1-shipping-card img,
.tm1-checkout-method img{
    max-width:34px !important;
    max-height:34px !important;
    object-fit:contain !important;
    border-radius:8px !important;
}

.tm1-checkout-summary{
    padding:26px !important;
    position:sticky !important;
    top:24px !important;
}

.tm1-checkout-product{
    display:grid !important;
    grid-template-columns:74px minmax(0,1fr) auto !important;
    gap:13px !important;
    align-items:center !important;
    padding:14px 0 !important;
    border-bottom:1px solid #eef2f7 !important;
}

.tm1-checkout-product__img,
.tm1-checkout-product img:first-child{
    width:74px !important;
    height:74px !important;
    border-radius:16px !important;
    background:#f1f5f9 !important;
    object-fit:cover !important;
}

.tm1-checkout-product h3{
    margin:0 0 4px !important;
    color:var(--mtg-sale-ink) !important;
    font-size:16px !important;
    line-height:1.18 !important;
    font-weight:950 !important;
}

.tm1-checkout-product p,
.tm1-checkout-product span,
.tm1-checkout-product small{
    margin:0 !important;
    color:var(--mtg-sale-muted) !important;
    font-size:13px !important;
}

/* Arreglar radio/iconos pelados del checkout */
.tm1-checkout-form input[type="radio"]{
    width:18px !important;
    height:18px !important;
    min-height:18px !important;
    accent-color:var(--mtg-sale-green) !important;
}

/* =========================================================
   BOTONES
   ========================================================= */

.tm1-btn,
.tm1-btn-primary,
.tm1-btn--dark,
.tm1-btn--green,
.tm1-checkout-submit,
.tm1-cart-summary a,
.tm1-cart-summary button,
.tm1-checkout-form button[type="submit"],
.tm1-checkout-form input[type="submit"],
.tm1-review-clean__btn,
.tm1-thankyou-card a{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-height:50px !important;
    padding:14px 22px !important;
    border:0 !important;
    border-radius:15px !important;
    background:var(--mtg-sale-green) !important;
    color:#ffffff !important;
    font-weight:950 !important;
    line-height:1 !important;
    text-decoration:none !important;
    cursor:pointer !important;
    box-shadow:0 16px 34px rgba(22,163,74,.22) !important;
    transition:.18s ease !important;
}

.tm1-cart-summary a,
.tm1-cart-summary button{
    width:100% !important;
    margin-top:10px !important;
}

.tm1-checkout-form button[type="submit"],
.tm1-checkout-form input[type="submit"]{
    width:100% !important;
    margin-top:8px !important;
}

.tm1-btn:hover,
.tm1-btn-primary:hover,
.tm1-btn--dark:hover,
.tm1-btn--green:hover,
.tm1-checkout-submit:hover,
.tm1-cart-summary a:hover,
.tm1-cart-summary button:hover,
.tm1-checkout-form button[type="submit"]:hover,
.tm1-checkout-form input[type="submit"]:hover,
.tm1-review-clean__btn:hover,
.tm1-thankyou-card a:hover{
    background:var(--mtg-sale-green-dark) !important;
    color:#ffffff !important;
    transform:translateY(-1px) !important;
}

/* Botón secundario */
.tm1-btn--light,
.tm1-btn-secondary{
    background:#ffffff !important;
    color:var(--mtg-sale-blue) !important;
    border:1px solid #bfdbfe !important;
    box-shadow:none !important;
}

.tm1-btn--light:hover,
.tm1-btn-secondary:hover{
    background:#eff6ff !important;
    color:var(--mtg-sale-blue-dark) !important;
}

/* =========================================================
   SINGLE PRODUCT UNIVERSAL BLANCO
   ========================================================= */

body.mtg-universal-sale-page.single-mtg_product,
body.mtg-universal-sale-page.single-product,
body.mtg-universal-sale-page.single-mtg_commerce_product{
    background:#ffffff !important;
}

.mtg-single-product,
.mtg-single-product-page,
.tm1-single-product,
.tm1-product-single,
.single-product .site-main,
.single-mtg_product .site-main,
.single-mtg_commerce_product .site-main{
    width:90% !important;
    max-width:1220px !important;
    margin:0 auto !important;
    padding:56px 0 78px !important;
    background:#ffffff !important;
}

.mtg-single-product-grid,
.tm1-single-grid,
.tm1-product-single__grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(360px,520px) !important;
    gap:28px !important;
    align-items:start !important;
    background:#ffffff !important;
}

.mtg-single-product-media,
.tm1-single-media,
.tm1-product-single__media,
.mtg-single-product-info,
.tm1-single-info,
.tm1-product-single__info{
    background:#ffffff !important;
    border:1px solid var(--mtg-sale-line) !important;
    border-radius:var(--mtg-sale-radius) !important;
    box-shadow:var(--mtg-sale-shadow) !important;
    padding:22px !important;
}

.mtg-single-product-media img,
.tm1-single-media img,
.tm1-product-single__media img,
.single-product .site-main img,
.single-mtg_product .site-main img{
    border-radius:18px !important;
    object-fit:cover !important;
}

.mtg-single-product-info h1,
.tm1-single-info h1,
.tm1-product-single__info h1,
.single-product .site-main h1,
.single-mtg_product .site-main h1{
    color:var(--mtg-sale-ink) !important;
    font-size:34px !important;
    line-height:1.1 !important;
    font-weight:950 !important;
    letter-spacing:-.04em !important;
}

.mtg-single-product-info .price,
.tm1-single-info .price,
.single-product .price,
.single-mtg_product .price{
    color:var(--mtg-sale-ink) !important;
    font-size:30px !important;
    font-weight:950 !important;
}

.single-product button,
.single-product input[type="submit"],
.single-mtg_product button,
.single-mtg_product input[type="submit"],
.mtg-single-product button,
.mtg-single-product input[type="submit"]{
    min-height:50px !important;
    padding:14px 22px !important;
    border:0 !important;
    border-radius:15px !important;
    background:var(--mtg-sale-green) !important;
    color:#ffffff !important;
    font-weight:950 !important;
    box-shadow:0 16px 34px rgba(22,163,74,.22) !important;
}

/* =========================================================
   REVIEW / THANKYOU
   ========================================================= */

.tm1-review-clean{
    background:#ffffff !important;
    background-image:none !important;
}

.tm1-review-clean .tm1-shell{
    width:100% !important;
    max-width:1220px !important;
    margin:0 auto !important;
}

.tm1-review-clean__grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 380px !important;
    gap:28px !important;
    align-items:start !important;
}

.tm1-review-clean__card,
.tm1-review-clean__empty{
    padding:28px !important;
}

.tm1-thankyou-shell{
    text-align:center !important;
}

.tm1-thankyou-card{
    max-width:760px !important;
    margin:0 auto !important;
    padding:38px !important;
}

.tm1-thankyou-card h1{
    color:var(--mtg-sale-ink) !important;
    font-size:36px !important;
    font-weight:950 !important;
    margin:0 0 12px !important;
}

/* =========================================================
   EMPTY STATES
   ========================================================= */

.tm1-cart-empty,
.tm1-checkout-empty{
    padding:38px !important;
    text-align:center !important;
}

.tm1-cart-empty h2,
.tm1-checkout-empty h2{
    margin:0 0 8px !important;
    color:var(--mtg-sale-ink) !important;
    font-size:28px !important;
    font-weight:950 !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:980px){
    .tm1-cart-layout,
    .tm1-checkout-layout,
    .tm1-review-clean__grid,
    .mtg-single-product-grid,
    .tm1-single-grid,
    .tm1-product-single__grid{
        grid-template-columns:1fr !important;
    }

    .tm1-cart-summary,
    .tm1-checkout-summary{
        position:relative !important;
        top:auto !important;
    }
}

@media(max-width:720px){
    .tm1-cart-shell,
    .tm1-checkout-shell,
    .tm1-review-clean,
    .tm1-thankyou-shell,
    .mtg-cart-page,
    .mtg-checkout-page,
    .mtg-review-payment-page,
    .mtg-thankyou-page,
    .mtg-storefront-page,
    .mtg-single-product-page,
    .mtg-archive-product-page,
    .mtg-single-product,
    .tm1-single-product,
    .tm1-product-single,
    .single-product .site-main,
    .single-mtg_product .site-main,
    .single-mtg_commerce_product .site-main{
        width:92% !important;
        padding:32px 0 56px !important;
    }

    .tm1-cart-head h1,
    .tm1-checkout-head h1,
    .tm1-review-clean h1,
    .tm1-thankyou-head h1,
    .mtg-cart-page h1,
    .mtg-checkout-page h1,
    .mtg-review-payment-page h1,
    .mtg-thankyou-page h1{
        font-size:30px !important;
    }

    .tm1-checkout-grid,
    .tm1-checkout-fields-grid{
        grid-template-columns:1fr !important;
    }

    .tm1-cart-item{
        grid-template-columns:78px minmax(0,1fr) !important;
    }

    .tm1-cart-item > *:last-child{
        grid-column:1 / -1 !important;
    }

    .tm1-checkout-product{
        grid-template-columns:70px minmax(0,1fr) !important;
    }

    .tm1-checkout-product > *:last-child{
        grid-column:1 / -1 !important;
    }
}

/* =========================================================
   MTG UNIVERSAL SALES POLISH V2
   Blanco premium, carrito/checkout más armado.
   No pertenece a TM1/TM2/TM3.
   ========================================================= */

body.mtg-universal-sale-page,
body.mtg-white-commerce-page{
    background:#fff !important;
    color:#07111f !important;
}

body.mtg-universal-sale-page main,
body.mtg-white-commerce-page main{
    background:#fff !important;
}

/* Contenedor más elegante */
.tm1-cart-shell,
.tm1-checkout-shell{
    width:90% !important;
    max-width:1180px !important;
    padding-top:48px !important;
}

.tm1-cart-head,
.tm1-checkout-head{
    max-width:760px !important;
    margin-bottom:34px !important;
}

.tm1-cart-head h1,
.tm1-checkout-head h1{
    font-size:40px !important;
    letter-spacing:-.045em !important;
}

.tm1-cart-head p,
.tm1-checkout-head p{
    font-size:17px !important;
    color:#5f6f85 !important;
}

/* Layout más balanceado */
.tm1-cart-layout{
    grid-template-columns:minmax(0,1fr) 340px !important;
    gap:34px !important;
}

.tm1-checkout-layout{
    grid-template-columns:minmax(0,1fr) 390px !important;
    gap:36px !important;
}

/* Cards principales */
.tm1-cart-item,
.tm1-cart-summary,
.tm1-checkout-fields,
.tm1-checkout-section,
.tm1-checkout-box,
.tm1-checkout-summary{
    border:1px solid #e5eaf2 !important;
    border-radius:26px !important;
    background:#fff !important;
    box-shadow:0 18px 48px rgba(15,23,42,.065) !important;
}

/* Carrito producto */
.tm1-cart-item{
    grid-template-columns:105px minmax(0,1fr) 260px !important;
    padding:18px !important;
    min-height:144px !important;
}

.tm1-cart-item__img,
.tm1-cart-item img:first-child{
    width:105px !important;
    height:105px !important;
    border-radius:20px !important;
    background:#f4f7fb !important;
}

.tm1-cart-item h3,
.tm1-cart-item__title{
    font-size:20px !important;
    margin-bottom:6px !important;
}

.tm1-cart-item input[type="number"]{
    max-width:120px !important;
    text-align:center !important;
    font-weight:800 !important;
}

/* Resumen carrito */
.tm1-cart-summary{
    padding:26px !important;
}

.tm1-cart-summary h2{
    font-size:28px !important;
    margin-bottom:18px !important;
}

.tm1-cart-total{
    font-size:25px !important;
    margin-bottom:18px !important;
}

/* Botones del carrito más finos */
.tm1-cart-summary a,
.tm1-cart-summary button{
    min-height:52px !important;
    border-radius:16px !important;
    font-size:16px !important;
}

.tm1-cart-summary a:nth-of-type(2),
.tm1-cart-summary a[href*="shop"],
.tm1-cart-summary .tm1-btn--light{
    background:#fff !important;
    color:#2563eb !important;
    border:1px solid #bfdbfe !important;
    box-shadow:none !important;
}

/* Checkout box */
.tm1-checkout-fields,
.tm1-checkout-section,
.tm1-checkout-box{
    padding:28px !important;
}

.tm1-checkout-fields{
    display:grid !important;
    gap:18px !important;
}

.tm1-checkout-fields h2,
.tm1-checkout-section h2,
.tm1-checkout-box h2,
.tm1-checkout-summary h2{
    font-size:28px !important;
    letter-spacing:-.04em !important;
}

/* Inputs */
.tm1-checkout-form input[type="text"],
.tm1-checkout-form input[type="email"],
.tm1-checkout-form input[type="tel"],
.tm1-checkout-form select,
.tm1-checkout-form textarea{
    min-height:54px !important;
    border-radius:16px !important;
    border-color:#d6deea !important;
    background:#fff !important;
    font-size:15px !important;
}

.tm1-checkout-form input[type="text"]:focus,
.tm1-checkout-form input[type="email"]:focus,
.tm1-checkout-form input[type="tel"]:focus,
.tm1-checkout-form select:focus,
.tm1-checkout-form textarea:focus{
    border-color:#2563eb !important;
    box-shadow:0 0 0 4px rgba(37,99,235,.11) !important;
}

/* WhatsApp phone row: evitar huecos raros */
.tm1-checkout-form .iti,
.tm1-checkout-form .iti--allow-dropdown{
    width:100% !important;
}

.tm1-checkout-form input[name*="whatsapp"],
.tm1-checkout-form input[name*="phone"],
.tm1-checkout-form input[type="tel"]{
    width:100% !important;
}

/* Medio de pago: convertir bloque feo en card limpia */
.tm1-payment-methods,
.tm1-checkout-methods{
    display:grid !important;
    gap:14px !important;
}

.tm1-payment-card,
.tm1-checkout-method,
.tm1-shipping-card{
    position:relative !important;
    display:grid !important;
    grid-template-columns:24px 48px minmax(0,1fr) !important;
    gap:14px !important;
    align-items:center !important;
    min-height:92px !important;
    padding:18px !important;
    border:1px solid #dfe7f1 !important;
    border-radius:22px !important;
    background:#fff !important;
    overflow:hidden !important;
}

.tm1-payment-card input[type="radio"],
.tm1-checkout-method input[type="radio"],
.tm1-shipping-card input[type="radio"]{
    width:18px !important;
    height:18px !important;
    min-height:18px !important;
    margin:0 !important;
    accent-color:#16a34a !important;
}

.tm1-payment-card img,
.tm1-checkout-method img,
.tm1-shipping-card img{
    width:40px !important;
    height:40px !important;
    max-width:40px !important;
    max-height:40px !important;
    object-fit:contain !important;
    border-radius:12px !important;
    background:#f5f7fa !important;
    padding:6px !important;
}

.tm1-payment-card strong,
.tm1-checkout-method strong,
.tm1-shipping-card strong{
    display:block !important;
    color:#07111f !important;
    font-size:18px !important;
    line-height:1.15 !important;
    font-weight:950 !important;
}

.tm1-payment-card p,
.tm1-payment-card span,
.tm1-checkout-method p,
.tm1-checkout-method span,
.tm1-shipping-card p,
.tm1-shipping-card span{
    margin:4px 0 0 !important;
    color:#64748b !important;
    font-size:14px !important;
    line-height:1.35 !important;
}

/* Si el bloque WhatsApp trae texto suelto, hacerlo respirable */
.tm1-checkout-form .tm1-payment-card + p,
.tm1-checkout-form .tm1-checkout-method + p{
    margin-top:8px !important;
    color:#64748b !important;
}

/* Botón continuar */
.tm1-checkout-form button[type="submit"],
.tm1-checkout-form input[type="submit"]{
    min-height:56px !important;
    border-radius:18px !important;
    font-size:16px !important;
    background:#16a34a !important;
}

/* Summary checkout */
.tm1-checkout-summary{
    padding:30px !important;
}

.tm1-checkout-summary h2{
    margin-bottom:20px !important;
}

.tm1-checkout-product{
    grid-template-columns:68px minmax(0,1fr) auto !important;
    padding:15px 0 !important;
}

.tm1-checkout-product__img,
.tm1-checkout-product img:first-child{
    width:68px !important;
    height:68px !important;
    border-radius:16px !important;
}

.tm1-checkout-product h3{
    font-size:16px !important;
}

.tm1-checkout-total{
    font-size:25px !important;
}

/* Ocultar residuos visuales verdes claros si algún template anterior los mete */
.tm1-checkout-shell [style*="background:linear-gradient"],
.tm1-cart-shell [style*="background:linear-gradient"],
.tm1-checkout-shell [style*="#ecfdf5"],
.tm1-cart-shell [style*="#ecfdf5"]{
    background:#fff !important;
    background-image:none !important;
}

/* Responsive */
@media(max-width:980px){
    .tm1-cart-layout,
    .tm1-checkout-layout{
        grid-template-columns:1fr !important;
    }

    .tm1-cart-summary,
    .tm1-checkout-summary{
        position:relative !important;
        top:auto !important;
    }
}

@media(max-width:720px){
    .tm1-cart-shell,
    .tm1-checkout-shell{
        width:92% !important;
        padding-top:30px !important;
    }

    .tm1-cart-head h1,
    .tm1-checkout-head h1{
        font-size:32px !important;
    }

    .tm1-cart-item{
        grid-template-columns:82px minmax(0,1fr) !important;
    }

    .tm1-cart-item__img,
    .tm1-cart-item img:first-child{
        width:82px !important;
        height:82px !important;
    }

    .tm1-cart-item > *:last-child{
        grid-column:1 / -1 !important;
    }

    .tm1-payment-card,
    .tm1-checkout-method,
    .tm1-shipping-card{
        grid-template-columns:22px 42px minmax(0,1fr) !important;
        padding:15px !important;
    }
}

/* MTG FIX: campos adicionales por producto en single product */
.mtg-product-extra-fields{
    margin:18px 0 18px;
    padding:18px;
    border:1px solid #dbe7f3;
    border-radius:20px;
    background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
    box-shadow:0 10px 26px rgba(15,23,42,.04);
}

.mtg-product-extra-fields__head{
    margin-bottom:14px;
}

.mtg-product-extra-fields__head strong{
    display:block;
    color:#0f2747;
    font-size:16px;
    font-weight:900;
    letter-spacing:-.02em;
}

.mtg-product-extra-fields__head span{
    display:block;
    margin-top:4px;
    color:#64748b;
    font-size:13px;
    line-height:1.45;
}

.mtg-product-extra-fields__grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.mtg-product-extra-field{
    display:grid;
    gap:7px;
    min-width:0;
}

.mtg-product-extra-field.is-full{
    grid-column:1 / -1;
}

.mtg-product-extra-field span{
    color:#10243f;
    font-size:13px;
    font-weight:800;
}

.mtg-product-extra-field b{
    color:#ef4444;
}

.mtg-product-extra-field input,
.mtg-product-extra-field textarea{
    width:100%;
    min-height:46px;
    border:1px solid #dbe7f3;
    border-radius:14px;
    background:#fff;
    color:#10243f;
    font-size:15px;
    padding:12px 14px;
    outline:none;
}

.mtg-product-extra-field textarea{
    min-height:96px;
    resize:vertical;
}

.mtg-product-extra-field input:focus,
.mtg-product-extra-field textarea:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

@media (max-width: 720px){
    .mtg-product-extra-fields__grid{
        grid-template-columns:1fr;
    }
}
