/*
 * TODOS SANTOS - TEMA ECOMMERCE
 *
 * Este archivo contiene SOLO la presentación de la tienda de Todos Santos.
 * El motor y la lógica reutilizable permanecen en:
 * /dmmexTPV_Sys_Comp/ecommerce_public.php
 *
 * Para otra empresa se crea su propio tema sin modificar el core.
 */

/* =========================================================
           ECOMMERCE PUBLICO - TEMA TODOS SANTOS
           El motor permanece en ecommerce_public.php.
           ========================================================= */
        .ts-ecommerce{
            background:#f7f2e7;
            padding:72px 20px;
        }
        .ts-ecommerce .ecom-publico-wrap{
            width:min(1180px, 100%);
            margin:0 auto;
        }
        .ts-ecommerce .ecom-publico-head{
            text-align:center;
            margin-bottom:30px;
        }
        .ts-ecommerce .ecom-publico-head h2{
            margin:0;
            color:#1C3029;
            font-size:34px;
            font-weight:800;
            letter-spacing:1px;
        }
        .ts-ecommerce .ecom-publico-head p{
            margin:8px 0 0;
            color:#8b6b2f;
            font-weight:600;
        }
        .ts-ecommerce .ecom-publico-tools{
            display:flex;
            flex-direction:column;
            gap:18px;
            margin-bottom:28px;
        }
        .ts-ecommerce .ecom-publico-search input{
            width:100%;
            border:1px solid rgba(28,48,41,.25);
            border-radius:9px;
            padding:13px 15px;
            background:#fff;
            color:#1C3029;
            outline:none;
        }
        .ts-ecommerce .ecom-publico-search input:focus{
            border-color:#b68b3c;
            box-shadow:0 0 0 3px rgba(182,139,60,.13);
        }
        .ts-ecommerce .ecom-publico-familias{
            display:flex;
            gap:8px;
            flex-wrap:wrap;
            justify-content:center;
        }
        .ts-ecommerce .ecom-publico-familias button{
            border:1px solid #1C3029;
            background:transparent;
            color:#1C3029;
            padding:7px 13px;
            border-radius:999px;
            cursor:pointer;
            font-weight:700;
        }
        .ts-ecommerce .ecom-publico-familias button:hover,
        .ts-ecommerce .ecom-publico-familias button.active{
            background:#1C3029;
            color:#fff;
        }
        .ts-ecommerce .ecom-publico-grid{
            display:grid;
            grid-template-columns:repeat(auto-fill, minmax(230px, 280px));
            gap:22px;
            align-items:start;
            justify-content:start;
        }
        .ts-ecommerce .ecom-producto-card{
            background:#fff;
            border:1px solid rgba(28,48,41,.11);
            border-radius:13px;
            overflow:hidden;
            box-shadow:0 7px 24px rgba(0,0,0,.07);
            display:flex;
            flex-direction:column;
            min-width:0;
            width:100%;
            height:auto;
        }
        .ts-ecommerce .ecom-producto-imagen{
            position:relative;
            width:100%;
            aspect-ratio:1 / 1;
            height:auto;
            border:0;
            padding:14px;
            background:#fff;
            cursor:pointer;
            overflow:hidden;
            display:flex;
            align-items:center;
            justify-content:center;
        }
        .ts-ecommerce .ecom-producto-imagen img{
            width:100%;
            height:100%;
            max-width:100%;
            max-height:100%;
            object-fit:contain;
            display:block;
            border-radius:8px;
        }
        .ts-ecommerce .ecom-sin-imagen{
            display:flex;
            align-items:center;
            justify-content:center;
            width:100%;
            height:100%;
            color:#777;
            background:#f4f4f4;
        }
        .ts-ecommerce .ecom-destacado{
            position:absolute;
            top:12px;
            left:12px;
            background:#b68b3c;
            color:#fff;
            padding:5px 9px;
            font-size:11px;
            border-radius:999px;
            font-weight:800;
            text-transform:uppercase;
        }
        .ts-ecommerce .ecom-producto-info{
            padding:17px;
            display:flex;
            flex-direction:column;
            flex:1;
        }
        .ts-ecommerce .ecom-producto-clasificacion{
            color:#9b7838;
            font-size:11px;
            font-weight:800;
            text-transform:uppercase;
            letter-spacing:.6px;
            min-height:17px;
        }
        .ts-ecommerce .ecom-producto-info h3{
            color:#1C3029;
            font-size:18px;
            line-height:1.3;
            margin:7px 0 8px;
        }
        .ts-ecommerce .ecom-producto-desc{
            color:#5f655f;
            font-size:14px;
            line-height:1.45;
            margin:0 0 15px;
        }
        .ts-ecommerce .ecom-producto-bottom{
            margin-top:auto;
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:10px;
        }
        .ts-ecommerce .ecom-producto-precio{
            color:#1C3029;
            font-size:20px;
            white-space:nowrap;
        }
        .ts-ecommerce .ecom-producto-ver{
            border:0;
            background:#1C3029;
            color:#fff;
            border-radius:7px;
            padding:9px 12px;
            font-weight:700;
            cursor:pointer;
        }
        .ts-ecommerce .ecom-producto-ver:hover{
            background:#b68b3c;
        }
        .ts-ecommerce .ecom-publico-aviso,
        .ts-ecommerce .ecom-publico-sin-resultados{
            background:#fff;
            border:1px solid rgba(28,48,41,.13);
            border-radius:10px;
            padding:24px;
            text-align:center;
            color:#1C3029;
        }
        .ts-ecommerce .ecom-modal-grid{
            display:grid;
            grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);
            gap:28px;
            align-items:start;
        }

        /* =========================================================
           MODALES ECOMMERCE
           Todos Santos maneja otros modales propios en wpPri.php con
           z-index 1362/1363. El backdrop debe quedar por encima del
           header (1200), pero por debajo de TODOS los modales.
           ========================================================= */
        #ECOM_Public_Modal,
        #ECOM_Carrito_Modal,
        #ECOM_Acceso_Modal,
        #ECOM_Checkout_Modal{
            z-index:2205 !important;
        }
        #ECOM_Public_Modal .modal-dialog{
            max-width:920px;
            margin:90px auto 30px;
        }
        #ECOM_Public_Modal .modal-content{
            border:0;
            border-radius:14px;
            overflow:hidden;
            box-shadow:0 18px 60px rgba(0,0,0,.30);
        }
        #ECOM_Public_Modal .modal-header{
            position:relative;
            z-index:2;
            background:#fff;
        }
        /*
         * IMPORTANTE:
         * Antes estaba en 2195. Eso dejaba el backdrop por ENCIMA
         * del carrito, que usa el z-index normal de Bootstrap.
         *
         * 1300 queda:
         *   - por encima del header de Todos Santos (1200)
         *   - por debajo de Modal_New_gen (1362)
         *   - por debajo de Modal_LoginPortal (1363)
         *   - por debajo de los modales Ecommerce (2205)
         */
        body.modal-open .modal-backdrop{
            z-index:1300 !important;
        }
        .ts-ecommerce .ecom-modal-principal{
            width:100%;
            aspect-ratio:1 / 1;
            height:auto;
            max-height:520px;
            display:flex;
            align-items:center;
            justify-content:center;
            background:#f7f7f7;
            border-radius:10px;
            overflow:hidden;
            padding:14px;
        }
        .ts-ecommerce .ecom-modal-principal img{
            width:100%;
            height:100%;
            max-width:100%;
            max-height:100%;
            object-fit:contain;
            border-radius:8px;
        }
        .ts-ecommerce .ecom-modal-miniaturas{
            display:flex;
            flex-wrap:wrap;
            gap:8px;
            margin-top:10px;
        }
        .ts-ecommerce .ecom-modal-thumb{
            width:64px;
            height:64px;
            border:1px solid #ddd;
            background:#fff;
            padding:3px;
            border-radius:6px;
            cursor:pointer;
        }
        .ts-ecommerce .ecom-modal-thumb img{
            width:100%;
            height:100%;
            object-fit:contain;
        }
        .ts-ecommerce .ecom-modal-clasificacion{
            color:#9b7838;
            font-weight:700;
            margin-bottom:10px;
        }
        .ts-ecommerce .ecom-modal-precio{
            color:#1C3029;
            font-size:28px;
            font-weight:800;
            margin-bottom:7px;
        }
        .ts-ecommerce .ecom-modal-stock{
            display:inline-block;
            background:#eef4f1;
            color:#1C3029;
            border-radius:999px;
            padding:5px 10px;
            font-size:12px;
            font-weight:800;
            margin-bottom:18px;
        }
        .ts-ecommerce .ecom-modal-descripcion{
            color:#4f5651;
            line-height:1.6;
            white-space:pre-line;
        }

        @media(max-width:991px){
            .ts-ecommerce .ecom-publico-grid{
                grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
            }
            .ts-ecommerce .ecom-modal-grid{
                grid-template-columns:1fr;
                gap:18px;
            }
            #ECOM_Public_Modal .modal-dialog{
                width:auto;
                max-width:760px;
                margin:82px 18px 24px;
            }
            .ts-ecommerce .ecom-modal-principal{
                max-height:480px;
            }
        }
        @media(max-width:575px){
            .ts-ecommerce{
                padding:34px 14px 52px;
            }
            .ts-ecommerce .ecom-publico-head h2{
                font-size:28px;
            }
            .ts-ecommerce .ecom-publico-grid{
                grid-template-columns:1fr;
                gap:18px;
            }
            .ts-ecommerce .ecom-producto-card{
                max-width:100%;
            }
            .ts-ecommerce .ecom-producto-imagen{
                aspect-ratio:4 / 3;
                padding:12px;
            }

            #ECOM_Public_Modal{
                padding:0 !important;
            }
            #ECOM_Public_Modal .modal-dialog{
                width:auto;
                max-width:none;
                margin:74px 10px 10px;
            }
            #ECOM_Public_Modal .modal-content{
                max-height:calc(100dvh - 84px);
                overflow-y:auto;
                border-radius:12px;
            }
            #ECOM_Public_Modal .modal-header{
                position:sticky;
                top:0;
                z-index:3;
                padding:12px 14px;
                border-bottom:1px solid #eee;
            }
            #ECOM_Public_Modal .modal-body{
                padding:12px;
            }
            .ts-ecommerce .ecom-modal-principal{
                aspect-ratio:4 / 3;
                max-height:320px;
                padding:10px;
            }
            .ts-ecommerce .ecom-modal-miniaturas{
                margin-top:8px;
                gap:7px;
            }
            .ts-ecommerce .ecom-modal-thumb{
                width:56px;
                height:56px;
            }
            .ts-ecommerce .ecom-modal-precio{
                font-size:26px;
            }
        }


