/**
 * Estilos CSS del FO
 * 
 * @author Difadi.com  <soporte@difadi.com>
 * @author Laura Gutiérrez <lgutierrez@difadi.com>
 * @copyright 2024 Difadi.com
 * @license Comercial
*/

#cart-bottom {
    position: fixed;
    height: auto;
    margin: 0;
    bottom: 0;
    max-width: 100%;
    padding: 0;
    z-index: 99;
    transition: none !important;
    display: block;
    width: 100%;
}

#cart-bottom>div {
    width: 100%;
}

#cart-bottom>.cart-bottom-product {
    width: 100%;
    background-color: var(--color-white);
}

#cart-bottom>.cart-bottom-product>div {
    max-width: var(--width-container);
    margin: 0 auto;
    padding: var(--spaces-sm) var(--spaces-md);
}

#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: var(--spaces-md);
}

#cart-bottom .cart-product .cart-product-image p {
    margin-bottom: 0;
    color: var(--color-text);
    font-weight: 600;
    font-size: var(--text-sm);
    line-height: 1.2;
    border: none !important;
    padding-right: 20px;
    word-break: break-word;
}

#cart-bottom .product-quantity {
    justify-content: end;
    margin: 0;
}

#cart-bottom .product-quantity .qty,
#cart-bottom .product-quantity .add {
    margin-bottom: 0;
}

#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: baseline;
    gap: var(--spaces-sm);
}

#cart-bottom .product_action .product-prices .current-price {
    margin-bottom: 0;
    flex-wrap: wrap;
}

#cart-bottom .product_action .product-prices .current-price>span {
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
}

#cart-bottom .product_action .product-prices .current-price>span.has-discount {
    color: var(--color-red);
}


#cart-bottom .product_action .product-prices .current-price>span.old_price {
    line-height: 1;
    font-size: var(--text-md);
    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: var(--text-sm);
    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::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;
}

@media(max-width:1200px) {
     #product #footer.fixed {
        padding-bottom: 100px;
    }

    #cart-bottom .cart-product .cart-product-image{
        margin-bottom: var(--spaces-sm);
    }

    #cart-bottom .cart-product>div.add{
        margin-top: var(--spaces-xs);
    }

    #cart-bottom>.cart-bottom-product>div {
        padding: var(--spaces-sm) var(--spaces-md);
    }

    #cart-bottom .product_add_to_cart .product-quantity {
        gap: 0;
    }

    #cart-bottom .product_action .product_prices {
        padding-right: 10px;
         margin-bottom: var(--spaces-sm);
        justify-content: left;
    }

    #cart-bottom .product_action .product-prices {
        margin: 0 !important;
    }
    #cart-bottom .product-quantity .add {
        max-width: none !important;
    }

    #cart-bottom .add .add-to-cart {
        width: 100%;
        padding: 5px 10px;
        height: auto;
    }

    #cart-bottom .product_action .product-prices .current-price>.price-iva {
        font-size: var(--text-md);
    }
}

@media(max-width:768px) {

    #cart-bottom .cart-product .cart-product-image img {
        display: none;
    }

    #cart-bottom .cart-product .cart-product-image p {
        padding-right: 50px;
    }

    /* #cart-bottom .product_action .product-prices .current-price>span {
        font-size: var(--text-md);
    } */

    #cart-bottom .product_action .product-prices .current-price>span.old_price {
        font-size: var(--text-sm);
    }

    #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;
    }

}

@media(max-width:576px) {
    #cart-bottom .product_action .product-prices .show_discount {
        gap: 5px;
        justify-content: end;
    }
}