/*-------------------------------------------------------------------------
= Store Locator page
--------------------------------------------------------------------------*/
#agi-main {
    margin: 50px 0 60px 0;
}

#page-storelocator {
    margin-top: 30px;
    padding: 0 15px;
    position: relative;
}

h1 {
    color: #333;
    font-family: "Gordita",arial,sans-serif;
    font-size: 1.5em;
    font-weight: normal;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
}

#page-storelocator #store-search {
    background: #fff;
    margin-top: 2%;
    text-align: left;
}

#page-storelocator #store-search.store-search-default {
    background: #fff;
    margin-top: 24px;
}

#ag-findretailer {
    border: none;
    color: #666;
    padding: 2% 0 0;
    text-align: center;
    width: auto;
}

#ag-findretailer #ag-storelocator {
    border: none !important;
    font-size: 14px;
}

#ag-findretailer #ag-storelocator legend {
    margin: 0 auto 20px;
}

#page-storelocator .input-area {
    border: 1px solid #333;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 30px;
    position: relative;
}

#page-storelocator .input-area .error-message {
    left: 5px;
    position: absolute;
    top: 40px;
}

#page-storelocator .input-area #store-locator-button {
    display: inline-block;
}

#page-storelocator #ag-findretailer #ag-storelocator .input {
    font-size: 11px;
    margin: 0;
}

#page-storelocator #ag-findretailer #ag-storelocator label {
    display: block;
    margin: 5px 0;
}

#page-storelocator #store-search #ag-storelocator legend {
    margin-bottom: 2%;
}

#page-storelocator #store-search #ag-storelocator #store-options,
#page-storelocator #ag-findretailer #ag-storelocator #store-options {
        padding-left: 30px;
    margin-bottom: 20px;
}

#page-storelocator #store-search #ag-storelocator #store-options label ,
#page-storelocator #ag-findretailer #ag-storelocator #store-options label {
    display: inline-block;
    margin-bottom: 1%;
}

#page-storelocator #store-search #ag-storelocator #store-options li,
#page-storelocator #ag-findretailer #ag-storelocator #store-options li {
    display: inline-block;
    margin: 0 20px;
}

#page-storelocator #store-search h2, h3 {
    color: #333;
    font-family: "Gordita",arial,sans-serif;
    font-size: 2em;
    font-weight: bold;
    margin: 0 0 .75em 0 !important;
}

#page-storelocator #store-search h2.locator-title {
    color: #666;
    font-size: 1.5em;
    margin: 0 0 .5em 0;
}

#page-storelocator #store-search h3 {
    margin: 0 0 .5em 0;
}

#page-storelocator #store-search fieldset {
    border: 0 none;
    color: #666;
    margin: 0;
    padding: 0;
    text-align: center;
}

#page-storelocator #store-search fieldset #retailer-content {
    background: url("https://ak.imgag.com/imgag/product/siteassets/general/3518469/image.jpg") no-repeat center;
        background-size: auto;
    background-position: top;
    background-size: contain;
    display: block;
    height: 600px;
    width: 100%;
}

#page-storelocator #store-search fieldset label,
#page-storelocator #store-search fieldset p,
#page-storelocator #store-search fieldset legend {
    display: block;
    font-size: 14px;
    line-height: 1.35em;
    margin: auto;
}

#page-storelocator #ag-storelocator .input {
    border: none;
    border-radius: 3px;
    margin: 0;
    padding: 9px;
    width: 300px;
}

#page-storelocator #ag-storelocator #storelocator_go {
    text-transform: uppercase;
    background: #333;
    border-radius: 3px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    box-shadow: none;
    font-size: 12px;
    height: auto;
    letter-spacing: 3px;
    line-height: 1;
    padding: 10px 20px;
}

#page-storelocator #ag-storelocator #storelocator_go:hover,
#page-storelocator #ag-storelocator #storelocator_go:focus {
    background: #d50032;
}

#page-storelocator #stores {
    border: 1px solid #333;
    box-sizing: border-box;
    padding: 30px 0 30px 30px;
    width: 100%;
}

#page-storelocator #results-list {
    display: flex;
    flex-wrap: wrap;
    height: 360px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: scroll;
}

#page-storelocator ol#results-list li.result {
    border-right: 2px solid #333;
    box-sizing: border-box;
    display: inline-block;
    flex-basis: 30%;
    margin-right: 30px;
    padding: 2% 0;
    position: relative;
}

#page-storelocator ol#results-list li.result:nth-child(3n + 3) {
    border-right: none;
    margin-right: 0;
}

#page-storelocator #results-list ul li {
    display: block;
    font-family: "Gordita",arial,sans-serif;
    font-size: 18px;
    margin-right: 15px;
    text-decoration: none;
}

#page-storelocator #results-list ul li .location {
    color: #333;
    font-size: .875rem;
    letter-spacing: 3px;
    line-height: 1.2;
    margin-right: 15px;
    text-align: center;
}

#page-storelocator #results-list li.result ul {
    display: flex;
}

#page-storelocator #results-list li.direction-links {
    padding: 5px 12px 9px 0px;
    text-transform: lowercase;
}

/* Override Chrome's useragent styling forcing text-transform: none; */
#page-storelocator #results-list li.direction-links button {
    text-transform: lowercase;
}

