.upsells-modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.75);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 40000;
    font-family: quasimoda, sans-serif;
}
.upsells-modal .upsells-modal--inner {
    background: #fff;
    margin: 0 auto;
    width: 1004px;
    margin-top: 120px;
    max-width: calc(100% - 50px);
}
.upsells-modal .upsells-product-actions-inner{
    background-color: var(--grey-light);
    border-radius: 6px;
}
.upsells-modal .upsells-modal-wrap{
    max-height: 703px;
    overflow-y: auto;
}

@media(max-height: 750px) {
    .upsells-modal .upsells-modal-wrap {
        max-height: calc(100% - 50px);
    }
}

.upsells-modal .close {
    opacity: 1;
}
.upsells--modal-heading .heading{
    font-weight: 600;
}
.upsells-product-info .product-title{
    border-bottom:1px solid var(--grey-medium);
    margin-bottom: 0.625rem;
    padding-bottom: 0.625rem;
    padding-right: 50px;
}
.upsells-product-info p.sku{
    color:var(--grey-medium);
}

.upsells-modal-content {
    padding: 24px;
}

.upsells-product-info .product-content {
    font-family: quasimoda, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--black);
    font-weight: 400;
    max-height: 330px;
    overflow-y: scroll;
}

.upsells-product-info .product-content {
    color: #575757;
    padding-bottom: 75px;
    padding-right: 10px;
}

.upsells-product-info {
    position: relative;
}

.upsells-product-info::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 60px;
    width: calc(100% - 10px);
    background: rgb(255,255,255);
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}

.upsells-modal .price p {
    line-height: 1;
}
.upsells-modal .price p:nth-of-type(1) bdi {
    margin-bottom: 5px;
    display: block;
}

::-webkit-scrollbar {
    width: 10px;
    border-radius: 15px;
}
::-webkit-scrollbar-track {
    background: #FFFFFF;
    border-radius: 15px;
}
::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 15px;
}
::-webkit-scrollbar-thumb:hover {
    background: #333333;
}
.upsells-add-to-cart-message {
    background-color: #E3ECCF;
    color: #1a1a1a;
    width: calc(100% - 50px);
    margin-left: 25px;
    margin-bottom: 0;
    padding: 15px;
    line-height: 1;
    border-radius: 5px;
    font-size: 17px;
    margin-top: 20px;
    padding-left: 50px;
}

.upsells-add-to-cart-message::before {
    content: '';
    top: 11px;
    left: 38px;
    display: block;
    height: 24px;
    width: 24px;
    position: absolute;
    margin-right: 10px;
    background-image: url('../asset/tick.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.upsells-product-actions-inner .quantity-cart-flex {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: end;
}
.upsells-product-actions-inner .quantity-cart-flex button {
    margin-left: 16px !important;
    width: 154px;
}

@media(max-width: 767.98px) {
    .upsells-product-info .product-content {
        height: 200px;
        margin-bottom: 20px;
    }
    .upsells-modal-flex-settings {
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
        flex-direction: column-reverse;
    }
    .upsells-modal-flex-settings .image-square {
        display: none;
    }

    .upsells-modal .upsells-modal-wrap{
        height: 620px;
    }

    .upsells-product-actions-inner .quantity-cart-flex button {
        width: 125px;
        margin-left: 10px !important;
    }
}

@media(max-width: 575px) {
    .upsells-modal .upsells-modal-wrap{
        height: 745px;
    }

    .upsells-product-actions-inner .quantity-cart-flex {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .upsells-product-actions-inner .quantity-cart-flex button {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 15px !important;
    }

    .upsells-modal .upsells-product-actions-inner .quantity p {
        margin-right: 0 !important;
    }

    .upsells-add-to-cart-message {
        font-size: 15px;
        padding-left: 46px;
    }
    .upsells-add-to-cart-message::before {
        height: 20px;
        width: 20px;
    }
}


.upsells-product-info .product-content h1,
.upsells-product-info .product-content h2 {
    font-size: 17px;
    line-height: 25px;
    color: #000000;
    margin-bottom: 15px;
}

.upsells-modal .view-product-page{
    font-weight: 400;
    font-size:14px;
    color:var(--grey-dark);
}

.upsells-modal .price p{
    width: 100%;
    margin-bottom: 0;
}
.upsells-modal .price p:first-of-type .woocommerce-Price-amount.amount {
    font-weight: 500;
    font-size:24px;
}
.upsells-modal .price p:nth-of-type(2){
    font-weight: 400;
    font-size:14px;
    color:var(--grey-dark);
}
.upsells-modal .upsells-product-actions-inner .quantity input.qty {
    width: 74px;
    padding-left: 12px;
    padding-right: 0px;
    padding-top: 10px;
    padding-bottom: 6px;
    margin:0;
    text-align: center;
}
.upsells-modal .upsells-product-actions-inner .quantity p{
    margin-bottom: 0;
    margin-right: 0.625rem;
}
.upsells-modal .upsells-add-to-cart-button{
    margin:0;
    padding: 12px 10px;
}
.upsells-modal .upsells-add-to-cart-button:after{
    display: none;
}
.upsells--modal-heading.row p.heading {
    margin-bottom: 0px;
}

.upsells--modal-heading.row {
    border-bottom: 1px solid #ececec;
}

.upsells-modal .image-square > img {
    border-radius: 6px;
}
@media(max-width: 767.98px) {
    .upsells-modal .upsells-modal-content .image-squarem{
        text-align: center;
    }
    .upsells-modal .upsells-modal-content .image-squarem img{
        max-width: 300px;
    }
    .upsells-modal .upsells-add-to-cart-button{
        width: 100%;
    }
}