.form-control.qty-input,
.form-control.product-count-input {
    width: 3rem;
    height: 3rem;
    border-radius: 50% !important;
    padding: 0;
    text-align: center !important;
    overflow: hidden !important;
}
.form-control.qty-input:active {
    border-color: transparent;
}
.btn.option-btn {
    border-radius: 0.75rem;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    border: 1px solid #e8e8e8;
}
.count-text {
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
}
.fast-bay a {
    text-decoration: none;
}
.fast-bay i {
    margin-right: 1rem;
}
#fastBay {
    max-width: 600px;
}
#description {
    background: #f2f2f2;
    font-size: 1.25rem;
}
#description .wrapper {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.sizes-modal a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}
.catalog-sizes-table {
    text-align: center;
    min-width: 300px;
    font-size: 0.875rem;
}
.catalog-sizes-table tr:nth-child(odd) {
    background: #f1f1f1;
}
.catalog-sizes-table  tr td {
    padding: 0.5rem;
    border: 1px solid white;
}
.bi.bi-cart {
    padding-right: 1rem;    
}
.modal-picker {
    font-weight: 600;
    color: inherit;
}
#deliveryModal, #paymentModal {
    max-width: 600px;
}
#needHelp {
    padding: 10rem 0 5rem 0;
}
#needHelp .wrapper-background {
    background-color: #232526;
    fill: #232526;
    padding: 3rem;
    border-radius: 4rem;
}
#needHelp .wrapper-background p {
    margin-bottom: 0;
}
#needHelp .wrapper-background a {
    color: inherit;
}
#needHelp .wrapper-background  .phone {
    font-weight: 600;
}
#needHelp .wrapper-background img {
    position: absolute;
    bottom: -55px;
}
.splide__slide img {
    max-width: 100%;
    max-height: 100%;
}
#ms3-gallery-thumbs-list {
  justify-content: center !important;
}
/* Делаем слайд и ссылку флекс-контейнерами с выравниванием по центру */
.splide__slide,
.splide__slide a {
    display: flex !important;
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center;     /* Центрирование по вертикали */
    width: 100%;
    height: 100%;
}

/* Ограничиваем картинку, чтобы она не вылезала за пределы слайдера */
.splide__slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Сохраняет пропорции без искажений */
}

@media (max-width: 1200px) {
    #description .wrapper {
        max-width: 900px;
    }
}
@media (max-width: 991px) {
    #description .wrapper {
        max-width: 100%;
    }
    #needHelp {
        text-align: center;
    }
    #needHelp .wrapper-background img {
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        bottom: 23px;
    }
    #needHelp .wrapper-background {
        border-radius: 6rem;
    }
    #description {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    
    #fastBay, #deliveryModal, #paymentModal {
        max-width: 90%;
    }
}