/*
|--------------------------------------------------------------------------
| FTR Header Product Search
|--------------------------------------------------------------------------
*/

.ftr-header-search{
    position:relative;

    width:clamp(230px,24vw,390px);

    flex:0 1 390px;
}

.ftr-header-search__box{
    position:relative;

    display:flex;
    align-items:center;

    width:100%;
    height:42px;

    border:1px solid rgba(255,255,255,.09);
    border-radius:10px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.018)
        );

    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.ftr-header-search.is-open
.ftr-header-search__box,
.ftr-header-search__box:focus-within{
    border-color:rgba(171,74,255,.43);

    background:rgba(255,255,255,.045);

    box-shadow:
        0
        0
        0
        3px
        rgba(150,44,255,.055);
}

.ftr-header-search__icon{
    display:grid;

    width:38px;
    height:100%;

    flex:0 0 38px;

    place-items:center;

    color:#877c8f;

    font-size:15px;
}

.ftr-header-search__input{
    width:100%;
    height:100%;

    min-width:0;

    padding:0 38px 0 0;

    border:0 !important;
    outline:0 !important;

    background:transparent !important;

    color:#fff !important;

    font-family:inherit;
    font-size:11px;

    box-shadow:none !important;
}

.ftr-header-search__input::placeholder{
    color:#776d7f;
}

.ftr-header-search__loading{
    position:absolute;

    right:12px;
    top:50%;

    width:13px;
    height:13px;

    margin-top:-6.5px;

    border:2px solid rgba(255,255,255,.12);
    border-top-color:#ad55ff;
    border-radius:50%;

    animation:
        ftrHeaderSearchSpin
        .65s
        linear
        infinite;
}

@keyframes ftrHeaderSearchSpin{
    to{
        transform:rotate(360deg);
    }
}


/*
|--------------------------------------------------------------------------
| Dropdown
|--------------------------------------------------------------------------
*/

.ftr-header-search__dropdown{
    position:absolute;

    left:0;
    right:0;
    top:calc(100% + 9px);

    z-index:100001;

    overflow:hidden;

    padding:7px;

    border:1px solid rgba(180,82,255,.23);
    border-radius:12px;

    background:
        linear-gradient(
            180deg,
            rgba(20,12,29,.995),
            rgba(8,5,12,.998)
        );

    box-shadow:
        0
        28px
        70px
        rgba(0,0,0,.66),
        0
        0
        28px
        rgba(126,46,216,.09);

    opacity:0;
    visibility:hidden;
    pointer-events:none;

    transform:translateY(-5px);

    transition:
        opacity .14s ease,
        transform .14s ease,
        visibility .14s ease;
}

.ftr-header-search__dropdown.is-open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;

    transform:translateY(0);
}


/*
|--------------------------------------------------------------------------
| Result
|--------------------------------------------------------------------------
*/

.ftr-header-search__result{
    display:grid;

    grid-template-columns:
        48px
        minmax(0,1fr)
        auto;

    align-items:center;

    gap:10px;

    min-height:62px;

    padding:7px 9px;

    border-radius:8px;

    color:#fff !important;
    text-decoration:none !important;

    transition:
        background .13s ease;
}

.ftr-header-search__result:hover{
    background:rgba(145,42,230,.10);
}

.ftr-header-search__result
+
.ftr-header-search__result{
    margin-top:2px;
}

.ftr-header-search__thumb{
    display:grid;

    width:48px;
    height:48px;

    place-items:center;

    overflow:hidden;

    border:1px solid rgba(255,255,255,.08);
    border-radius:7px;

    background:rgba(255,255,255,.025);
}

.ftr-header-search__thumb img{
    display:block !important;

    width:100% !important;
    height:100% !important;

    min-width:0 !important;
    min-height:0 !important;
    max-width:100% !important;
    max-height:100% !important;

    object-fit:contain !important;

    margin:0 !important;
    padding:3px !important;
}

.ftr-header-search__thumb.is-empty{
    color:#8e8296;
    font-size:16px;
}

.ftr-header-search__result-copy{
    display:flex;

    min-width:0;

    flex-direction:column;

    gap:4px;
}

