
/* NUEVO DISEÑO VENDEX - SOLO PRESENTACIÓN */

html,
body {
    margin: 0;
    padding: 0;
    background: #f3f4f6;
}

/* Página centrada */
.container {
    width: 100% !important;
    max-width: 490px !important;
    margin: 0 auto !important;
    padding: 18px 12px 40px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    min-height: 100vh;
}

/* Cabecera */
.cambio-header {
    width: 100%;
    max-width: 490px;
    height: 62px;
    margin: 0 auto;
    padding: 0 18px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.cambio-header-paso {
    justify-self: start;

    background: #f1f2f4;
    color: #4b5563;

    padding: 6px 10px;
    border-radius: 8px;

    font-size: 11px;
    font-weight: 800;
}

.cambio-header-titulo {
    margin: 0;

    justify-self: center;

    font-size: 21px;
    font-weight: 900;
    letter-spacing: 1.5px;

    color: #000000;
}

/* Producto */
.producto-card {
    box-shadow: none !important;
    border: 0 !important;
    background: #ffffff !important;
    padding: 0 !important;
}

/* Imagen principal */
.imagen-wrap {
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #f4f4f4 !important;
}

.imagen-wrap img {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: center !important;
}



/* =========================================
   PRODUCTO EN UNA SOLA COLUMNA
   SOLO CAMBIO VISUAL
   ========================================= */

.producto-card {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 14px !important;

    box-sizing: border-box !important;

    background: #ffffff !important;

    border: 0 !important;
    box-shadow: none !important;
}


/* GALERÍA OCUPA TODO EL ANCHO */

.galeria-producto {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 0 18px 0 !important;
}


/* IMAGEN PRINCIPAL GRANDE */

.imagen-wrap {
    width: 100% !important;

    aspect-ratio: 1 / 1 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;

    background: #f4f4f4 !important;

    border-radius: 18px !important;
    overflow: hidden !important;
}


.imagen-wrap img {
    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: contain !important;
    object-position: center !important;

    display: block !important;
}


/* BLOQUE DE INFORMACIÓN DEBAJO DE LA FOTO */

.producto-card > div {
    width: 100% !important;
    max-width: none !important;

    box-sizing: border-box !important;
}


/* NOMBRE DEL PRODUCTO */

.producto-card h1 {
    margin-top: 0 !important;

    font-size: 24px !important;
    line-height: 1.1 !important;

    font-weight: 900 !important;
}


/* PRECIO */

.producto-card .precio {
    font-size: 24px !important;
    line-height: 1.1 !important;

    font-weight: 900 !important;
}


/* ESPACIO ENTRE SECCIONES */

.producto-card .bloque {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
}



/* =========================================
   NOMBRE + PRECIO
   ========================================= */

.producto-card > div:nth-child(2) {
    position: relative !important;
}


/* Nombre del producto */

.producto-card h1 {
    display: inline-block !important;

    width: calc(100% - 120px) !important;

    margin: 10px 0 0 0 !important;
    padding: 0 0 14px 0 !important;

    font-size: 22px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;

    color: #000000 !important;
}


/* Precio a la derecha */

.producto-card .precio {
    position: absolute !important;

    top: 10px !important;
    right: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 22px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;

    color: #173b8f !important;

    white-space: nowrap !important;
}


/* Línea debajo del nombre y precio */

.producto-card h1::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    margin-top: 38px;

    border-bottom: 1px solid #e1e4e8;
}


/* =========================================
   TALLAS
   ========================================= */

.producto-card .tallas {
    display: grid !important;

    grid-template-columns: repeat(5, 1fr) !important;

    gap: 9px !important;

    width: 100% !important;

    margin-top: 8px !important;
}


.producto-card .tallas button {
    width: 100% !important;
    height: 48px !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 2px solid #d5d9df !important;
    border-radius: 9px !important;

    background: #ffffff !important;
    color: #000000 !important;

    font-size: 14px !important;
    font-weight: 800 !important;
}


.producto-card .tallas button.activo {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}



/* =========================================
   OCULTAR ELEMENTOS DEL DISEÑO ANTERIOR
   ========================================= */