/* =========================================================
   Ecommerce: carrito y checkout con inventario
   ========================================================= */
.ecom-producto-carrito{
    border:1px solid currentColor;
    background:transparent;
    border-radius:4px;
    padding:7px 12px;
    cursor:pointer;
    margin-left:8px;
}
.ecom-carrito-flotante{
    position:fixed;
    right:22px;
    bottom:22px;
    z-index:1180;
    border:0;
    border-radius:999px;
    padding:12px 18px;
    box-shadow:0 8px 24px rgba(0,0,0,.25);
}
.ecom-carrito-flotante span{
    display:inline-block;
    min-width:22px;
    margin-left:6px;
    padding:2px 6px;
    border-radius:999px;
    background:rgba(255,255,255,.22);
}
.ecom-carrito-item{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:center;
    padding:12px 0;
    border-bottom:1px solid rgba(127,127,127,.25);
}
.ecom-carrito-controles{
    display:flex;
    gap:8px;
    align-items:center;
}
.ecom-carrito-controles input,
.ecom-modal-compra input{
    width:82px;
    padding:6px 8px;
}
.ecom-carrito-total{
    text-align:right;
    font-size:1.1rem;
    padding-top:16px;
}
.ecom-modal-compra{
    display:flex;
    gap:10px;
    align-items:center;
    margin-top:18px;
    flex-wrap:wrap;
}
.ecom-producto-no-disponible{
    opacity:.58;
}
.ecom-producto-no-disponible::after{
    content:'Producto no disponible';
    display:block;
    text-align:center;
    font-weight:700;
    padding:8px;
}
@media (max-width:640px){
    .ecom-carrito-flotante{
        right:12px;
        bottom:12px;
    }
    .ecom-carrito-item{
        align-items:flex-start;
        flex-direction:column;
    }
}


        /* =========================================================
           CARRITO: MINIATURA + PRECIO + SUBTOTAL
           ========================================================= */
        .ecom-carrito-item{
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:18px;
            padding:14px 0;
            border-bottom:1px solid rgba(0,0,0,.12);
        }

        .ecom-carrito-producto{
            display:flex;
            align-items:center;
            gap:14px;
            min-width:0;
            flex:1 1 auto;
        }

        .ecom-carrito-miniatura{
            width:78px;
            height:78px;
            border:1px solid rgba(0,0,0,.12);
            border-radius:8px;
            overflow:hidden;
            background:#f5f5f5;
            display:flex;
            align-items:center;
            justify-content:center;
            flex:0 0 78px;
        }

        .ecom-carrito-miniatura img{
            width:100%;
            height:100%;
            object-fit:cover;
            display:block;
        }

        .ecom-carrito-miniatura-vacia span{
            font-size:11px;
            line-height:1.15;
            text-align:center;
            color:#777;
            padding:4px;
        }

        .ecom-carrito-datos{
            min-width:0;
        }

        .ecom-carrito-titulo{
            display:block;
            margin-bottom:5px;
        }

        .ecom-carrito-precio,
        .ecom-carrito-subtotal{
            font-size:13px;
            line-height:1.35;
        }

        .ecom-carrito-subtotal{
            margin-top:2px;
        }

        .ecom-carrito-controles{
            display:flex;
            align-items:center;
            gap:8px;
            flex:0 0 auto;
        }

        .ecom-carrito-controles input{
            width:90px;
        }

        @media (max-width: 640px){
            .ecom-carrito-item{
                align-items:flex-start;
                flex-direction:column;
            }

            .ecom-carrito-controles{
                width:100%;
                justify-content:flex-end;
            }
        }



        /* =========================================================
           PILOTO MOTOR DE PRECIOS TPV
           ========================================================= */
        .ecom-producto-precio-wrap{
            display:flex;
            flex-direction:column;
            align-items:flex-start;
            gap:2px;
        }

        .ecom-precio-piloto{
            display:block;
            font-size:10px;
            line-height:1.25;
            opacity:.72;
            font-weight:500;
            max-width:190px;
        }

        .ecom-carrito-motor{
            margin-top:4px;
            font-size:10px;
            line-height:1.25;
            opacity:.68;
        }


