/* Buscador cabecera: caja blanca, separador + lupa gris dentro del campo (carga aparte de Assetic/main.css) */

.ev-site-search-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Altura 40px alineada con íconos WA / carrito en navbar */
.ev-site-search {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 40px;
    background: #fff;
    border: 1px solid #bdbdbd;
    border-radius: 9px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ev-site-search:focus-within {
    border-color: #a8a8a8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(111, 28, 72, 0.12);
}

.ev-site-search .ev-site-search__input {
    display: block;
    width: 100% !important;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0 50px 0 14px;
    box-sizing: border-box;
    border: none !important;
    border-radius: 0;
    background: #fff;
    box-shadow: none !important;
    float: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 38px;
    color: #555;
}

.ev-site-search .ev-site-search__input:focus {
    outline: none;
    box-shadow: none !important;
    border: none !important;
}

.ev-site-search .ev-site-search__input::placeholder {
    color: #888;
}

.ev-site-search .ev-site-search__input::-webkit-input-placeholder {
    color: #888;
}

.ev-site-search .ev-site-search__input::-moz-placeholder {
    color: #888;
    opacity: 1;
}

.ev-site-search .ev-site-search__input:-ms-input-placeholder {
    color: #888;
}

.ev-site-search .ev-site-search__divider {
    position: absolute;
    z-index: 2;
    right: 40px;
    top: 50%;
    margin-top: -10px;
    width: 1px;
    height: 20px;
    background: #d0d0d0;
    pointer-events: none;
}

.ev-site-search button.ev-site-search__submit {
    position: absolute;
    z-index: 3;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 9px 9px 0;
    background: transparent !important;
    color: #9a9a9a !important;
    box-shadow: none !important;
    cursor: pointer;
    line-height: 1;
    float: none;
    font-weight: normal;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.ev-site-search button.ev-site-search__submit:hover,
.ev-site-search button.ev-site-search__submit:focus {
    color: #666 !important;
    outline: none;
    background: transparent !important;
}

.ev-site-search button.ev-site-search__submit:focus-visible {
    outline: 2px solid rgba(111, 28, 72, 0.45);
    outline-offset: -2px;
}

.ev-site-search button.ev-site-search__submit .glyphicon {
    top: 0;
    line-height: 1;
    font-size: 16px;
    color: #9a9a9a;
}

.ev-site-search button.ev-site-search__submit:hover .glyphicon,
.ev-site-search button.ev-site-search__submit:focus .glyphicon {
    color: #666;
}

/* Loader mientras llegan sugerencias (clase .ev-site-search--loading vía JS) */
.ev-site-search.ev-site-search--loading::after {
    content: "";
    position: absolute;
    z-index: 4;
    right: 48px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    box-sizing: border-box;
    border: 2px solid rgba(111, 28, 72, 0.22);
    border-top-color: #6f1c48;
    border-radius: 50%;
    animation: ev-site-search-spin 0.65s linear infinite;
    pointer-events: none;
}

@keyframes ev-site-search-spin {
    to {
        transform: rotate(360deg);
    }
}
