/* Стили для ползунка уведомлений о наличии, похожий на iPhone switch */
/* Добавлено: .global для выравнивания выше секции */
/* Добавлено: Стили для .wishlist-stock для статуса товаров в wishlist */

.stock-notify-wrapper {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px; /* Отступ сверху секции карточек */
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
}

.stock-notify-wrapper.global {
    justify-content: flex-start; /* Выравнивание слева или по центру, если нужно */
}

.stock-notify-label {
    border-radius: 10px;
    margin-right: 10px;
    font-size: 1em;
    background-color: #262626;
    border-top: 1px solid #353535;   
    box-shadow: 0 4px 15px rgb(0 0 0)
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1f1f1f;
    -webkit-transition: .4s;
    transition: .4s;
    border-top: 1px solid #6d6d6d;    
    box-shadow: 0 4px 15px rgb(0 0 0)
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #ffffff;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #ffeb3b3d;
    
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Предполагаемые стили для .wishlist-stock (добавьте в wishlist.css, если они там; здесь для полноты) */
/* Точно такой же стиль, как для out-of-stock, но с жёлтым цветом для on-backorder */

.wishlist-stock {
    padding: 5px 10px; /* Общий стиль таблички: отступы */
    border-radius: 4px; /* Закруглённые углы */
    font-size: 0.8em; /* Размер шрифта */
    text-align: center; /* Центрирование текста */
    font-weight: bold; /* Жирный текст */
}

.wishlist-stock.in-stock {
    background: rgba(40, 167, 69, 0.15); /* Полупрозрачный зелёный фон (как пример для "В наличии") */
    color: var(--in-stock-color); /* Цвет текста, предполагаемая переменная */
    border: 1px solid rgba(40, 167, 69, 0.3); /* Полупрозрачная зелёная граница */
}

.wishlist-stock.out-of-stock {
    background: rgba(229, 72, 72, 0.15);
    color: var(--out-of-stock-color);
    border: 1px solid rgba(229, 72, 72, 0.3);
}

.wishlist-stock.on-backorder {
    background: rgb(249 255 7 / 15%); /* Полупрозрачный жёлтый фон (аналогично out-of-stock) */
    color: #ffff00cc;
    border: 1px solid rgb(254 255 7 / 30%); /* Полупрозрачная жёлтая граница */
}