/* =====================================================
   ГЛОБАЛЬНЫЙ ПОИСК T985 — ANAPACOSMETIC.RU
   ===================================================== */


/* =========================
   ОСНОВНОЙ КОНТЕЙНЕР
   ========================= */

.t-search-widget__popup-container {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================
   СТРОКА "5 РЕЗУЛЬТАТОВ..."
   ========================= */

.t-search-widget__query-result {
    max-width: 760px !important;
    margin: 24px auto 18px !important;

    font-size: 15px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;

    color: #5f5a52 !important;
    opacity: 1 !important;

    text-align: left !important;
}


/* =========================
   ОБЩАЯ ВЫДАЧА
   ========================= */

.t-search-widget__resultwrapper {
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 0 0 48px !important;

    text-align: left !important;
}


/* =====================================================
   ЗАГОЛОВОК "ТОВАРЫ"
   ===================================================== */

.t-search-widget__productwrapper {
    position: relative;

    margin: 54px 0 28px 0 !important;

    text-align: left !important;
}

.t-search-widget__productwrapper::before {
    content: "Товары";

    position: absolute;

    left: 0;
    top: -38px;

    display: block;

    font-size: 19px;
    line-height: 1.4;
    font-weight: 600;

    color: #333333;
}


/* =====================================================
   ТОВАРЫ
   ===================================================== */

.t-search-widget__productwrapper > div {
    background: #ffffff !important;

    border: 1px solid #e4dfd3 !important;
    border-radius: 16px !important;

    box-sizing: border-box;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

.t-search-widget__productwrapper img {
    border-radius: 8px !important;
}

.t-search-widget__productwrapper a {
    color: #333333 !important;
    text-decoration: none !important;
}

.t-search-widget__productwrapper a:hover {
    color: #8c846f !important;
}


/* =====================================================
   ЗАГОЛОВОК "СТАТЬИ И СОВЕТЫ"
   ===================================================== */

.t-search-widget__productwrapper + .t-search-widget__result {
    position: relative;

    margin-top: 56px !important;
}

.t-search-widget__productwrapper + .t-search-widget__result::before {
    content: "Статьи и советы";

    position: absolute;

    left: 0;
    top: -42px;

    display: block;

    font-size: 19px;
    line-height: 1.4;
    font-weight: 600;

    color: #333333;

    background: transparent;
    border: 0;
}


/* =====================================================
   СТАТЬИ И СТРАНИЦЫ
   ===================================================== */

.t-search-widget__result {
    display: block !important;

    max-width: 720px !important;

    margin: 0 0 12px 0 !important;
    padding: 18px 20px !important;

    background: #ffffff !important;

    border: 1px solid #eee9df !important;
    border-radius: 14px !important;

    box-sizing: border-box;

    text-align: left !important;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.t-search-widget__result:hover {
    border-color: #d9d2b8 !important;

    box-shadow: 0 5px 16px rgba(51, 51, 51, 0.05);

    transform: translateY(-1px);
}

.t-search-widget__result > a {
    display: block !important;

    color: #333333 !important;
    text-decoration: none !important;
}

.t-search-widget__result_title {
    margin: 0 0 7px !important;

    font-size: 17px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;

    color: #333333 !important;

    text-align: left !important;
}

.t-search-widget__result_body {
    margin: 0 !important;

    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;

    color: #756f65 !important;

    opacity: 1 !important;

    text-align: left !important;
}

.t-search-widget__result:hover .t-search-widget__result_title {
    color: #8c846f !important;
}


/* =====================================================
   КНОПКА "ПОКАЗАТЬ ЕЩЁ"
   ===================================================== */

.t-search-widget__loadmore-btn-wrap {
    display: flex !important;

    justify-content: center !important;
    align-items: center !important;

    width: 100% !important;

    margin: 30px 0 10px !important;
}

.t-search-widget__loadmore-btn {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    min-height: 46px !important;
    height: auto !important;

    padding: 13px 30px !important;

    background: #d9d2b8 !important;
    color: #333333 !important;

    border: 1px solid #cfc6a5 !important;
    border-radius: 999px !important;

    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;

    text-decoration: none !important;

    cursor: pointer !important;

    box-shadow: 0 4px 14px rgba(51, 51, 51, 0.07) !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease !important;
}

.t-search-widget__loadmore-btn:hover {
    background: #cfc6a5 !important;
    color: #333333 !important;

    border-color: #c3b991 !important;

    box-shadow: 0 6px 18px rgba(51, 51, 51, 0.11) !important;

    transform: translateY(-1px);
}

.t-search-widget__loadmore-btn:active {
    transform: translateY(0);

    box-shadow: 0 3px 9px rgba(51, 51, 51, 0.08) !important;
}


/* =====================================================
   НИЧЕГО НЕ НАЙДЕНО
   ===================================================== */

.t-search-widget__notfound {
    width: 100% !important;

    padding: 42px 20px 55px !important;

    text-align: center !important;

    box-sizing: border-box;
}

.t-search-widget__notfound-img {
    margin-bottom: 18px !important;

    opacity: 0.65;
}

.t-search-widget__notfound .t-search-widget__result {
    max-width: 520px !important;

    margin: 0 auto !important;
    padding: 22px 28px !important;

    text-align: center !important;

    border: 1px solid #e4dfd3 !important;
    border-radius: 14px !important;

    background: #ffffff !important;

    color: #5f5a52 !important;

    font-size: 16px !important;
    line-height: 1.5 !important;

    transform: none !important;
}

.t-search-widget__notfound .t-search-widget__result::after {
    content: "Попробуйте изменить запрос или поискать по названию средства, ингредиенту или задаче ухода. Например: маска, тоник, сыворотка, ниацинамид.";

    display: block;

    max-width: 440px;

    margin: 12px auto 0;

    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;

    color: #8c846f;
}

.t-search-widget__notfound .t-search-widget__result:hover {
    border-color: #e4dfd3 !important;

    box-shadow: none !important;

    transform: none !important;
}


/* =====================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ===================================================== */

@media screen and (max-width: 640px) {

    .t-search-widget__query-result {
        width: auto !important;

        margin: 18px 16px 14px !important;

        font-size: 14px !important;

        text-align: left !important;
    }

    .t-search-widget__resultwrapper {
        width: auto !important;

        margin: 0 14px !important;

        padding-bottom: 36px !important;

        text-align: left !important;
    }

    .t-search-widget__productwrapper {
        margin: 44px 0 18px 0 !important;
    }

    .t-search-widget__productwrapper::before {
        top: -34px;

        font-size: 17px;
        line-height: 1.4;
    }

    .t-search-widget__productwrapper + .t-search-widget__result {
        margin-top: 48px !important;

        position: relative;
    }

    .t-search-widget__productwrapper + .t-search-widget__result::before {
        top: -36px;

        font-size: 17px;
        line-height: 1.4;
        font-weight: 600;
    }

    .t-search-widget__result {
        width: 100% !important;

        margin: 0 0 10px 0 !important;

        padding: 15px 16px !important;

        border-radius: 12px !important;

        text-align: left !important;
    }

    .t-search-widget__result_title {
        font-size: 16px !important;

        line-height: 1.4 !important;

        text-align: left !important;
    }

    .t-search-widget__result_body {
        font-size: 14px !important;

        line-height: 1.5 !important;

        text-align: left !important;
    }

    .t-search-widget__loadmore-btn-wrap {
        justify-content: center !important;

        margin: 24px 0 8px !important;
    }

    .t-search-widget__loadmore-btn {
        width: 100% !important;

        max-width: 260px !important;

        min-height: 44px !important;

        padding: 12px 22px !important;

        font-size: 14px !important;
    }

    .t-search-widget__notfound {
        padding: 34px 16px 45px !important;
    }

    .t-search-widget__notfound .t-search-widget__result {
        width: 100% !important;
        max-width: 100% !important;

        padding: 20px 18px !important;

        text-align: center !important;
    }

    .t-search-widget__notfound .t-search-widget__result::after {
        max-width: 300px;

        margin-top: 10px;

        font-size: 13px;
        line-height: 1.5;
    }
}