.vendex-topbar {
    display: none !important;
}

.carrito-float {
    display: none !important;
}


/* =========================================
   GALERÍA ORIGINAL VENDEX
   SOLO CAMBIO VISUAL
   ========================================= */

.galeria-producto {
    width: 100% !important;
    margin: 0 0 18px 0 !important;
}


/* Imagen principal */

.imagen-wrap {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #f4f4f4 !important;

    border-radius: 18px !important;
    overflow: hidden !important;
}

.imagen-wrap img {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: center !important;
}


/* Miniaturas que ya genera VENDEX */

.miniaturas-producto {
    width: 100% !important;

    gap: 10px !important;

    margin-top: 12px !important;

    flex-wrap: nowrap !important;

    justify-content: flex-start !important;
}


/* Cada miniatura */

.miniatura-producto-btn {
    width: calc((100% - 20px) / 3) !important;
    height: auto !important;

    aspect-ratio: 1 / 1 !important;

    padding: 0 !important;

    border: 2px solid #d7dbe0 !important;
    border-radius: 13px !important;

    background: #f4f4f4 !important;

    overflow: hidden !important;
}


/* Imagen dentro de miniatura */

.miniatura-producto-btn img {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: center !important;

    border-radius: 11px !important;
}


/* Miniatura seleccionada */

.miniatura-producto-btn.activo {
    border-color: #000000 !important;
    box-shadow: none !important;
}


/* Flechas como en el diseño nuevo */

.flecha-galeria {
    display: none !important;
}


/* =========================================
   ENCABEZADO FIJO
   SOLO DISEÑO
   ========================================= */

.cambio-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;

    background: #ffffff !important;

    border-bottom: 1px solid #e5e7eb !important;
}



/* =========================================
   TEXTO "MEDIDAS" EN LA 3RA MINIATURA
   SOLO DISEÑO
   ========================================= */

.miniaturas-producto .miniatura-producto-btn:nth-child(3) {
    position: relative !important;
}

.miniaturas-producto .miniatura-producto-btn:nth-child(3)::after {
    content: "MEDIDAS";

    position: absolute !important;
    left: 50% !important;
    bottom: 8px !important;

    transform: translateX(-50%) !important;

    padding: 2px 6px !important;

    background: rgba(255,255,255,0.85) !important;

    color: #173b8f !important;

    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    border-radius: 3px !important;

    pointer-events: none !important;
}



/* =========================================
   TALLA + LINK TABLA DE MEDIDAS
   ========================================= */

.talla-encabezado {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;

    margin-bottom: 10px !important;
}

.talla-encabezado label {
    margin: 0 !important;

    font-size: 12px !important;
    font-weight: 800 !important;

    color: #374151 !important;
}

.link-guia-tallas {
    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    background: transparent !important;

    color: #173b8f !important;

    font-size: 11px !important;
    font-weight: 800 !important;

    text-decoration: underline !important;

    cursor: pointer !important;
    white-space: nowrap !important;
}


/* La guía antigua debajo del producto ya no se muestra.
   La imagen sigue existiendo y se abre desde el nuevo enlace. */

.guia-tallas-box {
    display: none !important;
}



/* =========================================
   CANTIDAD + AGREGAR AL CARRITO
   SOLO PRESENTACIÓN
   ========================================= */

.producto-card .bloque:has(.cantidad-control) {
    display: inline-block !important;
    width: 35% !important;
    margin: 18px 2% 0 0 !important;
    vertical-align: bottom !important;
}

.producto-card .bloque:has(.cantidad-control) > label {
    display: block !important;
    margin-bottom: 7px !important;

    font-size: 12px !important;
    font-weight: 800 !important;

    color: #374151 !important;
}


/* Control - 1 + */

.producto-card .cantidad-control {
    display: grid !important;
    grid-template-columns: 34px 1fr 34px !important;
    gap: 0 !important;

    width: 100% !important;
    height: 48px !important;

    border: 2px solid #d4d8de !important;
    border-radius: 10px !important;

    overflow: hidden !important;
    background: #ffffff !important;
}

