/* FORMALUX_SEARCH_UI_V1 */

.formalux-search-v1 {
    position: relative;
    z-index: 80;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.formalux-search-v1__inner {
    padding-top: 13px;
    padding-bottom: 13px;
    position: relative;
}

.formalux-search-v1__box {
    position: relative;
}

.formalux-search-v1__input {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: #f7f7f7;
    padding: 0 50px 0 18px;
    font: inherit;
    font-size: 16px;
    color: #191919;
    outline: none;
    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.formalux-search-v1__input:focus {
    background: #fff;
    border-color: #777;
    box-shadow: 0 0 0 2px rgba(0,0,0,.04);
}

.formalux-search-v1__input::placeholder {
    color: #8b8b8b;
}

.formalux-search-v1__icon {
    position: absolute;
    right: 17px;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: .6;
}

.formalux-search-v1__icon::before {
    content: "";
    position: absolute;
    width: 11px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 50%;
    left: 0;
    top: 0;
}

.formalux-search-v1__icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    left: 11px;
    top: 13px;
    border-radius: 2px;
}

.formalux-search-v1__panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 8px);
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0,0,0,.14);
    overflow: hidden;
    max-height: min(650px, 72vh);
}

.formalux-search-v1.is-open .formalux-search-v1__panel {
    display: block;
}

.formalux-search-v1__status {
    padding: 14px 18px;
    font-size: 14px;
    color: #777;
    border-bottom: 1px solid #eee;
}

.formalux-search-v1__results {
    overflow-y: auto;
    max-height: min(590px, 65vh);
}

.formalux-search-v1__item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 108px;
    padding: 10px 18px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background .12s ease;
}

.formalux-search-v1__item:last-child {
    border-bottom: 0;
}

.formalux-search-v1__item:hover {
    background: #f7f7f7;
}

.formalux-search-v1__image {
    width: 92px;
    height: 86px;
    border-radius: 7px;
    overflow: hidden;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
}

.formalux-search-v1__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.formalux-search-v1__content {
    min-width: 0;
}

.formalux-search-v1__type {
    font-size: 12px;
    line-height: 1.2;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 5px;
}

.formalux-search-v1__name {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    color: #171717;
}

.formalux-search-v1__meta {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.35;
    color: #707070;
}

.formalux-search-v1__price {
    white-space: nowrap;
    font-size: 17px;
    font-weight: 600;
    color: #171717;
    padding-left: 12px;
}

.formalux-search-v1__empty {
    padding: 26px 18px;
    text-align: center;
    color: #777;
}

@media (max-width: 767px) {

    .formalux-search-v1__inner {
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .formalux-search-v1__input {
        height: 46px;
        font-size: 15px;
        padding-left: 14px;
    }

    .formalux-search-v1__panel {
        left: 0;
        right: 0;
        border-left: 0;
        border-right: 0;
        border-radius: 0 0 10px 10px;
        max-height: 72vh;
    }

    .formalux-search-v1__item {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 11px;
        min-height: 94px;
        padding: 9px 12px;
    }

    .formalux-search-v1__image {
        width: 74px;
        height: 72px;
    }

    .formalux-search-v1__price {
        grid-column: 2;
        padding-left: 0;
        margin-top: -3px;
        font-size: 15px;
    }

    .formalux-search-v1__name {
        font-size: 15px;
    }

    .formalux-search-v1__meta {
        font-size: 12px;
    }
}