.ftr-header-search__result-copy strong{
    overflow:hidden;

    color:#fff;

    font-size:10px;
    line-height:1.25;
    font-weight:850;

    text-overflow:ellipsis;
    white-space:nowrap;
}

.ftr-header-search__result-copy small{
    overflow:hidden;

    color:#766d7d;

    font-size:8px;

    text-overflow:ellipsis;
    white-space:nowrap;
}

.ftr-header-search__result-price{
    color:#ffd527;

    font-size:11px;
    font-weight:900;

    white-space:nowrap;
}


/*
|--------------------------------------------------------------------------
| More
|--------------------------------------------------------------------------
*/

.ftr-header-search__more{
    display:flex;

    min-height:38px;

    align-items:center;
    justify-content:space-between;

    margin-top:5px;

    padding:0 10px;

    border-top:1px solid rgba(255,255,255,.065);

    color:#bf78ff !important;
    text-decoration:none !important;

    font-size:9px;
    font-weight:850;
}

.ftr-header-search__more:hover{
    color:#fff !important;
}

.ftr-header-search__more[hidden]{
    display:none !important;
}

.ftr-header-search__empty{
    padding:15px 12px;

    color:#8d8294;

    font-size:9px;
    line-height:1.5;
    text-align:center;
}

.ftr-header-search__empty strong{
    color:#d1c6d7;
}




/*
|--------------------------------------------------------------------------
| Missing product request
|--------------------------------------------------------------------------
*/

.ftr-header-search__empty--request{
    padding:14px 12px 12px;
}

.ftr-header-search__empty-title{
    display:block;

    color:#fff !important;

    font-size:11px;
    line-height:1.35;
    font-weight:900;
}

.ftr-header-search__empty-query{
    display:block;

    margin-top:5px;

    color:#8d8294;

    font-size:9px;
    line-height:1.45;
}

.ftr-header-search__empty-query b{
    color:#d8cde0;
    font-weight:800;
}

.ftr-header-search__request-button{
    width:100%;
    min-height:36px;

    margin-top:11px;
    padding:0 12px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:
        1px solid
        rgba(255,212,0,.52);
    border-radius:8px;

    background:
        rgba(255,212,0,.08);

    color:#ffd400;

    cursor:pointer;

    font-size:10px;
    font-weight:900;

    transition:
        transform .15s ease,
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.ftr-header-search__request-button:hover:not(:disabled){
    transform:translateY(-1px);

    border-color:#ffd400;

    background:#ffd400;

    color:#190723;
}

.ftr-header-search__request-button:disabled{
    cursor:default;
}

.ftr-header-search__request-button.is-sending{
    opacity:.65;
}

.ftr-header-search__request-button.is-submitted{
    border-color:
        rgba(75,225,132,.32);

    background:
        rgba(75,225,132,.09);

    color:#5be493;
}

.ftr-header-search__request-status{
    display:block;

    min-height:0;

    margin-top:6px;

    color:#6fbd8d;

    font-size:8px;
    line-height:1.35;
}

.ftr-header-search__request-status:empty{
    display:none;
}

.ftr-header-search__request-status.is-error{
    color:#ff859c;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width:1200px){

    .ftr-header-search{
        width:220px;
        flex-basis:220px;
    }

}

@media (max-width:1050px){

    .ftr-header-search{
        display:none;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile search
|--------------------------------------------------------------------------
*/

.ftr-mobile-search{
    display:none;
}

@media (max-width:680px){

    .ftr-mobile-search{
        display:block;
        margin:5px 0 9px;
    }

    .ftr-mobile-search
    .ftr-header-search{
        display:block;

        width:100%;
        max-width:none;
    }

    .ftr-mobile-search
    .ftr-header-search__dropdown{
        position:relative;

        top:auto;

        margin-top:7px;
    }

}

/*
|--------------------------------------------------------------------------
| MOBILE SIDEBAR SEARCH
|--------------------------------------------------------------------------
*/

@media (max-width:680px){

    .ftr-mobile-sidebar__search
    .ftr-header-search{
        display:block;

        width:100%;
        max-width:none;

        flex:none;
    }


    .ftr-mobile-sidebar__search
    .ftr-header-search__dropdown{
        position:relative;

        top:auto;
        left:auto;
        right:auto;

        margin-top:7px;
    }

}