#page-storelocator #results-list li h3 {
    font-size: .875rem;
}

#page-storelocator .ppy_store {
    background: url(/agbeta/header/ppy.jpg) no-repeat;
    background-size: contain;
    display: inline-block;
    height: 23px;
    width: 23px;
}

#page-storelocator .ppy_store {
    margin: 0 4px;
}

#page-storelocator .ag_store {
    background: url(/agbeta/header/rose.png) no-repeat;
    background-size: contain;
    display: inline-block;
    height: 20px;
    width: 21px;
}

#page-storelocator h3 .ag_store {
    margin: 0 8px 0 12px;
}

#page-storelocator #results-list li p {
    color: #333;
    font-size: .875rem;
    line-height: 1.1em;
    margin: 0 0 .75em 0;
    text-transform: lowercase;
}

#page-storelocator #results-list li a {
    color: #d50032;
    font-size: .875rem;
}

#page-storelocator #results-list li span {
    color: #333;
    font-size: .875em;
    line-height: 1.25em;
}

#page-storelocator #map {
    background: url(/agbeta/texture-back-gold-2012.jpg) repeat 0 0;
    -moz-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    float: right;
    height: 449px;
    margin: -.5% 1% 0 0;
    padding: 6px 8px 10px 12px;
    position: relative;
    width: 62%;
}

#page-storelocator #map-inner {
    background: url(/agbeta/texture-back-sm-2012.jpg) repeat 0 0;
    -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    height: 389px;
    padding: 25px 25px 35px 25px;
}

#page-storelocator #map #map-back {
    position: absolute;
    top:0;
    left: 0;
}

#page-storelocator #map_canvas {
    height: 100%;
    width: 100%;
}

#page-storelocator #stores #no-results {
    font-size: 0.913em;
    margin: 20px;
}

#page-storelocator #page-content .listing {
    margin-bottom: 15px;
    padding-bottom: 40px;
}

.micetype {
    clear: both;
    color: #666;
    display: block;
    font-size: 12px;
    line-height: 1em;
    margin: 0;
    padding: 1.7em 0 0 1.5em;
    position: relative;
    text-align: left;
}

input.ag-formerror {
    border-color: #c33 !important;
}

.error-message {
    color: #c33;
    display: inline-block;
    font-family: verdana,arial,sans-serif;
    font-size: 12px;
    padding: 0 0 20px 0;
}

#refine-store {
    border: solid 1px #333;
    border-radius: 3px;
    display: block;
    height: auto;
    margin: 0 auto;
    padding: 10px;
}

/* Fix the button alignment with respect to the error message */
button.button-error {
    display: block;
}

/*-------------------------------------------------------------------------
= Store Locator Lightbox
--------------------------------------------------------------------------*/
#close-lightbox {
    background: url(/agbeta/instores/close.png) no-repeat scroll 0 0 transparent;
    font-family: "Gordita",arial,verdana,sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 0 0 0 20px;
    position: absolute;
    right: 20px;
    text-transform: uppercase;
    top: 12px;
}

@media only screen and (max-device-width:767px) {
/*-------------------------------------------------------------------------
= Locator Page Mobile - April 2016
--------------------------------------------------------------------------*/
    body {
        background: none !important;
        font-family: "Gordita",arial,sans-serif;
    }

    #page-storelocator #agi-main {
        margin: 10px 0;
    }

    #page-storelocator input:not([type=submit]):not([type=file]) {
        font-size: 16px !important;
    }

    #page-storelocator #ag-findretailer {
        position: relative;
        width: auto;
    }

    #page-storelocator #ag-findretailer #ag-storelocator {
        padding: 0;
    }

    #page-storelocator #store-search h2.locator-title {
        color: #C33;
        font-size: 20px;
        padding: 10px 0 0 !important;
        text-transform: lowercase;
    }

    #page-storelocator #store-locator-button {
        display: block;
        text-align: center;
    }

    #page-storelocator #ag-findretailer #ag-storelocator .input,
    #page-storelocator #ag-storelocator .input {
        box-sizing: border-box;
        font-size: .75rem !important;
        padding: 4px 10px;
        width: auto;
    }

    #page-storelocator #ag-findretailer #ag-storelocator .button,
    #page-storelocator #ag-storelocator input#storelocator_go {
        clear: both;
        margin: 10px 0 !important;
    }

    #page-storelocator #results-list li h3 {
        text-transform: lowercase;
    }

    #page-storelocator #results-list li div {
        background: none;
    }

    #page-storelocator #results-list li.direction-links {
        padding: 1px 12px 9px 12px;
    }

    #page-storelocator ol#results-list li.result {
        border-bottom: 1px solid;
        border-right: none;
        flex-basis: 100%;
        margin-bottom: 15px;
    }

    #page-storelocator ol#results-list li.result:nth-child(3n+3) {
        margin-right: 30px;
    }

    #page-storelocator ol#results-list li.show-more {
        background: url(/agbeta/occasion/h-thumb-separator.png) no-repeat right 0;
        padding: 18px 12px 9px 12px;
        position: relative;
        width: 97%;
    }

    #page-storelocator .show-more a {
        color: #666;
        font-family: "Gordita",arial,sans-serif;
        font-size: 14px;
        font-weight: normal;
        text-transform: lowercase;
    }
}
