/* container*/
.autologin-location-selector-wrapper {
  height: 100%;
  display: table;
}

.autologin-location-selector {
  vertical-align: middle;
  display: table-cell;
}

/* this is the first level / step of the location selector */
.autologin-location-selector .location-display-information {}

.autologin-location-selector .current-location, .autologin-location-selector .current-location-confirm {
  display: inline-block;
}

.autologin-location-selector .current-location-confirm .location-manual-search-toggle {
  font-family: Barlow;
  font-size: 16px;
  font-weight: 600;
  font-stretch: normal;
  font-style: normal;
  letter-spacing: -0.24px;
  text-align: left;
  color: #0091b2;
}

/* this is the second level / step of the location selector */
.autologin-location-selector .location-set-information {
  display: none;
}

.autologin-location-selector span.location-manual-search-toggle {
  display: inline-block;
  cursor: pointer;
}

.autologin-location-selector .location-search-input {
  width: 168px;
  height: 30px;
  border-radius: 2px;
  background-color: #ffffff;
  display: inline-block;
  border: none;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 9px;
  margin-bottom: 1px;
}

.autologin-location-selector .location-search-input:focus {
  outline: solid 1px #00c1de;
  outline-offset: 0px;
}

.autologin-location-selector .search-locations {
  display: inline-block;
  top: 1px;
  position: relative;
}

.browser-location-request {
  display: inline-block;
  height: 30px;
}

div.share-location-btn:not(.location-fail) {
  border-radius: 2px;
  border: solid 1px #00c1de;
  background-color: #ffffff;
  cursor: pointer;
  padding-left: 11px;
  padding-right: 19px;
  margin-left: 16px;
  height: 100%;
  position: relative;
  bottom:1px;
}

div.share-location-btn span {
  font-family: Barlow;
  font-size: 15px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.27;
  letter-spacing: -0.23px;
  text-align: center;
  color: #0091b2;
  vertical-align: middle;
  white-space: nowrap;
}

div.share-location-btn.location-fail {
  padding-right: 19px;
  margin-left: 16px;
  position: relative;
  display:none;
}

div.share-location-btn.location-fail.active {
  display:block;
}


div.share-location-btn.location-fail span {
  color: #babbbc;
}

.share-location-btn .share-location-text i {
  margin-right: 8px;
}

div.share-location-btn span.i {
  position: relative;
  right: 2px;
}

.location-search-input-icon {
  color: #0091b2;
  position: absolute;
}

.location-search-input-clear-icon {
  color: #0091b2;
  position: absolute;
}

.location-manual-search-toggle-icon {
  color: #e58c8c;
  position: relative;
  right: 3px;
  top: 4px;
  font-size: 1.5rem;
}

.autologin-location-selector .search-locations-results {
  position: absolute;
  border-radius: 2px;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
  display: none;
  background-color: white;
  width: 100%;
  max-height: 170px;
  overflow-x: auto;
}

.search-locations-results.active .location-result-item {
  width: 100%;
  display: block;
  background-color: white;
}

.location-result-item .result-item-text {
  vertical-align: middle;
  padding: 9px;
  font-size: 14px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.21;
  letter-spacing: -0.21px;
  text-align: left;
  color: #63656a;
  cursor: pointer;
  width: 100%;
  display: block;
}

.search-locations-results.active .location-result-item:hover {
  background-color: #ebeded;
}

.autologin-location-selector .search-locations-results.active {
  display: block;
  z-index: 999;
}

.current-location-icon {
  width: 25px;
  position: relative;
  display: inline-block;
}

.current-location-icon i::before {
  color: #d8c722;
  position: absolute;
  right: 2px;
  top: 7px;
  font-size: 1.31rem;
}

.current-location-text {
  font-family: Barlow;
  font-size: 18px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.22;
  letter-spacing: normal;
  text-align: left;
  color: #00376e;
  margin-left: 1px;
}

.current-location-plain {
  font-family: Barlow;
  font-size: 16px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.19;
  letter-spacing: -0.24px;
  text-align: left;
  color: #63656a;
  margin-left: 24px;
}

.location-manual-search-toggle {
  font-family: Barlow;
  font-size: 16px;
  font-weight: 600;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.19;
  letter-spacing: -0.24px;
  text-align: left;
  color: #0091b2;
  margin-left: 8px;
}

.location-search-input-icon::before {
  position: relative;
  top: 8px;
  right: 24px;
}

i.far.fa-times.location-search-input-clear-icon {
  display:none;
}

.location-search-input-clear-icon:before {
  position: relative;
  top: 8px;
  right: 24px;
  cursor: pointer;
}

.geolocation-loading-gif {
  display:none;
}

.ajax-loading-holder {
  position:absolute;
}

.geolocation-loading-gif.community-search-loader {
  position: relative;
  top:2px;
  right: 24px;
}

.share-location-loader {
  position: relative;
  right: 24px;
  top:2px;
}

.mobile-current-location-plain {
  display: none;
}

.current-location, .current-location-confirm {
  font-size: 20px;
}

