@keyframes pulsate {
  0% {
    -webkit-transform: scale(0.1);
    transform: scale(0.1);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(0.6);
    transform: scale(0.6);
    opacity: 0;
  }
}

#sl-complete .sl-map-results-wrapper {
  display: block;
  width: 100%;
}

#sl-complete .sl-map-results-wrapper > div {
  display: inline-block;
}

#sl-complete .sl-map-results-wrapper .sl-map-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  z-index: 1;
}

#sl-complete .sl-map-results-wrapper .sl-map-wrapper .sl-map {
  z-index: 1;
  height: 550px;
  min-width: 350px;
}

#sl-complete .sl-map-results-wrapper .sl-results-wrapper {
  width: 100%;
  vertical-align: top;
}

#sl-complete .sl-message-wrapper {
  display: none;
  position: absolute;
  top: 0.25rem;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
}

#sl-complete .sl-message-wrapper .sl-message {
  display: inline-block;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.25rem;
  font-size: 0.8rem;
  border: 1px solid #E3E3E3;
}

#sl-complete .sl-message-wrapper .sl-message .sl-message-content {
  display: inline-block;
  margin-right: 1rem;
}

#sl-complete .sl-message-wrapper .sl-message .sl-message-close {
  cursor: pointer;
}

@media screen and (min-width: 768px) {
  #sl-complete .sl-map-results-wrapper {
    display: table;
  }
  #sl-complete .sl-map-results-wrapper > div {
    display: table-cell;
  }
  #sl-complete .sl-map-results-wrapper .sl-map-wrapper {
    width: 70%;
  }
  #sl-complete .sl-map-results-wrapper .sl-results-wrapper {
    width: 30%;
    min-width: 320px;
  }
  #sl-complete .sl-map-results-wrapper .sl-results-wrapper .sl-results {
    height: 550px;
    overflow-y: auto;
  }
}

/* Form default rules */
.sl-form .table {
  display: block;
  width: 100%;
}

.sl-form .table-cell {
  display: block;
}

.sl-form .sl-geolocate, .sl-form .sl-submit {
  margin-left: 1rem;
  border: 1px solid #747474;
  line-height: 2rem;
  font-size: 1rem;
  padding: 0.5rem;
  color: #FFF;
  background: #747474;
}

.sl-form .sl-geolocate:focus, .sl-form .sl-submit:focus {
  outline: none;
  border-color: #343434;
}

.sl-form .sl-address {
  border: 1px solid #747474;
  color: #343434;
  line-height: 2rem;
  font-size: 1rem;
  padding: 0.5rem;
}

.sl-form .sl-address:focus {
  outline: none;
  border-color: #343434;
}

.sl-form .sl-form-filters .sl-form-filters-content > div {
  display: inline-block;
}

.sl-form .sl-submit {
  background: #b3b3b3;
  border-radius: 0;
  border: none;
  color: #343434;
}

@media screen and (min-width: 768px) {
  .sl-form .table {
    display: table;
  }
  .sl-form .table-cell {
    display: table-cell;
  }
  .sl-form .table-cell > .form-item {
    display: inline-block;
  }
}

/* Map base rules */
.sl-map {
  /* User pin css effect */
  /* Text for map labels (index) */
  /* Infowindow rules */
  /* Custom controls rules */
}

.sl-map .sl-pin-pulse {
  border: 5px solid #5bc0de;
  background: transparent;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  -webkit-animation: pulsate 2.4s ease-out;
  animation: pulsate 2.4s ease-out;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  position: absolute;
  opacity: 0;
}

.sl-map .sl-store-marker-index-label {
  color: #004988;
  width: 30px;
  font-weight: bold;
  text-align: center;
}

.sl-map .sl-iw {
  max-width: 300px;
  overflow: hidden !important;
  line-height: 1.35;
}

.sl-map .sl-iw .sl-iw-title {
  font-weight: bold;
  color: #004988;
}

.sl-map .sl-iw .sl-iw-distance {
  font-weight: bold;
  color: #343434;
  font-size: 0.7rem;
}

.sl-map .sl-iw .sl-iw-actions {
  text-align: right;
  margin-top: 0.5rem;
}

.sl-map .sl-custom-control {
  display: inline-block;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.25rem;
  font-size: 0.8rem;
  border: 1px solid #E3E3E3;
}

.sl-map .sl-custom-control.message {
  margin-top: 0.5rem;
}

.sl-map .sl-custom-control.message .content {
  display: inline-block;
  margin-right: 0.5rem;
}

.sl-map .sl-custom-control.message .close {
  cursor: pointer;
}

.sl-map .sl-custom-control.autorefresh {
  margin: 0.5rem 0 0 0.5rem;
  color: #747474;
  cursor: pointer;
}

.sl-map .sl-custom-control.autorefresh.enabled {
  border-color: #004988;
  color: #FFF;
  font-weight: bold;
  background: #004988;
}

.sl-map .sl-custom-control .sl-message-content {
  display: inline-block;
  margin-right: 1rem;
}

.sl-map .sl-custom-control .sl-message-close {
  cursor: pointer;
}

/* Results base rules */
.sl-results {
  /* No result */
}

