/* Busca no celular igual ao V2 (public/js/storefront-mobile-search.js):
   faixa branca abaixo do topo, sem mexer em logo, conta, carrinho e menu. */

.store-mobile-search {
    display: none;
}

@media (max-width: 900px) {
    /* O ícone fica sempre no lugar dele: nada de campo flutuando no topo. */
    html body.storefront-body .store-header .store-header__search,
    html body.storefront-body .store-header .store-header__search:focus-within {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        z-index: auto;
        width: 20px;
        height: 40px;
        padding: 0;
        overflow: hidden;
        border-radius: 0;
        background: transparent;
    }

    html body.storefront-body .store-header .store-header__search:focus-within button {
        left: 0;
    }

    html body.storefront-body .store-header.is-search-open .store-header__search button {
        opacity: 0.6;
    }

    body.storefront-body .store-mobile-search {
        display: block;
        position: absolute;
        z-index: 60;
        top: 100%;
        right: 0;
        left: 0;
        border-bottom: 1px solid #e3e9f1;
        background: #fff;
        box-shadow: 0 14px 28px rgba(6, 28, 64, 0.12);
    }

    body.storefront-body .store-mobile-search[hidden] {
        display: none;
    }

    body.storefront-body .store-mobile-search__inner {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
    }

    body.storefront-body .store-mobile-search__inner input {
        flex: 1;
        min-width: 0;
        height: 46px;
        margin: 0;
        padding: 0 14px;
        box-sizing: border-box;
        border: 1px solid #cbd4e1;
        border-radius: 10px;
        background: #fff;
        box-shadow: none;
        color: #0b1a33;
        font: inherit;
        font-size: 16px;
        -webkit-appearance: none;
        appearance: none;
    }

    body.storefront-body .store-mobile-search__inner input::placeholder {
        color: #8a97aa;
        opacity: 1;
    }

    body.storefront-body .store-mobile-search__inner input:focus {
        border-color: #1a5db6;
        outline: none;
        box-shadow: 0 0 0 3px rgba(26, 93, 182, 0.15);
    }

    body.storefront-body .store-mobile-search__go {
        flex: none;
        height: 46px;
        padding: 0 14px;
        border: 0;
        border-radius: 10px;
        background: #061c40;
        color: #fff;
        font: inherit;
        font-size: 13.5px;
        font-weight: 700;
        cursor: pointer;
    }

    body.storefront-body .store-mobile-search__close {
        display: flex;
        flex: none;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 46px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #061c40;
        cursor: pointer;
    }
}
