/* Кастомизация попапа "Подробнее" в Tilda */
/* Стилизация фона (оверлея) */
.t-popup__overlay {
    background-color: #171717 !important; /* Тёмный фон подложки */
    backdrop-filter: blur(5px); /* Лёгкое размытие для эффекта стекла (опционально) */
}

/* Стилизация самого окна попапа */
.t-popup__container {
    background-color: #171717 !important; /* Тёмный фон окна */
    border-radius: 15px !important; /* Скругление углов */
    padding: 40px !important;
    max-width: 900px !important; /* Максимальная ширина */
    color: #fff; /* Базовый цвет текста внутри попапа */
    font-family: 'Tilda Sans', sans-serif !important; /* Шрифт */
}

/* Стилизация кнопки закрытия (крестик) */
.t-popup__close-wrapper {
    top: 20px !important;
    right: 20px !important;
}
.t-popup__close-icon {
    color: #ffffff !important; /* Белый крестик */
    font-size: 28px !important;
    transition: transform 0.3s ease; /* Плавный эффект при наведении */
}
.t-popup__close-icon:hover {
    color: #cccccc !important; /* Слегка приглушаем при наведении */
    transform: rotate(90deg); /* Крестик поворачивается */
}

/* Стилизация заголовка в попапе */
.t-popup__title {
    font-family: 'Tilda Sans', sans-serif !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-align: left !important;
    margin-bottom: 20px !important;
}

/* Стилизация основного текстового контента */
.t-popup__content,
.t-popup__descr {
    font-family: 'Tilda Sans', sans-serif !important;
    color: #f5f5f5 !important; /* Светло-серый для лучшей читаемости на тёмном */
    line-height: 1.6 !important;
}

/* Стилизация КНОПОК внутри попапа (глобально) */
.t-popup__content .t-btn {
    border-radius: 8px !important; /* Скругление кнопки */
    font-family: 'Tilda Sans', sans-serif !important;
    font-weight: 500 !important;
    padding: 16px 35px !important;
    transition: all 0.3s ease !important; /* Плавные изменения */
}

/* СТИЛИ ДЛЯ КОНКРЕТНОЙ КНОПКИ "В КОРЗИНУ" */
/* Меняем текст и стиль кнопки корзины */
.t-popup__content .t-store__prod__btn:after {
    content: "ОТПРАВИТЬ ЗАПРОС" !important; /* Подменяем текст */
    text-transform: uppercase !important;
}
.t-popup__content .t-store__prod__btn {
    background-color: #FFFFFF !important; /* Цвет фона кнопки */
    color: #171717 !important; /* Цвет текста на кнопке */
    border: 2px solid #FFFFFF !important; /* Обводка */
    text-transform: uppercase !important; /* Делаем текст заглавными */
}
.t-popup__content .t-store__prod__btn:hover {
    background-color: transparent !important; /* При наведении фон прозрачный */
    color: #FFFFFF !important; /* Цвет текста становится белым */
}

/* АДАПТИВ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */
@media (max-width: 1024px) {
    .t-popup__container {
        width: 90% !important;
        margin: 20px auto !important;
        padding: 30px 25px !important;
    }
}

@media (max-width: 640px) {
    .t-popup__container {
        width: 95% !important;
        padding: 25px 20px !important;
        border-radius: 10px !important;
    }
    .t-popup__close-wrapper {
        top: 15px !important;
        right: 15px !important;
    }
    .t-popup__close-icon {
        font-size: 24px !important;
    }
    /* Уменьшаем отступы у кнопки на маленьких экранах */
    .t-popup__content .t-btn {
        padding: 14px 25px !important;
        font-size: 14px !important;
    }
}