/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* The Modal (background) */
.addToCartModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 99999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.addToCartModal .modal-dialog {
    width: 95vw;
    /*max-width: 950px;*/
    position: relative;
    display: flex;
    flex-direction: column;
    /*width: 100%;*/
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
    outline: 0;
    left: 0;
    right: 0;
    top: 1rem;
    bottom: 1rem;
    margin: auto;
    padding: 1rem;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

@media (min-width:600px) {
    .addToCartModal .modal-dialog {
        max-width: 950px;
        width: 100%;
        top: 0;
        bottom: 0;
    }
}

.addToCartModal .modal-infoblock p {
    margin-bottom: 0;
}
/* Modal Content/Box */
.addToCartModal .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.addToCartModal .modal-product-info {
    display: flex;
    gap: 1rem;
    font-weight: 700;
    flex-grow: 1;
}

.addToCartModal .modal-productinfo {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
}
@media (min-width:600px) {
    .addToCartModal .modal-productinfo {
        flex-direction: row;
    }
}

span.modal-product-thumb img {
    width: 100px;
}
@media (max-width:768px) {
    .modal-upsell .card .card-body {
        padding: .5rem;
    }
}
#modal-detailpage-addtocart.addToCartModal .modal-upsell {
    margin-top: 1rem;
    border-top: 1px solid #d3ced2;
}


#modal-detailpage-addtocart.addToCartModal .modal-upsell .price bdi,
#modal-detailpage-addtocart.addToCartModal .modal-upsell .price {
    font-size: 1rem;
    padding-bottom: 0;
}

#modal-detailpage-addtocart.addToCartModal .modal-upsell .button {
    display: none;
}

#modal-detailpage-addtocart.addToCartModal .modal-upsell img {
    width: 150px;
    height: 80px!important;
    object-fit: contain;
    margin: 0 auto;
    border: none;
}
@media (min-width:768px) {
    #modal-detailpage-addtocart.addToCartModal .modal-upsell img {
        height: 150px !important;
    }
}
.addToCartModal .modal-upsell .woocommerce-LoopProduct-link {
    background-color: #fff;
    border: 1px solid #d3ced2;
    padding: .5rem;
    height: 100%;
}

.addToCartModal .modal-upsell .woocommerce ul.products {
    margin-bottom: 0;
}

.addToCartModal .modal-upsell .woocommerce ul.products .product {
    margin-bottom: 0;
    padding: 8px;
}
.addToCartModal .modal-upsell .woocommerce ul.products .product .woocommerce-loop-product__title {
    font-size: .875rem;
}

.addToCartModal .modal-dialog h3 {
    margin-top: 0;
}

.single-product button.disabled {
    pointer-events: none;
    cursor: not-allowed!important;
}
