/* Mahdafzar Product Studio — dedicated Elementor widgets */
.mdzps-unified-taxonomies,
.mdzps-unified-taxonomies *{box-sizing:border-box}
.mdzps-unified-taxonomies{--mdz-tax-accent:#a51f37;--mdz-tax-ink:#40383a;--mdz-tax-muted:#82797b;display:flex;align-items:center;flex-wrap:wrap;gap:7px 13px;width:100%;max-width:100%;margin:8px 0 12px;padding:10px 12px;border:1px solid #eee8e9;border-radius:12px;background:#fff;color:var(--mdz-tax-ink);font-family:inherit;font-size:11px;line-height:1.8;direction:rtl}
.mdzps-unified-taxonomies small{display:inline-flex;align-items:center;flex:none;margin:0;color:var(--mdz-tax-muted);font-size:10px;font-weight:750;line-height:1.7}
.mdzps-unified-sku{display:inline-flex;align-items:center;gap:7px;min-height:27px;padding:3px 9px;border:1px solid #eee8e9;border-radius:8px;background:#faf9f9;white-space:nowrap}
.mdzps-unified-sku bdi{color:#30282a;font-size:11px;font-weight:850;direction:ltr;font-variant-numeric:tabular-nums}
.mdzps-unified-taxonomy-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;max-width:100%}
.mdzps-unified-taxonomy-row>div{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0;max-width:100%}
.mdzps-unified-taxonomy-row a{display:inline-flex;align-items:center;max-width:100%;min-height:25px;padding:2px 8px;border:1px solid #f0e7e9;border-radius:7px;background:#fff8f9;color:var(--mdz-tax-accent);font-size:10px;font-weight:750;line-height:1.65;text-decoration:none!important;overflow-wrap:anywhere;transition:background .16s ease,border-color .16s ease,color .16s ease}
.mdzps-unified-taxonomy-row a:hover{border-color:#e3b8c1;background:#fbedf0;color:#7e1429}
.mdzps-unified-taxonomy-row a:focus-visible{outline:2px solid var(--mdz-tax-accent);outline-offset:2px}

/* Horizontal tier cards: swipeable on touch screens, no JavaScript dependency for layout. */
.mdzps-tiers--widget-horizontal .mdzps-compact__rows{display:flex!important;align-items:stretch;gap:9px;padding:12px;overflow-x:auto;overflow-y:hidden;direction:rtl;scroll-snap-type:x mandatory;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.mdzps-tiers--widget-horizontal .mdzps-compact__tier{display:flex!important;flex:0 0 min(245px,78vw);flex-direction:column;align-items:stretch;justify-content:space-between;gap:11px;min-height:142px;padding:13px!important;scroll-snap-align:start;text-align:right!important}
.mdzps-tiers--widget-horizontal .mdzps-compact__range,.mdzps-tiers--widget-horizontal .mdzps-compact__unit{gap:4px}
.mdzps-tiers--widget-horizontal .mdzps-compact__range>strong{font-size:13px}
.mdzps-tiers--widget-horizontal .mdzps-compact__unit>strong{font-size:14px}
.mdzps-tiers--widget-horizontal .mdzps-compact__discount{align-self:flex-start;font-size:9px}

/* Table presentation */
.mdzps-tiers--widget-table .mdzps-compact__rows{display:grid;gap:0;padding:0 12px 8px}
.mdzps-tiers--widget-table .mdzps-compact__table-head{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.2fr) minmax(72px,.75fr) 58px;align-items:center;gap:9px;padding:9px 10px;border-bottom:1px solid #eee8e9;color:#8b8184;font-size:9px;font-weight:850}
.mdzps-tiers--widget-table .mdzps-compact__tier{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,1.2fr) minmax(72px,.75fr) 58px;align-items:center;gap:9px;min-height:51px;padding:8px 10px!important;border:0!important;border-bottom:1px solid #f0ebec!important;border-radius:0!important;background:transparent!important;text-align:right!important;box-shadow:none!important}
.mdzps-tiers--widget-table .mdzps-compact__tier:last-child{border-bottom:0!important}
.mdzps-tiers--widget-table .mdzps-compact__tier:hover,.mdzps-tiers--widget-table .mdzps-compact__tier.is-active{border-color:#f0ebec!important;background:#fff6f8!important;box-shadow:inset -2px 0 0 #c91f3b!important}
.mdzps-tiers--widget-table .mdzps-compact__range>strong{font-size:10px}
.mdzps-tiers--widget-table .mdzps-compact__range>small{font-size:8px}
.mdzps-tiers--widget-table .mdzps-compact__unit>strong{font-size:10px}
.mdzps-tiers--widget-table .mdzps-compact__discount{justify-self:start;padding:3px 6px;font-size:8px}
.mdzps-tiers--widget-table .mdzps-compact__table-action{display:inline-flex;align-items:center;justify-content:center;min-height:27px;padding:3px 6px;border:1px solid #efd6dc;border-radius:7px;background:#fff;color:#a51f37;font-size:8px;font-weight:900;white-space:nowrap}
.mdzps-tiers--widget-table .mdzps-compact__tier.is-active .mdzps-compact__table-action{border-color:#c91f3b;background:#c91f3b;color:#fff}
.mdzps-tiers--widget-table .mdzps-compact__tier--overflow{background:#fffaf2!important}

/* Vertical presentation stays as a clean stacked list; tighten it for Elementor columns. */
.mdzps-tiers--widget-vertical .mdzps-compact__rows{gap:7px}
.mdzps-tiers--widget-vertical .mdzps-compact__tier{min-height:56px}

@media(max-width:600px){
 .mdzps-unified-taxonomies{gap:6px 9px;padding:9px 10px;border-radius:10px}
 .mdzps-unified-taxonomy-row{gap:5px}
 .mdzps-unified-taxonomy-row a{font-size:9px;min-height:24px;padding:2px 7px}
 .mdzps-tiers--widget-horizontal .mdzps-compact__tier{flex-basis:min(218px,76vw);min-height:136px}
 .mdzps-tiers--widget-table .mdzps-compact__table-head{display:none}
 .mdzps-tiers--widget-table .mdzps-compact__tier{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px 10px;padding:10px 8px!important}
 .mdzps-tiers--widget-table .mdzps-compact__discount{justify-self:start}
 .mdzps-tiers--widget-table .mdzps-compact__table-action{justify-self:end;min-width:54px}
}
@media(prefers-reduced-motion:reduce){.mdzps-unified-taxonomy-row a{transition:none}}
