/* hide sign up button & login link in header -- only on locations page */
#all-locations-page li.signup { visibility: hidden !important; height:40px} /*signup link - desktop*/
#all-locations-page #sign-up-btn-mb { visibility: hidden !important;} /*signup link - mobile*/
#all-locations-page ul.login-signup-dt:nth-child(1) > li:nth-child(1) > a:nth-child(1) { display: none !important;} /*login link*/
#all-locations-page ul.login-signup-dt:nth-child(1) > li:nth-child(1) > ul:nth-child(2) { display: none !important;} /*login submenu*/
#all-locations-page ul.login-signup-dt:nth-child(1) > li:nth-child(1):hover {border: none !important;  background-color:transparent !important; } /*login submenu - don't show color changes on hover*/

#new-locations-section {
  margin-top: 0px !important;
  min-height: 500px;
  padding-bottom: 20px;
}
/*body .layout main h2, */
body .layout main h1.staples-h1{
  text-align: left !important;
  margin: 0px !important;
}

#intro-section h3 {
  font-size: 14px;
  padding: 12px 0px 8px 0px;
  text-transform: uppercase;
  font-weight: 500;
}
#search_button img {
    opacity: 0.6;
    width: 15px;
}

.view-locations-btn {
    padding: 5px 0px!important;
}
@media (max-width: 450px) {
  #new-locations-section {
    margin-top: 5px;
  }

  #intro-section .mobile-only p {
    display: block;
  }

  #intro-section .hide-on-mobile {
    display: none;
  }

  body .layout main  #intro-section .mobile-only p {
    line-height: 16px !important;
  }
}
@media (min-width: 451px) {
  .mobile-only { display:none;}
}

@media (max-width: 365px) {
  #location-listing-discounted-intl-btn {
    font-size: 12px !important;
  }
}
#new-locations-section button {
  border: 0;
  padding: 0;
  font-size: 16px;
  cursor: pointer;
  outline-width: 0;
  background: transparent;
}
#locations-query-type-nav,
#locations-region-type-nav {
  margin-bottom: 30px;
}
#locations-query-type-nav .locations-query-type-btn:not(.selected),
#locations-query-type-nav .locations-region-type-btn:not(.selected),
#locations-region-type-nav .locations-query-type-btn:not(.selected),
#locations-region-type-nav .locations-region-type-btn:not(.selected) {
  color: #478bb8;
  text-decoration: underline;
}
#locations-query-type-nav .locations-query-type-btn:not(.selected).selected,
#locations-query-type-nav .locations-region-type-btn:not(.selected).selected,
#locations-region-type-nav .locations-query-type-btn:not(.selected).selected,
#locations-region-type-nav .locations-region-type-btn:not(.selected).selected {
  color: #000;
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}
#new-locations-section .bridge-text {
  margin: 0 10px;
  display: inline-block;
}
#new-locations-section #locations-service-div .bridge-text {
  margin-left: 0;
}
#find-a-location-controls,
#view-all-locations-form {
  display: none;
}
.mapboxgl-ctrl-compass {
  display: none !important;
}
#find-a-location-controls.show-element,
#view-all-locations-form.show-element {
  display: block;
}
#locations-region-type-nav #usa-locations-btn {
  margin-right: 15px;
}
#locations-filter {
  display: flex;
  flex-wrap: nowrap;
  max-width: 53%;
}
/*intl filter - only one field, so adjust width: */
.intl { max-width: 205px !important;}

#country-selector {
  flex: 20% !important;
  width: 20% !important;
}

#locations-search-input {
    flex: 40% !important;
    width: 40% !important;
  }
/* removing distance search option: */
#locations-filter #radius-selector { display:none !important;  }