.producto-card .cantidad-control .btn-cantidad {
    width: 34px !important;
    height: 44px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    background: #ffffff !important;

    color: #000000 !important;

    font-size: 20px !important;
    font-weight: 800 !important;
}

.producto-card .cantidad-control .cantidad {
    width: 100% !important;
    height: 44px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: #ffffff !important;

    text-align: center !important;

    font-size: 15px !important;
    font-weight: 800 !important;
}


/* Botón a la derecha */

.producto-card .btn-agregar {
    display: inline-block !important;

    width: 62% !important;
    height: 48px !important;

    margin: 18px 0 0 0 !important;
    padding: 0 12px !important;

    vertical-align: bottom !important;

    border: 0 !important;
    border-radius: 10px !important;

    background: #000000 !important;
    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: 900 !important;

    text-align: center !important;
}



/* =========================================
   ICONO EN BOTON AGREGAR AL CARRITO
   SOLO DISEÑO
   ========================================= */

.producto-card .btn-agregar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.producto-card .btn-agregar::before {
    content: "🛍️";
    font-size: 16px;
    line-height: 1;
}



/* =========================================
   PRENDAS ELEGIDAS
   ========================================= */

.carrito-cabecera-diseno {
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding-bottom:10px;
    margin-bottom:14px;

    border-bottom:1px solid #e5e7eb;
}

.carrito-cabecera-diseno h2 {
    margin:0 !important;

    font-size:13px !important;
    font-weight:900 !important;

    color:#000 !important;
}

#badgeCarritoDiseno {
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:68px;

    padding:4px 10px;

    background:#24449b;
    color:#fff;

    border-radius:20px;

    font-size:10px;
    font-weight:800;
}


/* ITEM */

.item-carrito-diseno {
    display:grid !important;
    grid-template-columns:52px 1fr !important;

    gap:10px !important;

    width:100% !important;

    padding:10px 0 !important;

    border-bottom:0 !important;
}


/* FOTO */

.item-carrito-foto {
    width:52px;
    height:58px;

    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;

    background:#f3f4f6;

    border-radius:8px;
}

.item-carrito-foto img {
    width:100%;
    height:100%;

    object-fit:contain;
}


/* INFORMACIÓN */

.item-carrito-info {
    min-width:0;
}

.item-carrito-superior {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;

    gap:8px;
}

.item-carrito-superior strong {
    font-size:12px;
    font-weight:800;

    color:#000;
}

.item-carrito-precio {
    white-space:nowrap;

    color:#173b8f;

    font-size:12px;
    font-weight:900;
}


/* TALLA / COLOR */

.item-carrito-etiquetas {
    display:flex;
    gap:6px;

    margin-top:4px;
}

.item-carrito-etiquetas span {
    padding:3px 6px;

    background:#f3f4f6;

    border-radius:4px;

    font-size:9px;
    font-weight:700;

    color:#111827;
}


/* CANTIDAD Y QUITAR */

.item-carrito-inferior {
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-top:7px;
}

.item-carrito-cantidad {
    display:flex;
    align-items:center;

    height:24px;

    border:1px solid #d6dae0;

    border-radius:6px;

    overflow:hidden;
}

.item-carrito-cantidad button {
    width:25px;
    height:23px;

    padding:0;

    border:0;

    background:#fff;

    color:#000;

    font-size:14px;
    font-weight:800;
}

.item-carrito-cantidad span {
    min-width:27px;

    text-align:center;

    font-size:11px;
    font-weight:800;
}

.item-carrito-quitar {
    border:0 !important;
    background:transparent !important;

    padding:0 !important;

    color:#ff2d2d !important;

    font-size:10px !important;
    font-weight:700 !important;

    text-decoration:underline !important;
}



/* =========================================
   LIMPIAR CARRITO
   CONSERVA FUNCIONALIDAD ORIGINAL
   ========================================= */

.producto-card ~ .card .btn-limpiar,
.card .btn-limpiar {
    width: auto !important;

    display: block !important;

    margin: 12px 0 0 auto !important;
    padding: 7px 12px !important;

    border: 1px solid #ef4444 !important;
    border-radius: 7px !important;

    background: #ffffff !important;
    color: #ef4444 !important;

    font-size: 10px !important;
    font-weight: 700 !important;

    cursor: pointer !important;

    box-shadow: none !important;
}



