/* MAHDAFZAR PRODUCT STUDIO 4 — reference-inspired wholesale discount rail. */
body.single-product:not(.mdzps-has-full-product-experience) .mdzps-v4, .mdzps-v4{--mdz-v4-green:#df213e;--mdz-v4-dark:#2a2226;--mdz-v4-border:#f0d9de;box-sizing:border-box!important;border:1px solid var(--mdz-v4-border)!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 25px rgba(20,45,31,.035)!important;overflow:hidden!important;max-width:100%!important;min-width:0!important;direction:rtl!important;color:#33272b!important}
.mdzps-v4 *, .mdzps-v4 *:before,.mdzps-v4 *:after{box-sizing:border-box}
.mdzps-v4 .mdzps-v3__hero{display:none!important}
.mdzps-v4 .mdzps-v4__campaign{background:#fff!important;padding:20px clamp(15px,3vw,28px) 22px!important;border:0!important;box-shadow:none!important}
.mdzps-v4__campaign-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 20px;padding:0 0 13px;border-bottom:1px solid #f3e8ea}
.mdzps-v4__campaign-head h3{font-size:clamp(19px,2.2vw,25px)!important;line-height:1.4!important;margin:0 0 3px!important;color:#2e1d22!important;font-weight:950!important}
.mdzps-v4__campaign-head h3 span{color:#3a2a2f;font-size:15px}
.mdzps-v4__campaign-head p{margin:0!important;font-size:12px!important;line-height:1.8!important;color:#82747a!important}
.mdzps-v4__live-pill{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;white-space:normal;color:#b9203c;background:#fff0f3;border:1px solid #f4c8d0;font-size:10px!important;font-weight:850;padding:7px 10px;border-radius:7px}
.mdzps-v4__live-pill i{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#e42b47}
.mdzps-v4__campaign-content{display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.35fr);gap:25px;align-items:center}
.mdzps-v4__campaign-info{min-width:0;display:flex;flex-direction:column;gap:5px;padding-inline-end:17px;border-inline-end:1px solid #efe3e5}
.mdzps-v4__auto-label{display:block;border:1px dashed #e58ca0;background:#fff5f6;color:#b71938;font-weight:850;padding:9px 12px;border-radius:7px;font-size:11px;line-height:1.8;margin-bottom:6px}
.mdzps-v4__info-row{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;color:#7e7276;padding:4px 0}
.mdzps-v4__info-row strong{font-size:12px;color:#36272c;font-weight:900;overflow-wrap:anywhere;text-align:left}
.mdzps-v4__info-row strong.mdzps-v4__bonus-pct{color:#db3656}
.mdzps-v4__rail-wrap{min-width:0}
.mdzps-v4__rail-caption{margin:0 0 9px!important;font-size:11px!important;font-weight:850!important;color:#847379!important}
.mdzps-v4__rail{display:flex;align-items:stretch;justify-content:stretch;direction:rtl;gap:0;width:100%;min-width:0;position:relative}
.mdzps-v4__segment{display:flex!important;flex:1 1 0!important;flex-direction:column;align-items:center;justify-content:flex-start;position:relative!important;min-width:0!important;min-height:91px!important;border:0!important;border-radius:0!important;background:none!important;margin:0!important;padding:0!important;box-shadow:none!important;cursor:pointer;color:#3b3034!important;text-transform:none!important;font-family:inherit!important}
.mdzps-v4__rail-badge{display:flex;align-items:center;justify-content:center;position:relative;z-index:2;height:31px;min-width:49px;max-width:96%;margin:0 auto 2px;padding:4px 10px;border-radius:7px;color:#38453c;background:#fff;box-shadow:0 4px 12px #46282f12;font-size:13px!important;font-weight:900!important;white-space:nowrap}
.mdzps-v4__rail-badge:before{content:'✦';color:#dec426;position:absolute;top:-7px;inset-inline-start:-2px;font-size:13px}
.mdzps-v4__rail-band{display:block!important;height:19px;width:100%;max-width:100%;border-radius:0;background:repeating-linear-gradient(115deg,#efeaec 0,#efeaec 3px,#dce2e4 3px,#dce2e4 6px);border-inline-start:1px solid #fff;box-shadow:none;position:relative;margin:0!important;transition:background .2s}
.mdzps-v4__segment:first-child .mdzps-v4__rail-band{border-radius:0 5px 5px 0}
.mdzps-v4__segment:last-child .mdzps-v4__rail-band{border-radius:5px 0 0 5px}
.mdzps-v4__rail-threshold{font-size:10px;color:#82777b;line-height:1.5;margin-top:8px;text-align:center;white-space:normal;font-weight:850}
.mdzps-v4__segment.is-active .mdzps-v4__rail-band{background:repeating-linear-gradient(115deg,#f05269 0,#f05269 3px,#cf2743 3px,#cf2743 7px)}
.mdzps-v4__segment.is-active .mdzps-v4__rail-badge{background:#e72f50;color:#fff;box-shadow:0 5px 13px #cf24422e}
.mdzps-v4__segment.is-active .mdzps-v4__rail-badge:before{color:#fff8a9}
.mdzps-v4__segment:focus-visible{outline:2px solid #d22444!important;outline-offset:3px!important}
.mdzps-v4__rail-wrap>small{display:block!important;margin-top:6px!important;color:#8d9991!important;font-size:10px!important}
/* Functional cards and preview — clean, small, no giant nested hero boxes. */
.mdzps-v4 .mdzps-v3__content{padding:0 clamp(13px,2vw,23px) 16px!important;background:#fff!important}
.mdzps-v4 .mdzps-v3__section-head{border:0!important;padding:10px 0!important;margin:0!important;background:none!important}
.mdzps-v4 .mdzps-v3__section-head h4{font-size:15px!important;color:#3b3336!important;letter-spacing:0!important}
.mdzps-v4 .mdzps-v3__eyebrow{color:#92737b!important;font-size:9px!important}
.mdzps-v4 .mdzps-v3__cards{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))!important;gap:9px!important;padding:0!important;margin:4px 0 18px!important}
.mdzps-v4 .mdzps-v3__card{border:1px solid #f1e5e7!important;border-radius:11px!important;background:#fff!important;padding:13px!important;box-shadow:none!important;min-width:0!important;min-height:0!important;transition:border-color .15s,background .15s!important}
.mdzps-v4 .mdzps-v3__card:hover,.mdzps-v4 .mdzps-v3__card.is-active{background:#fff6f8!important;border-color:#ec99aa!important}
.mdzps-v4 .mdzps-v3__card-top{margin-bottom:3px!important}
.mdzps-v4 .mdzps-v3__card-index{background:#fff3f4!important;color:#bc2847!important;border-radius:7px!important;font-size:11px!important}
.mdzps-v4 .mdzps-v3__card-label{font-size:12px!important;color:#76525e!important}
.mdzps-v4 .mdzps-v3__card-qty b{font-size:18px!important;color:#3f2b31!important}
.mdzps-v4 .mdzps-v3__card-discount{font-size:10px!important;color:#c62646!important;background:#fff0f3!important;padding:2px 6px!important;border-radius:5px!important}
.mdzps-v4 .mdzps-v3__card-price{margin-top:9px!important;border-top:1px solid #f5e4e8;padding-top:9px!important}
.mdzps-v4 .mdzps-v3__card-price strong,.mdzps-v4 .mdzps-v3__card-price .amount{font-size:14px!important;color:#582632!important}
.mdzps-v4 .mdzps-v3__choose{font-size:11px!important;min-height:35px!important;margin-top:10px!important;border-radius:8px!important;box-shadow:none!important;background:#8c273e!important;color:white!important;width:100%!important}
.mdzps-v4 .mdzps-v3__bonus{background:#fbfbf3!important;border:1px dashed #c8d0ac!important;border-radius:11px!important;box-shadow:none!important;margin:9px 0 15px!important}
.mdzps-v4 .mdzps-v3__quote{border:1px solid #f2dce1!important;background:#fff8f8!important;border-radius:12px!important;padding:clamp(14px,2vw,21px)!important;box-shadow:none!important;margin:0!important}
.mdzps-v4 .mdzps-v3__quote-row,.mdzps-v4 .mdzps-v3__mini-stats{background:none!important;box-shadow:none!important}
.mdzps-v4 .mdzps-tiers__apply{background:#a4203d!important;color:#fff!important;border-radius:9px!important;box-shadow:none!important}
.mdzps-v4 .mdzps-v3__copy{border:1px solid #e9b7c3!important;border-radius:9px!important;background:#fff!important;color:#66272f!important;box-shadow:none!important}
.mdzps-v4 .mdzps-v3__progress-fill{background:#ed3658!important}
.mdzps-v4 .mdzps-v3__breakdown{box-shadow:none!important;border:1px solid #f3e2e6!important;border-radius:9px!important}
.mdzps-v4 .mdzps-v3__footnote{color:#80777a!important;font-size:10px!important}
/* Flatten reviews (the screenshot's box-inside-box issue) while leaving native WC form and star interactions intact. */
body.single-product:not(.mdzps-has-full-product-experience) #reviews.woocommerce-Reviews{background:#fff!important;border:1px solid #f0dfe3!important;border-radius:14px!important;padding:clamp(15px,2.5vw,28px)!important;box-shadow:none!important;max-width:100%!important;min-width:0!important;overflow:visible!important}
body.single-product:not(.mdzps-has-full-product-experience) #reviews #comments,body.single-product:not(.mdzps-has-full-product-experience) #reviews #review_form_wrapper,body.single-product:not(.mdzps-has-full-product-experience) #reviews #review_form,body.single-product:not(.mdzps-has-full-product-experience) #reviews #respond,body.single-product:not(.mdzps-has-full-product-experience) #reviews .wd-reviews-content,body.single-product:not(.mdzps-has-full-product-experience) #reviews .commentlist,body.single-product:not(.mdzps-has-full-product-experience) #reviews .wd-reviews-heading{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;max-width:100%!important;min-width:0!important}
body.single-product:not(.mdzps-has-full-product-experience) #reviews #respond{padding:16px 0 0!important;margin-top:10px!important;border-top:1px solid #f4e4e8!important}
body.single-product:not(.mdzps-has-full-product-experience) #reviews .comment-reply-title,body.single-product:not(.mdzps-has-full-product-experience) #reviews h2{font-size:clamp(16px,2vw,20px)!important;color:#423137!important;font-weight:900!important;line-height:1.7!important}
body.single-product:not(.mdzps-has-full-product-experience) #reviews .woocommerce-noreviews{background:#fff8f8!important;border:1px dashed #eedde1!important;border-radius:11px!important;padding:16px!important;text-align:center!important;font-size:13px!important;color:#87757c!important;margin:0 0 12px!important}
body.single-product:not(.mdzps-has-full-product-experience) #reviews label{font-size:12px!important;font-weight:800!important;color:#513e42!important}
body.single-product:not(.mdzps-has-full-product-experience) #reviews textarea#comment,body.single-product:not(.mdzps-has-full-product-experience) #reviews input.input-text,body.single-product:not(.mdzps-has-full-product-experience) #reviews input:not([type=submit]):not([type=checkbox]):not([type=radio]){background:#fff!important;color:#432830!important;border:1px solid #efdee1!important;border-radius:10px!important;max-width:100%!important;box-shadow:none!important}
body.single-product:not(.mdzps-has-full-product-experience) #reviews textarea#comment{min-height:130px!important;resize:vertical!important;padding:12px!important}
body.single-product:not(.mdzps-has-full-product-experience) #reviews textarea#comment:focus,body.single-product:not(.mdzps-has-full-product-experience) #reviews input:focus{outline:2px solid #eca8ba!important;outline-offset:1px!important}
body.single-product:not(.mdzps-has-full-product-experience) #reviews input#submit{background:#97263f!important;color:#fff!important;border-radius:9px!important;padding:11px 23px!important;min-height:45px!important;box-shadow:none!important}
body.single-product:not(.mdzps-has-full-product-experience) #reviews .commentlist li{margin:0 0 13px!important;border-bottom:1px solid #edf0ee!important;border-radius:0!important;padding:0 0 12px!important;background:transparent!important;box-shadow:none!important}
body.single-product:not(.mdzps-has-full-product-experience) .mdzps-review-summary{background:#fff!important;color:#423039!important;border:1px solid #f1dce0!important;border-radius:12px!important;box-shadow:none!important;margin:14px 0!important;max-width:100%!important}
body.single-product:not(.mdzps-has-full-product-experience) .mdzps-review-summary *{box-shadow:none!important}
body.single-product:not(.mdzps-has-full-product-experience) .mdzps-review-summary h3,body.single-product:not(.mdzps-has-full-product-experience) .mdzps-review-summary strong{color:#55333c!important}
body.single-product:not(.mdzps-has-full-product-experience) .mdzps-details{box-shadow:none!important;border:1px solid #f1e0e4!important;border-radius:12px!important;margin:16px 0!important}
/* Fix excessive nested containers from Woodmart checkout/product builder without changing their widgets. */
body.single-product:not(.mdzps-has-full-product-experience) .mdzps-trust{box-shadow:none!important;border-radius:11px!important}
@media(max-width:960px){.mdzps-v4__campaign-content{grid-template-columns:1fr;gap:10px}.mdzps-v4__campaign-info{padding-inline-end:0;border-inline-end:0;padding-bottom:10px;border-bottom:1px solid #f3e9eb}.mdzps-v4__live-pill{white-space:normal}}
@media(max-width:767px){.mdzps-v4 .mdzps-v4__campaign{padding:16px 13px 18px!important}.mdzps-v4__campaign-head{flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:12px}.mdzps-v4__campaign-head h3{font-size:21px!important}.mdzps-v4__live-pill{font-size:10px!important}.mdzps-v4__rail-badge{min-width:0;font-size:11px!important;padding:5px 6px}.mdzps-v4__rail-threshold{font-size:9px}.mdzps-v4__rail{gap:0}.mdzps-v4 .mdzps-v3__cards{grid-template-columns:1fr!important;gap:7px!important}.mdzps-v4 .mdzps-v3__card{padding:10px!important}.mdzps-v4 .mdzps-v3__card-price strong,.mdzps-v4 .mdzps-v3__card-price .amount{font-size:12px!important}.mdzps-v4 .mdzps-v3__quote-row{gap:8px!important;flex-wrap:wrap!important}.mdzps-v4 .mdzps-v3__quote-total{min-width:0!important;overflow-wrap:anywhere!important}.mdzps-v4 .mdzps-v3__quote-actions{flex-wrap:wrap!important}.mdzps-v4 .mdzps-v3__quote-actions button{max-width:100%!important}body.single-product:not(.mdzps-has-full-product-experience) #reviews.woocommerce-Reviews{padding:14px!important}body.single-product:not(.mdzps-has-full-product-experience) #reviews #respond{padding:10px 0!important}}
@media(max-width:375px){.mdzps-v4 .mdzps-v3__cards{grid-template-columns:1fr!important}.mdzps-v4__rail-badge{font-size:10px!important;padding:4px}.mdzps-v4__rail-threshold{font-size:9px}}
@media(prefers-reduced-motion:reduce){.mdzps-v4 *{transition:none!important;animation:none!important}}