/* Responsive layout - Hide map.  Display search form in one column instead of 1 row */
@media (max-width: 700px) {
  #intro-section {padding-top: 20px;}
  #view-all-map-div {
    display: none;
  }
  #view-all-locations-result-section {
    margin-top: 20px;
  }
  #locations-filter {
    flex-wrap: wrap;
    max-width: 100%;
  }
  #back-btn-and-totals {
    width: 100% !important;
  }
  #locations-filter .location-filter-field {
    margin-bottom: 5px;
  }
  /* on mobile:  put search+radius on same row: */
  #locations-filter #country-selector {
    flex: 100% !important;
    margin-bottom: 10px;
    padding: 14px 12px !important;
    margin-right: 0px !important;
    /*font-size: 16px;*/
  }
  #locations-filter #locations-search-input {
    flex: 55% !important;
    margin-bottom: 10px;
    padding: 14px 12px !important;
    /*font-size: 16px;*/
  }
  #locations-filter #radius-selector {
    flex: 40% !important;
    margin-bottom: 10px;
    padding: 14px 12px !important;
    margin-right: 0px !important;
    /*font-size: 16px;*/
  }
  #locations-filter #services-selector {
    flex: 100% !important;
    margin-bottom: 10px;
    padding: 14px 12px !important;
    margin-right: 0px !important;
    /*font-size: 16px;*/
  }
 .view-locations-btn {
    flex: 100% !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;

  }
}
#locations-filter #radius-selector,
#locations-filter #services-selector,
#locations-filter #country-selector,
#locations-filter #locations-search-input {
  padding: 8px 12px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #ebeaea;
  margin-right: 8px;
  font-size: 12px;
}
#locations-filter #locations-search-input.red-border{
  border: 3px solid red !important;
  transition: border 1s;
}
#locations-filter #services-selector { padding-right: 5px; padding-left: 5px; }
.mail-center-card .choose-location-btn {
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  background: #1075FA;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  font-size: 14px;
}

.disabled {
  cursor: not-allowed !important;
  /*opacity: .5;*/
}
 .mail-center-card .choose-location-btn:hover {
  background-color: #2B7FF0;
}
#find-a-location-result-section,
#view-all-locations-result-section {
  display: none;
  margin-top: 10px;
}
#find-a-location-results-top-links {
  display: none;
}
#find-a-location-results-top-links.show-element {
  /*display: flex;
  /justify-content: space-between;*/
  display: block ;
  margin-top: 15px;
}
#find-a-location-results-top-links #back-btn-and-totals {
  display: flex;
  justify-content: space-between;
  width: 53%;
  padding: 10px 0px 15px 0px;
}
#find-a-location-results-top-links #back-btn-and-totals #total-results {
  padding: 10px 0px 8px 10px;
  color: black;
  font-size: 14px;
  font-weight: 500;
}
#find-a-location-results-top-links #back-btn-and-totals #total-results a {
  color: #ec7021;
  cursor: pointer;
}
#find-a-location-results-top-links #back-btn-and-totals #total-results a:hover {
  text-decoration: underline;
}
#discounted-intl-fwd-link { position: absolute; left: 30px; padding-top: 5px;}
#find-a-location-result-section.show-element,
#view-all-locations-result-section.show-element {
  display: -ms-grid;
  display: grid;
}
#find-a-location-result-section #no-results-msg,
#find-a-location-result-section #mail-center-listings {
  display: none;
}
#find-a-location-result-section #no-results-msg.show-element,
#find-a-location-result-section #mail-center-listings.show-element {
  display: block;
}
#find-a-location-result-section #no-results-msg {
  font-size: 20px;
  color: #478bb8;
  text-align: center;
}
#find-a-location-result-section #mail-center-listings {
  overflow-y: scroll;
}
#find-a-location-result-section #mail-center-listings #show-all-link {
  font-weight: bold;
  /* padding: 30px 0px; */
  display: flex;
}
#find-a-location-result-section #mail-center-listings #show-all-link span {
  padding-top: 5px;
  display: flex;
}