@media (max-width: 768px) {
  .autologin-location-selector-wrapper {
    width: 100%;
  }

  .autologin-location-selector {
    height: 45px;
    display: table;
    width: 100%;
  }

  .autologin-location-selector .location-set-information.active {
    display: table-row !important;
    vertical-align: middle;
  }

  .autologin-location-selector .location-display-information.active {
    display: table-row !important;
    vertical-align: middle;
  }

  .autologin-location-selector .location-set-information.active .location-manual-search-toggle,
  .autologin-location-selector .location-set-information.active .search-locations,
  .autologin-location-selector .location-set-information.active .browser-location-request,
  .location-display-information.active .current-location,
  .location-display-information.active .current-location-confirm {
    display: table-cell;
    vertical-align: middle;
    position: relative;
  }

  .autologin-location-selector .location-set-information.active .browser-location-request .share-location-btn {
    height: 31px;
  }

  .autologin-location-selector .location-set-information.active .browser-location-request .share-location-btn .share-location-text {
    top: 3px;
    position: relative;
  }

  div.share-location-btn {
    bottom: 0px;
    max-width: 170px;
  }

  .location-set-information.active .location-manual-search-toggle {
    width: 25px;
  }

  .location-manual-search-toggle-icon {
    right: 0;
    top: 1px;
  }

  .autologin-location-selector .location-search-input, .search-locations-results.active {
    width: 150px;
  }

  .autologin-location-selector .current-location-confirm .location-manual-search-toggle {
    white-space: nowrap;
  }

  /* this needs to be removed from template eventually but for now we will override here */
  .mobile-location-selector {
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-left: 0px !important;
  }

  .current-location-plain {
    display: none !important;
  }

  .mobile-current-location-plain {
    display: inline-block;
    font-family: Barlow;
    font-size: 14px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.21;
    letter-spacing: -0.21px;
    text-align: right;
    color: #63656a;
  }

  .autologin-location-selector .current-location-confirm .location-manual-search-toggle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.21px;
  }

  .current-location-icon {
    width: 25px;
    position: relative;
    display: inline-block;
  }

  .current-location-icon i::before {
    color: #d8c722;
    position: absolute;
    right: 2px;
    top: 1px;
    font-size: 1.31rem;
  }

  .current-location-text {
    font-size: 16px;
  }

  .mobile-location-selector .current-location {
    width: 135px;
  }

  .autologin-location-selector .location-set-information.active .search-locations {
    width: 150px;
  }

  div.share-location-btn:not(.location-fail) {
    bottom:0;
  }

}

@media (max-width: 540px) {
  div.share-location-btn {
    padding-left: 6px;
    padding-right: 6px;
    margin-left: 12px;
    bottom:0px;
  }

  .share-location-btn .share-location-text i {
    margin-right: 4px;
  }

  div.share-location-btn.location-fail {
    padding-left: 6px;
    padding-right: 6px;
    margin-left: 12px;
  }

  .location-search-input::-webkit-input-placeholder {
     color:transparent;
  }

  .location-search-input:-moz-placeholder { /* Firefox 18- */
     color:transparent;
  }

  .location-search-input::-moz-placeholder {  /* Firefox 19+ */
     color:transparent;
  }

  .location-search-input:-ms-input-placeholder {
     color:transparent;
  }

}

@media (max-width: 361px) {
  div.share-location-btn span {
    font-size: 14px;
  }

  .mobile-location-selector {
    padding-left: 10px !important;
    padding-right: 5px !important;
    margin-left: 0px !important;
  }

  .location-display-information.active .current-location {
    width: 165px;
  }
}

@media (max-width: 321px) {
  .autologin-location-selector .location-search-input, .search-locations-results.active {
    width: 135px;
  }

  div.share-location-btn:not(.location-fail) {
    padding-left: 4px;
    padding-right: 4px;
    margin-left: 0px;
  }

  div.share-location-btn {
    bottom: 0px;
    max-width: 135px;
  }

  .location-search-input-icon::before {
    display: none !important;
  }

  .mobile-location-selector {
    padding-left: 10px !important;
    padding-right: 5px !important;
    margin-left: 0px !important;
  }

  .location-display-information.active .current-location {
    width: 140px;
  }

  .autologin-location-selector .location-set-information.active .search-locations {
    width: 140px;
  }

  .location-display-information.active .location-manual-search-toggle {
    margin-left: 0px;
  }

  div.share-location-btn.location-fail {
    padding-left:0px;
    margin-left:0px;
  }

  .share-location-loader {
    right: 19px;
  }

}

/*
  ##Device = Tablets, Ipads (landscape)
  ##Screen = B/w 768px to 1024px
*/
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  .mobile-location-selector {
    margin: 0;
    padding: 0;
    height: 45px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ----------- iPad 3, 4 and Pro 9.7" ----------- */
/* ----------- iPad Pro 10.5" ----------- */
/* ----------- iPad Pro 12.9" ----------- */
/* Portrait and Landscape */
@media only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2) {
  .mobile-location-selector {
    margin: 0 !important;
    padding: 0;
    height: 45px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .current-location-icon i::before {
    color: #d8c722;
    position: absolute;
    right: 2px;
    top: 6px;
    font-size: 1.31rem;
  }
}
