/* mantoamigol 1.6.0 – front-end fixes (moved from child theme / snippets) */
/* MANTO-SWATCH-WRAP-v1 START */
html body.single-product form.variations_form ul.variable-items-wrapper{
  display:flex!important; flex-wrap:wrap!important; justify-content:flex-start!important;
  align-items:flex-start!important; gap:8px 14px!important;
  max-inline-size:100%!important; min-inline-size:0!important;
  overflow:visible!important; scroll-snap-type:none!important; overscroll-behavior-inline:auto!important;
  padding-block:8px 12px!important; padding-inline:8px!important; }
html body.single-product form.variations_form ul.variable-items-wrapper>li.variable-item{
  flex:0 0 auto!important; scroll-snap-align:none!important; }
html body.single-product form.variations_form ul.color-variable-items-wrapper{
  gap:8px 20px!important; padding-inline:12px!important; padding-block-end:12px!important; }
html body.single-product form.variations_form ul.radio-variable-items-wrapper,
html body.single-product form.variations_form ul.button-variable-items-wrapper{ gap:8px!important; }
html body.single-product form.variations_form ul.variable-items-wrapper{
  --wvs-cross:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'><line x1='9' y1='35' x2='35' y2='9' stroke='%230B1A33' stroke-width='5' stroke-linecap='round'/><line x1='9' y1='35' x2='35' y2='9' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round'/></svg>"); }
/* MANTO-SWATCH-WRAP-v1 END */

/* MANTO-SIZE-2COL-v1 START (size buttons two per row; remove block to revert) */
html body.single-product form.variations_form ul.variable-items-wrapper[data-attribute_name="attribute_pa_size"],
html body.single-product form.variations_form ul.radio-variable-items-wrapper,
html body.single-product form.variations_form ul.button-variable-items-wrapper{
  display:flex!important; flex-direction:row!important; flex-wrap:wrap!important;
  gap:8px!important; padding-inline:8px!important; }
html body.single-product form.variations_form ul.variable-items-wrapper[data-attribute_name="attribute_pa_size"]>li.variable-item,
html body.single-product form.variations_form ul.radio-variable-items-wrapper>li.variable-item,
html body.single-product form.variations_form ul.button-variable-items-wrapper>li.variable-item{
  flex:0 0 calc(50% - 4px)!important; max-inline-size:calc(50% - 4px)!important;
  min-inline-size:0!important; width:auto!important; margin:0!important; box-sizing:border-box!important; }
html body.single-product form.variations_form ul.variable-items-wrapper[data-attribute_name="attribute_pa_size"]>li.variable-item *,
html body.single-product form.variations_form ul.radio-variable-items-wrapper>li.variable-item *,
html body.single-product form.variations_form ul.button-variable-items-wrapper>li.variable-item *{
  font-size:13px!important; line-height:1.6!important; }
html body.single-product form.variations_form ul.variable-items-wrapper[data-attribute_name="attribute_pa_size"]>li.variable-item>*,
html body.single-product form.variations_form ul.radio-variable-items-wrapper>li.variable-item>*,
html body.single-product form.variations_form ul.button-variable-items-wrapper>li.variable-item>*{
  inline-size:100%!important; box-sizing:border-box!important; padding:9px 6px!important;
  min-block-size:44px!important; justify-content:center!important; text-align:center!important; }
/* MANTO-SIZE-2COL-v1 END */

/* MANTO-SALE-BADGE-CIRCLE-v1 START (round badge fits «۱۵٪ تخفیف» on 2 lines; remove block to revert) */
html body .woocommerce span.onsale,
html body span.onsale {
  box-sizing: border-box !important;
  inline-size: 4.6em; block-size: 4.6em;
  min-inline-size: 4.6em; min-block-size: 4.6em;
  padding: .3em !important;
  display: flex !important; align-items: center; justify-content: center;
  text-align: center; white-space: normal; line-height: 1.35 !important;
  font-size: .857em; font-weight: 700;
}
/* MANTO-SALE-BADGE-CIRCLE-v1 END */

/* MANTO-CARD-BADGE-v2 START (v1.7.3) – listing-card badge [amg_sale_badge]:
   rounded tab, bold readable digits (~30px tall), like the reference the owner sent. */
html body span.onsale.amg-card-badge {
  inline-size: auto !important; block-size: 32px !important;
  min-inline-size: 40px !important; min-block-size: 0 !important;
  padding: 0 9px !important; border-radius: 8px !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  font-size: 15px !important; line-height: 1 !important; font-weight: 800 !important;
  white-space: nowrap !important; margin: 0 !important;
  font-family: Vazirmatn, Vaz, 'Vazirmatn FD', 'ایران سانس وب فانام بولد', IRANSansMobile-fa, Tahoma, sans-serif !important;
  font-weight: 700 !important; letter-spacing: 0 !important; -webkit-font-smoothing: antialiased;
}
@media (max-width: 767px) {
  html body span.onsale.amg-card-badge {
    block-size: 28px !important; min-inline-size: 36px !important;
    padding: 0 7px !important; font-size: 14px !important;
    position: relative !important; inset-block-start: 10px !important;
  }
}
.elementor-widget-shortcode:has(> .elementor-widget-container > .amg-card-badge),
.elementor-widget-shortcode:has(> .amg-card-badge) { line-height: 0; }
/* MANTO-CARD-BADGE-v2 END */
