/* search-widget START */
.search-widgets {
    position: relative;
    z-index: 20;
}

.search-widgets__icon {
    cursor: pointer;
}

.search-widgets__form-wrap {
    position: absolute;
    top: 100%;
    right: -20px;
    transition: 0.3s;
}

.search-widgets__form-wrap:not(.active) {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.search-widgets__form {
    display: flex;
    align-items: center;
    width: 300px;
    max-width: 100%;
    padding: 10px;
    background: #fff;
    margin-left: -10px;
    position: relative;
}

.search-widgets__form input {
    width: 100%;
    height: 45px;
    padding: 17px;
    font-family: inherit;
    font-weight: 400;
    font-size: 14px;
    border: 0;
    border-radius: 2px;
    background: var(--color-gray-light);
    color: var(--color-black);
    text-overflow: ellipsis;
    overflow: hidden;
    transition: 0.3s;
}

.search-widgets__clear {
    position: absolute;
    right: 10px;
    top: 50%;
    translate: 0 -50%;
    cursor: pointer;
/*    display: none;*/
}

.ui-autocomplete {
    width: 290px !important;
    max-width: 100%;
}

.ui-autocomplete .search-widget-item .search-widget-item__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px !important;
    cursor: pointer;
}

.search-widget-item__image {
    width: 50px;
}

.search-widget-item__price {
    color: var(--color-red);
    margin-left: auto;
}

.search-widget-item__name {
    flex: 1;
    font-size: 12px;
}

.header__nav .search-widgets {
    display: none;
}

@media screen and (max-width: 1024.9px) {
    .header__nav .search-widgets {
        display: block;
    }
 
    .header__items .search-widgets {
        display: none;
    }

    .search-widgets__form-wrap {
        right: auto;
        left: 0;
    }
}

@media screen and (max-width: 767.9px) {
    .search-widgets__form-wrap {
        position: fixed;
        right: 0;
        left: 0;
        top: 100px;
    }

    .search-widgets__form {
        width: 100%;
        margin: 0;
    }
}
/* search-widget END */