/* =========================================================
   AJUSTES UX TIENDA - 28/09/2026
   ========================================================= */

/* Imagen, título y precio abren el detalle. */
.ts-ecommerce .ecom-producto-link{
    border:0;
    padding:0;
    margin:0;
    background:transparent;
    color:inherit;
    font:inherit;
    text-align:left;
    cursor:pointer;
}

.ts-ecommerce .ecom-producto-link:hover{
    color:#b68b3c;
}

.ts-ecommerce .ecom-producto-link-titulo{
    width:100%;
    font-weight:inherit;
    line-height:inherit;
}

.ts-ecommerce .ecom-producto-link-precio{
    display:block;
}

/* Evita tarjetas demasiado altas cuando se usa la descripción maestra TPV. */
.ts-ecommerce .ecom-producto-desc{
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:0;
}

/* Ya no existe "Ver producto"; el botón de compra queda claro y directo. */
.ts-ecommerce .ecom-producto-bottom{
    align-items:flex-end;
}

.ts-ecommerce .ecom-producto-carrito{
    white-space:nowrap;
}

.ts-ecommerce .ecom-producto-carrito:disabled,
.ts-ecommerce .ecom-producto-carrito-disabled{
    cursor:not-allowed !important;
    opacity:.48;
    filter:grayscale(.15);
}

