.offline-stores {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offline-stores-info {
  margin: 10px 0 40px;
}

.offline-stores-header {
  background: #fff;
  border-radius: 8px;
  padding: 20px 20px 12px;
}

.offline-stores-header p {
  margin-bottom: 0 !important;
}

.offline-stores-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.offline-stores-header p a {
  color: #0074eb;
  text-decoration: underline !important;
}

.offline-stores-wrapper {
  background: #fff;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 360px 1fr;
}

#multistore-content .offline-stores-wrapper {
  min-height: 740px;
  grid-template-columns: 510px 1fr;
}

.offline-stores-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
  padding: 20px 20px 0;
}

#multistore-content .offline-stores-filters {
  border-top: 1px solid #F2F2F2;
}

#multistore-content .offline-stores-filters #ms-city-select-wrapper {
  max-width: 100%;
}

#multistore-content .offline-stores-filters .custom-select-wrapper .custom-select-input {
  box-sizing: border-box;
  width: 100%;
}

.ms-city-hint,
.ms-nothing-found {
  padding: 10px;
  color: #8C8A87;
  background: #F9F9F9;
  font-size: 14px;
  border-radius: 6px;
  max-width: max-content;
}

.offline-stores-filters input,
.offline-stores-filters select {
  border-radius: 6px;
  border: 1px solid #d3d3d3;
  padding: 12px;
  width: 100%;
  line-height: 100%;
  font-size: 16px;
}

.offline-stores-filters input::placeholder {
  color: #d3d3d3;
  font-size: 14px;
}

.offline-stores-filters .input-block {
  position: relative;
}

.offline-stores-filters .input-block::after {
  content: "";
  background-image: url("/assets/uiicons/search.svg");
  background-repeat: no-repeat;
  background-size: contain;
  width: 15px;
  height: 15px;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

/* На вкладці «Карта» приховувати лише пошук (селект міста лишається для фільтрації маркерів) */
#tab-sstock .offline-stores-wrapper.ms-view-map .ms-search-block {
  display: none !important;
}

/* Пошук магазину — тільки на адаптиві (< 900px), як на сторінці multistore */
#multistore-content .ms-search-block {
  display: none;
}

/* На десктопі список і карта обидва видимі; перемикання тільки на мал. екранах (в медіа-запиті нижче) */
.offline-stores-list.visible {
  display: flex;
}

.offline-stores-list {
  flex-direction: column;
  max-height: 600px;
  overflow-y: auto;
  padding: 0 20px 20px;
  margin-top: 20px;
}

#multistore-content .offline-stores-list {
  max-height: 672px;
}

.offline-stores-list::-webkit-scrollbar {
  width: 4px;
}

.offline-stores-list::-webkit-scrollbar-thumb {
  background: #9e9e9e;
  border-radius: 3px;
}

.offline-stores-list::-webkit-scrollbar-track {
  background: transparent;
}

.offline-stores-block {
  cursor: pointer;
}

.offline-stores-block-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid #f2f2f2;
}

#multistore-content .offline-stores-block-info {
  border-bottom: 0;
  padding: 16px 0 8px;
}

.offline-stores-block-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9e9e9e;
  margin-bottom: 5px;
  line-height: 20px;
  text-decoration: none !important;
}

.offline-stores-block-row.tag {
  padding: 5px 11px;
  border-radius: 8px;
  width: max-content;
  color: #000;
  margin-left: 18px;
  max-width: 250px;
  font-size: 12px;
}

.offline-stores-block-row.soon-opening {
  background: rgba(247, 205, 70, 0.2);
}

.offline-stores-block-row.info {
  background: rgba(200, 200, 200, 0.1);
}

.offline-stores-block-row .icon {
  height: 18px;
  display: flex;
  align-items: center;
}

.offline-stores-block-row svg {
  flex-shrink: 0;
}

.offline-stores-block-row:first-child {
  font-weight: 500;
  color: #000;
}

.offline-stores-block-row:last-child {
  margin-bottom: 0;
}

.offline-stores-block-row .shop-price {
  padding: 10px;
  border-radius: 8px;
  background: #FDF5DA;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.offline-stores-block-content {
  display: none;
}

.offline-stores-block-content .get-direction {
  padding: 14px 0;
  display: flex;
  color: #000;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  background: #f7cd46;
  border-radius: 5px;
  margin-top: 16px;
  font-weight: 500;
}

.offline-stores-block.open .offline-stores-block-content {
  display: block;
}

.offline-stores-block .arrow {
  transition: 0.3s;
}

.offline-stores-block.open .arrow {
  transform: rotate(180deg);
}

.shop-slider-for {
  position: relative;
  height: 200px;
  margin-bottom: 8px;
  border-radius: 6px;
}

.shop-slider-for .slick-slide {
  height: 200px;
  border-radius: 6px;
  overflow: hidden;
}

.shop-slider-for .slick-slide img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.shop-slider-nav .slick-slide {
  height: 50px;
  cursor: pointer;
  padding: 0 2px;
  border-radius: 6px;
  overflow: hidden;
}

