.search-form-wrapper {
    position: absolute;
    z-index: 1;
}

.search-form-wrapper .close-button {
    position: absolute;
    top: 0;
    right: 15px;
    line-height: 45px;
    font-size: 1.2em;
    color: #1a1a1a;
    cursor: pointer;
}

.search-form-wrapper.mobile {
    width: 100%;
    height: 60px;
}

.search-form-wrapper .search-input {
    background: #fff;
    color: #1a1a1a;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;

    box-shadow: 0 2px 0 0 rgba(0, 0, 0, .1),
                0 -2px 0 0 rgba(0, 0, 0, .1),
                2px 0 0 0 rgba(0, 0, 0, .1),
                -2px 0 0 0 rgba(0, 0, 0, .1);
    border: 0;
}

.search-form-wrapper:not(.mobile) .search-input {
    height: 45px;
    line-height: 45px;
    border-radius: 100px;
    -webkit-border-radius: 100px;
    padding-left: 15px !important;
    width: 100%;
}

.search-form-wrapper:not(.mobile) .search-input.showing-results {
    border-top-left-radius: 22.5px;
    border-top-right-radius: 22.5px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.search-form-wrapper.mobile .search-input {
    width: 100%;
    height: 60px;
    line-height: 60px;
    font-size: 2em;
    border-radius: 0;
    -webkit-border-radius: 0;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    padding: 0 50px 0 15px;
}

.search-form-wrapper.mobile .close-button {
    font-size: 3em;
    line-height: 60px;
}

.search-form-wrapper .loading-results {
    display: none;
    position: absolute;
    color: rgba(0, 0, 0, .2);
    top: 0;
}

.search-form-wrapper:not(.mobile) .loading-results {
    right: 40px;
    font-size: 2em;
    line-height: 45px;
}

.search-form-wrapper.mobile .loading-results {
    right: 55px;
    font-size: 3em;
    line-height: 60px;
}

/* Search Results */

.searchbar-results {
    background: #fff;
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.ais-InfiniteHits {
    display: flex;
    flex-direction: column;
}

.ais-InfiniteHits-loore:not(.ais-InfiniteHits-loore--disabled) {
    color: white;
    background: #e4003a;
    padding: 10px;
    font-size: 1.1em;
}

.ais-InfiniteHits-loore.ais-InfiniteHits-loore--disabled {
    display: none;
}

.ais-Hits--empty, .ais-InfiniteHits--empty {
    padding: 10px 20px;
}

.search-form-wrapper.mobile .searchbar-results {
    border-bottom-color: var(--main-color);
    box-shadow: 0px 20px 20px 20px rgb(0 0 0 / 50%);
    border-bottom-width: 2px;
    border-bottom-style: solid;
}

.search-form-wrapper:not(.mobile) .searchbar-results {
    position: absolute;
    box-shadow: 0 8px 10px rgba(0, 0, 0, .2),
                -10px 8px 10px rgba(0, 0, 0, .2),
                10px 8px 10px rgba(0, 0, 0, .2);
}

.searchbar-results ul[data-type],
.search-form-wrapper .searchbar-results > ul {
    display: block;
}

.searchbar-results li {
    display: block;
}

.search-form-wrapper .searchbar-results ol {
    display: block;
    height: auto;
    align-items: unset;
}

.searchbar-results .videos-result-group,
.searchbar-results .models-result-group {
    background: #efefef;
    color: #1a1a1a;
    padding: 0.8em;
    font-size: 1.8em;
    font-weight: bold;
    text-transform: uppercase;

    position: sticky;
    top: 0;

    z-index: 99;
}

.searchbar-results .item {
    padding: 1em;
    color: #1a1a1a;
    font-weight: bold;
    cursor: pointer;

    font-size: 1.2em;

    display: flex;
    flex-direction: row;
    align-items: center;
}

.searchbar-results .item:hover {
    background-color: #fafafa;
}

.searchbar-results .item.custom-result a {
    color: #1a1a1a;
}

.searchbar-results .item img.result-image {
    width: 200px;
    height: 112px;
    object-fit: cover;
}

.searchbar-results .item img.performer-web-logo {
    width: 30px;
    position: absolute;
    top: 5px;
    left: 3px;
}

.searchbar-results .item span.name {
    flex: 1;
    padding-left: 1em;
    font-size: 1.4em;
}

.searchbar-results .item.without-image span.name {
    padding-left: 0 !important;
}

.searchbar-results .item .image-container {
    position: relative;
}

.searchbar-results .found-number {
    text-transform: none;
    color: #a7a7a7;
    font-weight: normal;
    margin-left: 0.5em;
}

/* Scrollbar */

.searchbar-results::-webkit-scrollbar {
    width: 0.5em;
}

.searchbar-results::-webkit-scrollbar-track {
    background-color: #fff;
}

.searchbar-results::-webkit-scrollbar-thumb {
    background: var(--main-color);
    outline: 1px solid #fff;
    border-radius: 0.3em;
    -webkit-border-radius: 0.3em;
}

/* Interactive */

.searchbar-results .interactive_video {
    position: absolute;
    top: 4px;
    left: 4px;
    display: flex;
    align-items: center;
    background:#000;
    color:#fff;
}

/* Video Quality Badge */

.videos-result-group-items .video-badge {
    position: absolute;
    pointer-events: none;
    top: 4px;
    right: 4px;
    z-index: 97;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #fff;
    border-radius: 0px;
    opacity: 1;
    font-family: 'Open Sans', Arial, sans-serif;
}

.video-badge .left-side {
    color: #fff;
    margin: 2px;
    font-weight: 700;
    background: #1a1a1a;
    padding: 2px 5px;
    line-height: 1;
}

.video-badge .right-side {
    margin: 2px;
    line-height: 1;
}

.video-badge .right-side-h {
    background: #fff;
    color: #1a1a1a;
    padding: 2px;       
}

.video-badge.quality-8K .right-side-h {
    color: #1a1a1a;
}

.video-badge .right-side-h::before {
    content: "VR";
    font-weight: 700;
}

.searchbar-results .interactive_video  > div{
    background: #ffc600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.searchbar-results .interactive_video img {
    width: 18px;
    height: 18px;
}

@media (min-width: 900px) and (max-width: 1140px) {
    .search-form-wrapper .search-input {
        height: 38px !important;
        line-height: 38px !important;
        font-size: 1.5em !important;
    }

    .search-form-wrapper .close-button {
        line-height: 36px;
        font-size: 2em;
    }

    .search-form-wrapper .loading-results {
        line-height: 38px !important;
    }
}

@media (min-device-width: 901px) {
    .searchbar-results {
        max-height: 600px;
    }

    .searchbar-results .videos-result-group,
    .searchbar-results .models-result-group {
        font-size: 1em;
    }

    .searchbar-results .item img.result-image {
        width: 250px;
        height: 141px;
    }

    .searchbar-results .item span.name {
        flex: 1;
        font-size: 1em;
    }

    .searchbar-results .interactive_video img {
        width: 22px;
        height: 22px;
    }

    .searchbar-results .interactive_video  > div {
        padding: 5px;
    }
}