html,
body {
  background-color: white !important;
}

#sw {
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  display: none;
  font-size: 14px;
  color: #3d4750;
}

.button.alt.shiptimize-pick-location {
  background: #f8b526;
  color: black;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #f8b526;
  margin-top: 0.5rem;
}
.button.alt.shiptimize-pick-location:hover {
  background-color: #f9c451;
}

.leaflet-container {
  height: calc(100vh - 230px);
  max-height: 100vh !important;
  overflow: hidden !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

#sw.open {
  display: block;
}

#sw__container {
  width: var(--containerwidth);
  z-index: 99991;
  position: absolute;
  top: 30px;
  left: 7%;
  width: 86%;
  display: flex;
  flex-direction: column;
  -webkit-box-shadow: 0px 0px 40px 20px rgba(222, 222, 222, 1);
  -moz-box-shadow: 0px 0px 40px 20px rgba(222, 222, 222, 1);
  box-shadow: 0px 0px 40px 20px rgba(222, 222, 222, 1);
}

#sw__overlay {
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 9999;
  background: #fff;
  top: 0;
  left: 0;
}

#sw-query-wrapper,
#sw-display-options {
  display: flex;
  flex-direction: row;
}

#sw-query {
  flex-grow: 1;
  line-height: 50px;
  border: solid thin #f2f0f3;
  padding-left: 15px;
  outline: #010101;
}

#sw-query-btn {
  background: #f8b526;
  color: black;
  border: none;
  padding: 15px;
  cursor: pointer;
  display: inline-block;
  width: auto;
  border-radius: 0;
}

#sw-query-btn:hover {
  background: #f8b526;
  color: black;
  transition: all 0.5s;
}

#sw-query-results {
  position: absolute;
  z-index: 999999999;
  background: #fff;
  padding-left: 10px;
  padding-top: 15px;
  width: 100%;
  box-sizing: border-box;
}

.sw-query-result {
  line-height: 2em;
  cursor: pointer;
}

.sw-query-result:hover {
  color: var(--query-result-hover);
}

#sw-query-options {
  margin-top: 15px;
  margin-bottom: 30px;
}

.sw-query-results-description {
  font-size: 16px;
  padding: 5px;
}

.sw-display-option {
  color: var(--map-list-text);
  font-size: 20px;
  flex-grow: 1;
  text-align: center;
  border-bottom: solid #f2f0f3;
  cursor: pointer;
  line-height: 50px;
  height: 50px;
  margin-top: 20px;
}

#sw__container.searching .sw-display-option {
  display: none;
}

.sw-display-option.selected {
  color: var(--map-list-text-selected);
  border-bottom: solid var(--map-list-text-selected);
}

.sw-display-option:hover {
  color: var(--map-list-text-hover);
  border-color: var(--map-list-text-hover);
}

.sw-tab {
  display: none;
  position: relative;
}

#sw-map-wrapper {
  min-height: 70vh !important;
  height: auto;
}

.sw-tab.selected {
  display: block;
  min-height: 150vh !important;
  height: auto;
  z-index: -1;
  /* padding-bottom: 500px; */
  position: relative;
}

#sw__container.searching .sw-tab.selected {
  display: none;
}

#sw-map-wrapper.loading #sw-map {
  display: none;
}

#sw-map {
  width: 100%;
  height: 75vh !important;
}

#sw-map-error {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
}

#sw-map-selected-point {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 99999;
  width: 30vw;
  min-width: 400px;
}

#sw-map-selected-point .sw-point-info {
  width: 100%;
  margin-bottom: 0;
  padding: 20px;
  line-height: 1.5em;
}

#sw-search-status {
  display: none;
  line-height: 100px;
  position: absolute;
  top: calc(50vh - 148px);
  left: calc(50% - 40px);
  z-index: 99999;
}

#sw__container.searching #sw-search-status {
  display: block;
}

#sw-search-summary {
  line-height: 2em;
  margin: 20px 0;
}

