/* Barra di ricerca minimale con suggerimenti a tendina (computer e telefono) */

/* --- computer: barra tra logo e carrello --- */
@media (min-width: 992px) {
    body #search_block_top {
        width: 61% !important;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    body #search_block_top {
        width: 52% !important;
    }
}
body #search_block_top #searchbox {
    background: #fff !important;
    border: 1px solid #c9c9c2 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    padding: 0 58px 0 0 !important;
    box-sizing: border-box !important;
}
body #search_block_top #search_query_top {
    color: #222 !important;
    font-size: 17px !important;
    background: transparent !important;
    flex: 1 1 auto !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 14px 0 16px !important;
    border: 0 !important;
    box-sizing: border-box !important;
}
body #search_block_top #search_query_top::placeholder {
    color: #8c8c88;
    opacity: 1;
}
body #search_block_top .button-search {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
body #search_block_top .button-search span {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cline x1='15.8' y1='15.8' x2='21' y2='21'/%3E%3C/svg%3E") no-repeat center center / 26px 26px !important;
    width: 100% !important;
    height: 100% !important;
}

/* --- telefono: barra sotto l'intestazione --- */
body .rh-mobsearch {
    padding: 10px 0 6px !important;
}
body .rh-mobsearch form {
    position: relative !important;
    display: block !important;
}
body .rh-mobsearch .rh-mobsearch-input {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 50px !important;
    border: 1px solid #c9c9c2 !important;
    border-radius: 6px !important;
    background: #fff !important;
    padding: 0 56px 0 14px !important;
    font-size: 17px !important;
    color: #222 !important;
    -webkit-appearance: none;
    appearance: none;
}
body .rh-mobsearch .rh-mobsearch-input::placeholder {
    color: #8c8c88;
    opacity: 1;
}
body .rh-mobsearch button {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 54px !important;
    height: 50px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cline x1='15.8' y1='15.8' x2='21' y2='21'/%3E%3C/svg%3E") no-repeat center center / 26px 26px !important;
    color: transparent !important;
    font-size: 0 !important;
}

/* --- tendina dei suggerimenti --- */
.rh-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #d7d7d0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100000;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 70vh;
    text-align: left;
}
.rh-suggest a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    color: #222;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.25;
}
.rh-suggest a:hover,
.rh-suggest a.rh-active {
    background: #f3f3ef;
    text-decoration: none;
}
.rh-suggest img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
}
.rh-suggest .rh-s-out .rh-s-name {
    color: #77776f;
}
.rh-suggest .rh-s-tag {
    margin-left: auto;
    font-size: 11px;
    color: #8c8c88;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1px 7px;
    white-space: nowrap;
}
.rh-suggest a.rh-suggest-all {
    justify-content: center;
    font-weight: 600;
    color: #0a8a22;
    border-top: 1px solid #eee;
}

/* la vecchia tendina del tema non serve piu */
.ac_results {
    display: none !important;
}
