/**
 * Estilos CSS del FO
 * 
 * @author Difadi.com  <soporte@difadi.com>
 * @author Laura Gutiérrez <lgutierrez@difadi.com>
 * @copyright 2025 Difadi.com
 * @license Comercial
*/

#cart-bottom {
    position: fixed;
    height: auto;
    margin: 0;
    bottom: 20px;
    max-width: 100%;
    padding: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    z-index: 9;
    transition: none !important;
    display: block;
    animation: slide-in 1s forwards;
    animation-delay: 1ms;
}

#cart-bottom.hidden {
    display: none;
}

@keyframes slide-in {
    100% {
        transform: translate(-50%, 0%);
    }
}

#cart-bottom>div {
    width: 100%;
}

#cart-bottom>.cart-bottom-product {
    margin: 0 20px;
    width: calc(100% - 40px);
    background-color: #ffffff;
}

#cart-bottom>.cart-bottom-product>div {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 20px;
}

#cart-bottom .cart-product {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#cart-bottom .cart-product>div {
    padding: 0;
}

#cart-bottom .cart-product .cart-product-image {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 20px;
    padding-left: 30px;
}

#cart-bottom .product-quantity {
    justify-content: center;
    margin: 0;
}

#cart-bottom .product-quantity .qty,
#cart-bottom .product-quantity .add {
    margin-bottom: 0;
    width: auto !important;
    min-width: fit-content;
}

#cart-bottom .product_action .product_prices {
    display: flex;
    justify-content: center;
    width: 100%;
}

#cart-bottom .product_action {
    display: flex;
    align-items: center;
    justify-content: center;
}

#cart-bottom .product_action .product-prices {
    display: flex;
    align-items: end;
}

#cart-bottom .product_action .product_prices>span#product-price.hidden {
    display: none;
}

#cart-bottom .product_action .product-prices>div {
    margin-bottom: 0;
}

#cart-bottom .product_action .available_stock {
    display: none;
}

/* #cart-bottom .product_action .product-prices .current-price,
#cart-bottom .product_action .product-prices .price-discounts {
    display: flex;
    align-items: center;
    gap: 10px;
}

#cart-bottom .product_action .product-prices .current-price {
    margin-bottom: 0;
    align-items: end;
    flex-wrap: wrap;
}

#cart-bottom .product_action .product-prices .current-price>span {
    font-weight: 700;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1;
}

#cart-bottom .product_action .product-prices .current-price>span.old_price {
    line-height: 1;
    font-size: 14px;
    font-weight: 600;
    color: #939393;
    text-decoration: line-through;
}

#cart-bottom .product_action .product-prices .current-price>span.price_iva {
    line-height: 1;
    font-size: 14px;
    color: #939393;
} */

#cart-bottom .add .add-to-cart {
    width: 200px;
}

#cart-bottom .add-to-cart.disabled {
    cursor: none;
}

#cart-bottom .add-to-cart img {
    margin-right: 10px;
    width: 20px
}

#cart-bottom .product_add_to_cart .product-quantity {
    gap: 10px;
}

#cart-bottom .product_add_to_cart .product-quantity::after {
    display: none;
}

#cart-bottom .product_add_to_cart .product-quantity .input-group-btn-vertical .btn {
    padding: 0 !important;
}

#cart-bottom .product_add_to_cart {
    margin: 0;
}

#product #footer.fixed {
    padding-bottom: 120px;
}

@media(max-width:991px) {
    #cart-bottom>.cart-bottom-product>div {
        padding: 5px;
    }

    #cart-bottom .product_add_to_cart .product-quantity {
        gap: 0;
    }

    #cart-bottom .cart-product .cart-product-image {
        padding-left: 10px;
    }

    #cart-bottom .product_action .product_prices {
        padding-right: 10px;
    }

    #cart-bottom .cart-product>div.add {
        margin-top: 5px;
    }

    #cart-bottom .product-quantity .qty {
        display: none;
    }

    #cart-bottom .product-quantity .add {
        width: 100% !important;
        max-width: none !important;
    }

    #cart-bottom .add .add-to-cart {
        width: 100%;
        padding: 5px 10px;
        height: auto;
    }
}

@media(max-width:768px) {

    #cart-bottom .cart-product .cart-product-image img {
        display: none;
    }

    #cart-bottom .cart-product .cart-product-image p {
        font-size: 14px;
    }

    #cart-bottom .product_action .product-prices .current-price>span {
        font-size: 16px;
    }

    #cart-bottom .product_action .product-prices .current-price>span.old_price {
        font-size: 12px;
    }

    #cart-bottom .product_action .product-prices .show_discount>span {
        font-size: 16px;
    }

    #cart-bottom .product_action .product-prices .current-price,
    #cart-bottom .product_action .product-prices .show_discount {
        gap: 10px;
    }

    #cart-bottom .product-prices .product-price .current-price .show_discount .discount {
        font-size: 14px !important;
        padding: 5px 10px !important;
    }

    #cart-bottom .add .add-to-cart {
        font-size: 16px;
    }

    #cart-bottom .cart-product .cart-product-image {
        padding: 5px;
    }

    #product #footer.fixed {
        padding-bottom: 120px;
    }
}

@media(max-width:576px) {
    #cart-bottom .product_action .product-prices .show_discount {
        gap: 5px;
        justify-content: end;
    }

    #product #footer.fixed {
        padding-bottom: 160px;
    }
}