/* Static labels do not add height or JavaScript to product cards. */
html body #page ul.products li.product,
html body #page .woocommerce-product-gallery__image {
  position: relative;
}

html body #page .avc-product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(50% - 15px);
  max-height: 42px;
  margin: 0;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: #c81e1e;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  pointer-events: none;
}

html body #page .avc-product-badge-gallery {
  top: 12px;
  left: 12px;
  max-width: calc(50% - 18px);
  padding: 6px 10px;
  font-size: 13px;
}

@media (max-width: 768px) {
  html body #page .avc-product-badge {
    top: 7px;
    left: 7px;
    max-width: calc(50% - 10px);
    max-height: 30px;
    padding: 3px 5px;
    font-size: 10px;
    line-height: 12px;
  }

  html body #page .avc-product-badge-gallery {
    top: 10px;
    left: 10px;
    max-width: calc(50% - 15px);
    max-height: 40px;
    padding: 5px 8px;
    font-size: 12px;
    line-height: 15px;
  }
}
