/* Styles are intentionally scoped to the Elementor widget, not global WooCommerce badges. */
@font-face {
  font-family: 'Mira YekanBakh FaNum';
  src: url('../fonts/YekanBakhFaNum-VF.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 950;
  font-display: swap;
}
.elementor-widget-mira_sale_badge .mmsb-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  direction: rtl;
  width: 100%;
  min-width: 0;
}
.elementor-widget-mira_sale_badge .mmsb-badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 0;
  white-space: nowrap;
  direction: rtl;
  unicode-bidi: isolate;
  font-family: 'Mira YekanBakh FaNum', Tahoma, Arial, sans-serif;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: 0;
  text-decoration: none;
  background-color: #fce5ec;
  color: #bf3d6c;
  border: 0 solid transparent;
  border-radius: 6px;
  padding: 6px 9px;
  margin: 0;
  box-shadow: none;
  transform: none;
  transition: none;
}
.elementor-widget-mira_sale_badge.mmsb-mode-overlay {
  position: absolute !important;
  inset: 12px auto auto 12px;
  right: 12px;
  left: auto;
  z-index: 5;
  width: max-content !important;
  max-width: calc(100% - 24px);
  margin: 0 !important;
}
.elementor-widget-mira_sale_badge.mmsb-mode-overlay.mmsb-side-left {
  right: auto;
  left: 12px;
}
.elementor-widget-mira_sale_badge.mmsb-mode-inline {
  position: relative;
  inset: auto;
  width: 100%;
}
/* Empty Elementor widgets should not take up space for non-discounted products. */
.elementor-widget-mira_sale_badge:not(:has(.mmsb-badge)) {
  display: none !important;
}
/* Assign 'mmsb-badge-anchor' to the product-image container if it has no positioning context. */
.mmsb-badge-anchor {
  position: relative;
}
@media (prefers-reduced-motion: reduce) {
  .elementor-widget-mira_sale_badge .mmsb-badge { transition: none; }
}
