/* =========================================================
   Shoptrangsuc - Product gallery image classification badge
   ========================================================= */

body.single-product .woocommerce-product-gallery__image {
  position: relative;
}

body.single-product .st-product-image-badge {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 28px);
  min-height: 25px;
  padding: 5px 9px;

  border: 1px solid var(--st-primary, #1C1C1A);
  border-radius: var(--st-button-radius, 4px);
  background: var(--st-white, #FFFFFF);
  box-shadow: none;

  color: var(--st-primary, #1C1C1A);
  font-family: "Shoptrangsuc Text", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;

  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 849px) {
  body.single-product .st-product-image-badge {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    min-height: 23px;
    padding: 4px 8px;
    font-size: 10.5px;
  }
}

@media (max-width: 549px) {
  body.single-product .st-product-image-badge {
    right: 12px;
    bottom: 12px;
    min-height: 22px;
    padding: 4px 7px;
    font-size: 10px;
  }
}

/* =========================================================
   Product Image Lightbox classification badge
   ========================================================= */

.pswp .st-product-image-lightbox-badge {
  position: absolute;
  z-index: 1600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 5px 9px;

  visibility: hidden;
  opacity: 0;

  border: 1px solid var(--st-primary, #1C1C1A);
  border-radius: var(--st-button-radius, 4px);
  background: var(--st-white, #FFFFFF);
  box-shadow: none;

  color: var(--st-primary, #1C1C1A);
  font-family: "Shoptrangsuc Text", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;

  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.12s ease;
}

.pswp .st-product-image-lightbox-badge.is-visible {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 849px) {
  .pswp .st-product-image-lightbox-badge {
    min-height: 23px;
    padding: 4px 8px;
    font-size: 10.5px;
  }
}

@media (max-width: 549px) {
  .pswp .st-product-image-lightbox-badge {
    min-height: 22px;
    padding: 4px 7px;
    font-size: 10px;
  }
}
