/* =========================================================
   ULTRAPC - COMPARACION DE PRODUCTOS
   Diseño moderno YITH Compare
   ========================================================= */

html,
body.yith-woocompare-popup {
    margin: 0 !important;
    padding: 0 !important;

    background: #faf7f7 !important;

    color: #22342b !important;

    font-family:
        "Open Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;
}

/* =========================================================
   CABECERA
   ========================================================= */

body.yith-woocompare-popup > h1 {
    position: sticky !important;
    top: 0 !important;

    z-index: 100 !important;

    box-sizing: border-box !important;

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

    margin: 16px 16px 0 !important;
    padding: 15px 22px !important;

    background:
        linear-gradient(
            135deg,
            #ae0017 0%,
            #d41a33 100%
        ) !important;

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

    color: #fff !important;

    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;

    text-align: center !important;
    letter-spacing: .2px !important;

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

/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

body.yith-woocompare-popup #yith-woocompare {
    box-sizing: border-box !important;

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

    margin: 14px 16px 18px !important;

    background: #fff !important;

    border: 1px solid #f2e6e7 !important;
    border-radius: 16px !important;

    overflow: hidden !important;

    box-shadow:
        0 8px 28px rgba(23,70,47, .08) !important;
}

/* =========================================================
   TABLA
   ========================================================= */

body.yith-woocompare-popup
#yith-woocompare-table {
    width: 100% !important;

    margin: 0 !important;

    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;

    background: #fff !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
thead,
body.yith-woocompare-popup
#yith-woocompare-table
tfoot {
    display: none !important;
}

/* =========================================================
   CELDAS
   ========================================================= */

