.polaris-store-map-shortcode {
  --rpx: calc(100vw / 750);
  --map-blue: #0f4ea3;
  --text-primary: #1f1f1f;
  --text-secondary: #6d7d90;
  --card-bg: rgba(255, 255, 255, 0.98);
  --bottom-nav-safe-space: 100px;
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #edf2f7;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.polaris-store-map-shortcode *,
.polaris-store-map-shortcode *::before,
.polaris-store-map-shortcode *::after {
  box-sizing: border-box;
}

.polaris-store-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.polaris-store-map__status {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(24 * var(--rpx));
  padding: calc(48 * var(--rpx));
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.98), rgba(237, 242, 247, 0.96));
  text-align: center;
}

.polaris-store-map__status-text {
  font-size: calc(28 * var(--rpx));
  line-height: 1.6;
  color: var(--text-secondary);
}

.polaris-store-map__spinner {
  width: calc(56 * var(--rpx));
  height: calc(56 * var(--rpx));
  border-radius: 50%;
  border: calc(6 * var(--rpx)) solid rgba(15, 78, 163, 0.14);
  border-top-color: var(--map-blue);
  animation: polaris-store-map-spin 0.9s linear infinite;
}

@keyframes polaris-store-map-spin {
  to {
    transform: rotate(360deg);
  }
}

.polaris-store-map__retry {
  border: none;
  border-radius: calc(24 * var(--rpx));
  background: var(--map-blue);
  color: #fff;
  min-width: calc(220 * var(--rpx));
  height: calc(88 * var(--rpx));
  font-size: calc(30 * var(--rpx));
  font-weight: 600;
  box-shadow: 0 calc(12 * var(--rpx)) calc(28 * var(--rpx)) rgba(15, 78, 163, 0.22);
}

.polaris-store-map__content {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.polaris-store-map__canvas {
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.polaris-store-map__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.polaris-store-map__tip {
  position: absolute;
  left: calc(24 * var(--rpx));
  right: calc(24 * var(--rpx));
  bottom: calc(336 * var(--rpx) + var(--bottom-nav-safe-space));
  padding: calc(16 * var(--rpx)) calc(20 * var(--rpx));
  border-radius: calc(20 * var(--rpx));
  background: rgba(255, 255, 255, 0.92);
  font-size: calc(24 * var(--rpx));
  line-height: 1.6;
  color: var(--text-secondary);
  box-shadow: 0 calc(10 * var(--rpx)) calc(20 * var(--rpx)) rgba(0, 0, 0, 0.08);
}

.polaris-store-map__card-carousel {
  position: absolute;
  left: calc(20 * var(--rpx));
  right: calc(20 * var(--rpx));
  bottom: calc(28 * var(--rpx) + var(--bottom-nav-safe-space));
  overflow: visible;
  pointer-events: none;
}

.polaris-store-map__card-swiper {
  width: 100%;
  overflow: hidden;
  pointer-events: auto;
}

.polaris-store-map__card-track {
  pointer-events: auto;
}

.polaris-store-map__card-swiper.swiper {
  overflow: hidden;
}

.polaris-store-map__card-slide {
  min-height: 124px;
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.08);
  padding: 18px 22px;
  overflow: hidden;
}

.polaris-store-map__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 20px;
  height: 30px;
  min-width: 20px;
  min-height: 30px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transform: translateY(-50%);
  appearance: none;
  -webkit-appearance: none;
}

.polaris-store-map__arrow--prev {
  left: 0;
}

.polaris-store-map__arrow--next {
  right: 0;
}

.polaris-store-map__arrow-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.polaris-store-map__arrow--next .polaris-store-map__arrow-icon {
  transform: scaleX(-1);
}

.polaris-store-map__card-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.polaris-store-map__card-text {
  flex: 1;
  min-width: 0;
}

.polaris-store-map__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.polaris-store-map__address {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
}

.polaris-store-map__address-icon {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  flex: 0 0 12px;
  display: block;
}

.polaris-store-map__address-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-secondary);
  letter-spacing: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.polaris-store-map__meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--text-secondary);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.polaris-store-map__detail {
  min-width: 102px;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border-radius: 12px;
  border: none;
  background: var(--map-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
}

.polaris-store-map__detail:disabled {
  opacity: 0.45;
}

.polaris-store-map__detail:hover,
.polaris-store-map__detail:active,
.polaris-store-map__detail:focus,
.polaris-store-map__detail:focus-visible {
  background: var(--map-blue) !important;
  color: #fff !important;
  outline: none;
  box-shadow: none;
}

.polaris-store-map__arrow:hover,
.polaris-store-map__arrow:active,
.polaris-store-map__arrow:focus,
.polaris-store-map__arrow:focus-visible {
  background: rgba(0, 0, 0, 0.45) !important;
  color: #fff !important;
  outline: none;
  box-shadow: none;
}

.polaris-store-map-shortcode button,
.polaris-store-map-shortcode button:hover,
.polaris-store-map-shortcode button:active,
.polaris-store-map-shortcode button:focus,
.polaris-store-map-shortcode button:focus-visible {
  -webkit-tap-highlight-color: transparent;
}

.polaris-store-map__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(48 * var(--rpx));
  text-align: center;
  color: var(--text-secondary);
  font-size: calc(28 * var(--rpx));
  line-height: 1.6;
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.98), rgba(237, 242, 247, 0.96));
}

.polaris-store-map__marker {
  width: 28px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaris-store-map__marker-icon {
  width: 28px;
  height: 38px;
  display: block;
}

.polaris-store-map__marker.is-active .polaris-store-map__marker-icon {
  transform: scale(1.12);
}

.polaris-store-map-shortcode button,
.polaris-store-map-shortcode a {
  -webkit-tap-highlight-color: transparent;
}

.polaris-store-map-shortcode button:focus,
.polaris-store-map-shortcode button:focus-visible,
.polaris-store-map-shortcode a:focus,
.polaris-store-map-shortcode a:focus-visible {
  outline: none;
  box-shadow: none;
}
