/* Verified group and retailer branding for the official-store directory */
.shop-group-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--group-accent-2, #d6c9ff), var(--group-accent, #8d5cff));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

.shop-group-mark .shop-group-monogram {
  position: absolute;
  inset: 0;
  display: grid;
  width: auto;
  height: auto;
  place-items: center;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -.04em;
  transition: opacity .16s ease;
}

.shop-group-mark img {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 82%;
  max-height: 72%;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .88)) drop-shadow(0 1px 1px rgba(0, 0, 0, .2));
  transition: opacity .16s ease;
}

.shop-group-mark.has-logo {
  background: rgba(255, 255, 255, .96);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--group-accent, #8d5cff) 28%, rgba(30, 20, 50, .12));
}

.shop-group-mark.has-logo img { opacity: 1; }
.shop-group-mark.has-logo .shop-group-monogram { opacity: 0; }

.shop-listing-retailer .retailer-logo {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 8px 4px 4px;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--store-accent, #7657ff) 28%, var(--border, rgba(140, 110, 180, .2)));
  border-radius: 10px;
  background: color-mix(in srgb, var(--store-accent, #7657ff) 8%, var(--surface, rgba(255, 255, 255, .04)));
}

.shop-listing-retailer .retailer-logo img,
.shop-listing-retailer .retailer-logo-fallback {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.shop-listing-retailer .retailer-logo img {
  object-fit: contain;
  background: #fff;
}

.shop-listing-retailer .retailer-logo-fallback {
  place-items: center;
  background: var(--store-accent, #7657ff);
  color: #fff;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.shop-listing-retailer .retailer-logo-fallback:not([hidden]) { display: grid; }
.shop-listing-retailer .retailer-logo strong { color: var(--text, inherit); }

.shop-listing-meta {
  display: flex;
  margin-top: 5px;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.shop-listing-meta > small {
  color: var(--muted, #9d95aa);
  font-size: 9px;
}

.shop-store-verified {
  display: inline-flex;
  min-height: 18px;
  padding: 2px 6px;
  align-items: center;
  gap: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, #3ad49a 13%, transparent);
  color: color-mix(in srgb, #3ad49a 78%, var(--text, #fff));
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.store-brand-weverse { --store-accent: #7357ff; }
.store-brand-jyp { --store-accent: #1c9ee8; }
.store-brand-sm { --store-accent: #f05ba9; }
.store-brand-yg { --store-accent: #e23030; }
.store-brand-blackpink { --store-accent: #ff6cae; }
.store-brand-aespa { --store-accent: #6547ff; }
.store-brand-starship { --store-accent: #4168dc; }
.store-brand-kq { --store-accent: #e54242; }
.store-brand-cube { --store-accent: #7551d9; }
.store-brand-bizent { --store-accent: #2b9a78; }
.store-brand-plusmember { --store-accent: #eb4d8b; }
.store-brand-fnc { --store-accent: #3174c5; }
.store-brand-ktown { --store-accent: #f06a31; }
.store-brand-official { --store-accent: #7657ff; }

@media (max-width: 480px) {
  .shop-group-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .shop-group-mark .shop-group-monogram { font-size: 14px; }
  .shop-listing-retailer .retailer-logo strong { max-width: 190px; }
}
