﻿.searchbox .algolia-autocomplete {
    display: block;
    height: 100%;
}

.searchbox__wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.searchbox__input {
    display: inline-block;
    -webkit-transition: box-shadow 0.4s ease, background 0.4s ease;
    transition: box-shadow 0.4s ease, background 0.4s ease;
    border: 1px solid #818285;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px #d9d9d9;
    background: #F4F4F4;
    padding: 10px 8px;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    white-space: normal;
    font-size: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media screen and (max-width: 570px) {
    .searchbox__input {
        padding: 8px 5px;
        width: calc(100% -10px);
    }
}

@media screen and (max-width: 460px) {
    .searchbox__input {
        padding: 6px 5px;
        width: 100%;
    }

    .searchbox__submit {
        right: -10px;
    }

    .algolia-autocomplete {
        margin-right: 60px;
    }
}

.searchbox__input::-webkit-search-decoration,
.searchbox__input::-webkit-search-cancel-button,
.searchbox__input::-webkit-search-results-button,
.searchbox__input::-webkit-search-results-decoration {
    display: none;
}

.searchbox__input:hover {
    box-shadow: inset 0 0 0 1px silver;
}

.searchbox__input:focus,
.searchbox__input:active {
    outline: 0;
    box-shadow: inset 0 0 0 1px #4098ce;
    background: #ffffff;
}

.searchbox__input::-webkit-input-placeholder {
    color: #aaaaaa;
}

.searchbox__input::-moz-placeholder {
    color: #aaaaaa;
}

.searchbox__input:-ms-input-placeholder {
    color: #aaaaaa;
}

.searchbox__input::placeholder {
    color: #aaaaaa;
}

.searchbox__submit::before {
    display: inline-block;
    margin-right: -4px;
    height: 100%;
    vertical-align: middle;
    content: "";
}

.searchbox__submit:hover,
.searchbox__submit:active {
    cursor: pointer;
}

.searchbox__submit:focus {
    outline: 0;
}

.searchbox__submit svg {
    width: 17px;
    height: 17px;
    vertical-align: middle;
    fill: #666666;
}

@-webkit-keyframes sbx-reset-in {
    0% {
        -webkit-transform: translate3d(-20%, 0, 0);
        transform: translate3d(-20%, 0, 0);
        opacity: 0;
    }

    100% {
        -webkit-transform: none;
        transform: none;
        opacity: 1;
    }
}

@keyframes sbx-reset-in {
    0% {
        -webkit-transform: translate3d(-20%, 0, 0);
        transform: translate3d(-20%, 0, 0);
        opacity: 0;
    }

    100% {
        -webkit-transform: none;
        transform: none;
        opacity: 1;
    }
}

.aa-dropdown-menu {
    position: relative;
    top: -6px;
    border-radius: 3px;
    margin: 6px 0 0;
    padding: 0;
    text-align: left;
    height: auto;
    position: relative;
    background: none;
    background-color: rgba(255, 255, 255, 0);
    border: none;
    width: 100%;
    left: 0 !important;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.1);
}

    .aa-dropdown-menu:before {
        position: absolute;
        content: "";
        width: 14px;
        height: 14px;
        background: #fff;
        z-index: 0;
        top: -7px;
        border-top: 1px solid #d9d9d9;
        border-right: 1px solid #d9d9d9;
        transform: rotate(-45deg);
        border-radius: 2px;
        z-index: 999;
        display: block;
        left: 24px;
    }

    .aa-dropdown-menu .aa-suggestions {
        position: relative;
        z-index: 1000;
    }

    .aa-dropdown-menu [class^="aa-dataset-"] {
        position: relative;
        border: solid 1px #d9d9d9;
        border-radius: 3px;
        overflow: auto;
        padding: 8px 8px 8px;
        background-color: rgb(255, 255, 255);
    }

    .aa-dropdown-menu * {
        box-sizing: border-box;
    }

.aa-suggestion {
    font-size: 1.1em;
    padding: 4px 4px 0;
    display: block;
    width: 100%;
    height: 38px;
    clear: both;
}

    .aa-suggestion span {
        white-space: nowrap !important;
        text-overflow: ellipsis;
        overflow: hidden;
        display: block;
        float: left;
        line-height: 2em;
        width: calc(100% - 30px);
    }


.a-suggestion-result img {
    float: left;
    vertical-align: middle;
    height: 30px;
    width: 20px;
    margin-right: 6px;
}

.a-suggestion-title {
    font-size: small;
}

.a-suggestion-title {
    cursor: none;
    color: black;
}

.a-suggestion-result {
    cursor: pointer;
    color: #365FB4;
}

.a-suggestion-noresults {
    cursor: none;
    color: black;
}

.algolia-autocomplete {
    margin-right: 60px;
}

@media screen and (min-width: 90em) {
    .algolia-autocomplete {
        margin-right: 0;
    }
}

.algolia-autocomplete {
    width: calc(100% - 53px);
}