/* =========================================
   PASO 1 -> CONTINUAR AL ENVIO
   ========================================= */

.btn-continuar-envio {
    display:block;

    width:100%;

    margin:18px 0 6px 0;
    padding:15px 12px;

    border:0;
    border-radius:14px;

    background:#24449b;
    color:#ffffff;

    font-size:13px;
    font-weight:900;

    letter-spacing:.3px;

    cursor:pointer;
}


/* Sin prendas no se muestra */

.card:has(#lista:empty) .btn-continuar-envio {
    display:none !important;
}


/* =========================================
   PASO 2
   ========================================= */

/* El checkout original permanece oculto
   mientras estamos en Paso 1 */

body:not(.paso-envio-activo) #checkout {
    display:none !important;
}


/* Al entrar al Paso 2 */

body.paso-envio-activo #checkout {
    display:grid !important;
}


/* Ocultar selección de producto en Paso 2 */

body.paso-envio-activo .producto-card {
    display:none !important;
}


/* Ocultar carrito editable en Paso 2 */

body.paso-envio-activo .carrito-cabecera-diseno,
body.paso-envio-activo #lista,
body.paso-envio-activo #total,
body.paso-envio-activo .btn-limpiar,
body.paso-envio-activo .btn-continuar-envio {
    display:none !important;
}


/* Botón volver */

.btn-volver-paso1 {
    width:auto;

    margin:0 0 18px 0;
    padding:9px 12px;

    border:0;
    border-radius:8px;

    background:#f3f4f6;
    color:#374151;

    font-size:11px;
    font-weight:800;

    cursor:pointer;
}


/* =========================================
   PASO 2: OCULTAR LIMPIAR CARRITO
   SOLO VISUAL
   ========================================= */

body.paso-envio-activo .btn-limpiar {
    display: none !important;
}



/* =========================================
   PASO 2 - TIPO DE ENTREGA
   SOLO PRESENTACION
   ========================================= */

.tipo-entrega-diseno {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;

    width: 100% !important;
}


/* Titulo */

.tipo-entrega-diseno > strong {
    grid-column: 1 / -1 !important;
    order: 1 !important;

    margin-bottom: 2px !important;

    font-size: 15px !important;
    font-weight: 900 !important;

    color: #111827 !important;
}


/* Quitar los saltos <br> antiguos */

.tipo-entrega-diseno > br {
    display: none !important;
}


/* Las tres opciones */

.tipo-entrega-diseno > label {
    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 4px !important;

    min-height: 60px !important;

    margin: 0 !important;
    padding: 8px 5px !important;

    border: 2px solid #d9dde3 !important;
    border-radius: 11px !important;

    background: #ffffff !important;
    color: #374151 !important;

    text-align: center !important;

    font-size: 10px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;

    cursor: pointer !important;
}


/* Ocultamos visualmente el circulito,
   pero el radio sigue funcionando */

.tipo-entrega-diseno > label > input[type="radio"] {
    position: absolute !important;

    opacity: 0 !important;

    width: 1px !important;
    height: 1px !important;

    pointer-events: none !important;
}


/* Orden como el diseño de referencia */

.tipo-entrega-diseno > label:has(input[value="motorizado"]) {
    order: 2 !important;
}

.tipo-entrega-diseno > label:has(input[value="shalom"]) {
    order: 3 !important;
}

.tipo-entrega-diseno > label:has(input[value="tienda"]) {
    order: 4 !important;
}


/* Iconos */

.tipo-entrega-diseno > label:has(input[value="motorizado"])::before {
    content: "🛵";
    font-size: 19px;
}

.tipo-entrega-diseno > label:has(input[value="shalom"])::before {
    content: "📦";
    font-size: 19px;
}

.tipo-entrega-diseno > label:has(input[value="tienda"])::before {
    content: "🏪";
    font-size: 19px;
}


/* Opción seleccionada */

.tipo-entrega-diseno > label:has(input:checked) {
    border-color: #000000 !important;

    background: #f8fafc !important;
    color: #000000 !important;

    box-shadow: 0 0 0 1px #000000 !important;
}