.sl-results .sl-result {
  position: relative;
  padding: 1rem;
  border-bottom: 1px solid #f3f3f3;
}

.sl-results .sl-result.selected::before {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  content: "";
  border-left: 5px solid #bbdfff;
}

.sl-results .sl-result .sl-result-index {
  display: table;
  background: #098dff;
  color: #FFF;
  margin-right: 0.5rem;
  width: 1.2rem;
  height: 1.2rem;
  line-height: 1.2rem;
  border-radius: 50%;
  float: left;
  text-align: center;
  font-size: 0.7rem;
}

.sl-results .sl-result .sl-result-title {
  color: #004988;
  font-weight: bold;
  font-size: 1rem;
}

.sl-results .sl-result .sl-result-address {
  color: #0072d5;
  font-size: 0.8rem;
}

.sl-results .sl-result .sl-result-distance {
  color: #343434;
  font-weight: bold;
  font-size: 0.7rem;
}

.sl-results .sl-result .sl-result-details {
  display: none;
  margin-top: 1rem;
}

.sl-results .sl-result .sl-result-details > div {
  margin-top: 1rem;
}

.sl-results .sl-result .sl-result-details .sl-result-details-hours {
  font-size: 0.9rem;
}

.sl-results .sl-result .sl-result-details .sl-result-details-hours .oh-current-open {
  color: green;
}

.sl-results .sl-result .sl-result-details .sl-result-details-hours .oh-current-closed {
  color: red;
}

.sl-results .sl-result .sl-result-details .sl-result-details-hours .oh-display-current {
  font-weight: bold;
}

.sl-results .sl-result .sl-result-details .sl-result-details-actions {
  text-align: right;
}

.sl-results .sl-result .sl-result-details .sl-result-details-actions .sl-button-phone a, .sl-results .sl-result .sl-result-details .sl-result-details-actions .sl-button-phone a:hover {
  text-decoration: none;
}

.sl-results .sl-result .sl-result-details .sl-result-details-page {
  text-align: right;
}

.sl-results .sl-result .sl-result-details .sl-result-details-page a {
  display: inline-block;
  padding: 0.25rem;
  background: #004988;
  color: #FFF;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid #0072d5;
}

.sl-results .sl-result .sl-result-details .sl-result-details-page a:hover, .sl-results .sl-result .sl-result-details .sl-result-details-page a:active {
  background: #0072d5;
  text-decoration: none;
}

.sl-results .sl-noresult {
  padding: 1rem;
}

.sl-results .sl-noresult h1 {
  color: #b3b3b3;
  text-align: center;
  margin: 1rem auto;
}

.sl-results .sl-noresult .sl-noresult-emoji {
  font-family: monospace;
  color: #f3f3f3;
  font-size: 4rem;
  line-height: 4rem;
  margin: 1rem auto;
  text-align: center;
}

.sl-results .sl-noresult .sl-noresult-message {
  font-size: 0.7rem;
  color: #343434;
}

.sl-results .sl-noresult .sl-noresult-message .link {
  text-decoration: underline;
  cursor: pointer;
}

.sl-countries-facets-list ul {
  display: inline-block;
  margin: 0 1rem 0 0;
}

.sl-countries-facets-list ul li {
  list-style: none;
}

.sl-button {
  display: inline-block;
  background-color: #f5f5f5;
  background-image: -webkit-linear-gradient(top, #f5f5f5, #f1f1f1);
  background-image: -moz-linear-gradient(top, #f5f5f5, #f1f1f1);
  background-image: -ms-linear-gradient(top, #f5f5f5, #f1f1f1);
  background-image: -o-linear-gradient(top, #f5f5f5, #f1f1f1);
  background-image: linear-gradient(top, #f5f5f5, #f1f1f1);
  color: #444;
  border: 1px solid #dcdcdc;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  cursor: default;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  height: 27px;
  min-width: 54px;
  padding: 0 8px;
  text-decoration: none;
}

.sl-button:hover {
  background-color: #F8F8F8;
  background-image: -webkit-linear-gradient(top, #f8f8f8, #f1f1f1);
  background-image: -moz-linear-gradient(top, #f8f8f8, #f1f1f1);
  background-image: -ms-linear-gradient(top, #f8f8f8, #f1f1f1);
  background-image: -o-linear-gradient(top, #f8f8f8, #f1f1f1);
  background-image: linear-gradient(top, #f8f8f8, #f1f1f1);
  border: 1px solid #C6C6C6;
  color: #333;
  -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
}

.sl-button:active {
  -webkit-box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.1);
  color: black;
  outline: none;
}

.sl-button:focus {
  outline: none;
}

/* Overlay */
.sl-overlay {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.3);
  z-index: 10;
}

.sl-overlay .sl-overlay-wrapper {
  display: table;
  width: 100%;
  height: 100%;
  text-align: center;
}

.sl-overlay .sl-overlay-wrapper .sl-overlay-content {
  display: table-cell;
  vertical-align: middle;
  font-size: 2rem;
}

/* Blur effect, only use pure CSS here (No svg fallback to avoid cross domain error message) */
.blurred {
  filter: blur(3px);
  -webkit-filter: blur(3px);
}