/* Carrito flotante compacto: icono + contador. */
.ecom-carrito-flotante{
    min-width:74px;
    height:56px;
    padding:0 16px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-size:20px;
}

.ecom-carrito-flotante > i{
    font-size:22px;
}

.ecom-carrito-flotante span{
    min-width:24px;
    height:24px;
    padding:0 6px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    font-size:13px;
    line-height:1;
}

/* Mensaje no intrusivo para altas al carrito / salvaguardas. */
.ecom-toast{
    position:fixed;
    right:28px;
    bottom:100px;
    z-index:2300;
    max-width:330px;
    padding:12px 16px;
    border-radius:9px;
    background:#1C3029;
    color:#fff;
    box-shadow:0 12px 34px rgba(0,0,0,.24);
    font-size:14px;
    font-weight:700;
    opacity:0;
    transform:translateY(12px);
    pointer-events:none;
    transition:opacity .18s ease, transform .18s ease;
}

.ecom-toast.show{
    opacity:1;
    transform:translateY(0);
}

.ecom-toast-warning{
    background:#8a5a00;
}

.ecom-toast-success{
    background:#1C3029;
}

@media (max-width:640px){
    .ecom-toast{
        right:16px;
        left:16px;
        bottom:90px;
        max-width:none;
    }
}


