#wfbmm-map {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

/* Map count markers */

.marker-cluster-custom,
.marker-cluster-custom div,
.marker-cluster-custom span {
  box-sizing: border-box;
}

.marker-cluster-custom {
  background: transparent !important;
}

.marker-cluster-custom::before,
.marker-cluster-custom::after {
  display: none !important;
}

.marker-cluster-custom .wfbmm-map-count-inner {
  height: 34px;
  min-width: 86px;
  padding: 0 13px;
  border-radius: 999px;
  background: #000;
  border: 2px solid rgba(255,255,255,.96);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.marker-cluster-custom .wfbmm-map-count-inner span {
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
  display: inline-block;
}

/* A-Z search */

.wfbmm-az-search {
  margin-top: 26px;
  margin-bottom: 28px;
  width: 100%;
}

.wfbmm-az-search-inner {
  width: 100%;
  border: 1px solid #e5e5e5;
  padding: 18px;
  background: #fff;
  box-sizing: border-box;
}

.wfbmm-az-topline {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-bottom: 14px;
}

.wfbmm-az-title {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: #000;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.wfbmm-az-input-wrap {
  flex: 1;
}

.wfbmm-az-input {
  padding: 18px 26px!important;
  color: #000!important;
  margin: 0 !important;
}

.wfbmm-az-letters {
  display: grid;
  grid-template-columns: repeat(26, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.wfbmm-az-letter {
  appearance: none;
  width: 100%;
  min-width: 0;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  padding: 8px 0;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  text-transform: uppercase;
  text-align: center;
  transition:
    background .15s ease,
    color .15s ease;
}

.wfbmm-az-letter:hover,
.wfbmm-az-letter.is-active {
  background: #000;
  color: #fff;
}

/* Results */

.wfbmm-map-results {
  margin-top: 32px;
}

/* Header box */

.wfbmm-grid-header {
  margin-bottom: 24px;
}

.wfbmm-grid-header h2 {
  display: inline-block;
  margin: 0;
  padding: 10px 14px;
  background: #000;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: left;
}

/* Grid */

.wfbmm-woocommerce-results ul.products.wfbmm-products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.wfbmm-woocommerce-results ul.products.wfbmm-products li.product {
  width: auto !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  text-align: center;
}

.wfbmm-product .inner_product {
  position: relative;
  overflow: visible;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.wfbmm-product .inner_product_header {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.wfbmm-product img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 14px;
}

.wfbmm-product-location {
  min-height: 18px;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .65;
}

.wfbmm-product .woocommerce-loop-product__title {
  min-height: 42px;
  margin: 0 0 7px;
  padding: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
}

.wfbmm-product .woocommerce-loop-product__title a {
  color: inherit;
  text-decoration: none;
}

.wfbmm-product .price {
  display: block;
  min-height: 22px;
  margin: 6px 0 12px;
  font-size: 14px;
  line-height: 1.3;
}

.wfbmm-product .avia_cart_buttons {
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.wfbmm-product .show_details_button,
.wfbmm-product .avia_cart_buttons .button {
  background: #000 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 9px 14px !important;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
  line-height: 1;
}

.wfbmm-product .show_details_button:hover,
.wfbmm-product .avia_cart_buttons .button:hover {
  opacity: .86;
}

@media (max-width: 989px) {

  .wfbmm-az-letters {
    grid-template-columns: repeat(13, minmax(0, 1fr));
  }

  .wfbmm-woocommerce-results ul.products.wfbmm-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 600px) {

  .wfbmm-az-topline {
    display: block;
  }

  .wfbmm-az-title {
    height: 38px;
    justify-content: center;
  }

  .wfbmm-az-input {
    border-left: 1px solid #d8d8d8;
  }

  .wfbmm-az-letters {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .wfbmm-woocommerce-results ul.products.wfbmm-products {
    grid-template-columns: 1fr;
  }

  .wfbmm-grid-header h2 {
    font-size: 15px;
    padding: 8px 12px;
  }

}