/* Quantity block */
.quantity.list-quantity{
    width: 8rem;
}

.checkout--third-step .quantity__controls,
.cart .quantity__controls,
.list-quantity .quantity__controls{
    flex-direction: row;
    width: 100%;
    border: 0;
    padding: 0;
}

.checkout--third-step .quantity__controls:before,
.cart .quantity__controls:before,
.list-quantity .quantity__controls:before{
    content: none;
}

.checkout--third-step .quantity__input,
.cart .quantity__input,
.list-quantity .quantity__input {
    width: 40%;
    text-align: center;
    padding: 0.52vw;
    min-height: 36px;
}

.checkout--third-step .quantity__minus,
.checkout--third-step .quantity__plus,
.cart .quantity__minus,
.cart .quantity__plus, 
.list-quantity .quantity__minus, 
.list-quantity .quantity__plus{
    height: auto;
    width: 30%;
}

.checkout--third-step .quantity__minus,
.cart .quantity__minus,
.list-quantity .quantity__minus{
    border-right: 1px solid #bfbfbf
}

.checkout--third-step .quantity__plus,
.cart .quantity__plus,
.list-quantity .quantity__plus{
    border-left: 1px solid #bfbfbf
}

#cart-site.hidden{
    opacity: 0;
    pointer-events: none;
}

#cart-site{
    z-index: 1002;
    position: relative;
}

.cart__warning{
    padding: 0.5rem;
}

.cart__warning.error{
    border: 1px solid #c51718;
}

@media ( min-width: 1280px ) {

    .page{
        transition: all 0.5s;
    }
    
    .page.show-card { 
        width: 88%;
    }
    
    #cart-site {    
        position: fixed;
        right: 0;
        width: 12%;
        height: 100%;
        display: block;
        z-index: 1002;
        transition: all 0.5s;
        background: #fff;
        box-shadow: 0 20px 60px rgb(0 0 0 / 10%);
    }

    #cart-site .cart__body{
        padding-right: 0.5rem;
    }

    #cart-site .cart-item__product-wrapper{
        flex-direction: column;
    }

    .page-connect{
        left: 84%;
    }

    #cart-site .cart__footer{
        position: absolute;
        bottom: 0;
        width: 100%;
        flex-direction: column;
        padding: 0.5rem;
        text-align: center;
        z-index: 2;
    }

    #cart-site .cart__warning{
        padding-right: 0;
        text-align: left;
        font-size: 13px;
        align-items: baseline;
        padding: 0;
    }
    
    #cart-site .cart__warning-icon{
        margin: 0.4rem;
        transform: translateY(8px);
        width: 1.5rem;
        height: 1.5rem;
        font-size: 18px;
    }

    #cart-site .cart-item__product-title,
    #cart-site .cart-item__weight,
    #cart-site .cart-item__delivery,
    #cart-site .cart-item__info{
        display: none;
    }

    #cart-site .cart-item__product-wrapper{
        width: auto;
    }

    #cart-site .button--size-xl{
        width: 100%;
        font-size: 0.8rem;
        text-align: center;
    }

    #cart-site .cart__cost{
        margin-right: 0;
        margin-bottom: 1rem;
        font-size: 26px;
        text-align: center;
    }

    #cart-site .cart__main{
        max-height: 56vh;
        overflow: hidden;
        overflow-y: scroll;
    }
    
    #cart-site .cart__main::-webkit-resizer,
    #cart-site .cart__main::-webkit-scrollbar-button {
        display: none
    }

    #cart-site .cart__main::-webkit-scrollbar-track {
        background-color: #ecedef
    }

    #cart-site .cart__main::-webkit-scrollbar-thumb {
        background-color: rgba(17,17,17,.8)
    }

    #cart-site .cart__main::-webkit-scrollbar-thumb:hover {
        background-color: #111
    }

    #cart-site .cart__main::-webkit-scrollbar {
        width: 5px;
        height: 5px
    }

    #cart-site .cart__title{
        font-size: 26px;
        text-align: center;
    }

    #cart-site .cart-empty{
        padding: 1rem;
    }

    .cart-collapse {
        width: 50px;
        height: 100%;
        position: absolute;
        top: 0;
        left: -30px;
        text-align: center;
        line-height: 50px;
        cursor: pointer;    
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1002;
    }

    #cart-site.open {
        width: 20%;
    }

    #cart-site.open .cart-item__product-wrapper{
        flex-direction: row;
    }

    #cart-site.open .cart-item__product-title,
    #cart-site.open .cart-item__weight, 
    #cart-site.open .cart-item__delivery{
        display: block;
    }

    /* Quantity block */
    /* .product-card__container .quantity{
        max-width: 4.5rem !important;
    } */

    /* Remove cart if not exist items  */
    #cart-site.hidden + .page {
        width: 100%;
    }

    #cart-site.hidden + .page .page-connect{    
        left: 94%;
    }

    #cart-site.hidden.open{
        transform: translateX(0);
    }

    #cart-site.hidden {
        transform: translateX(100%)
    }

    .checkout--third-step .quantity--cart,
    .popup--cart .quantity--cart{
        width: 8rem;
    }
}

