/*-------------------------------------------------------------------------
= Store Locator page
--------------------------------------------------------------------------*/
#store-locator-content {
  box-sizing: border-box;
  margin: auto;
  max-width: 1260px;
  padding: 15px;
  width: 100%;
}

#agi-main {
  margin: 50px 0 60px 0;
}

#page-storelocator {
  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;
}

#store-locator-page header {
  padding: 10px 0 20px;
  border-bottom: 1px solid #ccc;
}

#page-storelocator #store-search {
  background: #fff;
  border: 1px solid #333;
  margin-top: 2%;
  padding: 2%;
  text-align: center;
}

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

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

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

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

#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,
#page-storelocator #ag-findretailer #ag-storelocator .button {
  float: left;
}

#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: 0 auto 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 15px;
}

#page-storelocator #store-search h2,
h3 {
  color: #333;
  font-family: "Gordita", arial, sans-serif;
  font-size: 0.875em;
  margin: 0 0 0.25em 0;
}

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

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

#page-storelocator #store-search fieldset {
  border: 0 none;
  color: #333;
  margin: 0;
  padding: 0;
}

#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: 0 0 5% 0;
}

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

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

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

#page-storelocator #stores {
  width: 100%;
}

#page-storelocator #results-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

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

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

#page-storelocator #results-list ul li.location {
  font-size: 0.875rem;
  letter-spacing: 3px;
  line-height: 1.4;
  margin-right: 30px;
  text-align: center;
  text-decoration: none;
  text-transform: none;
}

#page-storelocator #results-list li.direction-links {
  padding: 5px 12px 9px 0px;
  text-align: left;
  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: 0.875rem;
  font-weight: bold;
}

#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;
  margin-left: 3px;
}

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

#page-storelocator #results-list li p {
  color: #333;
  font-size: 0.875rem;
  line-height: 1.1em;
  margin: 0 0 0.75em 0;
}

#page-storelocator #results-list li a {
  color: #d50032;
  font-size: 0.875rem;
  text-transform: capitalize;
}

#page-storelocator #results-list li span {
  color: #666;
  font-size: 0.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: -0.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-container {
  text-align: center;
}

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

footer p {
  line-height: 1.6;
  padding: 0 15px;
  text-align: center;
}

/* 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
--------------------------------------------------------------------------*/
  #page-storelocator #agi-main {
    margin: 10px 0;
  }

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

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

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

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

  #page-storelocator #store-search fieldset legend {
    font-family: "Gordita", arial, sans-serif;
  }

  #page-storelocator #ag-findretailer #ag-storelocator .input,
  #page-storelocator #ag-storelocator .input {
    box-sizing: border-box;
    width: 100px;
  }

  #page-storelocator #ag-findretailer #ag-storelocator .button,
  #page-storelocator #ag-storelocator input#storelocator_go {
    clear: both;
  }

  #page-storelocator #store-search {
    padding: 10px;
    position: relative;
    width: auto;
  }

  #page-storelocator #stores,
  #page-storelocator #results-list {
    height: auto;
  }

  #page-storelocator #results-list li h3 {
    color: #333;
    font-size: 0.875rem;
    font-weight: bold;
    margin: 0 0 10px 0 !important;
    text-transform: lowercase;
  }

  #page-storelocator #results-list li p {
    font-size: 16px;
    line-height: inherit;
  }

  #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;
    margin-right: 0;
  }

  #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;
  }

  #page-storelocator .locator-title {
    text-transform: lowercase;
  }
}