#sw-map-message {
  position: absolute;
  top: 85px;
  left: 0;
  width: 100%;
  text-align: center;
  display: none;
  justify-content: center;
  align-content: center;
  height: calc(100vh - 218px);
  background: white;
  z-index: 9999999;
  padding-top: 30px;
}

#sw-map-message.open {
  display: flex;
}

#sw-list-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 0.5rem;
  position: absolute;
  /* position: relative; */
  top: 4rem;
  gap: 1rem;
  width: 100%;
  z-index: 2;
}

.sw-point-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 20px;
  box-sizing: border-box;
  margin-right: 1%;
  margin-bottom: 10px;
  position: relative;
  top: -1vh;
  background: white;
  -webkit-box-shadow: 7px 7px 15px -3px rgba(186, 186, 186, 1);
  -moz-box-shadow: 7px 7px 15px -3px rgba(186, 186, 186, 1);
  box-shadow: 7px 7px 15px -3px rgba(186, 186, 186, 1);
}

.sw-point-info-name {
  font-weight: bold;
  font-size: 18px;
  margin: 1px;
  width: 90%;
}

.sw-point-info-btn {
  color: black;
  align-self: start;
  padding: 9px 16px;
  background: #f8b526;
  border: solid thin#f8b526;
  text-align: center;
  padding: 9px 16px 9px 16px;
  bottom: 2px;
  width: auto;
  height: auto;
  border-radius: 8px;
}

.sw-point-info-btn:hover,
.sw-point-info-btn.selected {
  cursor: pointer;
  padding: 9px 18px;
  background: #f8b526;
  border: solid thin var(--btn-bg-hover);
}

.sw-point-info-day {
  display: flex;
  flex-direction: row;
  margin: 0 !important;
}

.sw-point-info-day label {
  margin: 0 !important;
  display: inline-block;
  margin-right: 5px;
  color: var(--info-day-label);
  vertical-align: top;
}

.sw-point-info-additional input {
  max-width: 400px;
}
.shiptimize-pickup-alert {
  background: #fff6da;
  border-left: 4px solid #e6b800;
  color: #4a3d00;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 15px;
  margin: 16px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  font-weight: 500;
  transition: all 0.3s ease;
}

.shiptimize-pickup-alert strong {
  color: #3b3100;
}

.shiptimize-pickup-alert:hover {
  background: #fff1c1;
  transform: translateY(-1px);
}
@media (max-width: 1024px) {
  .leaflet-container {
    height: 350px !important;
  }
  .sw-point-info-btn {
    align-self: start;
    color: white;
    padding: 9px 16px;
    background: #f8b526;
    border: 1px solid white;
    font-weight: bold;
    border-radius: 8px;
  }

  #sw__container {
    width: 100%;
    left: 0;
  }

  #sw-list-points {
    display: flex;
    flex-direction: column;
    width: 90%;
    position: relative;
    top: 5rem;
    gap: 1rem;
  }

  .sw-point-info {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding: 5px 10px;
    margin-bottom: 1rem;
  }

  #sw-map-wrapper {
    min-height: 45vh !important;
    height: auto;
  }

  .sw-tab.selected {
    min-height: 70vh !important;
    height: auto !important;
  }

  #sw-map {
    height: calc(100vw);
  }

  .sw-tab {
    padding: 10px;
  }

  #sw-map-selected-point {
    width: 93%;
  }
}

.sw-loader {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.sw-loader div {
  display: inline-block;
  position: absolute;
  left: 8px;
  width: 16px;
  background: var(--loader-bg);
  animation: sw-loader 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.sw-loader div:nth-child(1) {
  left: 8px;
  animation-delay: -0.24s;
}
.sw-loader div:nth-child(2) {
  left: 32px;
  animation-delay: -0.12s;
}
.sw-loader div:nth-child(3) {
  left: 56px;
  animation-delay: 0;
}

@keyframes sw-loader {
  0% {
    top: 8px;
    height: 64px;
  }
  50%,
  100% {
    top: 24px;
    height: 32px;
  }
}