body.yith-woocompare-popup
#yith-woocompare-table
th,
body.yith-woocompare-popup
#yith-woocompare-table
td {
    box-sizing: border-box !important;

    padding: 13px 16px !important;

    border: 0 !important;
    border-right: 1px solid #f6edee !important;
    border-bottom: 1px solid #f6edee !important;

    vertical-align: middle !important;

    font-size: 13px !important;
    line-height: 1.45 !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
tr:last-child
> * {
    border-bottom: 0 !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
tr
> *:last-child {
    border-right: 0 !important;
}

/* =========================================================
   COLUMNA DE CARACTERISTICAS
   ========================================================= */

body.yith-woocompare-popup
#yith-woocompare-table
th {
    min-width: 220px !important;

    background: #faf5f6 !important;

    color: #385044 !important;

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

    text-align: left !important;
    text-transform: uppercase !important;

    letter-spacing: .25px !important;
}

/* =========================================================
   FILA INFORMACION DE PRODUCTO
   ========================================================= */

body.yith-woocompare-popup
#yith-woocompare-table
tr.product_info
td {
    padding: 20px 20px 18px !important;

    background: #fff !important;

    vertical-align: top !important;
    text-align: center !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
tr.product_info
th {
    background:
        linear-gradient(
            180deg,
            #f9f3f4 0%,
            #fbf8f8 100%
        ) !important;

    color: #22342b !important;

    vertical-align: middle !important;
}

/* =========================================================
   IMAGEN DE PRODUCTO
   ========================================================= */

body.yith-woocompare-popup
#yith-woocompare-table
.image-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

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

    margin: 0 auto 12px !important;

    background: #fff !important;

    border-radius: 12px !important;

    overflow: hidden !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
.image-wrap img {
    display: block !important;

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

    height: auto !important;
    max-height: 165px !important;

    margin: auto !important;

    object-fit: contain !important;

    transition: transform .2s ease !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
.product_info td:hover
.image-wrap img {
    transform: scale(1.025) !important;
}

/* =========================================================
   TITULO PRODUCTO
   ========================================================= */

body.yith-woocompare-popup
#yith-woocompare-table
.product_title {
    display: -webkit-box !important;

    height: auto !important;
    min-height: 42px !important;
    max-height: none !important;

    margin: 4px 0 14px !important;

    overflow: hidden !important;

    color: #1b3025 !important;

    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;

    text-align: center !important;

    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
.product_info a {
    color: inherit !important;
    text-decoration: none !important;
}

/* =========================================================
   BOTON AGREGAR AL CARRITO
   ========================================================= */

body.yith-woocompare-popup
#yith-woocompare-table
.add_to_cart_wrap {
    margin-top: 12px !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
.add_to_cart_wrap
.button,
body.yith-woocompare-popup
#yith-woocompare-table
.add-to-cart
.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 165px !important;
    min-height: 38px !important;

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

    background:
        linear-gradient(
            135deg,
            #d41a33 0%,
            #cb0822 100%
        ) !important;

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

    color: #fff !important;

    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    text-decoration: none !important;

    box-shadow:
        0 5px 14px rgba(212,26,51, .20) !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
.add_to_cart_wrap
.button:hover,
body.yith-woocompare-popup
#yith-woocompare-table
.add-to-cart
.button:hover {
    background:
        linear-gradient(
            135deg,
            #be172d 0%,
            #b80019 100%
        ) !important;

    color: #fff !important;

    transform: translateY(-1px) !important;

    box-shadow:
        0 7px 18px rgba(212,26,51, .28) !important;
}

/* =========================================================
   ELIMINAR PRODUCTO
   ========================================================= */

body.yith-woocompare-popup
#yith-woocompare-table
div.remove {
    margin: 8px 0 0 !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
div.remove
a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 31px !important;
    height: 31px !important;

    background: #fbf7f8 !important;

    border: 1px solid #efe2e3 !important;
    border-radius: 50% !important;

    color: #b42318 !important;

    text-decoration: none !important;

    transition:
        background .18s ease,
        transform .18s ease !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
div.remove
a:hover {
    background: #f4ebec !important;

    transform: scale(1.06) !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
div.remove
span.remove {
    color: inherit !important;

    font-size: 13px !important;
}

/* =========================================================
   FILA REMOVE SUPERIOR
   ========================================================= */

body.yith-woocompare-popup
#yith-woocompare-table
tr.remove {
    background: #fdfcfc !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
tr.remove
td {
    padding: 7px 12px !important;

    text-align: center !important;
}

/* =========================================================
   PRECIO
   ========================================================= */

body.yith-woocompare-popup
#yith-woocompare-table
tr.price
td {
    color: #cb0822 !important;

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

    text-align: center !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
tr.price
del {
    color: #a9a2a3 !important;

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

body.yith-woocompare-popup
#yith-woocompare-table
tr.price
ins {
    color: #cb0822 !important;

    text-decoration: none !important;
}

/* =========================================================
   STOCK / DISPONIBILIDAD
   ========================================================= */

body.yith-woocompare-popup
#yith-woocompare-table
tr.stock
td,
body.yith-woocompare-popup
#yith-woocompare-table
td.in-stock {
    background: #f6eeef !important;

    color: #198754 !important;

    font-weight: 800 !important;

    text-align: center !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
td.out-of-stock {
    background: #faf6f6 !important;

    color: #b42318 !important;

    font-weight: 800 !important;

    text-align: center !important;
}

/* =========================================================
   FILAS NORMALES
   ========================================================= */

body.yith-woocompare-popup
#yith-woocompare-table
tbody
tr:not(.product_info):not(.stock):nth-child(even)
td {
    background: #fdfcfc !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
tbody
tr:not(.product_info)
td {
    color: #5b5354 !important;

    text-align: center !important;
}

/* =========================================================
   DIFERENCIAS
   ========================================================= */

body.yith-woocompare-popup
#yith-woocompare-table
tr.different
th {
    box-shadow:
        inset 3px 0 0 #d41a33 !important;
}

/* =========================================================
   LINKS
   ========================================================= */

body.yith-woocompare-popup
#yith-woocompare-table
td
a:not(.button) {
    color: #cb0822 !important;
}

/* =========================================================
   SCROLL
   ========================================================= */

body.yith-woocompare-popup {
    scrollbar-width: thin !important;
    scrollbar-color: #cec5c6 #f7eff0 !important;
}

body.yith-woocompare-popup::-webkit-scrollbar {
    width: 9px !important;
    height: 9px !important;
}

body.yith-woocompare-popup::-webkit-scrollbar-track {
    background: #f7eff0 !important;
}

body.yith-woocompare-popup::-webkit-scrollbar-thumb {
    background: #cec5c6 !important;

    border: 2px solid #f7eff0 !important;
    border-radius: 999px !important;
}

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

@media (max-width: 767px) {

    body.yith-woocompare-popup > h1 {
        width: calc(100% - 20px) !important;

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

        border-radius: 11px !important;

        font-size: 15px !important;
    }

    body.yith-woocompare-popup #yith-woocompare {
        width: calc(100% - 20px) !important;

        margin: 10px !important;

        border-radius: 12px !important;

        overflow-x: auto !important;
    }

    body.yith-woocompare-popup
    #yith-woocompare-table {
        min-width: 760px !important;
    }

    body.yith-woocompare-popup
    #yith-woocompare-table
    th {
        min-width: 150px !important;
    }

    body.yith-woocompare-popup
    #yith-woocompare-table
    th,
    body.yith-woocompare-popup
    #yith-woocompare-table
    td {
        padding: 10px 12px !important;

        font-size: 11px !important;
    }

    body.yith-woocompare-popup
    #yith-woocompare-table
    .image-wrap {
        height: 130px !important;
    }

    body.yith-woocompare-popup
    #yith-woocompare-table
    .image-wrap img {
        max-height: 120px !important;
    }
}

/* =========================================================
   ULTRAPC - COMPARACION V2 AJUSTE ESTRUCTURAL
   ========================================================= */

/* ---------------------------------------------------------
   Desactivar clones antiguos de columnas fijas DataTables
   que provocan superposición en la primera columna
   --------------------------------------------------------- */

body.yith-woocompare-popup .DTFC_LeftWrapper,
body.yith-woocompare-popup .DTFC_RightWrapper {
    display: none !important;
}

body.yith-woocompare-popup .dataTables_scrollBody,
body.yith-woocompare-popup .dataTables_scroll {
    overflow: visible !important;
}

/* ---------------------------------------------------------
   Primera columna más compacta
   --------------------------------------------------------- */

body.yith-woocompare-popup
#yith-woocompare-table
th {
    width: 185px !important;
    min-width: 185px !important;
    max-width: 185px !important;

    padding: 11px 14px !important;

    white-space: normal !important;

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

/* ---------------------------------------------------------
   Información principal del producto
   --------------------------------------------------------- */

body.yith-woocompare-popup
#yith-woocompare-table
tr.product_info
td {
    position: relative !important;

    padding:
        16px 20px
        18px !important;

    vertical-align: top !important;
}

/* Imagen más compacta */

body.yith-woocompare-popup
#yith-woocompare-table
.image-wrap {
    height: 145px !important;

    margin-bottom: 9px !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
.image-wrap img {
    max-height: 140px !important;
}

/* Título */

body.yith-woocompare-popup
#yith-woocompare-table
.product_title {
    min-height: 38px !important;

    margin:
        2px auto
        10px !important;

    max-width: 390px !important;

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

/* ---------------------------------------------------------
   ELIMINAR PRODUCTO
   Botón discreto arriba a la derecha
   --------------------------------------------------------- */

body.yith-woocompare-popup
#yith-woocompare-table
tr.product_info
div.remove {
    position: absolute !important;

    top: 12px !important;
    right: 12px !important;

    z-index: 5 !important;

    margin: 0 !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
tr.product_info
div.remove
a {
    width: 28px !important;
    height: 28px !important;

    background: #fff !important;

    border: 1px solid #ece4e5 !important;
    border-radius: 50% !important;

    color: #797272 !important;

    font-size: 0 !important;

    box-shadow:
        0 2px 6px rgba(19,37,28, .08) !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
tr.product_info
div.remove
a::before {
    content: "×" !important;

    display: block !important;

    color: #797272 !important;

    font-family: Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
tr.product_info
div.remove
a:hover {
    background: #faf6f6 !important;

    border-color: #ecdcdd !important;

    transform: none !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
tr.product_info
div.remove
a:hover::before {
    color: #b42318 !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
tr.product_info
div.remove
i,
body.yith-woocompare-popup
#yith-woocompare-table
tr.product_info
div.remove
span.remove {
    display: none !important;
}

/* ---------------------------------------------------------
   Carrito algo más compacto
   --------------------------------------------------------- */

body.yith-woocompare-popup
#yith-woocompare-table
.add_to_cart_wrap {
    margin-top: 8px !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
.add_to_cart_wrap
.button {
    min-width: 175px !important;
    min-height: 36px !important;

    padding: 8px 18px !important;

    font-size: 10px !important;
}

/* ---------------------------------------------------------
   Filas comparativas más compactas
   --------------------------------------------------------- */

body.yith-woocompare-popup
#yith-woocompare-table
tbody
tr:not(.product_info)
td {
    padding: 10px 14px !important;

    font-size: 12px !important;
}

/* Precio con mayor jerarquía */

body.yith-woocompare-popup
#yith-woocompare-table
tr.price
td {
    font-size: 13px !important;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 767px) {

    body.yith-woocompare-popup
    #yith-woocompare-table
    th {
        width: 145px !important;
        min-width: 145px !important;
        max-width: 145px !important;
    }

    body.yith-woocompare-popup
    #yith-woocompare-table
    .image-wrap {
        height: 120px !important;
    }

    body.yith-woocompare-popup
    #yith-woocompare-table
    .image-wrap img {
        max-height: 115px !important;
    }
}

/* =========================================================
   ULTRAPC - COMPARACION V3 LIMPIEZA FINAL
   ========================================================= */

/* ---------------------------------------------------------
   Ocultar compartir en redes dentro del popup
   --------------------------------------------------------- */

body.yith-woocompare-popup
#yith-woocompare-share {
    display: none !important;
}

/* ---------------------------------------------------------
   Ocultar enlace / contador auxiliar "Ver comparación"
   que no aporta nada dentro de la propia comparación
   --------------------------------------------------------- */

body.yith-woocompare-popup
.yith-woocompare-open,
body.yith-woocompare-popup
.yith-woocompare-counter {
    display: none !important;
}

/* ---------------------------------------------------------
   ELIMINAR TODOS
   --------------------------------------------------------- */

body.yith-woocompare-popup
a.button.yith_woocompare_clear {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;

    min-height: 34px !important;

    margin: 18px 12px 8px auto !important;
    padding: 8px 14px !important;

    float: right !important;

    background: #fff !important;

    border: 1px solid #ecdcdd !important;
    border-radius: 999px !important;

    color: #b42318 !important;

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

    text-transform: uppercase !important;
    text-decoration: none !important;

    box-shadow:
        0 2px 6px rgba(180, 35, 24, .06) !important;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease !important;
}

body.yith-woocompare-popup
a.button.yith_woocompare_clear::before {
    content: "×" !important;

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

    width: 18px !important;
    height: 18px !important;

    background: #faf6f6 !important;

    border-radius: 50% !important;

    color: #b42318 !important;

    font-family: Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

body.yith-woocompare-popup
a.button.yith_woocompare_clear:hover {
    background: #faf6f6 !important;

    border-color: #fda29b !important;

    color: #912018 !important;

    transform: translateY(-1px) !important;

    box-shadow:
        0 4px 10px rgba(180, 35, 24, .10) !important;
}

/* ---------------------------------------------------------
   DIFERENCIAS ENTRE PRODUCTOS
   Sustituye el gris oscuro heredado de YITH
   --------------------------------------------------------- */

body.yith-woocompare-popup
#yith-woocompare-table
tr.different,
body.yith-woocompare-popup
#yith-woocompare-table
tr.different td {
    background: #fdfafb !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
tr.different th {
    background: #f9f4f4 !important;

    box-shadow:
        inset 3px 0 0 #d41a33 !important;
}

/* Precio diferente: no usar fondo gris */

body.yith-woocompare-popup
#yith-woocompare-table
tr.price.different td {
    background: #fdfafb !important;
}

/* ---------------------------------------------------------
   Espacio inferior limpio
   --------------------------------------------------------- */

body.yith-woocompare-popup
#yith-woocompare {
    padding-bottom: 0 !important;
}

body.yith-woocompare-popup
#yith-woocompare::after {
    content: "" !important;

    display: block !important;
    clear: both !important;

    height: 8px !important;
}

/* ---------------------------------------------------------
   Móvil
   --------------------------------------------------------- */

@media (max-width: 767px) {

    body.yith-woocompare-popup
    a.button.yith_woocompare_clear {
        margin:
            12px 10px
            6px auto !important;

        min-height: 32px !important;

        padding: 7px 11px !important;

        font-size: 9px !important;
    }
}

/* =========================================================
   ULTRAPC - COMPARACION V4 BOTONES E IMAGENES
   ========================================================= */

/* ---------------------------------------------------------
   IMÁGENES
   Más aire y sin recortes
   --------------------------------------------------------- */

body.yith-woocompare-popup
#yith-woocompare-table
.image-wrap {
    box-sizing: border-box !important;

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

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

    margin: 0 auto 10px !important;
    padding: 10px 18px !important;

    overflow: visible !important;

    background: transparent !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
.image-wrap img {
    display: block !important;

    width: auto !important;
    max-width: calc(100% - 10px) !important;

    height: auto !important;
    max-height: 130px !important;

    margin: auto !important;

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

    transform: none !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
.product_info td:hover
.image-wrap img {
    transform: none !important;
}

/* ---------------------------------------------------------
   BOTÓN AGREGAR AL CARRITO
   Más compacto
   --------------------------------------------------------- */

body.yith-woocompare-popup
#yith-woocompare-table
.add_to_cart_wrap {
    margin-top: 7px !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
.add_to_cart_wrap .button,
body.yith-woocompare-popup
#yith-woocompare-table
.add-to-cart .button {
    min-width: 145px !important;
    min-height: 32px !important;

    padding: 7px 15px !important;

    border-radius: 999px !important;

    font-size: 9.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    box-shadow:
        0 4px 10px rgba(212,26,51, .16) !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
.add_to_cart_wrap .button:hover,
body.yith-woocompare-popup
#yith-woocompare-table
.add-to-cart .button:hover {
    transform: translateY(-1px) !important;

    box-shadow:
        0 5px 13px rgba(212,26,51, .22) !important;
}

/* ---------------------------------------------------------
   BOTÓN ELIMINAR PRODUCTO
   --------------------------------------------------------- */

body.yith-woocompare-popup
#yith-woocompare-table
tr.product_info
div.remove {
    top: 10px !important;
    right: 10px !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
tr.product_info
div.remove a {
    width: 26px !important;
    height: 26px !important;

    border-radius: 8px !important;

    box-shadow:
        0 2px 5px rgba(18,39,28, .06) !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
tr.product_info
div.remove a::before {
    font-size: 17px !important;
    line-height: 22px !important;
}

/* ---------------------------------------------------------
   ELIMINAR TODOS
   Más pequeño y discreto
   --------------------------------------------------------- */

body.yith-woocompare-popup
a.button.yith_woocompare_clear {
    min-height: 30px !important;

    margin: 14px 12px 5px auto !important;
    padding: 6px 11px !important;

    border-radius: 9px !important;

    font-size: 9px !important;

    box-shadow:
        0 2px 5px rgba(180, 35, 24, .05) !important;
}

body.yith-woocompare-popup
a.button.yith_woocompare_clear::before {
    width: 16px !important;
    height: 16px !important;

    font-size: 13px !important;
}

/* ---------------------------------------------------------
   PRODUCTO PRINCIPAL
   Reducimos ligeramente espacio vertical
   --------------------------------------------------------- */

body.yith-woocompare-popup
#yith-woocompare-table
tr.product_info td {
    padding:
        14px 18px
        15px !important;
}

body.yith-woocompare-popup
#yith-woocompare-table
.product_title {
    min-height: 34px !important;

    margin: 2px auto 8px !important;

    font-size: 11.5px !important;
}

/* ---------------------------------------------------------
   MÓVIL
   --------------------------------------------------------- */

@media (max-width: 767px) {

    body.yith-woocompare-popup
    #yith-woocompare-table
    .image-wrap {
        height: 125px !important;
        padding: 8px 12px !important;
    }

    body.yith-woocompare-popup
    #yith-woocompare-table
    .image-wrap img {
        max-width: calc(100% - 8px) !important;
        max-height: 108px !important;
    }

    body.yith-woocompare-popup
    #yith-woocompare-table
    .add_to_cart_wrap .button {
        min-width: 125px !important;
        min-height: 30px !important;

        padding: 6px 11px !important;

        font-size: 9px !important;
    }
}

/* =========================================================
   TEMA HALLOWEEN: ventana de comparacion oscura y naranja
   ========================================================= */
html:has(body.halloween.yith-woocompare-popup),
html body.halloween.yith-woocompare-popup{background:#000!important;color:#f3eaea!important}
html body.halloween.yith-woocompare-popup > h1{background:linear-gradient(135deg,#ff8a3d 0%,#f2711c 45%,#d9480f 100%)!important;box-shadow:0 8px 24px rgba(255,120,30,.28)!important;color:#fff!important}
html body.halloween.yith-woocompare-popup #yith-woocompare{background:linear-gradient(180deg,#200f13 0%,#100709 100%)!important;border:1px solid rgba(255,138,61,.28)!important;box-shadow:0 10px 32px rgba(0,0,0,.55)!important}
html body.halloween.yith-woocompare-popup #yith-woocompare-table,
html body.halloween.yith-woocompare-popup .dataTables_wrapper,
html body.halloween.yith-woocompare-popup .dataTables_scroll,
html body.halloween.yith-woocompare-popup .DTFC_ScrollWrapper,
html body.halloween.yith-woocompare-popup .DTFC_LeftWrapper,
html body.halloween.yith-woocompare-popup .DTFC_LeftBodyWrapper,
html body.halloween.yith-woocompare-popup .DTFC_LeftBodyLiner,
html body.halloween.yith-woocompare-popup .DTFC_LeftHeadWrapper{background:transparent!important}

/* refuerzo con ID (#yith-woocompare) para superar reglas existentes */
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list th{background:#200f13!important;color:#ffb070!important;border-color:rgba(255,138,61,.18)!important;box-shadow:none!important}
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list td{background:rgba(255,255,255,.035)!important;color:#eedee0!important;border-color:rgba(255,255,255,.07)!important}
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tbody tr:nth-child(even) td{background:rgba(255,255,255,.065)!important}
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tbody tr.different th{border-left:3px solid #ff8a3d!important}
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tbody tr.price td,
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tbody tr.price td *{color:#ffb070!important}
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tbody tr.stock td{background:rgba(52,199,120,.12)!important;color:#7ee2a8!important}
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tbody tr.product_info td{background:transparent!important}
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tr.product_info td a,
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list .product-title{color:#fff!important}
html body.halloween.yith-woocompare-popup #yith-woocompare .image-wrap{background:#fff!important;border-radius:14px!important}
html body.halloween.yith-woocompare-popup #yith-woocompare a.button,
html body.halloween.yith-woocompare-popup #yith-woocompare .add-to-cart a.button,
html body.halloween.yith-woocompare-popup #yith-woocompare .add_to_cart_wrap a{background:linear-gradient(135deg,#ff8a3d 0%,#f2711c 45%,#d9480f 100%)!important;border:0!important;color:#fff!important;box-shadow:0 6px 16px rgba(255,120,30,.28)!important}
html body.halloween.yith-woocompare-popup #yith-woocompare a.button:hover{filter:brightness(1.12)!important;transform:none!important}
html body.halloween.yith-woocompare-popup #yith-woocompare a.yith_woocompare_clear{background:transparent!important;color:#ffb070!important;border:1px solid rgba(255,138,61,.55)!important}
html body.halloween.yith-woocompare-popup #yith-woocompare div.remove a,
html body.halloween.yith-woocompare-popup #yith-woocompare span.remove{background:rgba(255,255,255,.08)!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important}
html body.halloween.yith-woocompare-popup *::-webkit-scrollbar-thumb{background:#ff8a3d!important;border-radius:8px}
html body.halloween.yith-woocompare-popup *::-webkit-scrollbar-track{background:#16090c!important}
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tbody tr,
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tbody tr.different,
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tbody tr.odd,
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tbody tr.even,
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tbody tr.product_info,
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tbody tr.stock{background:transparent!important;background-image:none!important}
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tr.product_info td,
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tr.product_info td *:not(a.button):not(.add_to_cart_wrap *){color:#f3eaea!important}
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tr.product_info td a.product-title,
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tr.product_info td h3,
html body.halloween.yith-woocompare-popup #yith-woocompare table.compare-list tr.product_info td h3 a{color:#fff!important}
/* Boton "Solo diferencias" (ambos temas) */

/* =========================================================
   Sugerencias cuando solo hay un producto en la comparacion
   ========================================================= */
body.yith-woocompare-popup.upc-cmp-single{display:grid!important;grid-template-columns:minmax(0,1fr) 340px;column-gap:0;align-items:start}
body.yith-woocompare-popup.upc-cmp-single > h1{grid-column:1 / -1}
body.yith-woocompare-popup.upc-cmp-single > #yith-woocompare{grid-column:1;margin-right:8px!important;width:auto!important}
body.yith-woocompare-popup.upc-cmp-single > .upc-cmp-suggest{grid-column:2;position:sticky;top:84px;box-sizing:border-box;margin:14px 16px 18px 8px;padding:16px;border-radius:16px;background:#fff;border:1px solid #f2e6e7;box-shadow:0 8px 28px rgba(23,70,47,.08);max-height:calc(100vh - 110px);overflow:auto}
body.yith-woocompare-popup.upc-cmp-single > #wpadminbar,body.yith-woocompare-popup.upc-cmp-single > script,body.yith-woocompare-popup.upc-cmp-single > style{grid-column:1 / -1}
.upc-cmp-suggest__title{margin:0 0 12px;font:800 15px/1.2 "Open Sans",sans-serif;color:#1b7a4b}
.upc-cmp-suggest__card{display:flex;gap:12px;padding:10px;margin:0 0 10px;border:1px solid #f2e6e7;border-radius:14px;background:#fdfafb}
.upc-cmp-suggest__img{flex:0 0 84px;width:84px;height:84px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:10px;overflow:hidden}
.upc-cmp-suggest__img img{max-width:100%;max-height:100%;object-fit:contain}
.upc-cmp-suggest__body{min-width:0;display:flex;flex-direction:column;gap:6px}
.upc-cmp-suggest__name{font:700 12px/1.3 "Open Sans",sans-serif;color:#22342b;text-decoration:none;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.upc-cmp-suggest__price{font:800 14px/1 "Open Sans",sans-serif;color:#ae0017}
.upc-cmp-suggest__price del{font-weight:600;opacity:.5;margin-right:4px}
.upc-cmp-suggest__price ins{text-decoration:none}
.upc-cmp-suggest__btn{align-self:flex-start;height:32px;padding:0 14px;border:0;border-radius:999px;background:linear-gradient(135deg,#ae0017,#d41a33);color:#fff;font:800 12px "Open Sans",sans-serif;cursor:pointer}
.upc-cmp-suggest__btn:hover:not([disabled]){filter:brightness(1.1)}
.upc-cmp-suggest__btn[disabled]{opacity:.6;cursor:default}
html body.halloween.yith-woocompare-popup.upc-cmp-single > .upc-cmp-suggest{background:linear-gradient(180deg,#200f13 0%,#100709 100%);border-color:rgba(255,138,61,.28);box-shadow:0 10px 32px rgba(0,0,0,.55)}
html body.halloween.yith-woocompare-popup .upc-cmp-suggest__title{color:#ffb070}
html body.halloween.yith-woocompare-popup .upc-cmp-suggest__card{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.1)}
html body.halloween.yith-woocompare-popup .upc-cmp-suggest__name{color:#fff}
html body.halloween.yith-woocompare-popup .upc-cmp-suggest__price{color:#ffb070}
html body.halloween.yith-woocompare-popup .upc-cmp-suggest__btn{background:linear-gradient(135deg,#ff8a3d 0%,#f2711c 45%,#d9480f 100%)}
@media (max-width:900px){body.yith-woocompare-popup.upc-cmp-single{display:block!important}body.yith-woocompare-popup.upc-cmp-single > .upc-cmp-suggest{position:static;max-height:none;margin:0 16px 18px}}

/* Filtros y etiquetas de las sugerencias */
.upc-cmp-suggest__filters{display:grid;grid-template-columns:1fr;gap:8px;margin:0 0 14px}

.upc-cmp-suggest__tags{display:flex;flex-wrap:wrap;gap:4px}
.upc-cmp-suggest__tags span{padding:2px 8px;border-radius:999px;background:#f7eff0;color:#1b7a4b;font:700 10px "Open Sans",sans-serif}
.upc-cmp-suggest__empty{margin:0;padding:10px 12px;border-radius:12px;background:#fdfafb;font:600 12px/1.4 "Open Sans",sans-serif;color:#5b5354;opacity:.75}

html body.halloween.yith-woocompare-popup .upc-cmp-suggest__tags span{background:rgba(255,138,61,.16);color:#ffb070}
html body.halloween.yith-woocompare-popup .upc-cmp-suggest__empty{background:rgba(255,255,255,.06);color:#c59ca4}

/* =========================================================
   Barra de acciones de la comparacion: contador a la izquierda,
   "Solo diferencias" y "Eliminar todos" alineados a la derecha
   ========================================================= */
html body.yith-woocompare-popup #yith-woocompare .upc-cmp-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0;padding:14px 18px 12px;border-bottom:1px solid rgba(151,139,140,.18)}
html body.yith-woocompare-popup #yith-woocompare .upc-cmp-count{font:700 12px "Open Sans",sans-serif;opacity:.7}
html body.yith-woocompare-popup #yith-woocompare .upc-cmp-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
html body.yith-woocompare-popup #yith-woocompare .upc-cmp-toggle,
html body.yith-woocompare-popup #yith-woocompare .upc-cmp-actions a.yith_woocompare_clear{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;height:38px!important;min-height:38px!important;margin:0!important;padding:0 16px!important;float:none!important;position:static!important;border-radius:999px!important;font:700 12px/1 "Open Sans",sans-serif!important;letter-spacing:.2px;text-transform:none!important;text-decoration:none!important;box-shadow:none!important;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease,filter .18s ease}
html body.yith-woocompare-popup #yith-woocompare .upc-cmp-toggle svg,
html body.yith-woocompare-popup #yith-woocompare .upc-cmp-actions a.yith_woocompare_clear svg{flex:0 0 auto}
html body.yith-woocompare-popup #yith-woocompare .upc-cmp-actions a.yith_woocompare_clear::before{display:none!important}
html body.yith-woocompare-popup #yith-woocompare .upc-cmp-toggle{background:#fff;border:1px solid #dbcfd0;color:#1b7a4b}
html body.yith-woocompare-popup #yith-woocompare .upc-cmp-toggle:hover{border-color:#ae0017}
html body.yith-woocompare-popup #yith-woocompare .upc-cmp-toggle[aria-pressed="true"]{background:#ae0017;border-color:#ae0017;color:#fff}
html body.yith-woocompare-popup #yith-woocompare .upc-cmp-actions a.yith_woocompare_clear{background:#fff!important;border:1px solid #f1b9b3!important;color:#b42318!important}
html body.yith-woocompare-popup #yith-woocompare .upc-cmp-actions a.yith_woocompare_clear:hover{background:#faf5f6!important;border-color:#e57a70!important}
html body.halloween.yith-woocompare-popup #yith-woocompare .upc-cmp-toolbar{border-bottom-color:rgba(255,138,61,.2)}
html body.halloween.yith-woocompare-popup #yith-woocompare .upc-cmp-toggle{background:transparent;border-color:rgba(255,138,61,.55);color:#ffb070}
html body.halloween.yith-woocompare-popup #yith-woocompare .upc-cmp-toggle:hover{border-color:#ff8a3d}
html body.halloween.yith-woocompare-popup #yith-woocompare .upc-cmp-toggle[aria-pressed="true"]{background:linear-gradient(135deg,#ff8a3d 0%,#f2711c 45%,#d9480f 100%);border-color:transparent;color:#fff}
html body.halloween.yith-woocompare-popup #yith-woocompare .upc-cmp-actions a.yith_woocompare_clear{background:transparent!important;border:1px solid rgba(255,107,107,.55)!important;color:#ff8c8c!important}
html body.halloween.yith-woocompare-popup #yith-woocompare .upc-cmp-actions a.yith_woocompare_clear:hover{background:rgba(255,107,107,.12)!important;border-color:#ff6b6b!important}
@media (max-width:560px){html body.yith-woocompare-popup #yith-woocompare .upc-cmp-actions{width:100%;justify-content:space-between}}

/* Listas desplegables propias de los filtros (se abren bajo su barra, dentro de la ventana) */
.upc-dd{position:relative;display:flex;flex-direction:column;gap:3px}
.upc-dd__label{font:700 10px "Open Sans",sans-serif;text-transform:uppercase;letter-spacing:.06em;color:#797272}
.upc-dd__btn{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;height:36px;padding:0 12px;border-radius:10px;border:1px solid #e4dbdc;background:#fff;color:#22342b;font:600 12px "Open Sans",sans-serif;cursor:pointer;text-align:left}
.upc-dd__btn svg{flex:0 0 auto;transition:transform .18s ease}
.upc-dd.is-open .upc-dd__btn{border-color:#ae0017;box-shadow:0 0 0 3px rgba(174,0,23,.12)}
.upc-dd.is-open .upc-dd__btn svg{transform:rotate(180deg)}
.upc-dd.is-filtered .upc-dd__btn{border-color:#ae0017;color:#ae0017}
.upc-dd__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.upc-dd__list{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:40;margin:0;padding:4px;list-style:none;max-height:210px;overflow:auto;border-radius:12px;border:1px solid #e4dbdc;background:#fff;box-shadow:0 14px 30px rgba(23,70,47,.18)}
.upc-dd__list[hidden]{display:none}
.upc-dd__list li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:8px;font:600 12px "Open Sans",sans-serif;color:#22342b;cursor:pointer}
.upc-dd__list li:hover{background:#f9f4f4}
.upc-dd__list li.is-selected{background:#ae0017;color:#fff}
.upc-dd__list li em{font-style:normal;font-weight:700;font-size:11px;opacity:.65}
html body.halloween.yith-woocompare-popup .upc-dd__label{color:#c59ca4}
html body.halloween.yith-woocompare-popup .upc-dd__btn{background:#16090c;color:#fff;border-color:rgba(255,138,61,.45)}
html body.halloween.yith-woocompare-popup .upc-dd.is-open .upc-dd__btn{border-color:#ff8a3d;box-shadow:0 0 0 3px rgba(255,138,61,.18)}
html body.halloween.yith-woocompare-popup .upc-dd.is-filtered .upc-dd__btn{border-color:#ff8a3d;color:#ffb070}
html body.halloween.yith-woocompare-popup .upc-dd__list{background:#200f13;border-color:rgba(255,138,61,.45);box-shadow:0 14px 30px rgba(0,0,0,.6)}
html body.halloween.yith-woocompare-popup .upc-dd__list li{color:#f3eaea}
html body.halloween.yith-woocompare-popup .upc-dd__list li:hover{background:rgba(255,138,61,.14)}
html body.halloween.yith-woocompare-popup .upc-dd__list li.is-selected{background:linear-gradient(135deg,#ff8a3d,#d9480f);color:#fff}

/* La barra de titulo conserva su posicion (con su margen superior) al hacer scroll */
html body.yith-woocompare-popup > h1{top:16px!important}
html body.yith-woocompare-popup > h1::before{content:"";position:absolute;left:-16px;right:-16px;top:-16px;height:16px;background:#faf7f7;z-index:-1}
html body.halloween.yith-woocompare-popup > h1::before{background:#000}

/* =========================================================
   Celda "Informacion de producto": imagen completa (sin recorte), X fuera de la foto, sin franja vacia
   ========================================================= */
/* Franja vacia sobre las columnas (cabecera de DataTables sin contenido) */
html body.yith-woocompare-popup #yith-woocompare .dataTables_scrollHead,
html body.yith-woocompare-popup #yith-woocompare .DTFC_LeftHeadWrapper,
html body.yith-woocompare-popup #yith-woocompare .DTFC_RightHeadWrapper{height:0!important;min-height:0!important;overflow:hidden!important;border:0!important}
/* Espacio superior para el boton quitar */
html body.yith-woocompare-popup #yith-woocompare table.compare-list tr.product_info td{position:relative;padding-top:44px!important;vertical-align:top}
html body.yith-woocompare-popup #yith-woocompare table.compare-list tr.product_info td div.remove{position:absolute!important;top:8px!important;right:10px!important;margin:0!important;z-index:3}
html body.yith-woocompare-popup #yith-woocompare table.compare-list tr.product_info td div.remove a{display:inline-flex!important;align-items:center;justify-content:center;width:28px!important;height:28px!important}
/* Caja de la foto: proporcion 4:3, imagen completa y centrada */
html body.yith-woocompare-popup #yith-woocompare table.compare-list .image-wrap{box-sizing:border-box!important;height:auto!important;aspect-ratio:4 / 3;padding:10px!important;margin:0 auto 14px!important;border-radius:14px!important}
html body.yith-woocompare-popup #yith-woocompare table.compare-list .image-wrap img{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
/* Titulo centrado, hasta 3 lineas */
html body.yith-woocompare-popup #yith-woocompare table.compare-list tr.product_info .product_title{text-align:center!important;display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;height:auto!important;min-height:3.9em!important;overflow:hidden!important;margin:0 0 14px!important}

/* Boton cerrar dentro de la barra de titulo (siempre dentro de la barra, aunque el iframe tenga scroll) */
html body.yith-woocompare-popup > h1 .upc-cmp-close{position:absolute;top:50%;right:12px;transform:translateY(-50%);width:36px;height:36px;padding:0;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.45);border-radius:10px;color:#fff;cursor:pointer;transition:background .18s ease}
html body.yith-woocompare-popup > h1 .upc-cmp-close:hover{background:rgba(255,255,255,.34)}
html body.yith-woocompare-popup > h1 .upc-cmp-close svg{display:block;pointer-events:none}
