/* =========================================================
   LOGOBAZ LIVE SEARCH
========================================================= */

.lb-live-search-wrap {
    position: relative;
}


/* Results */
.lb-live-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 100%;
    min-width: 320px;
    max-height: 420px;

    background: #fff;

    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 16px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .12);

    overflow-x: hidden;
    overflow-y: auto;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(-5px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;

    z-index: 999999;
}


.lb-live-search-results.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0);
}


/* =========================================================
   ITEM
========================================================= */

.lb-live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;

    padding: 10px 12px;

    text-decoration: none !important;

    color: #222;

    border-bottom:
        1px solid #f1f1f1;

    transition:
        background .18s ease;
}


.lb-live-search-item:last-child {
    border-bottom: 0;
}


.lb-live-search-item:hover {
    background: #f7f9f9;
}


/* =========================================================
   IMAGE
========================================================= */

.lb-live-search-image {
    width: 58px;
    height: 58px;

    min-width: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #f6f6f6;

    border-radius: 12px;
}


.lb-live-search-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


/* =========================================================
   TEXT
========================================================= */

.lb-live-search-info {
    flex: 1;

    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 5px;

    text-align: right;
}


.lb-live-search-info strong {
    font-size: 13px;
    font-weight: 700;

    color: #222;

    line-height: 1.8;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.lb-live-search-info small {
    font-size: 11px;
    font-weight: 500;

    color: #666;
}


/* =========================================================
   LOADING
========================================================= */

.lb-live-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 70px;

    padding: 15px;

    color: #777;

    font-size: 12px;
}


.lb-live-search-loading > span:first-child {
    width: 17px;
    height: 17px;

    border-radius: 50%;

    border:
        2px solid #ddd;

    border-top-color:
        #005b56;

    animation:
        lbSearchSpin .7s linear infinite;
}


@keyframes lbSearchSpin {

    to {
        transform:
            rotate(360deg);
    }
}


/* =========================================================
   EMPTY
========================================================= */

.lb-live-search-empty {
    padding: 22px 15px;

    text-align: center;

    font-size: 12px;

    color: #777;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .lb-mobile-search
    .lb-live-search-wrap {
        position: relative;
    }


    .lb-mobile-search
    .lb-live-search-results {
        min-width: 0;

        width: 100%;

        max-height: 360px;

        border-radius: 14px;
    }


    .lb-live-search-image {
        width: 52px;
        height: 52px;

        min-width: 52px;
    }


    .lb-live-search-info strong {
        font-size: 12px;
    }

}