.shop-slider-nav .slick-slide img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.shop-slider-for img,
.shop-slider-for iframe {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.shop-slide-nav .slick-slide {
  height: 200px;
}

.shop-slider-nav img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.slick-arrow.small {
  font-size: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.video-slide iframe {
  width: 100%;
  height: 200px;
  max-height: 200px;
}

.offline-stores-map {
  height: 100%;
  width: 100%;
  z-index: 3;
  min-height: 500px;
  border-radius: 8px;
}

#multistore-content .offline-stores-map {
  border-radius: 0;
}

.map-point-block {
  font-family: "Montserrat", sans-serif;
}

.offline-stores-map .leaflet-popup-content {
  margin: 20px;
}

.map-point-block h4 {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 6px;
}

.map-point-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.map-point-link {
  border-radius: 5px;
  background: #f7cd46;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offline-stores-map a.leaflet-popup-close-button {
  color: #9e9e9e !important;
  right: 6px !important;
  top: 6px !important;
}

.offline-stores-nav {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #d3d3d3;
}

.offline-stores-nav button {
  border-radius: 5px;
  border: 1px solid #d3d3d3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 500;
  padding: 14px 0;
  color: #000;
}

.offline-stores-nav button.active {
  border: 1px solid #f7cd46;
}

.offline-stores-empty {
  font-weight: 500;
  color: #d3d3d3;
  text-align: center;
}

.offline-stores-map .leaflet-popup-content-wrapper {
  border-radius: 6px;
}

.offline-stores-map .leaflet-popup-content-wrapper,
.offline-stores-map .leaflet-popup-tip {
  box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.1) !important;
}

.shop-gallery {
  border-radius: 6px;
  overflow: hidden;
}

#tab-sstock {
  margin-bottom: 8px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

#tab-sstock .product-section {
  margin-bottom: 0;
}

#tab-sstock .collapse-title p {
  margin: 8px 0 0;
}

#tab-sstock .collapse-title p a {
  color: #0074eb;
  text-decoration: underline;
}

#tab-sstock .stock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#tab-sstock .stock-chips .sp-item {
  display: inline-block;
  /* white-space: nowrap; */
  padding: 10px;
  border: 1px solid #F9F9F9;
  background: #F9F9F9;
  border-radius: 8px;
}

#tab-sstock .sp-extra {
  display: contents;
}

#tab-sstock .stock-chips .sp-toggle-all {
  display: block;
  width: 100%;
  margin-top: 4px;
  line-height: 130%;
  text-align: left;
  text-decoration: underline;
  padding: 2px 0;
}

@media (max-width: 900px) {
  #tab-sstock,
  #multistore-content {
    max-width: 100%;
    overflow-x: hidden;
  }

  #multistore-content .offline-stores-content {
    min-width: 0;
  }

  .offline-stores-wrapper {
    grid-template-columns: 100%;
    margin-bottom: 28px;
  }

  #multistore-content .offline-stores-wrapper {
    min-height: auto;
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }

  .offline-stores-nav {
    display: grid;
  }

  .offline-stores-list {
    margin-top: 0;
    padding: 0 16px 20px;
  }

  .offline-stores-map {
    border-radius: 0;
  }

  .offline-stores-list,
  .offline-stores-map {
    display: none;
  }

  .offline-stores-list.visible {
    display: flex;
  }

  .offline-stores-map.visible {
    display: block;
  }

  #ms-city-select-wrapper,
  #multistore-content .custom-select-wrapper {
    max-width: 100%;
    min-width: 0;
  }

  #multistore-content .custom-select-dropdown {
    left: 0;
    right: auto;
    width: 100%;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
  }

  #multistore-content .ms-search-block {
    display: block;
  }

  #multistore-content .offline-stores-list {
    min-height: 260px;
    max-height: unset;
  }

  #multistore-content .offline-stores-filters {
    border-top: 0;
  }
}

@media (max-width: 767px) {
  #tab-sstock {
    margin-bottom: 12px;
  }

  .offline-stores-container {
    padding: 0 !important;
  }

  .offline-stores-container .breadcrumb {
    padding: 17px 20px;
  }

  .offline-stores-header {
    padding: 16px;
  }

  .offline-stores-filters {
    padding: 0 16px;
    min-width: 0;
  }

  #multistore-content .offline-stores-filters {
    padding-left: 16px;
    padding-right: 16px;
  }

  .offline-stores .slick-arrow {
    display: inline !important;
  }

  .offline-stores-list {
    padding-bottom: 24px;
  }

  .offline-stores-map {
    margin-top: 24px;
  }

  .offline-stores-map .leaflet-popup-content {
    margin: 12px;
  }

  #multistore-content .offline-stores-map {
    margin-top: 0;
  }

  .offline-stores-header h1 {
    font-size: 16px;
  }

  #ms-city-select-wrapper .custom-select-input {
    box-sizing: border-box;
    max-width: 100%;
  }

  #multistore-content .custom-select-dropdown {
    max-width: calc(100vw - 32px);
    max-height: 60vh;
  }

  #tab-sstock .stock-chips .sp-item {
    font-size: 13px;
    padding: 6px;
  }

  .ms-city-hint, .ms-nothing-found {
    margin-top: 12px;
  }
}
