﻿.searchbox {
    display: inline-block;
    position: relative;
    width: 200px;
    height: 37px;
    white-space: nowrap;
    box-sizing: border-box;
    font-size: 13px;
    font-family: arial, sans-serif;
}

    .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 15px;
    width: auto;
    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 {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
        border: 0;
        border-radius: 18px 0 0 18px;
        background-color: rgba(255, 255, 255, 0);
        padding: 0;
        width: 37px;
        height: 100%;
        vertical-align: middle;
        text-align: center;
        font-size: inherit;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

        .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;
        }

    .searchbox__reset {
        position: absolute;
        top: 11px;
        right: 8px;
        margin: 0;
        border: 0;
        background: #F4F4F4;
        cursor: pointer;
        padding: 0;
        font-size: inherit;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        fill: rgba(0, 0, 0, 0.5);
    }


        .searchbox__reset:focus {
            outline: 0;
        }

        .searchbox__reset svg {
            display: block;
            margin: 4px;
            width: 13px;
            height: 13px;
        }

    .searchbox__input:valid ~ .searchbox__reset {
        display: block;
        -webkit-animation-name: sbx-reset-in;
        animation-name: sbx-reset-in;
        -webkit-animation-duration: 0.15s;
        animation-duration: 0.15s;
    }

    @-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);
        }

    /*
em {
    color: #4098ce;
}
*/

    .a-suggestion-result img {
        float: left;
        vertical-align: middle;
        height: 30px;
        width: 20px;
        margin-right: 6px;
    }

    .a-suggestion-title {
        font-size: small;
    }

    .a-suggestion-result {
        cursor: pointer;
    }
    /*
.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: !rgb(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);
}

*/
    .algolia-autocomplete {
        margin-right: 60px;
    }

    @media screen and (min-width: 90em) {
        .algolia-autocomplete {
            margin-right: 0;
        }
    }

/* METLIFE-23 */
.searchbox__submit svg {
    fill: #0070cc;
    width: 30px;
    height: 25px;
}

.search-box {
    width: fit-content;
    height: fit-content;
    position: relative;
}

.searchbox__input {
    height: 30px;
    width: 0;
    border-style: none;
    padding: 10px;
    font-size: 18px;
    letter-spacing: 2px;
    outline: none;
    border-radius: 25px;
    box-shadow: none;
    transition: all .5s ease-in-out;
    background-color: transparent;
    padding-right: 40px;
    cursor: pointer
}

.searchbox__input::placeholder {
    color: rgba(255, 255, 255, .5);
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 100;
    display: none;
}

.searchbox__submit {
    width: 50px;
    height: 50px;
    border-style: none;
    font-size: 20px;
    font-weight: bold;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    position: absolute;
    right: 0px;
    background-color: transparent;
}

.searchbox__reset {
    background: #FFF;
    width: 30px;
    height: 30px;
}

.searchbox__input:focus {
    width: 250px;
    border-radius: 0px;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .5);
    transition: all 500ms cubic-bezier(0, 0.110, 0.35, 2);
    cursor: text;
    z-index: 0;
}

@media only screen and (max-width: 650px) {
    span.algolia-autocomplete .searchbox__input:focus {
        max-width: 180px;
        padding-right: 0;
    }
}

@media only screen and (max-width: 430px) {
    span.algolia-autocomplete .searchbox__input:focus {
        max-width: 170px;
        padding-right: 0;
    }
}

@media only screen and (max-width: 380px) {
    span.algolia-autocomplete .searchbox__input:focus {
        max-width: 115px;
        padding-right: 0;
    }
}