.mwp-estimator{--forest:#153d31;--ink:#172b24;--soft:#f5f8f4;--line:#dce8df;--gold:#b29254;direction:rtl;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:0 24px 64px rgba(16,43,32,.08);max-width:1020px;margin:36px auto 12px;font-family:IRANYekanX,"B Yekan",Tahoma,Arial,sans-serif}
.mwp-estimator *{box-sizing:border-box}
.mwp-estimator__hero{padding:32px clamp(20px,5vw,54px);background:linear-gradient(110deg,#f6faf5,#fff 72%);border-bottom:1px solid var(--line)}
.mwp-estimator__kicker{font:700 11px/1.5 Arial,sans-serif;letter-spacing:.19em;color:#738c79}
.mwp-estimator__hero h2{font-size:clamp(24px,3.4vw,38px);line-height:1.5;margin:10px 0 8px;color:var(--forest)}
.mwp-estimator__hero p{font-size:15px;line-height:2;color:#51655a;max-width:680px;margin:0}
.mwp-estimator__progress{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:20px clamp(20px,5vw,54px) 8px}
.mwp-estimator__progress span{position:relative;display:block;text-align:center;color:#718077;font-size:13px;padding:11px 4px;border:1px solid var(--line);border-radius:10px;background:#fff}
.mwp-estimator__progress .is-current{border-color:var(--forest);background:var(--forest);color:#fff;font-weight:700}
.mwp-estimator__progress .is-done{background:#edf5ee;color:var(--forest)}
.mwp-estimator__section-title{font-size:21px;color:var(--forest);margin:16px clamp(20px,5vw,54px) 18px}
.mwp-estimator__message{margin:8px clamp(20px,5vw,54px);color:#a03936;min-height:1px;font-weight:700}
.mwp-estimator__draft,.mwp-estimator__exclusions,.mwp-estimator__fine{margin:12px clamp(20px,5vw,54px);padding:15px 18px;line-height:1.9;background:#fff8ea;border:1px solid #efdcb5;border-radius:12px;color:#69512b}
.mwp-estimator__exclusions{background:#f4f7f4;border-color:var(--line);color:#42564b}
.mwp-estimator__fine{background:transparent;border:0;padding:0;color:#6d7b72;font-size:12px}
.mwp-estimator__choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 clamp(20px,5vw,54px)}
.mwp-estimator__filters{display:flex;flex-wrap:wrap;gap:8px;padding:0 clamp(20px,5vw,54px) 12px}
.mwp-estimator__filter{font:700 13px/1.5 IRANYekanX,"B Yekan",Tahoma,Arial,sans-serif;color:var(--forest);background:#fff;border:1px solid var(--line);border-radius:999px;min-height:44px;padding:8px 15px;cursor:pointer}
.mwp-estimator__filter.is-active{color:#fff;background:var(--forest);border-color:var(--forest)}
.mwp-estimator__filter:focus-visible{outline:3px solid #d2ab60;outline-offset:2px}
.mwp-estimator__filter-note{margin:0 clamp(20px,5vw,54px) 14px;color:#536a5b;font-size:13px;line-height:1.8}
.mwp-estimator__choice{border:1px solid var(--line);border-radius:16px;background:#fff;padding:18px;text-align:right;min-height:116px;cursor:pointer;display:flex;flex-direction:column;justify-content:center;gap:6px;transition:transform .18s,border-color .18s,box-shadow .18s}
.mwp-estimator__choice:hover{transform:translateY(-2px);border-color:#9abbab;box-shadow:0 12px 30px rgba(21,61,49,.08)}
.mwp-estimator__choice:focus-visible,.mwp-estimator__primary:focus-visible,.mwp-estimator__secondary:focus-visible{outline:3px solid #d2ab60;outline-offset:2px}
.mwp-estimator__choice.is-selected{border:2px solid var(--forest);background:#f4faf5}
.mwp-estimator__choice,.mwp-estimator__choice strong,.mwp-estimator__line span{min-width:0;overflow-wrap:anywhere}
.mwp-estimator__choice strong{font-size:16px;line-height:1.6;color:#1b3d2d}
.mwp-estimator__choice small{font-size:11px;color:#6f7f73}
.mwp-estimator__choice img{width:100%;height:128px;object-fit:cover;border-radius:10px;margin-bottom:6px}
.mwp-estimator__form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 clamp(20px,5vw,54px)}
.mwp-estimator__field{display:flex;flex-direction:column;gap:8px;background:var(--soft);padding:16px;border:1px solid var(--line);border-radius:14px}
.mwp-estimator__field span{font-weight:700;font-size:14px}
.mwp-estimator__field input{font:inherit;font-size:20px;padding:10px 14px;min-height:50px;border:1px solid #b6cabc;border-radius:9px;color:var(--ink);background:#fff;width:100%;direction:ltr;text-align:right}
.mwp-estimator__field input:focus{outline:3px solid #cfe8d5;border-color:var(--forest)}
.mwp-estimator__field small{color:#68796f;font-size:11px;line-height:1.7}
.mwp-estimator__actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:22px clamp(20px,5vw,54px) 34px}
.mwp-estimator__primary,.mwp-estimator__secondary{font:700 14px/1.4 IRANYekanX,"B Yekan",Tahoma,Arial,sans-serif;border-radius:10px;padding:13px 23px;min-height:48px;cursor:pointer;text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center}
.mwp-estimator__primary{background:var(--forest)!important;color:#fff!important;border:1px solid var(--forest)}
.mwp-estimator__secondary{background:#fff!important;color:var(--forest)!important;border:1px solid var(--line)}
.mwp-estimator__result{margin:0 clamp(20px,5vw,54px);padding:22px;border:1px solid var(--line);background:linear-gradient(155deg,#fff,#f7faf7);border-radius:17px}
.mwp-estimator__selected{display:inline-block;font-weight:700;color:var(--forest);background:#eaf3ec;padding:7px 11px;border-radius:8px;margin-bottom:12px}
.mwp-estimator__line,.mwp-estimator__total{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);line-height:1.7}
.mwp-estimator__line span{color:#4d6053}
.mwp-estimator__line strong,.mwp-estimator__total strong{direction:rtl;font-variant-numeric:tabular-nums;white-space:nowrap}
.mwp-estimator__total{border-bottom:0;margin-top:6px;color:var(--forest);font-size:19px;font-weight:800}
.mwp-estimator__source{display:block;color:#687b6c;line-height:1.8;margin-top:8px}
.mwp-estimator__loading{padding:48px;text-align:center}
@media(max-width:700px){.mwp-estimator{border-radius:0;margin:18px -16px;box-shadow:none}.mwp-estimator__hero{padding:26px 18px}.mwp-estimator__progress{padding:14px 16px 0;gap:4px}.mwp-estimator__progress span{font-size:11px;padding:8px 2px}.mwp-estimator__section-title{font-size:19px;margin:20px 16px 12px}.mwp-estimator__choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 16px}.mwp-estimator__choice{padding:12px;min-height:100px}.mwp-estimator__choice strong{font-size:13px}.mwp-estimator__choice img{height:80px}.mwp-estimator__form{grid-template-columns:1fr;padding:0 16px;gap:9px}.mwp-estimator__field{padding:12px}.mwp-estimator__actions{padding:18px 16px 28px}.mwp-estimator__primary,.mwp-estimator__secondary{flex:1;padding:12px 8px}.mwp-estimator__result{margin:0 16px;padding:16px}.mwp-estimator__line{align-items:flex-start;flex-direction:column;gap:3px}.mwp-estimator__total{font-size:17px}.mwp-estimator__draft,.mwp-estimator__exclusions,.mwp-estimator__fine,.mwp-estimator__message{margin-left:16px;margin-right:16px}}
@media(max-width:370px){.mwp-estimator__choices{grid-template-columns:1fr}}
@media(max-width:700px){
  .mwp-estimator{max-width:100%;margin:18px auto 12px;border-radius:18px;overflow:visible}
  .mwp-estimator__hero{border-radius:18px 18px 0 0}
  .mwp-estimator__filters{padding:0 16px 12px;gap:7px}
  .mwp-estimator__filter{font-size:12px;padding:8px 12px}
  .mwp-estimator__filter-note{margin:0 16px 14px}
  .mwp-estimator__choice{min-height:110px}
  .mwp-estimator__choice strong{font-size:14px;line-height:1.65}
  .mwp-estimator__choice small{font-size:12px;line-height:1.5}
  .mwp-estimator__choice img{height:104px}
  .mwp-estimator__field span{font-size:15px}
  .mwp-estimator__field small{font-size:12px}
  .mwp-estimator__field input{font-size:20px;min-height:52px}
  .mwp-estimator__actions{position:sticky;bottom:0;z-index:20;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:20px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--line);box-shadow:0 -10px 28px rgba(16,43,32,.12);backdrop-filter:blur(12px)}
  .mwp-estimator__actions>:only-child{grid-column:1/-1}
  .mwp-estimator__primary,.mwp-estimator__secondary{min-width:0;min-height:52px;font-size:14px;text-align:center}
  .mwp-estimator__actions--result .mwp-estimator__primary{grid-column:1/-1;grid-row:1}
  .mwp-estimator__actions--result .mwp-estimator__secondary{grid-row:2;font-size:12px}
  .mwp-estimator__result{overflow:hidden}
  .mwp-estimator__total{align-items:flex-start;flex-direction:column;gap:4px}
  .mwp-estimator__line strong,.mwp-estimator__total strong{white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:520px){
  .mwp-estimator__choices{grid-template-columns:1fr}
  .mwp-estimator__choice{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;column-gap:12px;row-gap:2px;padding:9px 12px;min-height:104px;text-align:right}
  .mwp-estimator__choice img{grid-column:1;grid-row:1/3;width:96px;height:84px;margin:0;object-fit:cover}
  .mwp-estimator__choice strong{grid-column:2;grid-row:1;align-self:end;font-size:15px}
  .mwp-estimator__choice small{grid-column:2;grid-row:2;align-self:start}
}
@media(prefers-reduced-motion:reduce){.mwp-estimator__choice{transition:none}.mwp-estimator__choice:hover{transform:none}}

/* Step two: compact controls beside a product-specific measurement sketch. */
.mwp-estimator[data-step="2"] .mwp-estimator__hero{padding-block:16px}
.mwp-estimator[data-step="2"] .mwp-estimator__hero h2{font-size:clamp(19px,2.3vw,27px);margin-block:5px}
.mwp-estimator[data-step="2"] .mwp-estimator__progress{padding-block-start:10px}
.mwp-estimator[data-step="2"] .mwp-estimator__section-title{margin-block:12px}
.mwp-estimator__measure-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.65fr);align-items:start;gap:12px;padding-inline:clamp(16px,4vw,42px)}
.mwp-estimator__measure-layout .mwp-estimator__form{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0;min-width:0}
.mwp-estimator__measure-layout .mwp-estimator__field{box-sizing:border-box;min-width:0;gap:4px;padding:8px 10px;margin:0;border-radius:10px}
.mwp-estimator__measure-layout .mwp-estimator__field>span{font-size:13px;line-height:1.5}
.mwp-estimator__measure-layout .mwp-estimator__field input{box-sizing:border-box;min-height:42px;height:42px;margin:0;padding:5px 9px;font-size:16px;appearance:textfield}
.mwp-estimator__measure-layout .mwp-estimator__field input::-webkit-inner-spin-button,.mwp-estimator__measure-layout .mwp-estimator__field input::-webkit-outer-spin-button{appearance:none;margin:0}
.mwp-estimator__measure-layout .mwp-estimator__field small{font-size:11px;line-height:1.5}
.mwp-estimator .mwp-estimator__diagram{box-sizing:border-box;min-width:0;margin:0;padding:9px 10px;border:1px solid #dbe5da;border-radius:12px;background:#f5f8f3;color:#203c30}
.mwp-estimator__diagram figcaption{font-size:13px;font-weight:800;line-height:1.5}
.mwp-estimator__diagram-visual svg{display:block;width:100%;height:clamp(120px,16vw,175px);overflow:visible}
.mwp-estimator__diagram-object{fill:#ddc99d;stroke:#385849;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mwp-estimator__diagram-object .mwp-estimator__diagram-highlight{fill:#b8d2bc}
.mwp-estimator__diagram-lines path{fill:none;stroke:#436d57;stroke-width:1.4}
.mwp-estimator__diagram-lines circle{fill:#235540}
.mwp-estimator__diagram-lines text{fill:#fff;font-size:11px;font-weight:800}
.mwp-estimator .mwp-estimator__diagram-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 8px;list-style:none;margin:0;padding:0}
.mwp-estimator__diagram-legend li{display:flex;align-items:baseline;gap:5px;min-width:0;margin:0;font-size:11px;line-height:1.55}
.mwp-estimator__diagram-number{display:inline-grid;place-items:center;flex:0 0 16px;height:16px;border-radius:50%;background:#235540;color:#fff;font-size:10px}
.mwp-estimator__diagram>small{display:block;margin-top:4px;font-size:11px}
@media(max-width:700px){.mwp-estimator__measure-layout{grid-template-columns:1fr;gap:8px}.mwp-estimator__diagram-visual svg{height:112px}.mwp-estimator__measure-layout .mwp-estimator__field{padding:7px 8px}.mwp-estimator[data-step="2"] .mwp-estimator__actions{margin-top:10px}}
@media(max-width:350px){.mwp-estimator__measure-layout .mwp-estimator__form{grid-template-columns:1fr}}