/* Dirección de tienda debajo de las 3 opciones */

.tipo-entrega-diseno #datosTienda {
    grid-column: 1 / -1 !important;
    order: 5 !important;

    width: 100% !important;

    margin-top: 4px !important;
}


/* Celulares pequeños */

@media (max-width: 420px) {

    .tipo-entrega-diseno > label {
        min-height: 58px !important;

        padding: 7px 3px !important;

        font-size: 9px !important;
    }

}



/* =========================================
   DETALLE DE TU COMPRA - PASO 2
   ========================================= */

.detalle-compra-paso2 {
    margin: 18px 0 24px 0;

    padding: 16px;

    border: 2px solid #111827;
    border-radius: 16px;

    background: #fafafa;
}


.detalle-compra-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 10px;
    margin-bottom: 12px;

    border-bottom: 1px solid #dfe3e8;
}


.detalle-compra-cabecera strong {
    font-size: 12px;
    font-weight: 900;

    color: #000;
}


.detalle-compra-cabecera span {
    font-size: 10px;
    font-weight: 700;

    color: #6b7280;

    text-transform: uppercase;
}


.detalle-compra-item {
    display: grid;

    grid-template-columns: 52px 1fr auto;

    align-items: center;

    gap: 10px;

    padding: 8px 0;
}


.detalle-compra-foto {
    position: relative;

    width: 52px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f0f1f3;

    border-radius: 8px;
}


.detalle-compra-foto img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 8px;
}


.detalle-compra-badge {
    position: absolute;

    top: -6px;
    right: -5px;

    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #000;
    color: #fff;

    font-size: 9px;
    font-weight: 900;
}


.detalle-compra-info strong {
    display: block;

    margin-bottom: 5px;

    font-size: 12px;
    font-weight: 900;

    color: #000;
}


.detalle-compra-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;
}


.detalle-compra-tags span {
    padding: 3px 6px;

    border: 1px solid #d9dde3;
    border-radius: 5px;

    background: #fff;

    font-size: 9px;
    font-weight: 700;
}


.detalle-compra-precio {
    align-self: start;

    padding-top: 5px;

    color: #173b8f;

    font-size: 12px;
    font-weight: 900;

    white-space: nowrap;
}


/* =========================================
   DATOS PARA EL ENVIO
   ========================================= */

.paso2-contenido {
    display: flex !important;
    flex-direction: column !important;
}


/* Datos personales antes de entrega */

.datos-envio-diseno {
    order: 1 !important;

    margin-bottom: 22px;
}


.tipo-entrega-diseno {
    order: 2 !important;
}


#bloqueQuienRecoge {
    order: 3 !important;
}


#notaShalom {
    order: 4 !important;
}


#notaMotorizado {
    order: 5 !important;
}


#datosMotorizado {
    order: 6 !important;
}


.datos-envio-diseno h3 {
    margin: 0 0 14px 0;

    color: #374151;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: .4px;
}


.campo-envio-diseno {
    margin-bottom: 12px;
}


.campo-envio-diseno label {
    display: block;

    margin-bottom: 6px;

    color: #374151;

    font-size: 11px;
    font-weight: 800;
}


.campo-envio-diseno input {
    box-sizing: border-box;

    width: 100% !important;

    padding: 13px !important;

    border: 1px solid #d1d5db !important;
    border-radius: 11px !important;

    background: #f9fafb !important;

    color: #111827 !important;

    font-size: 12px !important;

    outline: none !important;
}


.campo-envio-diseno input:focus {
    border-color: #111827 !important;

    background: #fff !important;
}



/* =========================================
   CONFIRMAR COMPRA
   SOLO VISIBLE EN PASO 2
   NO MODIFICA FUNCIONALIDAD
   ========================================= */

body:not(.paso-envio-activo) #btnConfirmarCompra,
body:not(.paso-envio-activo) #avisoErroresPedido {
    display: none !important;
}



/* =========================================
   PASO 2 - DATOS PARA EL ENVÍO
   SOLO DISEÑO
   ========================================= */

