.codex-seller-show {
  --codex-ink: #11151f;
  --codex-muted: #697180;
  --codex-line: #e5e0d7;
  --codex-orange: #ff5a1f;
  --codex-yellow: #ffd84d;
  color: var(--codex-ink);
  background: #ffffff;
  border-block: 1px solid #ece9e3;
}

.codex-seller-show,
.codex-seller-show * {
  box-sizing: border-box;
}

.codex-seller-show__inner {
  width: min(100%, 1176px);
  margin-inline: auto;
  padding: 44px 28px 48px;
}

.codex-seller-show h2 {
  margin: 0;
  color: var(--codex-ink);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.codex-seller-show__gallery {
  margin-top: 0;
}

.codex-seller-show__gallery-heading {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.codex-seller-show__gallery-heading h2 {
  font-size: clamp(30px, 3vw, 39px);
  line-height: 1.05;
}

.codex-seller-show__gallery-heading p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--codex-muted);
  font-size: 12px;
  line-height: 1.45;
}

.codex-seller-show__gallery-nav {
  display: none;
  gap: 8px;
  align-items: center;
}

.codex-seller-show__gallery-nav-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--codex-ink);
  border-radius: 50%;
  color: var(--codex-ink);
  background: #ffffff;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.codex-seller-show__gallery-nav-button span {
  display: block;
  transform: translateY(-1px);
  font-size: 22px;
}

.codex-seller-show__gallery-nav-button:hover:not(:disabled),
.codex-seller-show__gallery-nav-button:focus-visible {
  border-color: var(--codex-orange);
  color: #ffffff;
  background: var(--codex-orange);
}

.codex-seller-show__gallery-nav-button:focus-visible {
  outline: 3px solid rgba(255, 90, 31, 0.22);
  outline-offset: 2px;
}

.codex-seller-show__gallery-nav-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.codex-seller-show__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  outline: none;
}

.codex-seller-show__viewport::-webkit-scrollbar {
  display: none;
}

.codex-seller-show__viewport:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.18);
}

.codex-seller-show__track {
  display: flex;
  gap: 14px;
  width: max-content;
}

.codex-seller-show__card {
  flex: 0 0 clamp(218px, 20vw, 228px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border: 1px solid var(--codex-line);
  border-radius: 6px;
  color: inherit;
  background: #ffffff;
}

.codex-seller-show__image-wrap {
  position: relative;
  overflow: hidden;
  background: #eeeae2;
}

.codex-seller-show__image-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.codex-seller-show__badge {
  position: absolute;
  inset: 10px auto auto 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--codex-ink);
  background: var(--codex-yellow);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.codex-seller-show__card-body {
  min-height: auto;
  padding: 13px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.codex-seller-show__card-title {
  display: flex;
  gap: 9px;
  align-items: center;
}

.codex-seller-show__card-title > span {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--codex-ink);
  font-size: 10px;
  font-weight: 700;
}

.codex-seller-show__card-title > div {
  min-width: 0;
  display: grid;
}

.codex-seller-show__card-title strong {
  font-size: 12px;
  line-height: 1.2;
}

.codex-seller-show__stars {
  margin-left: 4px;
  color: var(--codex-orange);
  font-size: 11px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.codex-seller-show__card-title small {
  margin-top: 3px;
  overflow: hidden;
  color: #7b8089;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codex-seller-show__card-body > p {
  margin: 13px 0 14px;
  color: var(--codex-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.58;
}

@media (min-width: 750px) {
  .codex-seller-show__gallery-nav {
    display: flex;
  }
}

@media (max-width: 749px) {
  .codex-seller-show__inner {
    padding: 28px 14px 34px;
  }

  .codex-seller-show__gallery-heading h2 {
    font-size: 29px;
  }

  .codex-seller-show__gallery-heading p {
    font-size: 10px;
  }

  .codex-seller-show__gallery-heading {
    display: block;
  }

  .codex-seller-show__card {
    flex-basis: min(320px, 82vw);
  }

}