/* Style for tablet */
@media only screen and (min-width: 1280px) {
    #cart-site .cart-item{
        padding: 0.6rem
    }
}

@media (min-width: 1260px) and (max-width: 1460px) {
    .product-card__container ._flex._justify-between._items-center{
        flex-direction: column;
    }

    #cart-site .quantity--cart{
        margin-left: 0 !important;
    }

    #cart-site .cart-item__product-wrapper{
        margin-bottom: 1rem;
    }

    #cart-site .cart-item__product{
        flex-direction: column !important;
    }

    #cart-site .cart-item__delete-text{
        display: none;
    }
    
    #cart-site .cart__cost{
        margin-bottom: 1rem;
    }
    
    .checkout--third-step .quantity--cart,
    .quantity--cart{
        width: 9rem;
        margin: 0 !important;
    }
}

/* Cart mobile */
.cart_mobile {
    z-index: 999;
    position: fixed;
    bottom: 40px;
    left: 10px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,.5);
    align-items: center;
    padding: 0.5rem;
    border-radius: 20px;
    width: 150px;
    height: 40px;
}

.cart_mobile::after{
    position: absolute;
    top: -10%;
    left: -5px;
    content: "";
    display: block;
    width: 160px;
    height: 120%;
    background-color: transparent;
    border: 1px solid rgba(166,20,30,.5);
    border-radius: 25px;
    transition: transform .3s,opacity .3s;
    z-index: -1;
    opacity: 1;
}

.cart_mobile .cart__cost{
    margin: 0.5rem !important;
    font-size: 1.2rem;
}

@media ( min-width: 768px ) {
    .cart_mobile {
        left: 20px;
        bottom: 80px;
    }
}

/* Only for IOS safari 10.1+ */
@media not all and (min-resolution:.001dpcm) { 
    @media ( min-width: 1280px) and (max-width: 1366px ) {
        @supports (-webkit-appearance:none) {     
        .is-safari body{
            overflow: hidden;
        }

        .is-safari .page{
            overflow: hidden;
            overflow-y: scroll;
            max-height: 100vh;
        }
    }
}}

.available-addresses{
    border: 1px solid #333538;
    border-top: 0;
    max-height: 120px;
    overflow: hidden;
    overflow-y: scroll;
}

.available-addresses::-webkit-resizer,
.available-addresses::-webkit-scrollbar-button {
    display: none
}

.available-addresses::-webkit-scrollbar-track {
    background-color: #ecedef
}

.available-addresses::-webkit-scrollbar-thumb {
    background-color: rgba(17,17,17,.8)
}

.available-addresses::-webkit-scrollbar-thumb:hover {
    background-color: #111
}

.available-addresses::-webkit-scrollbar {
    width: 3px;
    height: 5px
}

.street-autocomplete{
    cursor: pointer;
    padding: 7px 3px;
}

.street-autocomplete:hover{
    color: #fff;
    background-color: #333538;
}

.form-group--file input:not(.has-value)+span+span{
    display: none;
}