/* El icono del carrito es SVG propio: no depende de Font Awesome. */
.ecom-carrito-flotante .ecom-carrito-icono{
    width:24px;
    height:24px;
    display:block;
    flex:0 0 24px;
}


/* =========================================================
   CHECKOUT ECOMMERCE - PEDIDO PENDIENTE
   ========================================================= */
.ecom-checkout-seccion{
    padding:18px;
    margin-bottom:18px;
    border:1px solid rgba(0,0,0,.10);
    border-radius:10px;
    background:#fff;
}

.ecom-checkout-seccion h6{
    margin:0 0 14px 0;
    font-weight:700;
}

.ecom-checkout-resumen{
    position:sticky;
    top:10px;
    padding:18px;
    border:1px solid rgba(0,0,0,.10);
    border-radius:10px;
    background:#f8f8f6;
}

.ecom-checkout-resumen h6{
    margin:0 0 14px 0;
    font-weight:700;
}

.ecom-checkout-linea{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    padding:11px 0;
    border-bottom:1px solid rgba(0,0,0,.10);
}

.ecom-checkout-linea > div{
    min-width:0;
}

.ecom-checkout-linea strong{
    display:block;
}

.ecom-checkout-linea small{
    display:block;
    margin-top:2px;
    color:#666;
}

.ecom-checkout-total{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-top:16px;
    margin-top:4px;
    font-size:18px;
}

.ecom-checkout-exito{
    padding:38px 22px;
    text-align:center;
}

.ecom-checkout-exito-icono{
    width:62px;
    height:62px;
    margin:0 auto 16px auto;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#1C3029;
    color:#fff;
    font-size:34px;
    font-weight:700;
}

#ECOM_Checkout_Modal .modal-content{
    max-height:92vh;
}

@media (max-width: 991px){
    .ecom-checkout-resumen{
        position:static;
    }
}