.datos-cliente-diseno {
    border: 0 !important;
    padding: 0 !important;

    margin: 24px 0 !important;

    background: transparent !important;
}

.datos-cliente-diseno > strong {
    display: block !important;

    margin-bottom: 15px !important;

    color: #374151 !important;

    font-size: 12px !important;
    font-weight: 900 !important;

    letter-spacing: .3px !important;
}

.campo-cliente-diseno {
    margin-bottom: 13px !important;
}

.campo-cliente-diseno label {
    display: block !important;

    margin-bottom: 6px !important;

    color: #374151 !important;

    font-size: 11px !important;
    font-weight: 800 !important;
}

.campo-cliente-diseno input {
    box-sizing: border-box !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 13px !important;

    border: 1px solid #d1d5db !important;
    border-radius: 11px !important;

    background: #f9fafb !important;

    color: #111827 !important;

    font-size: 12px !important;

    outline: none !important;
}

.campo-cliente-diseno input:focus {
    border-color: #111827 !important;
    background: #ffffff !important;
}



/* =========================================
   MOTORIZADO - DISEÑO NUEVO
   MISMAS VARIABLES / MISMOS IDS
   ========================================= */

body.paso-envio-activo #notaMotorizado {
    display: none !important;
}

.motorizado-diseno {
    margin-top: 10px;

    padding: 16px;

    border: 1px solid #d1d5db;
    border-radius: 16px;

    background: #f9fafb;
}

.motorizado-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;

    margin-bottom: 15px;

    font-size: 11px;
    font-weight: 800;
}

.motorizado-cabecera span {
    padding: 4px 9px;

    border-radius: 7px;

    background: #dbeafe;
    color: #173b8f;

    font-weight: 900;

    white-space: nowrap;
}

.motorizado-campo {
    min-width: 0;
}

.motorizado-campo label {
    display: block;

    margin-bottom: 6px;

    color: #374151;

    font-size: 10px;
    font-weight: 800;
}

.motorizado-campo input,
.motorizado-campo select {
    box-sizing: border-box;

    width: 100% !important;
    height: 43px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    border: 1px solid #cfd5dd !important;
    border-radius: 11px !important;

    background: #ffffff !important;

    color: #111827 !important;

    font-size: 11px !important;

    outline: none !important;
}

.motorizado-campo input:focus,
.motorizado-campo select:focus {
    border-color: #000000 !important;
}

.motorizado-campo input::placeholder {
    color: #9ca3af;
}

.motorizado-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;

    margin-top: 13px;
}

@media(max-width:420px) {

    .motorizado-grid {
        grid-template-columns: 1fr;
    }

}



/* =========================================
   MOTORIZADO: OCULTAR "QUIEN RECOGE"
   SOLO PRESENTACION
   ========================================= */

.paso2-contenido:has(
    input[name="tipo_entrega"][value="motorizado"]:checked
) #bloqueQuienRecoge {
    display: none !important;
}



/* =========================================
   AVISO DE DATOS FALTANTES
   SOLO DISEÑO
   ========================================= */

#avisoErroresPedido {
    padding: 12px 14px !important;
    margin-top: 16px !important;

    background: #f9fafb !important;

    border: 1px solid #d9dde3 !important;
    border-radius: 12px !important;

    color: #d32f2f !important;

    font-size: 11px !important;
    line-height: 1.5 !important;

    font-weight: 600 !important;
}

#avisoErroresPedido strong {
    color: #d32f2f !important;

    font-size: 11px !important;
    font-weight: 800 !important;
}

#avisoErroresPedido ul {
    margin: 5px 0 0 16px !important;
    padding: 0 !important;
}

#avisoErroresPedido li {
    margin: 2px 0 !important;

    color: #d32f2f !important;

    font-size: 11px !important;
    font-weight: 600 !important;
}



/* =========================================
   RESUMEN FINAL - SOLO PASO 2
   ========================================= */

.resumen-pago-paso2 {
    margin-top: 26px !important;
    padding-top: 16px !important;

    border-top: 2px solid #111827 !important;
}

.resumen-pago-fila {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;

    padding: 5px 0 !important;

    color: #6b7280 !important;

    font-size: 11px !important;
}

