.rv-discount-catalog > a {
  align-content: start;
}

.rv-discount-photo {
  position: relative;
}

.rv-discount-catalog-photo {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f5f3f1;
}

.migration-new-products .rv-discount-catalog-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rv-discount-breed {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #141414;
  color: #fff;
  font-size: 12px;
}

.rv-discount-photo > .rv-product-discount {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 7px 4px !important;
  background: #f0dfc2;
  color: #54200f !important;
  font-size: clamp(12px, 1.4vw, 19px) !important;
  font-weight: 800;
  line-height: 1.25 !important;
  text-align: center;
  white-space: nowrap;
  container-type: inline-size;
}

/* Fit the complete price to this ribbon, including amounts shown in individual won. */
.rv-product-discount > .rv-discount-text {
  font: inherit;
  letter-spacing: normal;
  font-size: min(1em, calc(40vw / var(--discount-chars)));
  font-size: min(1em, calc(145cqi / var(--discount-chars)));
}

.rv-discount-photo > .rv-product-discount[data-discount-rate="50"] {
  background: #792039;
  color: #fff !important;
}

.rv-discount-name {
  overflow-wrap: anywhere;
}

.shop-item .item-detail .rv-discount-title,
.shop-item .item-detail .rv-discount-title .rv-card-name {
  display: inline;
}

.rv-discount-branch {
  color: #555;
  font-weight: 500;
}

.rv-discount-deadline {
  display: block;
  color: #792039;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
