.custom-features-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background: #fcfcfc;
    padding: 15px 5px;
    width: 100%;
    height: 100%; /* Оставляем только это */
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-align: center;
    box-sizing: border-box;
}

.single-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
}

.single-feature i {
    font-size: 24px;
    margin-bottom: 6px;
    color: #222;
    display: inline-block; /* Возвращаем видимость иконкам */
}

.single-feature span {
    font-size: 11px;
    font-weight: bold;
    color: #000;
    line-height: 1; /* Уменьшили интервал (было 1.2, стало 1). Можно сделать 0.9, если нужно еще плотнее */
    padding: 0 2px; /* Добавили небольшие отступы по краям, чтобы текст не касался рамок плашки */
    text-align: center;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767px) {
    .custom-features-wrapper {
        flex-direction: row;
        min-height: auto; /* Отключаем высоту на телефоне */
        height: auto;
        flex-wrap: wrap;
        justify-content: space-around;
        padding: 20px 10px 5px;
    }
    .single-feature {
        width: 30%;
        margin-bottom: 15px;
    }
}

/* --- Горизонтальный список преимуществ под ценой --- */
.custom-product-features-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Выравнивание по центру */
    gap: 20px; /* Расстояние между галочками */
    margin-bottom: 25px;
    margin-top: 5px;
}

.custom-check-feature {
    display: flex;
    align-items: center;
    color: #111;
    font-size: 15px;
}

.custom-check-feature i {
    color: #f39c12; /* Фирменный оранжевый цвет галочки */
    margin-right: 8px;
    font-size: 18px;
}

@media (max-width: 767px) {
    .custom-product-features-row {
        gap: 15px;
        flex-direction: column; /* На мобильных выстраиваем в столбик для читаемости */
        align-items: center;
    }
}

/* --- Блок с зелеными преимуществами (Eco, Delivery, Payments) --- */
.custom-green-features-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Равномерно распределяет элементы по ширине */
    align-items: center;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    padding: 15px 0;
    margin-bottom: 25px;
}

.single-green-feature {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #111;
    font-weight: bold;
}

.single-green-feature i {
    color: #1a7f37; /* Темно-зеленый цвет */
    margin-right: 8px;
    font-size: 18px;
}

@media (max-width: 767px) {
    .custom-green-features-row {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding: 15px 5px;
    }
}

/* --- Баннер Wholesale (Дизайн с оранжевой рамкой) --- */
.wholesale-banner {
    margin-bottom: 20px;
    margin-top: 10px;
}

/* Настройки ссылки */
.wholesale-banner a {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

/* Внутренний блок баннера */
.wholesale-banner-inner {
    background-color: #fff;
    border: 1.5px solid #f39c12; /* Оранжевая рамка */
    border-radius: 6px;
    padding: 15px 20px;
    text-align: left; /* Выравнивание по левому краю */
    transition: all 0.3s ease; /* Плавная анимация */
}

/* Эффект при наведении (легкое свечение) */
.wholesale-banner a:hover .wholesale-banner-inner {
    background-color: #fdfaf6;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.1);
}

/* Заголовок (оранжевый, заглавными буквами) */
.wholesale-banner h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: bold;
    color: #f39c12;
    text-transform: uppercase; /* Делает все буквы заглавными */
    display: flex;
    align-items: center;
}

/* Иконка коробок */
.wholesale-banner h3 i {
    margin-right: 8px;
    font-size: 16px;
}

/* Текст описания */
.wholesale-banner p {
    margin-bottom: 0;
    font-size: 14px;
    color: #111;
    line-height: 1.4;
}

/* Скрытие на телефонах */
@media (max-width: 767px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* --- Блок описания состояния устройства (Device Condition) --- */
.condition-guide-box {
    border: 1px solid #eaeaea; /* Тонкая серая рамка */
    border-radius: 8px; /* Закругленные углы */
    padding: 20px 25px; /* Внутренние отступы */
    background-color: #fdfdfd; /* Очень легкий серый/белый фон */
    margin-bottom: 25px;
    margin-top: 15px;
}

/* Заголовок блока */
.condition-title {
    font-size: 22px;
    font-weight: 400; /* Делает текст заголовка тоньше, как на дизайне */
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* Зеленая иконка информации */
.condition-title i {
    color: #278437; /* Фирменный зеленый цвет */
    margin-right: 10px;
    font-size: 22px;
}

/* Тонкая разделительная линия */
.condition-divider {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin-bottom: 20px;
}

/* Названия грейдов (A+, A, B, C) */
.condition-guide-box h3 {
    font-size: 15px;
    font-weight: bold;
    color: #111;
    margin-bottom: 5px;
    margin-top: 0;
}

/* Текст описания грейдов */
.condition-guide-box p {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 18px;
}

/* Убираем лишний отступ у самого последнего абзаца */
.condition-guide-box p:last-child {
    margin-bottom: 0;
}

/* --- Дизайн блока Add-ons для плагина Advanced Product Fields --- */

/* 1. Белая карточка поверх синего фона */
.wapf-wrapper {
    background-color: #fff !important; 
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

/* 2. Заголовок "Choose your add-ons" */
.wapf-field-label {
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #333 !important;
    display: block !important;
    margin-bottom: 15px !important;
    padding-bottom: 0 !important;
    border: none !important;
}

/* 3. Выстраиваем чекбоксы в столбик */
.wapf-checkboxes {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important; /* Отступ между строками */
}

/* 4. Выравнивание строки: Квадратик -> Текст -> Цена */
.wapf-checkable {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
    color: #111 !important;
    cursor: pointer !important;
}

/* 5. Квадратик чекбокса строго слева */
.wapf-checkable input[type="checkbox"] {
    margin-right: 10px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important; /* Не дает квадратику сжиматься */
}

/* 6. Настройка цены (Делаем зеленой и жирной) */
.wapf-pricing-hint {
    color: #1a7f37 !important;
    font-weight: bold !important;
    margin-left: 6px !important;
    font-size: 14px !important;
}