.resumen-pago-fila strong {
    color: #374151 !important;

    font-size: 11px !important;
    font-weight: 800 !important;
}

.resumen-pago-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;

    margin-top: 5px !important;
    padding-top: 10px !important;

    border-top: 1px solid #e5e7eb !important;

    color: #000000 !important;

    font-size: 14px !important;
    font-weight: 900 !important;
}

.resumen-pago-total strong {
    color: #173b8f !important;

    font-size: 16px !important;
    font-weight: 900 !important;
}


/* MISMO BOTON ORIGINAL */

body.paso-envio-activo #btnConfirmarCompra {
    width: 100% !important;

    margin-top: 18px !important;
    padding: 15px 12px !important;

    border: 0 !important;
    border-radius: 14px !important;

    background: #24449b !important;
    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: 900 !important;

    letter-spacing: .5px !important;
}

body.paso-envio-activo #btnConfirmarCompra:disabled {
    opacity: .55 !important;
}



/* =========================================
   RESUMEN DE PAGO SOLO EN PASO 2
   SOLO PRESENTACION
   ========================================= */

body:not(.paso-envio-activo) .resumen-pago-paso2 {
    display: none !important;
}

body.paso-envio-activo .resumen-pago-paso2 {
    display: block !important;
}



/* =========================================
   PRENDAS ELEGIDAS - RECUADRO NEGRO
   SOLO DISEÑO
   ========================================= */

.carrito-cabecera-diseno {
    margin: 0 !important;
    padding: 14px 16px 10px 16px !important;

    border-top: 2px solid #111111 !important;
    border-left: 2px solid #111111 !important;
    border-right: 2px solid #111111 !important;

    border-radius: 16px 16px 0 0 !important;

    background: #ffffff !important;
}


/* Lista de prendas: continúa el mismo recuadro */

#lista {
    margin: 0 !important;
    padding: 6px 16px 14px 16px !important;

    border-left: 2px solid #111111 !important;
    border-right: 2px solid #111111 !important;
    border-bottom: 2px solid #111111 !important;

    border-radius: 0 0 16px 16px !important;

    background: #ffffff !important;
}


/* =========================================
   TOTAL ORIGINAL
   SE CONSERVA FUNCIONALMENTE PERO NO SE VE
   ========================================= */

#total {
    display: none !important;
}



/* =========================================
   SHALOM - SOLO DISEÑO
   ========================================= */

/* Ocultar la nota roja antigua visualmente.
   Sigue existiendo y la lógica no se modifica. */

body.paso-envio-activo #notaShalom {
    display: none !important;
}


.shalom-diseno {
    margin-top: 10px;

    padding: 16px;

    border: 1px solid #d1d5db;
    border-radius: 16px;

    background: #f9fafb;
}


.shalom-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;

    margin-bottom: 10px;

    font-size: 11px;
    font-weight: 800;
}


.shalom-cabecera span {
    padding: 4px 9px;

    border-radius: 7px;

    background: #dbeafe;
    color: #173b8f;

    font-weight: 900;

    white-space: nowrap;
}


.shalom-aviso {
    margin-bottom: 14px;

    color: #6b7280;

    font-size: 10px;
    line-height: 1.4;
}


.shalom-campo {
    margin-bottom: 12px;
}


.shalom-campo:last-child {
    margin-bottom: 0;
}


.shalom-campo label {
    display: block;

    margin-bottom: 6px;

    color: #374151;

    font-size: 10px;
    font-weight: 800;
}


.shalom-campo input {
    box-sizing: border-box;

    width: 100% !important;
    height: 43px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    border: 1px solid #cfd5dd !important;
    border-radius: 11px !important;

    background: #ffffff !important;

    color: #111827 !important;

    font-size: 11px !important;

    outline: none !important;
}


.shalom-campo input:focus {
    border-color: #000000 !important;
}


.shalom-campo input::placeholder {
    color: #9ca3af;
}



/* =========================================
   BUSCADOR DE AGENCIAS SHALOM
   SOLO PRESENTACION
   ========================================= */

