.product-alternatives-modal .modal-dialog {
    width: 94%;
    max-width: 1100px;
    margin: 7vh auto 30px;
}

.product-alternatives-modal .modal-content {
    background: #f6f6f6;
    overflow: hidden;
}

.product-alternatives-modal .modal-header {
    padding: 15px 45px 15px 20px;
    background: #fff;
}

.product-alternatives-modal .modal-title {
    font-size: 19px;
    line-height: 1.4;
    font-weight: 600;
}

.product-alternatives-modal .close {
    margin-top: -4px;
    font-size: 30px;
}

.product-alternatives-modal .modal-body {
    padding: 0;
}

.product-alternatives-viewport {
    position: relative;
}

.product-alternatives-list {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #70d863 #f2f2f2;
}

.product-alternatives-list::-webkit-scrollbar {
    height: 7px;
}

.product-alternatives-list::-webkit-scrollbar-track {
    background: #f2f2f2;
}

.product-alternatives-list::-webkit-scrollbar-thumb {
    background: #70d863;
    border-radius: 7px;
}

.product-alternative-item {
    flex: 0 0 25% !important;
    width: 25% !important;
    max-width: 25% !important;
    min-width: 0;
    padding: 10px;
    box-sizing: border-box;
}

.product-alternative-item .product-thumb {
    height: 100%;
    margin-bottom: 0;
}

.product-alternative-item .product-thumb .image {
    display: flex;
    height: 210px;
    align-items: center;
    justify-content: center;
}

.product-alternative-item .product-thumb .image img {
    max-height: 210px;
    margin: 0 auto;
}

.product-alternative-item .product-thumb .caption {
    min-height: 150px;
}

.product-alternative-item .product-thumb .caption h4 {
    height: 50px;
    margin-bottom: 8px;
    line-height: 18px;
}

.product-alternative-item .product-thumb .caption .price {
    min-height: 48px;
}

.product-alternatives-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #000;
    background: #70d863;
    border: 0;
    border-radius: 50%;
    box-shadow: 7px 7px 8px rgba(68, 214, 44, 0.25);
    font-size: 27px;
    line-height: 38px;
    transform: translateY(-50%);
}

.product-alternatives-nav:hover,
.product-alternatives-nav:focus {
    color: #fff;
    background: #44d62c;
    border-color: #44d62c;
    outline: 0;
}

.product-alternatives-prev {
    left: 8px;
}

.product-alternatives-next {
    right: 8px;
}

@media (max-width: 767px) {
    .product-alternatives-modal .modal-dialog {
        width: auto;
        margin: 15px 10px;
    }

    .product-alternatives-modal .modal-header {
        padding: 18px 45px 14px 16px;
    }

    .product-alternatives-modal .modal-title {
        font-size: 16px;
    }

    .product-alternatives-list {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .product-alternative-item {
        flex: 0 0 82% !important;
        width: 82% !important;
        max-width: 82% !important;
        min-width: 0;
        padding: 8px;
        scroll-snap-align: start;
    }

    .product-alternative-item .product-thumb .image,
    .product-alternative-item .product-thumb .image img {
        height: 160px;
        max-height: 160px;
    }

    .product-alternative-item .product-thumb .caption {
        min-height: 135px;
    }

    .product-alternative-item .product-thumb .caption h4 {
        height: 44px;
        max-height: 44px;
        font-size: 13px;
        line-height: 17px;
    }

    .product-alternatives-nav {
        display: none;
    }
}