/* =========================================================
   PASO PREVIO DE CHECKOUT: CUENTA O INVITADO
   ========================================================= */
.ecom-acceso-opciones{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.ecom-acceso-opcion{
    width:100%;
    min-height:132px;
    padding:20px;
    border:1px solid rgba(0,0,0,.15);
    border-radius:12px;
    background:#fff;
    text-align:left;
    cursor:pointer;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.ecom-acceso-opcion:hover{
    border-color:#1C3029;
    box-shadow:0 8px 24px rgba(0,0,0,.10);
    transform:translateY(-1px);
}

.ecom-acceso-opcion-principal{
    background:#1C3029;
    color:#fff;
    border-color:#1C3029;
}

.ecom-acceso-opcion strong{
    display:block;
    margin-bottom:7px;
    font-size:17px;
}

.ecom-acceso-opcion span{
    display:block;
    font-size:13px;
    line-height:1.45;
    opacity:.78;
}

.ecom-acceso-registro{
    margin-top:18px;
    text-align:center;
    font-size:14px;
}

@media (max-width:640px){
    .ecom-acceso-opciones{
        grid-template-columns:1fr;
    }

    .ecom-acceso-opcion{
        min-height:auto;
    }
}


/* =========================================================
   ENTREGA + ENVÍOS CHECKOUT
   ========================================================= */
.ecom-entrega-opciones{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.ecom-entrega-opcion{
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding:14px;
    border:1px solid rgba(0,0,0,.14);
    border-radius:10px;
    cursor:pointer;
    background:#fff;
}

.ecom-entrega-opcion input{
    margin-top:4px;
}

.ecom-entrega-opcion strong,
.ecom-entrega-opcion small{
    display:block;
}

.ecom-entrega-opcion small{
    margin-top:3px;
    color:#666;
}

.ecom-checkout-resumen-totales{
    margin-top:12px;
}

.ecom-checkout-resumen-totales > div{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:5px 0;
}

.ecom-checkout-resumen-totales .ecom-checkout-total{
    margin-top:8px;
    padding-top:14px;
    border-top:1px solid rgba(0,0,0,.15);
}

@media (max-width:640px){
    .ecom-entrega-opciones{
        grid-template-columns:1fr;
    }
}


/* =========================================================
   FIX FORZADO DE LAYOUT CHECKOUT
   ---------------------------------------------------------
   No dependemos de modal-xl ni del grid de Bootstrap.
   El portal carga una versión de Bootstrap cuyo comportamiento
   no coincide con las clases usadas por el módulo Ecommerce.
   ========================================================= */

#ECOM_Checkout_Modal .modal-dialog{
    width:calc(100vw - 80px) !important;
    max-width:1240px !important;
    min-width:0 !important;
    margin:32px auto !important;
}

#ECOM_Checkout_Modal .modal-content{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    max-height:92vh !important;
    overflow:hidden !important;
}

#ECOM_Checkout_Modal .modal-body{
    width:100% !important;
    min-width:0 !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
}

#ECOM_Checkout_Contenido{
    display:grid !important;
    grid-template-columns:minmax(0, 7fr) minmax(320px, 5fr) !important;
    gap:24px !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
}

#ECOM_Checkout_Contenido > .col-lg-7,
#ECOM_Checkout_Contenido > .col-lg-5{
    display:block !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    flex:none !important;
    padding:0 !important;
}

#ECOM_Checkout_Form{
    width:100% !important;
    min-width:0 !important;
}

#ECOM_Checkout_Modal .ecom-checkout-resumen{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
}

#ECOM_Checkout_Modal .modal-footer{
    position:static !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    box-sizing:border-box !important;
    flex-shrink:0 !important;
    background:#fff !important;
}