#find-a-location-result-section #mail-center-listings::-webkit-scrollbar {
  display: none;
}
#find-a-location-result-section #mail-center-listings {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
 .mail-center-card {
  padding: 10px;
  border-radius: 6px;
  border: 2px solid #D7D8DB;
  font-size: 14px;
  line-height: 1 !important;
  max-width: 600px;
}
 .mail-center-card:hover {
  border-color: #1075FA;
}
 .mail-center-card.highlighted {
  border-color: #1075FA;
}
 .mail-center-card:not(:last-of-type) {
  margin-bottom: 15px;
}
 .mail-center-card p {
  margin: 0 0 10px 0;
}
 .mail-center-card .store-radius {
  color: #9b9999;
  padding-left: 6px;
}
#distance-asterisk { color: #9b9999; font-style: italic; }
 .mail-center-card .shipping-status p {
  color: #565252;
}
#find-a-location-result-section .mail-center-card .view-more-details-btn,
.mail-center-card .view-more-details-btn {
  color: #9a9a9a;
  padding: 2px 10px !important;
  border-radius: 5px;
  border: 1px solid #9a9a9a;
  font-weight: 500;
  margin-top: 10px;
  font-size: 14px;
  background-color: white;
}
#find-a-location-result-section .mail-center-card .view-more-details-btn:hover,
.mail-center-card .view-more-details-btn:hover {
  color: white;
  background-color: #9a9a9a;
}
 .mail-center-card .more-details-div {
  max-height: 0;
  overflow: hidden;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

  .mail-center-card
  .more-details-div.show-element {
  max-height: 200px;
  -webkit-transition: all 0.3s ease-in;
  transition: all 0.3s ease-in;
}
  .mail-center-card
  .more-details-div
  p:first-of-type {
  margin-top: 10px;
}
 .store-address-and-img-div,
 .location-price-and-choose-btn-div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}
 .store-address-and-img-div .store-name {
  font-size: 20px;
}
 .location-price-and-choose-btn-div p {
  margin: 0;
  -ms-flex-item-align: end;
  align-self: flex-end;
}
 .store-address-and-img-div p.store-address {
  line-height: 1.3;
  font-weight: 500;
}
 .mail-center-card .choose-location-btn {
  text-decoration: none;
}
#view-all-locations-result-section #view-all-map-div {
  margin-bottom: 30px;
}
#find-a-location-map-div .mapboxgl-ctrl-geocoder.mapboxgl-ctrl {
  display: none; /* this is mapbox's auto-complete text search box */
}
#find-a-location-map-div {
  height: 700px;
  position: sticky;
  position: -webkit-sticky; /* Safari */
  top: 0;
  left: 0;
}
#view-all-locations-result-section #city-listings-div,
#view-all-locations-result-section #state-country-listing {
  display: none;
}
#view-all-locations-result-section #city-listings-div.show-element,
#view-all-locations-result-section #state-country-listing.show-element {
  display: block;
}
#view-all-locations-result-section #state-country-listing.extra-padding {
  padding-top: 30px;
}
#view-all-locations-result-section .region-btn {
  display: block;
  line-height: 30px;
  break-inside: avoid; /*fixes safari layout bug*/
  color: #478bb8; /*#0192db;*/
  text-align: left;
}
#view-all-locations-result-section .region-btn .locations-count {
  padding: 2px 10px 2px 10px;
  background: #478bb8;
  border-radius: 10px;
  font-size: 12px;
  line-height: 26px;
  margin-left: 5px;
  color: #ffffff;
}
#view-all-locations-result-section .region-btn:hover {
  /*border-bottom: 1px solid #0192db;*/
  text-decoration: underline;
  text-decoration-color: #ee7021;
  color: #ee7021;
}
#view-all-locations-result-section .region-btn:hover .locations-count {
  background: #ee7021;
}
#view-all-locations-result-section #state-country-divider {
  width: 120px;
  border: none;
  margin: 25px 0;
  border-top: 1px solid;
}
/*this is on the city list view */
#back-btn {
  margin-bottom: 10px;
}
/*this is on the mail center list view */
#back-btn-div {
  display: flex;
  justify-content: space-between;
}
#location-listing-discounted-intl-btn {
  display: none !important;

}
#location-listing-back-btn {
  font-size: 18px !important;
  font-weight: bold;
  text-transform: uppercase;
}
#location-listing-back-btn,
#location-listing-discounted-intl-btn.show-element {
  padding: 8px 0px !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  border-radius: 5px !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  font-size: 14px;
  color: #478bb8; /*#ec7021;*/
}
#location-listing-back-btn:hover,
#location-listing-discounted-intl-btn:hover {
  -webkit-filter: brightness(107%);
  filter: brightness(107%);
  text-decoration: underline;
}
#location-listing-back-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 5px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  border: 1px solid #478bb8/*#ec7021*/;
  border-width: 0 0 3px 3px;
}
/*#location-listing-discounted-intl-btn::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 5px;
  -webkit-transform: rotate(225deg);
  transform: rotate(225deg);
  border: 1px solid #EC7021;
  border-width: 0 0 1px 1px;
}*/
#location-listing-discounted-intl-btn img {
  width: 18px;
  margin-right: 3px;
  margin-left: -5px;
}
#view-all-map-div .marker-div {
  cursor: pointer;
}
#find-a-location-map-div .marker-div .pin,
#view-all-map-div .marker-div .pin {
  top: 50%;
  left: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: absolute;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background: #478bb8;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  border-radius: 50% 50% 50% 0;
}
#find-a-location-map-div .marker-div .pin {
  width: 28px;
  height: 28px;
  margin: -20px 0 0 -19px;
}
#find-a-location-map-div .marker-div .pin:after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f5f5f5;
}
#find-a-location-map-div .marker-div .pin:hover,
#view-all-map-div .marker-div .pin:hover,
#find-a-location-map-div .marker-div .pin.highlighted {
  background: #ee7021;
}
#view-all-map-div .marker-div .pin {
  width: 31px;
  height: 31px;
  margin: -20px 0 0 -20px;
}
#view-all-map-div .marker-div .pin b {
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
@media (max-width: 900px) {
   .view-locations-btn {
    padding: 10px 10px;
  }
}
@media (max-width: 767px) {
  #view-all-locations-result-section #view-all-map-div {
    height: 250px;
  }
  #view-all-locations-result-section
    #city-listings-div.show-element
    #city-listings,
  #view-all-locations-result-section #state-country-listing.show-element {
    column-count: 2;
  }
  /*#find-a-location-result-section #mail-center-listings {
    max-height: 400px;
  } */
  /* hide map with mail centers on small screens */
  #find-a-location-result-section #find-a-location-map-div  {
    display: none;
  }
}

