.psmlabels-host {
  position: relative;
}

.psmlabels-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.psmlabels-item {
  position: absolute;
  max-width: 90%;
  pointer-events: auto;
  line-height: 1;
}

.psmlabels-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 4px;
  padding: 2px 6px;
  /* Per-label corner radius via custom property; same resilience rationale as
     --psmlabels-fs. One value or a 4-value shorthand. */
  border-radius: var(--psmlabels-radius, 3px);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  /* Sized via a CSS custom property (not a raw `font-size`) so third-party
     accessibility/font-resizer scripts that wipe inline `style.fontSize` on
     every <span> cannot strip the per-label size. */
  font-size: var(--psmlabels-fs, 12px);
  white-space: nowrap;
}

.psmlabels-item.psmlabels-type-1 .psmlabels-inner {
  padding: 0;
  background: transparent;
}

.psmlabels-img {
  display: block;
  max-width: 100%;
}

.psmlabels-material {
  font-size: var(--psmlabels-fs, 18px);
  line-height: 1;
}
.psmlabels-item.psmlabels-type-4 .psmlabels-inner {
  width: 28px;
  height: 28px;
  padding: 0;
}

.psmlabels-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.psmlabels-svg > svg {
  display: block;
  width: 100%;
  height: 100%;
}

.psmlabels-text {
  font-weight: 600;
}

.psmlabels-item.psmlabels-banner {
  left: 0;
  right: 0;
  max-width: none;
  text-align: center;
}

.psmlabels-banner-content {
  display: block;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: var(--psmlabels-bfs, 12px);
  border-radius: var(--psmlabels-radius, 0);
}

.psmlabels-pos-1 {
  top: 6px;
  left: 6px;
}
.psmlabels-pos-2 {
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
}
.psmlabels-pos-3 {
  top: 6px;
  right: 6px;
}
.psmlabels-pos-4 {
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
}
.psmlabels-pos-5 {
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
}
.psmlabels-pos-6 {
  bottom: 6px;
  left: 6px;
}
.psmlabels-pos-7 {
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}
.psmlabels-pos-8 {
  bottom: 6px;
  right: 6px;
}

.psmlabels-item.psmlabels-banner.psmlabels-pos-2,
.psmlabels-item.psmlabels-banner.psmlabels-pos-7 {
  transform: none;
}

.psmlabels-blink {
  animation: psmlabels-blink var(--psmlabels-blink-speed, 1000ms)
    steps(2, start) infinite;
}

@keyframes psmlabels-blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .psmlabels-blink {
    animation: none;
  }
}

.psmlabels-index-list {
  list-style: none;
  padding-left: 0;
}
.psmlabels-index-list li {
  margin-bottom: 6px;
}
.psmlabels-landing .product-thumbnail img {
  max-width: 100%;
  height: auto;
}