#lista_agencias_container {
    max-height: 360px !important;
    overflow-y: auto !important;

    margin-top: 8px !important;
    padding: 7px !important;

    border: 1px solid #d9dde3 !important;
    border-radius: 13px !important;

    background: #ffffff !important;

    box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
}


/* Encabezado de resultados */

#contador_agencias_filtradas,
#lista_agencias_container > p:first-child {
    margin: 3px 5px 8px 5px !important;

    color: #6b7280 !important;

    font-size: 10px !important;
    font-weight: 700 !important;
}


/* Cada agencia */

.agencia-item {
    display: grid !important;

    grid-template-columns: 27px 1fr auto !important;

    align-items: center !important;

    gap: 8px !important;

    padding: 11px 8px !important;

    border-bottom: 1px solid #eceff3 !important;

    background: #ffffff !important;

    cursor: pointer !important;
}

.agencia-item:last-child {
    border-bottom: 0 !important;
}

.agencia-item:hover {
    background: #f8fafc !important;
}


/* Pin */

.agencia-item-icono {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    font-size: 18px !important;
}


/* Texto */

.agencia-item-contenido {
    min-width: 0 !important;
}

.agencia-item-nombre {
    margin-bottom: 3px !important;

    color: #111827 !important;

    font-size: 11px !important;
    font-weight: 900 !important;
}

.agencia-item-direccion {
    color: #7b8493 !important;

    font-size: 9px !important;
    line-height: 1.35 !important;
}


/* Seleccionar */

.agencia-item-seleccionar {
    color: #d62828 !important;

    font-size: 9px !important;
    font-weight: 800 !important;

    white-space: nowrap !important;
}


/* Agencia escogida */

.agencia-item.seleccionada {
    background: #f3f4f6 !important;
    outline: 2px solid #111827 !important;
    border-radius: 8px !important;
}


/* Campos de búsqueda */

#ciudad_shalom,
#agencia_shalom {
    padding-left: 36px !important;

    background-color: #ffffff !important;

    background-repeat: no-repeat !important;
    background-position: 12px center !important;
}



/* =========================================
   SHALOM - AJUSTE VISUAL DE RESULTADOS
   SOLO DISEÑO
   ========================================= */

#lista_agencias_container > p,
#contador_agencias_filtradas {
    color: #374151 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;

    margin: 4px 6px 10px 6px !important;
}


/* Lista más compacta */

#lista_agencias_container {
    max-height: 300px !important;
}


/* Tarjetas más limpias */

.agencia-item {
    padding: 10px 8px !important;

    border: 1px solid #e1e5ea !important;
    border-radius: 9px !important;

    margin-bottom: 7px !important;
}

.agencia-item:last-child {
    margin-bottom: 0 !important;
}


/* Agencia seleccionada */

.agencia-item.seleccionada {
    border: 2px solid #111111 !important;
    outline: none !important;

    background: #f8fafc !important;
}


/* Texto seleccionar más discreto */

.agencia-item-seleccionar {
    color: #d32f2f !important;

    font-size: 8px !important;
    font-weight: 800 !important;
}



/* =========================================
   QUIEN RECOGE
   SOLO VISIBLE PARA RECOJO EN TIENDA
   SOLO DISEÑO
   ========================================= */

.paso2-contenido:has(
    input[name="tipo_entrega"][value="shalom"]:checked
) #bloqueQuienRecoge {
    display: none !important;
}

.paso2-contenido:has(
    input[name="tipo_entrega"][value="motorizado"]:checked
) #bloqueQuienRecoge {
    display: none !important;
}

.paso2-contenido:has(
    input[name="tipo_entrega"][value="tienda"]:checked
) #bloqueQuienRecoge {
    display: block !important;
}



/* =========================================
   SHALOM - AUTOCOMPLETADO DESTINO
   SOLO TAMAÑO VISUAL
   ========================================= */

.ui-autocomplete {
    font-size: 11px !important;
    line-height: 1.25 !important;
}

.ui-autocomplete .ui-menu-item {
    font-size: 11px !important;
}

.ui-autocomplete .ui-menu-item-wrapper {
    padding: 5px 8px !important;

    font-size: 11px !important;
    line-height: 1.25 !important;

    font-weight: 500 !important;
}