@media (max-width: 343px) {
   .mail-center-card .location-price-and-choose-btn-div {
    font-size: 15px;
  }
   .mail-center-card .choose-location-btn {
    padding: 6px 10px;
  }
}

@media (min-width: 768px) {
  #find-a-location-result-section.show-element {
    gap: 15px;
    grid-template-columns: 1fr;
  }
  #find-a-location-result-section .store-img-link {
    width: 100px;
  }
  .mail-center-card .store-img {
    display: block;
    max-width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 5px;
  }
  .mail-center-card .shipping-status p {
    margin-bottom: 4px;
  }
  #view-all-locations-result-section #view-all-map-div {
    width: 100%;
    height: 310px;
  }
}

@media (min-width: 600px) {
  #view-all-locations-result-section
    #city-listings-div.show-element
    #city-listings,
  #view-all-locations-result-section #state-country-listing.show-element {
    column-count: 3;
  }
}
@media (min-width: 768px) {
  #view-all-locations-result-section
    #city-listings-div.show-element
    #city-listings,
  #view-all-locations-result-section #state-country-listing.show-element {
    column-count: 4;
  }
}
@media (min-width: 988px) {
  #view-all-locations-result-section
    #city-listings-div.show-element
    #city-listings,
  #view-all-locations-result-section #state-country-listing.show-element {
    column-count: 5;
  }
}
.hide-element {
  display: none !important;
}
#close_popup_X {
  font-weight: bold;
  font-size: x-large;
  cursor: pointer;
  float: right;
  font-size: x-large;
  margin-right: 3px;
  margin-top: 4px;
  padding: 0px 8px 1px 8px;
  border-radius: 15px;
}

#close_popup_X:hover {
  color: white;
  background-color: #4a4a4a;
}
.ui-menu .ui-menu-item a {
  background: white;
  height: 10px;
  font-size: 8px;
  border-bottom: 1px solid lightgray;
  padding: 10px 5px;
}
.ui-autocomplete {
  max-height: 300px;
  width: 250px;
  overflow-y: auto;
  /* prevent horizontal scrollbar */
  overflow-x: hidden;
  font-size: 12px;
  /* add padding to account for vertical scrollbar
  padding-right: 20px;*/
}

.checkmark-hilited {
  color: #ee7201 !important;
  font-weight: bold;
}
figcaption {
  color: gray;
  font-size: small;
  text-align: center;
  padding-top: 1px;
}
#find-a-location-result-section .store-img-link {
  margin-bottom: 10px;
}
#autocomplete-loading-spinner {
  width: 120px;
  height: 90px;
  margin-top: -10px;
  position: absolute;
  left: 250px;
  display: none;
} /*
#autocomplete-loading-spinner {
width: 120px;
height: 10px;
margin-top: 30px;
position: absolute;
left: 25px;
display: none;
}*/
#autocomplete-loading-spinner.show-element {
  display: block;
}
#loading-spinner-overlay {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  background-color: rgba(0,0,0,0.1);
  z-index: 2;
  cursor: pointer;
  width: 100%;
  height: 100%;
  display:none;
}
#loading-spinner {
  position: absolute;
  top: 25%;
  left: 50%;
  /*color: white;
  transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);*/
}
