/* ТОЛЬКО ИКОНКА ЛУПЫ БЕЗ ФОНА */
.uc-modern-search .t985__search-widget-icon {
    background: transparent !important;
    box-shadow: none !important;
}

/* Меняем SVG иконку на белую */
.uc-modern-search .t985__search-widget-icon svg {
    filter: invert(1) brightness(2) !important;
    opacity: 0.8 !important;
    transition: opacity 0.3s ease !important;
}

/* Ховер эффект */
.uc-modern-search .t985__search-widget-button:hover .t985__search-widget-icon svg {
    opacity: 1 !important;
    filter: invert(67%) sepia(91%) saturate(415%) hue-rotate(142deg) brightness(89%) contrast(96%) !important;
}

/* Смещение поиска вниз */

@media screen and (max-width: 960px) {
    .uc-modern-search .t985__widgetheader {
        top: auto !important;
        bottom: 100px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        position: absolute !important;
    }
}

/* ===== ПРОЗРАЧНОЕ ПОЛЕ С ВИДИМЫМ ТЕКСТОМ ===== */

/* Полностью прозрачный оверлей */
.uc-modern-search .t985__overlay {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Контейнер заголовка прозрачный */
.uc-modern-search .t985__widgetheader {
    background: transparent !important;
}

/* ПОЛЕ ВВОДА - ПРОЗРАЧНОЕ С ТОНКОЙ РАМКОЙ */
.uc-modern-search .t985__blockinput {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 24px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

/* ТЕКСТ В ПОЛЕ ВВОДА - БЕЛЫЙ И ВИДИМЫЙ */
.uc-modern-search .t985__input {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    background: transparent !important;
}

/* Плейсхолдер - полупрозрачный белый */
.uc-modern-search .t985__input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Иконка внутри поля - БЕЛАЯ */
.uc-modern-search .t985__search-icon circle,
.uc-modern-search .t985__search-icon line {
    stroke: #ffffff !important;
    stroke-width: 1.5 !important;
}

/* Кнопка закрытия - БЕЛАЯ */
.uc-modern-search .t985__close-icon svg path {
    stroke: #ffffff !important;
}

/* Кнопка очистки - БЕЛАЯ */
.uc-modern-search .t985__clear-icon svg path {
    stroke: #ffffff !important;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media screen and (max-width: 960px) {
    /* Позиционирование внизу */
    .uc-modern-search .t985__widgetheader {
        top: auto !important;
        bottom: 100px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        position: absolute !important;
        width: 90% !important;
        max-width: 400px !important;
    }
    
    /* Поле ввода на всю ширину */
    .uc-modern-search .t985__blockinput {
        width: 100% !important;
    }
    
    /* Кнопка поиска внизу */
    .uc-modern-search .t985__search-widget-button {
        position: fixed !important;
        bottom: 30px !important;
        right: 20px !important;
        z-index: 9999 !important;
    }
}

@media screen and (max-width: 480px) {
    .uc-modern-search .t985__widgetheader {
        bottom: 80px !important;
    }
    
    .uc-modern-search .t985__search-widget-button {
        bottom: 20px !important;
        right: 15px !important;
    }
}

/* ===== УБИРАЕМ КРЕСТИК В МОБИЛЬНОЙ ВЕРСИИ ===== */

@media screen and (max-width: 960px) {
    /* Скрываем крестик закрытия в мобильной версии */
    .uc-modern-search .t985__close-icon {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Увеличиваем место для других элементов */
    .uc-modern-search .t985__input {
        padding-right: 20px !important;
    }
    
    /* Смещаем иконку очистки ближе к краю */
    .uc-modern-search .t985__clear-icon {
        right: 20px !important;
    }
    
    /* Смещаем иконку поиска */
    .uc-modern-search .t985__search-icon {
        right: 20px !important;
    }
}

/* ===== ДОПОЛНИТЕЛЬНО: УПРОЩАЕМ УПРАВЛЕНИЕ НА МОБИЛЬНЫХ ===== */

/* На мобильных можно закрыть поиск тапом вне поля или кнопкой Назад */
@media screen and (max-width: 960px) {
    /* Делаем оверлей кликабельным для закрытия */
    .uc-modern-search .t985__overlay {
        pointer-events: auto !important;
    }
    
    /* Контейнер с полем - чтобы не закрывалось при клике на поле */
    .uc-modern-search .t985__widgetheader {
        pointer-events: none !important;
    }
    
    /* Само поле и его содержимое - кликабельное */
    .uc-modern-search .t985__blockinput,
    .uc-modern-search .t985__input,
    .uc-modern-search .t985__search-icon,
    .uc-modern-search .t985__clear-icon {
        pointer-events: auto !important;
    }
}