.wlf-wrapper {
  display: table;
  width: 100%;
}
.wlf-search {
  background: none;
  border: 2px solid #486861;
  border-radius: 2rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.wlf-search button:hover {
  background: #7599a7;
}
.wlf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: self-end;
  margin: 0;
}
.wlf-field {
  flex: 1;
}
.wlf-field-small {
  flex: 0.5;
}
.wlf-search label {
  display: block;
  color: #d06346;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
}
.wlf-search input, .wlf-search select, .wlf-search textarea {
  background-color: transparent;
  border: 1px solid #486861;
  border-radius: 1rem;
  color: #343434;
  font-size: 1rem;
  height: auto;
  line-height: 1.333rem;
  padding: 1rem 1rem;
  -webkit-transition: all .3s ease;
  transition: all .3s ease;
  margin: 0;
}
.wlf-search button {
  display: block;
  width: 100%;
  border-radius: 1rem;
  color: #343434;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  height: auto;
  letter-spacing: .01rem;
  line-height: 1.333rem;
  padding: 1rem 1rem;
  background: #f4ad40;
  cursor: pointer;
  border: 1px solid #486861;
}
#wlf-map {
  width: 100%;
  height: 650px;
  border: 2px solid #486861;
  border-radius: 2rem;
  overflow: hidden;
  background: #f7f7f7;
}
#wlf-results {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin: 1rem 0 0 0;
}
.wlf-result-card {
  background: none;
  border: 1px solid #486861;
  border-radius: 2rem;
  padding: 1.5rem 1.5rem 3rem 1.5rem;
  line-height: 1.778rem;
  position: relative;
}
.wlf-result-card .wlf-result-name {
  font-weight: 700;
}
.wlf-result-card .wlf-result-type {
  font-size: 1rem;
  padding: 0.5rem 1rem 0.5rem 1rem;
  border-radius: 1rem;
  display: table;
  line-height: 1rem;
  margin: 0 0 0.25rem 0;
  position: absolute;
  right: 3rem;
  bottom: 1rem;
}
.wlf-result-card .wlf-directions {
  display: inline-block;
  margin-top: 0.5rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}
.wlf-result-card .wlf-type-bottle {
  color: #000;
  background: #f4ad40;	
}
.wlf-result-card .wlf-type-glass {
  color: #fff;
  background: #d06346;
}
.gm-style .gm-style-iw {
  font-size: 1rem;
  font-weight: 400;
  overflow: hidden;
  line-height: 1.444rem;
  width: 320px;
  display: flex;
  flex-direction: row-reverse;
  padding: 1rem !important;
}
/* If the card contains .wlf-type-bottle */
.wlf-result-card:has(.wlf-type-bottle) {
  background: url("bottle-marker.png") right 1rem bottom 1rem no-repeat;
  background-size: 1.5rem;
}
/* If the card contains .wlf-type-glass */
.wlf-result-card:has(.wlf-type-glass) {
  background: url("glass-marker.png") right 1rem bottom 1rem no-repeat;
  background-size: 1.5rem;
}
.gm-style-iw-chr {
  align-items: flex-start !important;
}
.gm-style-iw-chr button {
  height: auto !important;
  width: auto !important;
}
.gm-style-iw-chr button span {
  margin: 0 0 0 1rem !important;
}
.gm-style .gm-style-iw-d {
  width: 300px;
}
.gm-style-iw-d .wlf-map-popup strong {
  font-weight: 700;
}
.gm-style-iw-d .wlf-map-popup hr {
  display: block;
  border-bottom: none;
  height: 1px;
  border-top: 1px solid #486861;
}
.gm-style-iw-d .wlf-map-popup .directions {
  display: inline-block;
  margin: 0.5rem 0 0 0;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  background: #7599a7;
  color: #fff !important;
  padding: 0.25rem 1rem 0.25rem 1rem;
  border-radius: 2rem;
}
.gm-style-iw-d .wlf-map-popup .directions:hover {
  background: #f4ad40;
  color: #000 !important;
}
#wlf-loader {
  display: none;
  width: 100%;
  margin: 1rem 0;
}
.wlf-loader-bar {
  width: 100%;
  height: 0.5rem;
  background: #fff;
  overflow: hidden;
  border-radius: 1rem;
}
.wlf-loader-progress {
  width: 100%;
  height: 100%;
  background: #7b1e3a;
  animation: wlfLoading 2s infinite linear;
}
.wlf-loader-text {
  margin-top: 0.5rem;
  color: #666;
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  text-align: center;
}
@keyframes wlfLoading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}
.wlf-no-results {
  background: none;
  border: 2px dashed #486861;
  padding: 1.5rem;
  text-align: center;
  color: #d06346;
  font-weight: 600;
  border-radius: 2rem;
}


@media only screen and (max-width : 768px) {
    .wlf-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5em;
    }

    #wlf-results {
        grid-template-columns: repeat(1, 1fr);
    }
	.wlf-search input, .wlf-search select, .wlf-search textarea {
        width: 100%;
    }
}