.Module.Search {
    text-align: center;
    position: relative;
}

.Module.Search .search-box {
    padding: 0;
    margin: 0;
}

.Module.Search .search-box input {
    height: 30px;
}

.Module.Search .search-box .btn {
    height: 40px;
}

.Module.Search .search-box .input-append,
.Module.Search .search-box .input-prepend {
    margin: 0;
}

.Module.Search .search-holder {
    top: 50px;
    left: 0;
    position: absolute;
    z-index: 99;
    background: #808080;
    border-radius: 5px;
    opacity: 0.9;
    box-shadow: 0 0 1px #000;
    margin-right: -70px;
}

.Module.Search .search-holder:before {
    position: absolute;
    display: inline-block;
    content: "";
    top: 0;
    right: 13em;
    border-color:  transparent transparent #808080 transparent;
    border-style: solid;
    border-width: 10px;
    height:0;
    width:0;
    z-index: 103;
    margin: -20px;
}

.Module.Search .search-holder .results-wrapper {
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 320px;
    position: relative;
    z-index: 100;
    background-color: #fff;
    padding: 10px;
    margin: 20px 3px 3px 3px;
}

.Module.Search .search-holder .results-wrapper .result-controller h4 {
    line-height: 30px;
}

.Module.Search .search-holder .results-wrapper .result-controller h4 a {
    background-image: url("../img/search.png");
    background-repeat: no-repeat;
    background-position: right;
    padding-right: 26px;
    font-size: 15px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.Module.Search .search-holder .results-wrapper .result-controller p {
    font-size: 13px;
    line-height: normal;
}

.Module.Search .search-holder .close-holder {
    position: absolute;
    top: -2px;
    left: 6px;
    z-index: 103;
    color: #ddd;
    font-size: 20px;
    cursor: pointer;
}

.Module.Search .search-holder .close-holder:hover {
    color: #fff;
}

.Module.Search .search-holder .results-wrapper .btn {
    margin: 8px;
}

@media (max-width: 1279px) {
    .Module.Search .search-holder {
        width: 100%;
        margin: 0;
    }

    .Module.Search .search-holder .results-wrapper {
        width: 99%;
        padding: 0;
    }
}

/*********************/

.Module.Search .search-box .show-search,
.Module.Search .search-box .search-query .hide-search {
    display: none;
}

.Module.Search .search-box .search-query .hide-search {
    background: #eee !important;
    border-color: #ccc !important;
    font-size: 22px;
    color: #888 !important;
}

@media (max-width: 767px) {
    .Module.Search.mobile-support {
        position: inherit;
    }

    .Module.Search.mobile-support .search-box .search-query {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        width: 100%;
        background: rgb(250, 250, 250);
        margin-top: 1px;
    }

    .Module.Search.mobile-support .search-box .search-query.visible {
        display: block;
    }

    .Module.Search.mobile-support .search-box .show-search,
    .Module.Search.mobile-support .search-box .search-query .hide-search {
        display: inline-block;
    }

    .Module.Search.mobile-support .search-box .search-query.visible .search-input {
        width: 70%;
    }

    .Module.Search.mobile-support .search-box .search-query.visible {
        animation: search-fade-in 350ms forwards;
    }
}

@keyframes search-fade-in {
    from {opacity: 0;}
    to {opacity: 1;}
}
