.site-promotion-badge {
  position: absolute;
  z-index: 2;
  inset: var(--promotion-inset, 10px) auto auto var(--promotion-inset, 10px);
  height: var(--promotion-height, 36px);
  width: auto;
  max-width: calc(100% - 20px);
  object-fit: contain;
  pointer-events: none;
}
.site-promotion-badge[data-position="top-right"] {
  left: auto;
  right: var(--promotion-inset, 10px);
}
.site-promotion-badge[data-position="bottom-left"] {
  top: auto;
  bottom: var(--promotion-inset, 10px);
}
.site-promotion-badge[hidden] { display: none; }
.site-promotion-badge-text {
  height: auto;
  padding: 5px 9px;
  border-radius: 5px;
  background: #251d31;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.site-promotion-percent {
  color: #a72825;
  background: #fbebe8;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .site-promotion-badge { --promotion-height: 30px; --promotion-inset: 8px; }
}

.card-img .site-promotion-badge,
.card:hover .card-img .site-promotion-badge,
.gallery-main .site-promotion-badge,
.gallery-main:hover .site-promotion-badge {
  width: auto;
  height: var(--promotion-height, 36px);
  margin: 0;
  transform: none;
  mix-blend-mode: normal;
  object-fit: contain;
}
.card-img .site-promotion-badge-text,
.card:hover .card-img .site-promotion-badge-text,
.gallery-main .site-promotion-badge-text,
.gallery-main:hover .site-promotion-badge-text {
  height: auto;
}
.gallery-main { --promotion-height: 44px; }
@media (max-width: 640px) {
  .gallery-main { --promotion-height: 32px; }
}