@media (max-width:991px){
    #ECOM_Checkout_Modal .modal-dialog{
        width:calc(100vw - 32px) !important;
        margin:16px auto !important;
    }

    #ECOM_Checkout_Contenido{
        grid-template-columns:1fr !important;
    }

    #ECOM_Checkout_Modal .ecom-checkout-resumen{
        position:static !important;
    }
}

@media (max-width:575px){
    #ECOM_Checkout_Modal .modal-dialog{
        width:calc(100vw - 16px) !important;
        margin:8px auto !important;
    }
}


/* =========================================================
   CHECKOUT INVITADO - CONFIRMACIÓN + PAGO EN PRIMER PLANO
   ========================================================= */
.ecom-confirmacion-invitado{
    max-width:980px;
    margin:0 auto;
    padding:24px;
}

.ecom-confirmacion-cabecera{
    display:flex;
    gap:16px;
    align-items:center;
    margin-bottom:18px;
}

.ecom-confirmacion-check,
.ecom-pago-check{
    width:64px;
    height:64px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#1c3029;
    color:#fff;
    font-size:34px;
    line-height:1;
    flex:0 0 auto;
}

.ecom-confirmacion-resumen{
    border:1px solid rgba(0,0,0,.10);
    border-radius:12px;
    overflow:hidden;
    background:#fff;
}

.ecom-confirmacion-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
}

.ecom-confirmacion-bloque{
    padding:18px;
    border-bottom:1px solid rgba(0,0,0,.08);
}

.ecom-confirmacion-bloque:nth-child(odd){
    border-right:1px solid rgba(0,0,0,.08);
}

.ecom-confirmacion-bloque-ancho{
    grid-column:1 / -1;
    border-right:0 !important;
}

.ecom-confirmacion-bloque h5,
.ecom-confirmacion-productos h5{
    margin:0 0 12px;
    font-weight:700;
}

.ecom-confirmacion-bloque p,
.ecom-confirmacion-totales p{
    display:flex;
    justify-content:space-between;
    gap:16px;
    margin:7px 0;
}

.ecom-confirmacion-bloque p span,
.ecom-confirmacion-totales p span{
    color:#666;
}

.ecom-confirmacion-direccion{
    display:block !important;
    color:#222 !important;
}

.ecom-confirmacion-productos{
    padding:18px;
    border-bottom:1px solid rgba(0,0,0,.08);
}

.ecom-confirmacion-producto{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
    padding:10px 0;
    border-bottom:1px solid rgba(0,0,0,.06);
}

.ecom-confirmacion-producto:last-child{
    border-bottom:0;
}

.ecom-confirmacion-producto small{
    display:block;
    margin-top:3px;
    color:#666;
}

.ecom-confirmacion-totales{
    padding:18px;
}

.ecom-confirmacion-total-final{
    border-top:1px solid rgba(0,0,0,.10);
    margin-top:10px !important;
    padding-top:12px;
    font-size:18px;
}

.ecom-confirmacion-acciones{
    display:flex;
    justify-content:flex-end;
    margin-top:20px;
}

.ecom-pago-primer-plano{
    max-width:680px;
    margin:0 auto;
    padding:42px 24px;
    text-align:center;
}

.ecom-pago-primer-plano .ecom-pago-check{
    margin:0 auto 18px;
    width:84px;
    height:84px;
    font-size:44px;
}

.ecom-pago-total{
    margin:18px 0 8px;
    font-size:26px;
}

.ecom-pagar-principal{
    min-width:280px;
    padding:14px 28px;
    font-size:18px;
    font-weight:700;
    box-shadow:0 8px 22px rgba(0,0,0,.16);
}

@media (max-width:767px){
    .ecom-confirmacion-grid{
        grid-template-columns:1fr;
    }

    .ecom-confirmacion-bloque{
        border-right:0 !important;
    }

    .ecom-confirmacion-acciones{
        justify-content:stretch;
    }

    .ecom-confirmacion-acciones .btn,
    .ecom-pagar-principal{
        width:100%;
        min-width:0;
    }
}
