

/* MAIN FRAME */

.addtocart-popup {
    z-index: 2147483640;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    border-radius: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    background: rgba(0,0,0,0.5);
    display: none;
}

.addtocart-popup-inner {
    background: #FFF;
    max-width: 95%;
    height: 0;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    width: 600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 1;
    margin-right: 0;
    color: #505050;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 200;
}

a.product-checkout-button {
    width: 100%;
    background: #ff6600;
    text-align: center;
    color: #fff;
    padding: 13px 0;
    margin-bottom: 10px;
}

/* HEADER */

.addtocart-popup-header {
    display: flex;
    justify-content: space-between;
    z-index: 1;
    align-items: center;
    padding: 0 20px;
    /*border-bottom: thin solid #d1d1d1;*/
    background-color: #DBE4ED50;
}

.upsell-modal-footer {
    width: 100%;
    display: flex;
    z-index: 99;
    margin-top: auto;
}

.upsell-modal-footer a {width: 100%; margin-right: 20px; margin-left: 20px;}

.addtocart-popup-close span.button.upsell-close-button i {display: none;
}

.addtocart-popup-close span.button.upsell-close-button:before {
    display: inline-block;
    position: relative;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: 'Font Awesome 6 Pro';
    font-weight: 400;
    content: '\f057';
    font-size: 25px;
    font-weight: 300;
}

.addtocart-popup-close span.button.upsell-close-button:hover {
    background: none;
}

.addtocart-popup-close i {
    margin: 0 auto;
    margin-left: 20px;
    font-size: 20px;
    line-height: 21px;
    padding-right: 5px;
}


/* BODY */

.addtocart-popup-body {
    padding: 0;
    overflow: auto;
    position: relative;
    width: 100%;
    background-color: #ffffff;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.addtocart-popup-body-upper {
    display: flex;
    position: relative;
    padding: 20px;
    border-bottom: thin solid #d1d1d1;
}

.addtocart-popup-body-upper #cart-item {display: flex; justify-content: space-around; width: 100%;}

.cart-item-col1 {width: 25%;}
.cart-item-col2 {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-col3 {width: 10%;display: flex; flex-direction: column; justify-content: flex-end;}

#cart-item .picture {
    margin-right: 25px;
}

#cart-item .picture a img {
    border: thin solid #d1d1d1;}

#cart-item .picture img {
    width: 100%;
    max-width: 150px;
}

.description .attributes {
    margin: 0;
    font-size: 12px;
    font-style: italic;
}

#cart-item .remove {
    text-transform: uppercase;}

.button.minus, .button.plus, input .qty-input  {
    width: 25px;
    height: 25px;
    line-height: 22px;
    padding: 0;
    margin: 0;
    text-align: center;
}

.button.minus i {display: none;}
.button.minus:after {
    display: inline-block;
    position: relative;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: 'Font Awesome 6 Pro';
    font-weight: 400;
    content: '\f068';
    font-size: 11px;
    font-weight: 300;
}

input.qty-input {
    width: 35px;
    margin-bottom: -1px; 
    font-size: 12px;
    border-color: #666;
    font-weight: 200;
    height: 25px;
    text-align: center;
}

.product-grid .title {border: none;}

ul.upsell-items {
    padding: 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}   

li.upsell-item-box {list-style: none;}

.addtocart-popup-inner .quantity, .addtocart-popup-inner .cart-item-col3 {display: none;}

/* WITH SERVICING */
li.upsell-item-box:first-child {width: 100%;margin-bottom: 12%;}
li.upsell-item-box:first-child a {
    font-size: 18px;
    color: #666666;
    font-family: "Open Sans", sans-serif;
    font-weight: 200;
}

li.upsell-item-box:first-child .item-box .description {display: unset; font-size: 12px; font-style: italic;}
li.upsell-item-box:first-child .item-box .details h2.product-title a {font-size: 18px;}
li.upsell-item-box:first-child a.button {
    font-size: 12px;
    border: thin solid #666;
    color: #666;
    text-align: center;
    padding: 6px 20px;
} 
li.upsell-item-box:first-child .item-box .product-item .details h2.product-title a {font-size: 18px;}
li.upsell-item-box:first-child .item-box .product-item .actual-price {font-size: 18px;}
/* END WITH SERVICING */

li.upsell-item-box .item-box .product-item .details h2.product-title a {font-size: 12px; line-height: normal;}
li.upsell-item-box {width: 48%;}
li.upsell-item-box .item-box {
    width: 100%;
    margin: 0;        
    float: none;
    text-align: unset;
}

