.ifox-store-locator {
  --ifox-slocator-gap: 20px;
  --ifox-slocator-radius: 8px;
  --ifox-slocator-border: #e5e5e5;
  /* Card design tokens lifted 1:1 from the "Our stores" home section
     (#home-store-map-section) so ifox-store-locator__item matches it
     pixel-for-pixel: section bg #f0f0ee behind white cards, Belleza/
     Montserrat type scale, and the #7f2c2e brand maroon already used
     site-wide (see classic_child/assets/css/custom-child.css). */
  --ifox-slocator-panel-bg: #f0f0ee;
  --ifox-slocator-card-bg: #fff;
  --ifox-slocator-accent: #7f2c2e;
  --ifox-slocator-title-color: #181818;
  --ifox-slocator-text-color: #6b6b67;
}

.ifox-store-locator__top {
  display: flex;
  gap: var(--ifox-slocator-gap);
  align-items: stretch;
}

.ifox-store-locator__list-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 40%;
}

.ifox-store-locator__list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 35px;
  background-color: var(--ifox-slocator-panel-bg);
  padding: 0 8px;
  border-radius: var(--ifox-slocator-radius);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c2c2c2 transparent;
}

.ifox-store-locator__list::-webkit-scrollbar {
  width: 6px;
}

.ifox-store-locator__list::-webkit-scrollbar-track {
  background: transparent;
}

.ifox-store-locator__list::-webkit-scrollbar-thumb {
  background-color: #c2c2c2;
  border-radius: 999px;
}

.ifox-store-locator__list::-webkit-scrollbar-thumb:hover {
  background-color: #9c9c9c;
}

.ifox-store-locator__map {
  flex: 1 1 auto;
  min-width: 0;
  height: 420px;
  overflow: hidden;
  z-index: 0;
}

.ifox-store-locator__item {
  display: flex;
  align-items: stretch;
  text-align: left;
  width: 100%;
  flex: 0 0 auto;
  background: var(--ifox-slocator-card-bg);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.15s ease;
}

.ifox-store-locator__item:hover {
  box-shadow: inset 0 0 0 1px var(--ifox-slocator-border);
}

.ifox-store-locator__item--active,
.ifox-store-locator__item:focus-visible {
  box-shadow: inset 3px 0 0 var(--ifox-slocator-accent);
}

.ifox-store-locator__item:focus-visible {
  outline: none;
}

.ifox-store-locator__item-media {
  flex: 0 0 31%;
  max-width: 31%;
  overflow: hidden;
}

/* Prefixed with the widget root class throughout this card from here on:
   the whole widget renders inside Creative Elements' page canvas, whose
   global kit CSS ships broad resets like ".elementor img"/".elementor a"
   at (0,1,1) specificity -- a bare ".ifox-store-locator__item-x img"/"a"
   rule ties or loses to those and can be overridden depending on load
   order, so every rule here is deliberately kept at (0,2,*) or higher. */
.ifox-store-locator .ifox-store-locator__item-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 110 / 164;
  object-fit: cover;
}

.ifox-store-locator__item-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
  margin: 15px 18px;
}

.ifox-store-locator .ifox-store-locator__item-name {
  margin: 0;
  font-family: "Belleza", sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  color: var(--ifox-slocator-title-color);
}

.ifox-store-locator .ifox-store-locator__item-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 !important;
  padding: 0;
  list-style: none !important;
}

.ifox-store-locator .ifox-store-locator__item-info li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--ifox-slocator-text-color);
  margin-bottom: 5px !important;
}

.ifox-store-locator .ifox-store-locator__item-info li a {
  color: var(--ifox-slocator-text-color) !important;
  text-decoration: none;
}

.ifox-store-locator .ifox-store-locator__item-info .icon {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 20px;
  color: var(--ifox-slocator-accent);
}

.ifox-store-locator .ifox-store-locator__item-directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ifox-slocator-accent);
  text-decoration: none;
  text-transform: uppercase;
}

.ifox-store-locator .ifox-store-locator__item-directions:hover,
.ifox-store-locator .ifox-store-locator__item-directions:focus-visible {
  text-decoration: underline;
  color: var(--ifox-slocator-accent);
}

.ifox-store-locator .ifox-store-locator__item-directions .icon {
  font-size: 14px;
}

.ifox-store-locator__popup-hours {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--ifox-slocator-border);
  font-size: 0.8125em;
  max-height: 140px;
  overflow-y: auto;
}

.ifox-store-locator__table-wrap {
  margin-top: var(--ifox-slocator-gap);
  overflow-x: auto;
}

.ifox-store-locator__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  border: 1px solid var(--ifox-slocator-border);
}
.ifox-store-locator__table tbody {
  background: white;
}

.ifox-store-locator__table th,
.ifox-store-locator__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ifox-slocator-border);
  text-align: left;
  vertical-align: top;
}

.ifox-store-locator__table th {
  font-weight: 600;
  white-space: nowrap;
}

.ifox-store-locator__table ul {
  margin: 0 !important;
}

.ifox-store-locator__hours {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875em;
}

@media (max-width: 767px) {
  .ifox-store-locator__top {
    /* DOM order is now map, then list -- plain column keeps the map on top
       on mobile without needing to reverse it. */
    flex-direction: column;
  }

  .ifox-store-locator__list-panel {
    flex: 1 1 auto;
    max-width: 100%;
    max-height: 260px;
  }

  .ifox-store-locator__map {
    width: 100%;
  }

  .ifox-store-locator__table thead {
    display: none;
  }

  .ifox-store-locator__table,
  .ifox-store-locator__table tbody,
  .ifox-store-locator__table tr,
  .ifox-store-locator__table td {
    display: block;
    width: 100%;
  }

  .ifox-store-locator__table tr {
    border: 1px solid var(--ifox-slocator-border);
    border-radius: var(--ifox-slocator-radius);
    margin-bottom: 12px;
    padding: 8px 12px;
  }

  .ifox-store-locator__table td {
    border: none;
    padding: 6px 0;
  }

  .ifox-store-locator__table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 0.75em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 2px;
  }
}
