/* Where to Buy widget - scoped to avoid leaking */
.zignature-where-to-buy {
  font-family: "Cabin", sans-serif;
}

.zignature-where-to-buy .wtb-onlinelist {
  min-height: 500px;
}

.zignature-where-to-buy .mapboxgl-ctrl-top-left .mapboxgl-ctrl {
  margin: auto !important;
}

.zignature-where-to-buy .nav-item {
  list-style: none;
  cursor: pointer;
}

.zignature-where-to-buy .wtb-use-location.wtb-locating {
  opacity: 0.7;
  pointer-events: none;
}

.zignature-where-to-buy .wtb-use-location .fa {
  margin-right: 4px;
}

.zignature-where-to-buy .sidebar {
  width: 100%;
  top: 0;
  left: 0;
}

.zignature-where-to-buy .pad2 {
  padding: 20px;
}

.zignature-where-to-buy .map {
  width: 100%;
  height: 600px;
  top: 0;
  bottom: 0;
  border-radius: 10px;
  overflow: hidden;
}

/* Hide Mapbox’s default geolocate button; we use our own in the search bar */
.zignature-where-to-buy .mapboxgl-ctrl-geolocate {
  display: none !important;
}

.zignature-where-to-buy h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 400;
  line-height: 20px;
  padding: 20px 2px;
}

.zignature-where-to-buy a {
  color: #404040;
  text-decoration: none;
}

.zignature-where-to-buy a:hover {
  color: #101010;
}

.zignature-where-to-buy .heading {
  background: #fff;
  min-height: 60px;
  line-height: 60px;
  padding: 0 10px;
  background-color: #00853e;
  color: #fff;
}

/* Allow sticky map: no overflow clipping on ancestors above the two-column row */
.zignature-where-to-buy,
.zignature-where-to-buy .wtb-wrap,
.zignature-where-to-buy .wtb-wrap .row,
.zignature-where-to-buy .wtb-wrap .col-md-12,
.zignature-where-to-buy .sidebar,
.zignature-where-to-buy .tab-content,
.zignature-where-to-buy .wtb-instore-pane {
  overflow: visible !important;
}

/* Two-column row: fixed height so left scrolls, right (map) stays in view */
.zignature-where-to-buy .wtb-instore-pane .row.m-0 {
  align-items: stretch;
  height: 600px;
  min-height: 600px;
  overflow: visible !important;
}