li.upsell-item-box .item-box .product-item .picture {
    width: 48%;
    margin-bottom: 0;
}

li.upsell-item-box .item-box .product-item .picture a {border: thin solid #d1d1d1;}
a.button {
    padding: 2px 13px;
    border: thin solid #666;
    font-size: 10px;
    color: #666;
}

input.button-2.product-box.add-to-cart-button {
    padding: 8px 13px;
    border: thin solid #666;
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    background: #fff;   
    font-weight: 200;
    width: 100%;
}

a.button.mobile-button, input.button-2.product-box.add-to-cart-button.mobile-button {display: none;}

li.upsell-item-box .item-box .product-item .details {width: 48%;}
li.upsell-item-box .item-box .product-item .actual-price {font-size: 14px; color: #666}

.addtocart-popup-product {
    display: inline-block;
    width: 50%;
}

.addtocart-popup-product .product-name {
    font-size: 30px;
    font-weight: 400px;
    line-height: 40px;
    color: #000;
    text-align: center;
}

.addtocart-popup-product .product-image img {
    position: relative;
    width: 80;
    max-width: 400px;
    height: auto;
}

.addtocart-popup-basket {
    position: relative;
    width: 50%;
    top: 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.addtocart-popup-basket h2 {
    color: #fff;
    background-color: #111;
}

.addtocart-popup-basket p.attributes, .addtocart-popup-basket p.price, .addtocart-popup-basket p.total {
    margin: 0;
}

/* CROSS SELLS */
.addtocart-popup-body-lower.product-grid.related-products {
    padding: 20px;
}
.product-grid.cross-sells .upsell-title {
    font-size: 18px;
    text-align: center;
    line-height: 26px;
    max-width: 300px;
    margin: 0 auto;
}

.upsell-title {font-size: 13px;padding-bottom: 15px;}

.details h2.product-title a {
    font-family: "Open Sans", sans-serif;
    font-weight: 200;
    font-size: 14px;
        max-height: 50px;
}


.product-grid.cross-sells .details h2.product-title {font-weight: 400; text-align: left;}
.product-grid.cross-sells {margin: 0;}


/* PRODUCT BOX */

.product-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.product-item .details {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.add-info {margin-top: auto;}

.addtocart-popup-body .product-grid.cross-sells .item-grid .item-box {
    float: none;
    margin: 10px 0;
    border: thin solid #dedede;
    padding: 15px;
    min-width: 100%
}

.addtocart-popup-body-lower.product-grid.related-products .item-grid {margin: 0;}

/* BUTTONS */
input.product-checkout-button.smaller-button{
    border: thin solid #ff6600;
    background: #ffffff;
}

input.product-checkout-button {
    margin: 0 auto;
    background: #ff6600;
    color: #ffffff;
    border: none;
    margin: 0 auto;
    align-items: center;
    height: 50px;
    text-transform: uppercase;
    justify-content: center;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
    bottom: 15px;
}


@media all and (max-width:767px) {
    /* WITH SERVICING */
    li.upsell-item-box:first-child a.button, li.upsell-item-box input.button-2.product-box.add-to-cart-button {display: none;}
    li.upsell-item-box:first-child a.button.mobile-button, li.upsell-item-box input.button-2.product-box.add-to-cart-button.mobile-button {
        display: flex;
        width: 100%;
        margin-top: 15px;
        text-align: center;
        flex-direction: column;
        color: #666;
        border-color: #666;
        align-items: center;} 
    /* END WITH SERVICING */

    .cart-item-col3 {width: 15%;}
    #cart-item .remove {font-size: 10px;}

}

@media all and (max-width:500px) {
    /* WITH SERVICING */
    li.upsell-item-box:not(:first-child) .product-item {flex-direction: column;}
    li.upsell-item-box:not(:first-child) .item-box .product-item .picture, li.upsell-item-box:not(:first-child) .item-box .product-item .details {width: 100%}
    li.upsell-item-box:not(:first-child) .item-box .product-title {
        height: 35px;
        width: 90%;
        margin: 0 auto;
        text-align: center;
    }
    /* END WITH SERVICING */ 

    /* WITHOUT SERVICING */
    /*li.upsell-item-box .product-item {flex-direction: column;}
    li.upsell-item-box .item-box .product-item .picture, li.upsell-item-box .item-box .product-item .details {width: 100%}
    li.upsell-item-box .item-box .product-title {height: 35px;}*/
    /* END WITHOUT */
    .details .add-info, input.button-2.product-box.add-to-cart-button {width: 100%;text-align: center;}

}