/* Tudo Mini Carrito → Order Pay Add-on v0.4.3 */
:root{--tmop-blue:#007AFD;--tmop-blue-2:#0b74f6;--tmop-ink:#344154;--tmop-ink-strong:#263244;--tmop-muted:#66758d;--tmop-soft-muted:#94a3b8;--tmop-line:#dbe7f5;--tmop-line-2:#edf3fa;--tmop-soft:#f8fbff;--tmop-card:#ffffff;}

#tmcw-cart-popover .tmop-step{padding:16px 18px 20px;background:#ffffff;font-family:Poppins,Inter,"Nunito",Arial,sans-serif;color:var(--tmop-ink);}
#tmcw-cart-popover .tmop-back{display:inline-flex;align-items:center;gap:6px;margin:0 0 12px;padding:0;border:0;background:transparent;color:#64748b;font-size:12.5px;font-weight:650;cursor:pointer;box-shadow:none;}
#tmcw-cart-popover .tmop-back:hover{color:var(--tmop-blue);}
#tmcw-cart-popover .tmop-mini-progress{display:flex;align-items:center;gap:8px;margin:0 0 13px;color:#94a3b8;font-size:11px;font-weight:700;letter-spacing:.02em;}
#tmcw-cart-popover .tmop-mini-progress span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}
#tmcw-cart-popover .tmop-mini-progress span::before{content:"";width:7px;height:7px;border-radius:999px;background:#cbd5e1;}
#tmcw-cart-popover .tmop-mini-progress span.is-on{color:var(--tmop-blue);}
#tmcw-cart-popover .tmop-mini-progress span.is-on::before{background:var(--tmop-blue);box-shadow:0 0 0 4px rgba(0,122,253,.10);}
#tmcw-cart-popover .tmop-mini-progress i{display:block;height:1px;flex:1;background:#e2e8f0;}
#tmcw-cart-popover .tmop-head{margin:0 0 14px;padding:0;border:0;background:transparent;}
#tmcw-cart-popover .tmop-head strong{display:block;margin:0 0 5px;color:#344154;font-size:18px;line-height:1.18;font-weight:600;letter-spacing:-.02em;}
#tmcw-cart-popover .tmop-head span{display:block;color:#66758d;font-size:13.2px;line-height:1.42;font-weight:450;}
#tmcw-cart-popover .tmop-fields,.tmop-landing-form{display:grid;gap:13px;}
#tmcw-cart-popover .tmop-fields label,.tmop-landing-form label{display:block;margin:0;}
#tmcw-cart-popover .tmop-fields label span,.tmop-landing-form label span{display:block;margin:0 0 7px;color:#334155;font-size:12px;line-height:1.2;font-weight:600;}
#tmcw-cart-popover .tmop-fields input,.tmop-landing-form input{width:100%!important;height:46px!important;padding:10px 14px!important;border:1px solid #d7e2f0!important;border-radius:13px!important;background:#ffffff!important;color:#1f2937!important;font-family:Poppins,Inter,"Nunito",Arial,sans-serif!important;font-size:14.2px!important;font-weight:450!important;box-shadow:none!important;box-sizing:border-box!important;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;}
#tmcw-cart-popover .tmop-fields input::placeholder,.tmop-landing-form input::placeholder{color:#9aa7b8!important;font-weight:420!important;}
#tmcw-cart-popover .tmop-fields input:focus,.tmop-landing-form input:focus{outline:none!important;border-color:var(--tmop-blue)!important;box-shadow:0 0 0 3px rgba(0,122,253,.08)!important;background:#fff!important;}
.tmop-phone-field{display:flex;align-items:center;width:100%;height:46px;border:1px solid #d7e2f0;border-radius:13px;background:#fff;overflow:hidden;box-sizing:border-box;transition:border-color .16s ease,box-shadow .16s ease;}
.tmop-phone-field:focus-within{border-color:var(--tmop-blue);box-shadow:0 0 0 3px rgba(0,122,253,.08);}
.tmop-phone-field b{display:flex;align-items:center;justify-content:center;height:100%;padding:0 14px;background:#f8fbff;border-right:1px solid #e2e8f0;color:#334155;font-size:13.5px;font-weight:650;}
#tmcw-cart-popover .tmop-phone-field input,.tmop-landing-form .tmop-phone-field input{height:44px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding-left:12px!important;}
#tmcw-cart-popover .tmop-phone-field input:focus,.tmop-landing-form .tmop-phone-field input:focus{box-shadow:none!important;border:0!important;}
.tmop-field-hint{display:block;margin:6px 0 0;color:#8b99ac;font-size:11.8px;line-height:1.3;font-weight:500;}
#tmcw-cart-popover .tmop-message,.tmop-landing-form .tmop-message{margin:12px 0 0;padding:10px 12px;border-radius:12px;font-size:12.5px;line-height:1.35;font-weight:620;}
#tmcw-cart-popover .tmop-message.is-error,.tmop-landing-form .tmop-message.is-error{border:1px solid #fecaca;background:#fff7f7;color:#b91c1c;}
#tmcw-cart-popover .tmop-message.is-ok,.tmop-landing-form .tmop-message.is-ok{border:1px solid #bbf7d0;background:#f0fdf4;color:#15803d;}
#tmcw-cart-popover .tmop-submit{width:100%;min-height:50px;margin:15px 0 0;border:0;border-radius:15px;background:var(--tmop-blue);color:#ffffff;font-family:Poppins,Inter,"Nunito",Arial,sans-serif;font-size:15px;font-weight:620;letter-spacing:-.005em;cursor:pointer;box-shadow:0 14px 28px rgba(0,122,253,.13);transition:.18s ease;}
#tmcw-cart-popover .tmop-submit:hover{transform:translateY(-1px);box-shadow:0 18px 34px rgba(0,122,253,.18);}
#tmcw-cart-popover .tmop-submit:disabled,#tmcw-cart-popover .tmop-submit.is-loading,.tmop-landing-main-btn:disabled,.tmop-landing-main-btn.is-loading{opacity:.72;cursor:wait;transform:none;}
#tmcw-cart-popover .tmop-fallback{display:block;margin:12px auto 0;text-align:center;color:#64748b;font-size:12px;font-weight:600;text-decoration:underline;}
#tmcw-cart-popover .tmop-single-action{grid-template-columns:1fr!important;}
#tmcw-cart-popover .tmop-single-action .tmcw-btn--primary{width:100%!important;}

/* Landing */
body.tmop-landing-body{margin:0;background:radial-gradient(circle at 50% 0,#ffffff 0,#fbfdff 36%,#f6f9fd 100%);color:var(--tmop-ink);font-family:Poppins,Inter,"Nunito",Arial,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
.tmop-landing{min-height:100vh;padding:28px 18px 58px;box-sizing:border-box;}
/* Logo landing: misma lógica estable del plugin Tudo Order Pay Identidad Visual */
.tmop-landing-brand{
    width:100%!important;
    max-width:1120px!important;
    height:82px!important;
    min-height:82px!important;
    margin:0 auto 24px!important;
    padding:0 18px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    outline:0!important;
    box-sizing:border-box!important;
}
.tmop-landing-brand a{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-decoration:none!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    min-height:0!important;
}
.tmop-landing-logo-mask{
    width:245px!important;
    max-width:72vw!important;
    height:46px!important;
    display:block!important;
    background-color:#007AFD!important;
    -webkit-mask-image:var(--tmop-logo-mask-url)!important;
    -webkit-mask-repeat:no-repeat!important;
    -webkit-mask-position:center!important;
    -webkit-mask-size:contain!important;
    mask-image:var(--tmop-logo-mask-url)!important;
    mask-repeat:no-repeat!important;
    mask-position:center!important;
    mask-size:contain!important;
    transition:opacity .16s ease,transform .16s ease!important;
}
.tmop-landing-brand a:hover .tmop-landing-logo-mask{
    opacity:.88!important;
    transform:translateY(-1px)!important;
}
.tmop-landing-brand img,
.tmop-landing-brand img.tmop-brand-logo-img,
.tmop-brand-logo,
.tmop-brand-wordmark,
.tmop-brand-text{
    display:none!important;
}
@media(max-width:520px){
    .tmop-landing-brand{
        height:66px!important;
        min-height:66px!important;
        margin:0 auto 18px!important;
        padding:0 14px!important;
    }
    .tmop-landing-logo-mask{
        width:178px!important;
        height:34px!important;
    }
}
.tmop-landing-wrap{width:100%;max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);gap:22px;align-items:start;}
.tmop-landing-card{background:rgba(255,255,255,.97);border:1px solid #dbe7f5;border-radius:22px;box-shadow:0 18px 42px rgba(15,23,42,.04);box-sizing:border-box;backdrop-filter:saturate(150%) blur(8px);}
.tmop-landing-form-card{padding:28px 28px 26px;}
.tmop-stepper{display:flex;align-items:center;gap:10px;margin:0 0 24px;}
.tmop-stepper-item{display:inline-flex;align-items:center;gap:8px;color:#98a6ba;font-size:12px;font-weight:610;letter-spacing:.005em;white-space:nowrap;}
.tmop-stepper-item span{width:24px;height:24px;border-radius:999px;background:#eef3f8;color:#64748b;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;}
.tmop-stepper-item.is-active{color:#007AFD;}
.tmop-stepper-item.is-active span{background:#007AFD;color:#fff;box-shadow:0 8px 18px rgba(0,122,253,.14);}
.tmop-stepper-line{height:1px;flex:1;background:#e5edf7;}
.tmop-landing-kicker{display:inline-flex;margin:0 0 12px;padding:6px 10px;border-radius:999px;background:#eff6ff;color:#007AFD;font-size:10.8px;font-weight:650;letter-spacing:.045em;text-transform:uppercase;}
.tmop-landing h1{margin:0 0 8px;color:#2f3b4f;font-size:clamp(20px,1.9vw,25px);line-height:1.12;letter-spacing:-.035em;font-weight:590;}
.tmop-landing-form-card>p{margin:0 0 22px;color:#66758d;font-size:14px;line-height:1.55;max-width:620px;font-weight:400;}
.tmop-landing-main-btn{display:inline-flex;width:100%;min-height:52px;margin-top:8px;align-items:center;justify-content:center;border:0;border-radius:15px;background:#007AFD;color:#ffffff!important;text-decoration:none!important;font-size:15.2px;font-weight:620;cursor:pointer;box-shadow:0 16px 32px rgba(0,122,253,.14);transition:.18s ease;letter-spacing:-.005em;}
.tmop-landing-main-btn:hover{transform:translateY(-1px);box-shadow:0 20px 38px rgba(0,122,253,.19);}
.tmop-landing-secondary-link{display:block;margin:13px auto 0;text-align:center;color:#64748b;font-size:12.3px;font-weight:600;text-decoration:underline;}
.tmop-landing-empty{padding:13px 15px;border:1px solid #fed7aa;border-radius:14px;background:#fff7ed;color:#9a3412;font-size:15px;font-weight:620;line-height:1.42;}

/* Resumen */
.tmop-summary-card{overflow:hidden;position:sticky;top:24px;background:rgba(255,255,255,.98);}
.tmop-summary-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:17px 20px;border-bottom:1px solid #e5edf7;background:linear-gradient(180deg,#fff 0,#fbfdff 100%);}
.tmop-summary-head strong{color:#475569;font-size:12.2px;font-weight:680;text-transform:uppercase;letter-spacing:.075em;}
.tmop-summary-head a{color:#64748b;font-size:12px;font-weight:560;text-decoration:underline;text-underline-offset:3px;}
.tmop-summary-items{padding:13px 18px;}
.tmop-summary-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:13px 0;align-items:start;}
.tmop-summary-item+ .tmop-summary-item{border-top:1px solid #edf3fa;}
.tmop-summary-item strong{display:block;color:#334155;font-size:13.2px;line-height:1.38;font-weight:560;overflow-wrap:anywhere;}
.tmop-summary-item>div:last-child{white-space:nowrap;color:#334155;font-size:13.2px;font-weight:560;}
.tmop-summary-qty{display:inline-flex;margin:0 8px 6px 0;padding:2px 7px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:10.3px;font-weight:650;vertical-align:1px;}
.tmop-summary-totals{border-top:1px solid #e5edf7;}
.tmop-summary-totals>div{display:flex;justify-content:space-between;gap:14px;padding:13px 20px;border-bottom:1px solid #edf3fa;color:#64748b;font-size:13.4px;font-weight:420;}
.tmop-summary-totals>div strong{color:#475569;font-weight:520;}
.tmop-summary-totals>div:last-child{border-bottom:0;}
.tmop-summary-totals>div.is-total{background:#f8fbff;color:#243145;font-size:15.2px;font-weight:620;}
.tmop-summary-totals>div.is-total strong{color:#1e293b;font-size:15.2px;font-weight:620;}
.tmop-summary-empty{padding:18px 20px;color:#64748b;}

@media(max-width:860px){.tmop-landing{padding:22px 14px 42px}.tmop-landing-wrap{grid-template-columns:1fr}.tmop-summary-card{order:-1;position:static}.tmop-landing-form-card{padding:22px}.tmop-stepper{margin-bottom:18px}}
@media(max-width:520px){#tmcw-cart-popover .tmop-step{padding:16px}.tmop-landing-card{border-radius:18px}.tmop-landing-form-card{padding:18px}.tmop-stepper-item strong{display:none}.tmop-brand-wordmark{font-size:26px!important}.tmop-landing h1{font-size:22px;font-weight:590}.tmop-landing-empty{font-size:14px;padding:12px 14px}.tmop-summary-head{padding:16px 18px}.tmop-summary-totals>div{padding:12px 18px}.tmop-summary-items{padding:10px 18px}}

/* ============================================================
   Resumen editable por defecto en landing
   ============================================================ */
.tmop-summary-dynamic{
    position:relative;
}
.tmop-summary-dynamic.is-updating{
    opacity:.72;
    pointer-events:none;
}
.tmop-summary-editable .tmop-summary-item,
.tmop-summary-editable-item{
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:18px;
}
.tmop-summary-product-main{
    min-width:0;
}
.tmop-summary-product-main strong{
    display:block;
    color:#334155;
    font-size:13.2px;
    line-height:1.38;
    font-weight:560;
    overflow-wrap:anywhere;
}
.tmop-summary-product-side{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    justify-content:center;
    gap:9px;
    white-space:nowrap;
}
.tmop-summary-line-price{
    color:#334155!important;
    font-size:13.2px!important;
    font-weight:620!important;
    line-height:1.1!important;
}
.tmop-summary-edit-controls{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:7px;
}
.tmop-cart-ctrl,
.tmop-cart-remove{
    appearance:none;
    -webkit-appearance:none;
    border:0;
    font-family:Poppins,Inter,"Nunito",Arial,sans-serif;
    cursor:pointer;
    box-shadow:none;
    transition:background .16s ease, color .16s ease, transform .16s ease, border-color .16s ease;
}
.tmop-cart-ctrl{
    width:25px;
    height:25px;
    min-width:25px;
    padding:0;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#eff6ff;
    color:#007AFD;
    font-size:17px;
    line-height:1;
    font-weight:800;
}
.tmop-cart-ctrl:hover{
    background:#007AFD;
    color:#ffffff;
    transform:translateY(-1px);
}
.tmop-cart-count{
    min-width:16px;
    color:#334155;
    text-align:center;
    font-size:12.5px;
    font-weight:760;
    line-height:1;
}
.tmop-cart-remove{
    min-height:25px;
    padding:5px 9px;
    border-radius:999px;
    background:#fff7ed;
    border:1px solid #fed7aa;
    color:#9a3412;
    font-size:11.2px;
    font-weight:720;
    line-height:1;
}
.tmop-cart-remove:hover{
    background:#ffedd5;
    color:#7c2d12;
    transform:translateY(-1px);
}
.tmop-landing-back-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    margin:12px auto 0;
    color:#64748b!important;
    font-size:12.5px;
    font-weight:620;
    line-height:1.2;
    text-decoration:none!important;
}
.tmop-landing-back-link:hover{
    color:#007AFD!important;
}
.tmop-summary-head a[data-tmop-history-back]{
    color:#64748b!important;
    font-size:12px;
    font-weight:620;
    text-decoration:underline;
    text-underline-offset:3px;
}

@media(max-width:520px){
    .tmop-summary-editable .tmop-summary-item,
    .tmop-summary-editable-item{
        grid-template-columns:1fr;
        gap:10px;
    }
    .tmop-summary-product-side{
        width:100%;
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
        gap:10px;
    }
    .tmop-summary-edit-controls{
        gap:6px;
    }
    .tmop-cart-ctrl{
        width:24px;
        height:24px;
        min-width:24px;
        font-size:16px;
    }
    .tmop-cart-remove{
        min-height:24px;
        padding:5px 8px;
        font-size:10.8px;
    }
}

/* Enlaces suaves de volver cuando no hay productos */
.tmop-empty-back-link{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-height:34px!important;
    margin:14px auto 0!important;
    padding:8px 12px!important;
    border-radius:999px!important;
    background:#f8fbff!important;
    border:1px solid #dbe7f5!important;
    color:#64748b!important;
    font-size:12.5px!important;
    font-weight:700!important;
    line-height:1!important;
    text-decoration:none!important;
    box-shadow:none!important;
}
.tmop-empty-back-link:hover{
    background:#eff6ff!important;
    color:#007AFD!important;
    border-color:#bfdbfe!important;
}
.tmop-summary-empty-actions{
    padding:0 20px 18px!important;
    text-align:left!important;
}
.tmop-summary-empty-actions .tmop-empty-back-link{
    margin-top:0!important;
}
