/* Cato Bravehart page chrome and branding for the map. Only applies on pages that contain the map. */

/* Keep the theme's grey hero (page title) and white article card like every other page. The map fills the card edge to edge. */
body:has(#wpsl-wraps) .article-content:has(#wpsl-wraps) {
  padding: 0 !important;
  overflow: hidden;
}

#wpsl-wraps {
  width: 100%;
  background: #fff !important;
  background-image: none !important;
}

/* The theme's hero already shows the page title, so the map drops its own heading and sits as a search bar at the top of the card. */
#wpsl-wraps .intro-header.locationsPage {
  background: #fff !important;
  padding: 2.5rem 2.5rem 2rem;
}

#wpsl-wraps .intro-header h1 {
  display: none;
}

#wpsl-wraps .intro-header .container {
  max-width: none;
  padding: 0;
}

#wpsl-wraps .intro-header .container,
#wpsl-wraps .intro-header .row {
  height: auto !important;
  min-height: 0 !important;
}

#wpsl-wraps .intro-header .row {
  justify-content: flex-start !important;
  margin: 0;
}

#wpsl-wraps .intro-header .intro-inner {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0;
}

/* The map sits inside the theme's .prose article styles, which add list indents, bullets and margins. */
#wpsl-wraps ul,
#wpsl-wraps ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

#wpsl-wraps li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#wpsl-wraps li::before,
#wpsl-wraps li::marker {
  content: none;
}

/* Text and buttons in the theme's style: sentence case, theme font, no letter-spacing. */
#wpsl-wraps #wpsl-stores .wpsl-title {
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.25rem;
  line-height: 1.3;
}

#wpsl-wraps #wpsl-search-btn,
#wpsl-wraps .wpsl-directions {
  text-transform: none;
  letter-spacing: normal;
  border-radius: 0;
}

#wpsl-wraps #wpsl-search-btn:hover {
  background: #961822;
  border-color: #961822;
}

#wpsl-wraps #wpsl-search-btn svg g {
  fill: #fff;
}

#wpsl-wraps #wpsl-stores .wpsl-phone,
#wpsl-wraps #wpsl-stores .wpsl-phone:hover {
  color: #c8202d;
}

#wpsl-wraps #wpsl-stores ul li {
  border-bottom-color: #eee;
}

/* Listing: keep the delivery icons and Directions button from shrinking or running out of their boxes on phones. */
#wpsl-wraps .store-features {
  column-gap: 0.25rem;
  flex-wrap: nowrap;
}

#wpsl-wraps .store-features > * {
  flex: 0 1 auto;
  min-width: 0;
}

#wpsl-wraps .wpsl-directions {
  white-space: nowrap;
  padding-left: 6px;
  padding-right: 6px;
}

/* Search bar: two filters and the location search on one row, each with a label; stacked on phones. */
#wpsl-wraps #wpsl-search-wrap form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

#wpsl-wraps .csl-filter {
  flex: 0 0 13rem;
  margin: 0;
}

#wpsl-wraps .csl-filter label,
#wpsl-wraps .wpsl-search-field label {
  display: block;
  width: auto;
  height: auto !important;
  margin: 0 0 0.375rem !important;
  padding: 0 !important;
  line-height: 1.5rem !important;
  font-weight: 700;
}

#wpsl-wraps .csl-filter select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 56px;
  padding: 0 2.5rem 0 1rem;
  border: 1px solid #868686;
  border-radius: 0;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M0 0l6 8 6-8z' fill='%23121212'/></svg>") no-repeat right 1rem center / 12px;
  color: #121212;
  font: inherit;
  cursor: pointer;
}

#wpsl-wraps .csl-filter select:focus {
  border-color: #c8202d;
  outline: none;
}

#wpsl-wraps .wpsl-search-field {
  flex: 1 1 20rem;
  min-width: 0;
}

#wpsl-wraps .wpsl-search-field .input-group {
  margin: 0;
}

@media (max-width: 767px) {
  #wpsl-wraps .csl-filter {
    flex-basis: 100%;
  }
}

/* Brand badge above each store name in the list. */
#wpsl-wraps .csl-brand {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.125rem 0.625rem;
  border: 1px solid #121212;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25rem;
  color: #121212;
}

#wpsl-wraps #wpsl-search-wrap .input-group {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

#wpsl-wraps #wpsl-search-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border: 1px solid #868686 !important;
  box-shadow: none !important;
}

#wpsl-wraps #wpsl-search-input:focus {
  border-color: #c8202d !important;
  outline: none;
}

#wpsl-wraps #wpsl-search-btn {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  column-gap: 0.75rem;
  width: auto;
  white-space: nowrap;
}
