[hidden] {
  display: none !important;
}

.miccosmo-store-search {
  box-sizing: border-box;
  width: 100%;
  padding: 28px 0 64px;
  color: #3d4944;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.miccosmo-store-search *,
.miccosmo-store-search *::before,
.miccosmo-store-search *::after {
  box-sizing: border-box;
}

.miccosmo-store-carousel {
  position: relative;
  width: 100%;
  margin: 0 0 26px;
  overflow: hidden;
  background: #eef3f0;
}

.miccosmo-store-carousel-viewport,
.miccosmo-store-carousel-slide,
.miccosmo-store-carousel-slide picture {
  display: block;
  width: 100%;
}

.miccosmo-store-carousel-slide picture {
  height: 100%;
}

.miccosmo-store-carousel-slide {
  aspect-ratio: 1920 / 720;
  color: inherit;
}

.miccosmo-store-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.miccosmo-store-carousel-controls {
  position: absolute;
  right: 12px;
  bottom: 9px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.miccosmo-store-carousel-arrow,
.miccosmo-store-carousel-dot {
  border: 0;
  cursor: pointer;
  pointer-events: auto;
}

.miccosmo-store-carousel-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0 0 3px;
  border-radius: 50%;
  background: rgba(22, 55, 43, .7);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  place-items: center;
}

.miccosmo-store-carousel-dots {
  display: flex;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
}

.miccosmo-store-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: #aebbb5;
}

.miccosmo-store-carousel-dot[aria-current="true"] {
  background: #168b65;
}

.miccosmo-store-carousel-arrow:focus-visible,
.miccosmo-store-carousel-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.miccosmo-store-intro {
  padding: 12px 24px 32px;
  text-align: center;
}

.miccosmo-store-eyebrow {
  margin: 0 0 8px;
  color: #168b65;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}

.miccosmo-store-intro h1 {
  margin: 0;
  color: #2f4039;
  font-size: clamp(25px, 3.4vw, 34px);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.35;
}

.miccosmo-store-lead {
  margin: 14px 0 0;
  color: #6a746f;
  font-size: 14px;
  line-height: 1.8;
}

.miccosmo-store-filter-panel {
  margin: 0 0 34px;
  padding: 26px 30px 30px;
  border-top: 3px solid #15956c;
  background: #f5f8f6;
}

.miccosmo-store-filter-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.miccosmo-store-filter-heading h2,
.miccosmo-store-result-header h2 {
  margin: 0;
  color: #31483f;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .06em;
}

.miccosmo-store-filter-heading p {
  margin: 0;
  color: #77817d;
  font-size: 12px;
}

.miccosmo-store-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.miccosmo-store-field label {
  display: block;
  margin-bottom: 8px;
  color: #46564f;
  font-size: 13px;
  font-weight: 600;
}

.miccosmo-store-select {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid #aebbb5;
  border-radius: 0;
  background-color: #fff;
  color: #33433c;
  font-size: 14px;
  cursor: pointer;
}

.miccosmo-store-select:focus {
  border-color: #138b64;
  outline: 2px solid rgba(19, 139, 100, .16);
  outline-offset: 1px;
}

.miccosmo-store-select:disabled {
  border-color: #d9dfdc;
  background-color: #edf1ef;
  color: #9ba49f;
  cursor: not-allowed;
}

.miccosmo-store-results {
  min-height: 180px;
}

.miccosmo-store-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2px 14px;
  border-bottom: 1px solid #cfd8d3;
}

.miccosmo-store-summary {
  margin: 0;
  color: #168b65;
  font-size: 13px;
  font-weight: 600;
}

.miccosmo-store-state {
  margin-top: 20px;
  padding: 42px 24px;
  border: 1px solid #dce3df;
  background: #fafbf9;
  color: #65716b;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.miccosmo-store-state[data-state="empty"]::before {
  content: "—";
  display: block;
  margin-bottom: 8px;
  color: #15956c;
  font-size: 22px;
}

.miccosmo-store-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
}

.miccosmo-store-card {
  position: relative;
  min-width: 0;
  padding: 22px 22px 52px;
  border: 1px solid #dce3df;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.miccosmo-store-card:hover {
  border-color: #9fc5b5;
  box-shadow: 0 6px 20px rgba(34, 73, 57, .08);
}

.miccosmo-store-card-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.miccosmo-store-card-title a {
  color: #2f493e;
  text-decoration: none;
}

.miccosmo-store-card-title a:hover,
.miccosmo-store-detail-link:hover {
  color: #0c7e58;
  text-decoration: underline;
}

.miccosmo-store-meta {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  margin: 8px 0 0;
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.7;
}

.miccosmo-store-meta-label {
  color: #89938e;
}

.miccosmo-store-meta-value {
  overflow-wrap: anywhere;
}

.miccosmo-store-detail-link {
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: #168b65;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.miccosmo-store-detail-link::after {
  content: "  ›";
}

.miccosmo-store-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, 240px);
  gap: 12px;
  margin-top: 12px;
}

.miccosmo-store-gallery[hidden] {
  display: none;
}

.miccosmo-store-gallery-item {
  aspect-ratio: 4 / 3;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8dfdc;
  background: #fff;
  cursor: zoom-in;
}

.miccosmo-store-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.miccosmo-store-gallery-item:hover,
.miccosmo-store-gallery-item:focus-visible {
  border-color: #15956c;
  outline: 2px solid rgba(21, 149, 108, .16);
  outline-offset: 2px;
}

.miccosmo-store-gallery-dialog {
  position: fixed;
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 42px 16px 16px;
  border: 0;
  background: #fff;
}

.miccosmo-store-gallery-dialog::backdrop {
  background: rgba(0, 0, 0, .72);
}

.miccosmo-store-gallery-dialog-fallback {
  z-index: 9999;
  top: 16px;
  margin: auto;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .72);
}

.miccosmo-store-gallery-dialog-close {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 5px 10px;
  border: 0;
  background: #168b65;
  color: #fff;
  cursor: pointer;
}

.miccosmo-store-gallery-dialog-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 90px);
  object-fit: contain;
}

@media (max-width: 640px) {
  .miccosmo-store-search {
    padding: 16px 12px 42px;
  }

  .miccosmo-store-intro {
    padding: 10px 8px 25px;
  }

  .miccosmo-store-carousel {
    margin-bottom: 20px;
  }

  .miccosmo-store-lead {
    font-size: 13px;
  }

  .miccosmo-store-filter-panel {
    margin-bottom: 28px;
    padding: 22px 16px 20px;
  }

  .miccosmo-store-filter-heading {
    display: block;
  }

  .miccosmo-store-filter-heading p {
    margin-top: 8px;
    line-height: 1.65;
  }

  .miccosmo-store-fields,
  .miccosmo-store-list {
    grid-template-columns: 1fr;
  }

  .miccosmo-store-fields {
    gap: 16px;
  }

  .miccosmo-store-result-header {
    align-items: baseline;
  }

  .miccosmo-store-card {
    padding: 20px 18px 49px;
  }

  .miccosmo-store-detail-link {
    right: 18px;
  }

  .miccosmo-store-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
