/*
|--------------------------------------------------------------------------
| STRMIR SEARCH 4.1
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| CTA "Показать все результаты"
|--------------------------------------------------------------------------
*/

.sm-search-all-results {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    box-sizing: border-box !important;
    width: calc(100% - 20px) !important;

    margin: 10px !important;
    padding: 13px 15px !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: #ff6d00 !important;
    color: #ffffff !important;

    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(255, 109, 0, 0.18) !important;

    transition:
        transform .15s ease,
        background .15s ease,
        box-shadow .15s ease !important;
}


.sm-search-all-results:hover,
.sm-search-all-results:focus {
    background: #f26000 !important;
    color: #ffffff !important;
    text-decoration: none !important;

    box-shadow: 0 6px 18px rgba(255, 109, 0, 0.28) !important;

    transform: translateY(-1px);
}


.sm-search-all-results__icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;

    border-radius: 50% !important;

    background: rgba(255, 255, 255, .17) !important;

    color: #ffffff !important;
    font-size: 22px !important;
    line-height: 1 !important;
}


.sm-search-all-results__content {
    display: flex !important;
    flex-direction: column !important;

    min-width: 0 !important;

    color: #ffffff !important;
}


.sm-search-all-results__content strong {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}


.sm-search-all-results__content small {
    display: block !important;

    margin-top: 3px !important;

    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;

    color: rgba(255, 255, 255, .83) !important;

    font-size: 11px !important;
    line-height: 1.25 !important;
}


.sm-search-all-results__arrow {
    margin-left: auto !important;

    color: #ffffff !important;

    font-size: 21px !important;
    line-height: 1 !important;
}


/*
|--------------------------------------------------------------------------
| Постоянная кнопка под строкой поиска на главной
|--------------------------------------------------------------------------
*/

.sm-search-full-link-host {
    position: relative !important;
    overflow: visible !important;
}


.sm-search-full-link {
    position: absolute !important;

    top: calc(100% + 7px) !important;
    right: 0 !important;

    z-index: 80 !important;

    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;

    padding: 7px 11px !important;

    border: 1px solid rgba(255, 109, 0, .38) !important;
    border-radius: 18px !important;

    background: rgba(255, 255, 255, .97) !important;

    color: #e86100 !important;

    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    text-decoration: none !important;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, .09) !important;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease !important;
}


.sm-search-full-link:hover,
.sm-search-full-link:focus {
    color: #e86100 !important;
    text-decoration: none !important;

    border-color: #ff6d00 !important;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, .13) !important;

    transform: translateY(-1px);
}


.sm-search-full-link b {
    color: #ff6d00 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    /*
    | На мобильном отдельная плавающая кнопка под строкой мешает.
    | В dropdown остаётся крупный CTA.
    */

    .sm-search-full-link {
        display: none !important;
    }


    .sm-search-all-results {
        width: calc(100% - 12px) !important;

        margin: 6px !important;
        padding: 12px !important;
    }


    .sm-search-all-results__content strong {
        font-size: 13px !important;
    }
}