/* Left column: scrollable list container */
.zignature-where-to-buy .wtb-listings-col {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* List scrolls inside left column; right column stays fixed */
.zignature-where-to-buy .wtb-instore-pane .listings {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 40px;
  background: transparent;
  border: none;
}

/* Desktop only: lock column height so the flex scroll child gets a definite size */
@media (min-width: 768px) {
  .zignature-where-to-buy .wtb-listings-col {
    height: 600px;
    overflow: hidden !important;
  }
  .zignature-where-to-buy .wtb-instore-pane .listings {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 0;
  }
}

/* Right column (map + search) sticky when page scrolls */
.zignature-where-to-buy .wtb-map-col {
  position: sticky;
  top: 0;
  min-height: 0;
}

/* No divider between store list and map; no border on listings panel */
.zignature-where-to-buy .wtb-wrap,
.zignature-where-to-buy .wtb-wrap .row,
.zignature-where-to-buy .wtb-instore-pane .row.m-0,
.zignature-where-to-buy .wtb-instore-pane .row.m-0 .col-md-6,
.zignature-where-to-buy .wtb-listings-col,
.zignature-where-to-buy .wtb-map-col,
.zignature-where-to-buy .wtb-instore-pane .listings,
.zignature-where-to-buy .wtb-instore-pane .sidebar,
.zignature-where-to-buy .wtb-instore-pane .tab-content,
.zignature-where-to-buy .wtb-instore-pane .tab-pane {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.zignature-where-to-buy .listings {
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
}
/* Remove any hr or divider line inside the widget */
.zignature-where-to-buy .wtb-instore-pane hr,
.zignature-where-to-buy .listings hr {
  display: none !important;
}
/* Kill divider lines from pseudo-elements (theme/plugin) */
.zignature-where-to-buy .wtb-listings-col::before,
.zignature-where-to-buy .wtb-listings-col::after,
.zignature-where-to-buy .wtb-map-col::before,
.zignature-where-to-buy .wtb-map-col::after,
.zignature-where-to-buy .listings::before,
.zignature-where-to-buy .listings::after,
.zignature-where-to-buy .wtb-instore-pane .row::before,
.zignature-where-to-buy .wtb-instore-pane .row::after {
  display: none !important;
}

.zignature-where-to-buy .listings .item {
  padding: 10px;
  text-decoration: none;
  padding: 20px;
  margin: 0 10px 10px 10px;
  width: calc(100% - 20px);
  border: none;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  transition-duration: 0.2s;
  -moz-transition-duration: 0.2s;
  -webkit-transition-duration: 0.2s;
  line-height: 21px;
  font-size: 15px;
  cursor: pointer;
}

.zignature-where-to-buy .listings .item:hover {
  background-color: transparent;
}

.zignature-where-to-buy .listings .item:last-child {
  border-bottom: none;
}

.zignature-where-to-buy .listings .item .title {
  display: block;
  color: #00853e;
  font-weight: 700;
}

.zignature-where-to-buy .listings .item .title small {
  font-weight: 400;
}

.zignature-where-to-buy .listings .item.active .title,
.zignature-where-to-buy .listings .item .title:hover {
  color: #8cc63f;
}

.zignature-where-to-buy .listings .item.active {
  background-color: transparent;
}

/* Store cards: white bg, 10px radius, structured rows */
.zignature-where-to-buy .listings .item.wtb-card {
  position: relative;
  display: block;
  background-color: #fff;
  border-radius: 10px;
}

.zignature-where-to-buy .listings .item.wtb-card:hover {
  background-color: #fff;
}

.zignature-where-to-buy .listings .item.wtb-card.active {
  background-color: #fff;
}

/* Petco cards: pinned to top of list; distinct frame + tint */
.zignature-where-to-buy .listings .item.wtb-card-petco {
  background: linear-gradient(135deg, #f3f9fd 0%, #fff 55%);
  border: 1px solid #b8d4ea;
  box-shadow: 0 2px 12px rgba(91, 163, 208, 0.12);
}

.zignature-where-to-buy .listings .item.wtb-card-petco:hover {
  background: linear-gradient(135deg, #eaf4fb 0%, #fff 55%);
  border-color: #5ba3d0;
  box-shadow: 0 4px 16px rgba(91, 163, 208, 0.18);
}

.zignature-where-to-buy .listings .item.wtb-card-petco.active {
  background: linear-gradient(135deg, #e3f0f9 0%, #fff 55%);
  border-color: #3d8bc4;
  box-shadow: 0 0 0 2px rgba(91, 163, 208, 0.35);
}

.zignature-where-to-buy .listings .item.wtb-card-petco .wtb-distance-pill {
  background: linear-gradient(180deg, #dceef8 0%, #cfe6f4 100%);
  color: #2a6a94;
  font-weight: 600;
}

.zignature-where-to-buy .listings .item.wtb-card-petco .wtb-card-name,
.zignature-where-to-buy .listings .item.wtb-card-petco .wtb-card-name strong {
  color: #1a5270;
}

.zignature-where-to-buy .listings .item.wtb-card-petco .wtb-btn-directions {
  background-color: #5ba3d0 !important;
  border-color: #4a96c7 !important;
}

.zignature-where-to-buy
  .listings
  .item.wtb-card-petco
  .wtb-btn-directions:hover {
  background-color: #3d8bc4 !important;
  border-color: #3580b5 !important;
}

/* Distance pill – absolute top-right */
.zignature-where-to-buy .wtb-distance-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  color: #616161;
  background-color: #f0f0f0;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Row 1: store name (50%) | address + phone (50%) */
.zignature-where-to-buy .wtb-card-row {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

.zignature-where-to-buy .wtb-card-row1 {
  flex-wrap: wrap;
}

.zignature-where-to-buy .wtb-card-name {
  width: 50%;
  box-sizing: border-box;
  padding-right: 8px;
  font-size: 20px;
  font-weight: 700;
}

.zignature-where-to-buy .wtb-card-name a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.zignature-where-to-buy .wtb-card-name a:hover {
  color: #6f2c91;
  text-decoration: underline;
}

.zignature-where-to-buy .wtb-card-info {
  width: 50%;
  box-sizing: border-box;
}

.zignature-where-to-buy .listings .item.wtb-card .wtb-card-info .title {
  display: block;
  color: #616161;
  font-size: 14px;
  font-weight: 400;
}

.zignature-where-to-buy .wtb-card-phone {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
}

/* Row 2: Directions + Call each 50% */
.zignature-where-to-buy .wtb-card-actions {
  margin-top: 10px;
  gap: 0;
}

.zignature-where-to-buy .wtb-card-actions .wtb-btn-directions,
.zignature-where-to-buy .wtb-card-actions .wtb-btn-call-wrap {
  flex: 0 0 50%;
  box-sizing: border-box;
}

.zignature-where-to-buy .wtb-card-actions .wtb-btn-directions,
.zignature-where-to-buy .wtb-card-actions .wtb-btn-call-wrap .btn,
.zignature-where-to-buy .wtb-card-actions .wtb-btn-call-wrap .wtb-btn-call {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.zignature-where-to-buy .wtb-card-actions .wtb-btn-call-wrap {
  padding-left: 4px;
}

.zignature-where-to-buy .wtb-card-actions .wtb-btn-directions {
  padding-right: 4px;
}

/* Card badges – Petco (light blue) and Certified Partner (orange) */
.zignature-where-to-buy .wtb-badge {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.zignature-where-to-buy .wtb-badge-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.zignature-where-to-buy .wtb-badge-petco {
  background: #5ba3d0;
}

.zignature-where-to-buy .wtb-badge-certified {
  background: #f7941d;
}

/* Ensure store name column doesn’t sit under badge */
.zignature-where-to-buy
  .listings
  .item.wtb-card:has(.wtb-badge)
  .wtb-card-row1 {
  padding-top: 28px;
}

/* Directions = purple; Call = light gray with purple text */
.zignature-where-to-buy .wtb-btn-directions {
  background-color: #6f2c91 !important;
  border-color: #6f2c91 !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  padding-top: 10px;
  padding-bottom: 10px;
}

.zignature-where-to-buy .wtb-btn-directions:hover {
  background-color: #5a2476 !important;
  border-color: #5a2476 !important;
  color: #fff !important;
}

.zignature-where-to-buy .wtb-btn-call {
  background-color: #e9ecef !important;
  border-color: #dee2e6 !important;
  color: #6f2c91 !important;
  font-size: 12px;
  font-weight: 600;
  padding-top: 10px;
  padding-bottom: 10px;
}

.zignature-where-to-buy .wtb-btn-call:hover:not(.disabled) {
  background-color: #dee2e6 !important;
  color: #5a2476 !important;
}

/* Marker image set per-widget via JS from data-pin-url */
.zignature-where-to-buy .marker {
  border: none;
  cursor: pointer;
  height: 25px;
  width: 25px;
  background-size: cover;
}

.zignature-where-to-buy .mapboxgl-popup {
  padding-bottom: 50px;
}

.zignature-where-to-buy .mapboxgl-popup-close-button {
  display: none;
}

.zignature-where-to-buy .mapboxgl-popup-content {
  font:
    400 15px/22px "Source Sans Pro",
    "Helvetica Neue",
    sans-serif;
  padding: 0;
  width: 240px;
}

.zignature-where-to-buy .mapboxgl-popup-content h3 {
  background: #91c949;
  color: #fff;
  padding: 10px;
  font-weight: 700;
  font-size: 18px;
  background: #111;
}

.zignature-where-to-buy .mapboxgl-popup-content h4 {
  margin: 0;
  padding: 10px;
  font-weight: 400;
  font-size: 17px;
}

.zignature-where-to-buy .mapboxgl-popup-content div {
  padding: 10px;
}

.zignature-where-to-buy .mapboxgl-popup-anchor-top > .mapboxgl-popup-content {
  margin-top: 15px;
}

.zignature-where-to-buy .mapboxgl-popup-anchor-top > .mapboxgl-popup-tip {
  border-bottom-color: #91c949;
}

/* Search bar above map: one integrated rounded box (geocoder + use my location) */
.zignature-where-to-buy .wtb-search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  margin-bottom: 4px;
  overflow: visible;
}

.zignature-where-to-buy .wtb-geocoder-wrap {
  flex: 1;
  min-width: 160px;
  overflow: visible;
}

.zignature-where-to-buy .wtb-search-bar .mapboxgl-ctrl-geocoder {
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  top: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: transparent;
  overflow: visible;
}

/* Geocoder suggestions dropdown: must not be clipped, and sit above the map */
.zignature-where-to-buy .mapboxgl-ctrl-geocoder .suggestions {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1100;
  max-height: 300px;
  overflow-y: auto;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.zignature-where-to-buy .wtb-search-bar .mapboxgl-ctrl-geocoder > div {
  min-width: 100%;
  margin-left: 0;
  border: none;
  box-shadow: none;
}

/* Extra left padding so placeholder text doesn’t sit under the search icon */
.zignature-where-to-buy .wtb-search-bar .mapboxgl-ctrl-geocoder--input {
  height: 40px !important;
  padding: 8px 35px 8px 44px !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.zignature-where-to-buy .wtb-search-bar .wtb-use-location {
  flex-shrink: 0;
  height: 40px;
  padding: 0 16px;
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0;
  background: transparent;
  color: #333;
  white-space: nowrap;
}

.zignature-where-to-buy .wtb-search-bar .wtb-country-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
}

.zignature-where-to-buy .wtb-search-bar .wtb-country-select {
  height: 40px;
  border: none;
  background: transparent;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}

.zignature-where-to-buy .wtb-search-bar .wtb-country-select:focus {
  outline: 2px solid rgba(111, 44, 145, 0.35);
  outline-offset: -2px;
}

.zignature-where-to-buy .wtb-search-bar .wtb-use-location:hover {
  background: rgba(0, 0, 0, 0.04);
}

.zignature-where-to-buy .mapboxgl-ctrl-geocoder {
  border: 0;
  border-radius: 0;
  position: relative;
  top: 0;
  width: 800px;
  margin-top: 0;
}

.zignature-where-to-buy .mapboxgl-ctrl-geocoder > div {
  min-width: 100%;
  margin-left: 0;
}

/* Centered pill tabs: theme purple when selected, white when not */
.zignature-where-to-buy .wtb-tab-list {
  display: flex;
  justify-content: center;
  gap: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 1rem 0;
  list-style: none;
}

.zignature-where-to-buy .wtb-tab-list .nav-item {
  margin: 0;
}

.zignature-where-to-buy .wtb-tab-list .nav-link {
  display: inline-block;
  padding: 5px 18px;
  font-family: "Cabin", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50px;
  margin: 0 4px;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.zignature-where-to-buy .wtb-tab-list .nav-link:hover {
  background-color: #f8f9fa;
}

.zignature-where-to-buy .wtb-tab-list .nav-link.active,
.zignature-where-to-buy .wtb-tab-list .nav-item.show .nav-link {
  background-color: #6f2c91 !important;
  color: #fff !important;
  border-color: #6f2c91 !important;
  border-radius: 50px !important;
  padding: 5px 18px !important;
  border-width: 1px !important;
  border-bottom-width: 1px !important;
  margin-bottom: 0 !important;
}

.zignature-where-to-buy .mapboxgl-ctrl-geocoder--input {
  height: 36px;
  padding: 6px 35px !important;
}

.zignature-where-to-buy .tab-content {
  background: transparent;
}

/* Mobile/tablet: stacked layout – list flows with page, full height adapts to whole list */
@media only screen and (max-width: 767px) {
  .zignature-where-to-buy,
  .zignature-where-to-buy .wtb-wrap,
  .zignature-where-to-buy .sidebar,
  .zignature-where-to-buy .tab-content,
  .zignature-where-to-buy .wtb-instore-pane,
  .zignature-where-to-buy .wtb-instore-pane .row.m-0,
  .zignature-where-to-buy .wtb-listings-col,
  .zignature-where-to-buy .wtb-instore-pane .listings {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .zignature-where-to-buy .wtb-instore-pane .row.m-0 {
    display: block;
  }
  .zignature-where-to-buy .wtb-listings-col {
    display: block;
  }
  .zignature-where-to-buy .wtb-map-col {
    position: relative;
  }
  /* Slightly tighter card spacing so more content fits in view */
  .zignature-where-to-buy .listings .item {
    margin-left: 8px;
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 14px;
    width: calc(100% - 16px);
  }
}

@media only screen and (max-width: 600px) {
  .zignature-where-to-buy .map {
    height: 300px;
  }
  .zignature-where-to-buy .btn-info {
    font-size: 13px !important;
  }
  .zignature-where-to-buy .wtb-search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .zignature-where-to-buy .wtb-geocoder-wrap {
    min-width: 0;
  }
}
