/* =========================================================
   Best Years product labels for VP Neoteric
   Ribbon labels stacked on the MAIN product image, not thumbnails.
   ========================================================= */

.product-image-gallery__main-wrapper,
.product-list-images {
  position: relative;
}

.by-product-status {
  position: absolute;
  top: 18px;
  left: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
}

.by-product-status .label-pro {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 67px;
  height: 31px;
  padding: 0 18px 0 15px;
  color: #fff;
  font-family: var(--neoteric-font-family-headings, "Bebas Neue", sans-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%);
  box-shadow: none;
}

.by-product-status .label-pro span {
  display: inline-block;
  transform: translateY(1px);
}

.by-product-status .status-sale { background: #f5b400; }
.by-product-status .status-new { background: #18a84a; }
.by-product-status .status-lowstock { background: #d9534f; }
.by-product-status .status-featured { background: #007bc4; }
.by-product-status .status-discontinued,
.by-product-status .status-sold {
  background: #6d757e;
  min-width: 95px;
}

/* Product grid/list labels remain compact over product cards. */
.product-list-images .by-product-status {
  top: 10px;
}

.product-list-images .by-product-status .label-pro {
  min-width: 58px;
  height: 28px;
  font-size: 16px;
  padding-left: 12px;
  padding-right: 16px;
}

/* Avoid labels attaching to vertical thumbnail column on product details. */
.product-image-gallery > .by-product-status {
  display: none !important;
}
