

.upsell-cross-sell-wrapper {
    max-width: 1100px;
    width: 100%;
    position: relative;

}
/* Tablet and up */
@media (min-width: 768px) {
    .upsell-cross-sell-wrapper {
        max-width: 20rem; /* 320px */
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .upsell-cross-sell-wrapper {
        max-width: 25rem; /* 400px */
    }
}

.upsell-cross-sell-wrapper i {
    height: 50px;
    width: 50px;
    background: rgba(118, 233, 118, 0);
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 1.25 rem;
    transform: translateY(-50%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);

}


.upsell-cross-sell-wrapper i:first-child {
    left: -22px;

}

.upsell-cross-sell-wrapper i:last-child {
    right: -22px;

}

.upsell-cross-sell-wrapper .upsell-cross-sell-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 2.5) - 12px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-inline-start: 0px;
}

@media screen and (max-width: 1400px) {
    .upsell-cross-sell-wrapper .upsell-cross-sell-carousel {
        grid-auto-columns: calc((100% / 2.5) - 15px);

    }
}
@media screen and (max-width: 768px) {
    .upsell-cross-sell-wrapper .upsell-cross-sell-carousel {
        grid-auto-columns: calc((100% / 3) - 9px);

    }
}

@media screen and (max-width: 600px) {
    .upsell-cross-sell-wrapper .upsell-cross-sell-carousel {
        grid-auto-columns: calc((100%/2));

    }
}
.upsell-cross-sell-carousel::-webkit-scrollbar {
    display: none;
}

.upsell-cross-sell-carousel :where(.upsell-cross-sell-card, .upsell-cross-sell-img) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.upsell-cross-sell-wrapper .upsell-cross-sell-carousel p {
    margin: 0 0 0 0;
}

.upsell-cross-sell-carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.upsell-cross-sell-carousel.no-transition {
    scroll-behavior: auto;
}

.upsell-cross-sell-carousel.dragging .upsell-cross-sell-card {
    cursor: grab;
    user-select: none;
}

.upsell-cross-sell-carousel .upsell-cross-sell-card {
    scroll-snap-align: start;
    max-height: 340px;
    list-style: none;
    background: #fff;
    border-radius: 8px;
    display: flex;
    cursor: pointer;
    width: 98%;
    padding-bottom: 15px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.upsell-cross-sell-card .img {
    background: #dfdfdf;
    height: 145px;
    border-radius: 2px;
}

.upsell-cross-sell-card .upsell-cross-sell-img img {
    width: calc(100% - 4px);
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #fff;
}

.upsell-cross-sell-card h2 {
    font-weight: 500;
    font-size: 1.56rem;
    margin: 30px 0 5px;
}

.upsell-cross-sell-card span {
    color: #6a6d78;
    font-size: 1.31rem;

}



.upsell-cross-sell-card button{
    background : #8Fb929;
    margin-top: 2px;
    font-size: medium;
    padding-inline-start: 12px;
    padding-inline-end: 12px;
}

.upsell-cross-sell-loader {
    /*width: 64px;*/
    height: 64px;
    display: block;
    position: absolute;
    background-position: 0  20px;
    background-size: 100% auto;
    background-repeat: no-repeat;
    box-sizing: border-box;
    margin-inline-start: auto;
    margin-inline-end: auto;
    left: 50%;
    color: #0c0c0c;
    transform: translateX(-50%) translateY(80px);
}
.upsell-cross-sell-loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 0%;
    transform: translate(-50% , -95%);
    /*border: 2px solid #1b4a6d;*/
    border-bottom: none;
    /*background: #fff;*/
    width: 15px;
    height: 35px;
}
.upsell-cross-sell-loader::before {
    content: '';
    box-sizing: border-box;
    left: 50%;
    transform: translateX(-125%);
    bottom: -4px;
    border-radius: 50%;
    position: absolute;
    width: 6px;
    height: 6px;
    z-index: 10;
    /*animation: bubbles 6s linear infinite;*/
}
@keyframes bubbles {
    0% {
        box-shadow: 4px -10px rgba(255, 0, 0, 0), 6px 0px rgba(255, 0, 0, 0), 8px -15px rgba(255, 0, 0, 0), 12px 0px rgba(255, 0, 0, 0);
    }
    20% {
        box-shadow: 4px -20px rgba(255, 0, 0, 0), 8px -10px rgba(255, 0, 0, 0), 10px -30px rgba(255, 255, 255, 0.5), 15px -5px rgba(255, 0, 0, 0);
    }
    40% {
        box-shadow: 2px -40px rgba(255, 255, 255, 0.5), 8px -30px rgba(255, 0, 0, 0.4), 8px -60px rgba(255, 255, 255, 0.5), 12px -15px rgba(255, 255, 255, 0.5);
    }
    60% {
        box-shadow: 4px -60px rgba(255, 255, 255, 0.5), 6px -50px rgba(255, 0, 0, 0.4), 10px -90px rgba(255, 255, 255, 0.5), 15px -25px rgba(255, 255, 255, 0.5);
    }
    80% {
        box-shadow: 2px -80px rgba(255, 0, 0, 0.5), 4px -70px rgba(255, 0, 0, 0.4), 8px -120px rgba(255, 0, 0, 0), 12px -35px rgba(255, 0, 0, 0.5);
    }
    100% {
        box-shadow: 4px -100px rgba(255, 0, 0, 0), 8px -90px rgba(255, 0, 0, 0), 10px -120px rgba(255, 0, 0, 0), 15px -45px rgba(255, 0, 0, 0);
    }
}

.upsell-cross-sell-close-button{
    display: block;
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: large;
    background-color: #f44336; /* Red */
    color: white;
    border: none;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 0px 15px;
}

.upsell-cross-sell-message{
    color: green;
    padding-top: 5px;
}

