﻿.ac_results {
    overflow: hidden;
    position: relative;
    z-index: 99999;
    margin: 0;
    padding: 0;
    border: 1px solid #f1f1f1;
    @include box-shadow(0 5px 25px rgba(0,0,0,0.4));
}

.ac_results ul {
    list-style-position: outside;
    list-style: none;
    background-color: white;
    margin: 0;
    padding: 0;
}

.ac_results li {
    cursor: pointer;
    display: block;
    overflow: auto;
    margin: 0;
    padding: 0;
    border-top: 1px solid #f1f1f1;
    font-size: 1.4em;
    line-height: 1.4;
}

.ac_results li:first-child {
    border: 0;
}

.ac_results li a {
    display: block;
    overflow: auto;
    padding: 0.5em 0;
    color: #333;
    text-decoration: none;
    font-weight: normal;
}

.ac_results li a img {
    width: 80px;
    height: auto;
    max-height: 80px;
    float: left;
    margin-right: 15px;
}

.ac_icon {
    display: none;
}

.ac_icon {
    width: 1em;
    display: inline-block;
    padding-left: 0.5em;
    font-size: 1.4em;
    line-height: 0.8;
    color: #aaa;
    vertical-align: middle;
    margin-left: 10px;
}

.ac_icon.i-article {
    color: #bbb;
}

.ac_results span.title {
    padding-left: 0.5em;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    box-sizing: border-box;
    line-height: 1.3;
    width: 100%;

    @include bp(s) {
        font-size: 0.8em;
    }
}

.ac_results span.title {
    padding-left: 1em;
    width: 83%;
    font-size: 0.95em;

    @include bp(m) {
        width: 78%;
    }

    @include bp(s) {
        width: 100%;
        padding: 0 0.5em;
        font-size: 0.9em;
        line-height: 1.3;
    }
}

.ac_results span.title strong {
    color: #555
}

.ac_results div.group {
    height: 30px;
    background-color: $veryDarkBlue;
    cursor: default
}

.ac_results div.group span.head {
    display: inline-block;
    font-weight: bold;
    color: $black;
    margin: 10px;
}

.ac_results div.group span.head strong {
    font-weight: bold;
}

.ac_over {
    background-color: #eaeaea
}

.ac_over span.title, .ac_over .ac_icon {
    color: #333
}


.ac_results .type {
    display: none;
}

.ac_results .type {
    display: block;
    float: right;
    margin-right: 1em;
    text-transform: uppercase;
    font-size: 0.75em;
    color: #bbb;
    font-weight: normal;
    line-height: 1.9;

    @include bp(s) {
        display: none;
    }
}

.ac_results .type strong {
    font-weight: normal;
}

@media all and (max-height:800px) {
    .ac_results li {
        border-top-color: #f0f0f0;
    }

    .ac_results li a {
        padding: 0.4em 0;
    }

    .ac_icon {
        font-size: 1.1em;
    }
}

.i-branch {
    background: url(../images/icon_office.svg);
    background-size: 20px 20px;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}

.i-postcode {
    background: url(../images/icon_location.svg);
    background-size: 20px 20px;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}

.i-specialism {
    background: url(../images/icon_insurance.svg);
    background-size: 20px 20px;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}
