.wsm-root {
  width: 100%;
}

.wsm-root .wsm-layout {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(320px, 1fr) minmax(420px, 2fr);
  gap: 16px;
  align-items: start;
  min-height: 710px;
  max-width: 1460px;
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-sizing: border-box;
}

.wsm-root .wsm-panel {
  background: transparent;
  border-radius: 0;
  padding: 0;
  min-width: 0;
  min-height: 710px;
}

.wsm-root .wsm-panel--brands {
  grid-column: 1;
  grid-row: 1;
}

.wsm-root .wsm-panel--stores {
  grid-column: 2;
  grid-row: 1;
}

.wsm-root .wsm-map-wrap {
  grid-column: 3;
  grid-row: 1;
}

.wsm-root .wsm-filter label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #666a73;
  margin-bottom: 8px;
  font-weight: 600;
}

.wsm-root .wsm-filter select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e3e4e8;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  color: #161823;
}

.wsm-root .wsm-store-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
  max-height: none;
  min-height: 640px;
  padding-right: 4px;
}

.wsm-root .wsm-store-card {
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  cursor: pointer;
}

.wsm-root .wsm-store-card.active {
  border-color: #6d0e2c;
  box-shadow: 0 0 0 2px rgba(109, 14, 44, 0.15);
}

.wsm-root .wsm-brand-logos {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wsm-root .wsm-logo-item {
  border: 1px solid #ececf1;
  border-radius: 10px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #fff;
}

.wsm-root .wsm-logo-item img {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  display: block;
}

.wsm-root .wsm-logo-item span {
  text-align: center;
  font-size: 12px;
}

.wsm-root .wsm-card-content h4 {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.2;
  color: #1d1f27;
}

.wsm-root .wsm-card-content p {
  margin: 0 0 10px;
  color: #555964;
  font-size: 14px;
}

.wsm-root .wsm-card-content a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: #6d0e2c;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.wsm-root .wsm-map-wrap {
  border: 1px solid #e1e3e8;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  min-height: 710px;
}

.wsm-root #wsm-map {
  width: 100%;
  min-height: 710px;
}

.wsm-root .wsm-empty {
  background: #fff;
  border: 1px solid #e1e3e8;
  border-radius: 14px;
  padding: 18px 16px;
  color: #666c78;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wsm-root .wsm-empty-title {
  display: block;
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #1c1f28;
}

.wsm-root .wsm-empty-text {
  font-size: 13px;
  line-height: 1.35;
  color: #4e525d;
}

.wsm-root .wsm-brand-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
  max-height: none;
  min-height: 710px;
  padding-right: 4px;
}

.wsm-root .wsm-brand-card {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.wsm-root .wsm-brand-card-inner {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  border: 1px solid #e2e4ea;
}

.wsm-root .wsm-brand-card-logo {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #ececf1;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.wsm-root .wsm-brand-card-logo img {
  max-width: 100%;
  max-height: 50px;
}

.wsm-root .wsm-brand-card-link {
  display: block;
  text-align: center;
  padding: 11px 10px;
  border-radius: 999px;
  background: #6d0e2c;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.wsm-root .wsm-brand-card.active .wsm-brand-card-inner {
  border-color: #6d0e2c;
  box-shadow: 0 0 0 2px rgba(109, 14, 44, 0.15);
}

.wsm-root .wsm-sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 980px) {
  .wsm-root .wsm-layout {
    grid-template-columns: 1fr;
    padding: 10px;
    min-height: 0;
  }

  .wsm-root .wsm-panel--brands,
  .wsm-root .wsm-panel--stores,
  .wsm-root .wsm-map-wrap {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
  }

  .wsm-root .wsm-brand-column {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    min-height: 0;
    padding-right: 0;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .wsm-root .wsm-brand-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }

  .wsm-root .wsm-store-list {
    min-height: 0;
  }

  .wsm-root #wsm-map {
    min-height: 420px;
  }

  .wsm-root .wsm-empty-title {
    font-size: 20px;
  }

  .wsm-root .wsm-empty-text {
    font-size: 16px;
  }
}
