.znm-reference-price{display:none!important}
body.znm-catalog-price-hidden .price,
body.znm-catalog-price-hidden .woocommerce-Price-amount,
body.znm-catalog-price-hidden .wc-block-components-product-price,
body.znm-catalog-price-hidden .wc-block-grid__product-price,
body.znm-catalog-price-hidden [data-testid="product-price"]{display:none!important}
html.znm-estimate-modal-open{overflow:hidden!important}
.znm-estimate-button{cursor:pointer}
/* Страховка от сторонних шаблонов: штатная кнопка покупки скрыта, но не перехватывается. */
.single-product .single_add_to_cart_button:not(.znm-estimate-button){display:none!important}
.znm-estimate-modal-root[hidden]{display:none!important}
.znm-estimate-modal-root{position:fixed;inset:0;z-index:999999}
.znm-estimate-modal-backdrop{position:absolute;inset:0;display:grid;place-items:center;padding:18px;background:rgba(18,24,31,.72);backdrop-filter:blur(3px)}
.znm-estimate-modal{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(1240px,96vw);height:min(92vh,980px);min-width:0;overflow:hidden;border:1px solid rgba(255,255,255,.26);border-radius:14px;background:#f5f6f8;box-shadow:0 28px 80px rgba(0,0,0,.38)}
.znm-estimate-modal-root.is-compact .znm-estimate-modal{width:min(720px,94vw);height:auto;max-height:90vh}
.znm-estimate-modal__head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:8px 10px 8px 18px;border-bottom:1px solid #dfe3e8;background:#fff;color:#24272d}
.znm-estimate-modal__head strong{font-size:17px;line-height:1.25}
.znm-estimate-modal__head button{display:grid;width:38px;height:38px;place-items:center;border:0;border-radius:8px;background:#eef1f4;color:#38414c;font:400 27px/1 sans-serif;cursor:pointer}
.znm-estimate-modal__body{min-width:0;min-height:0;overflow:auto}
.znm-estimate-catalog-frame{display:block;width:100%;height:100%;min-width:0;border:0;background:#f5f6f8}
.znm-estimate-notice{display:grid;align-content:center;justify-items:center;gap:14px;min-height:330px;padding:34px 38px;text-align:center;color:#303844;background:linear-gradient(180deg,#fff 0,#fffaf5 100%)}
.znm-estimate-notice__icon{display:grid;width:58px;height:58px;place-items:center;border-radius:50%;background:#f47a20;color:#fff;font:800 27px/1 sans-serif;box-shadow:0 10px 26px rgba(244,122,32,.24)}
.znm-estimate-notice p{max-width:620px;margin:0;font-size:16px;line-height:1.58}
.znm-estimate-notice__lead{font-size:19px!important;font-weight:750;color:#222b33}
.znm-estimate-notice__foot{color:#66717d}
.znm-estimate-notice__progress{display:inline-flex;padding:7px 11px;border-radius:999px;background:#fff1e6;color:#a64a08;font-size:14px}
.znm-estimate-notice__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:4px}
.znm-estimate-modal__primary,.znm-access-gate__button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:10px 17px;border:0;border-radius:9px;background:#f47a20;color:#fff!important;text-decoration:none!important;font-weight:750;box-shadow:none}
.znm-estimate-modal__primary:hover,.znm-access-gate__button:hover{background:#d9610e;color:#fff!important}
.znm-estimate-modal__secondary{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:10px 17px;border:1px solid #d9dee4;border-radius:9px;background:#fff;color:#303844!important;text-decoration:none!important;font-weight:700}
.znm-estimate-loading{display:grid;align-content:center;justify-items:center;gap:14px;min-height:280px;padding:30px;color:#59616d;text-align:center}
.znm-estimate-loading span{width:36px;height:36px;border:4px solid #d9dee4;border-top-color:#f47a20;border-radius:50%;animation:znm-spin .8s linear infinite}
.znm-estimate-loading p{margin:0}
.znm-access-gate{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:start;margin:8px 0 24px;padding:22px;border:1px solid #e4e7ea;border-radius:12px;background:#fff;color:#303844;box-shadow:0 8px 24px rgba(29,38,46,.06)}
.znm-access-gate__mark{display:grid;width:52px;height:52px;place-items:center;border-radius:50%;background:#fff1e6;color:#c4540b;font-size:22px;font-weight:800}
.znm-access-gate h2{margin:0 0 8px;font-size:22px;line-height:1.25}
.znm-access-gate p{margin:0 0 12px;color:#59636e;line-height:1.55}
.znm-access-gate small{display:block;margin-top:7px;color:#66717d}
.znm-access-progress{height:8px;overflow:hidden;border-radius:999px;background:#e9edf0}
.znm-access-progress i{display:block;height:100%;border-radius:inherit;background:#f47a20}
@keyframes znm-spin{to{transform:rotate(360deg)}}
@media(max-width:680px){.znm-estimate-modal-backdrop{padding:0}.znm-estimate-modal,.znm-estimate-modal-root.is-compact .znm-estimate-modal{width:100vw;height:100dvh;max-height:none;border:0;border-radius:0}.znm-estimate-modal__head{min-height:48px;padding-left:12px}.znm-estimate-notice{min-height:100%;padding:24px 17px}.znm-estimate-notice p{font-size:15px}.znm-estimate-notice__lead{font-size:18px!important}.znm-access-gate{grid-template-columns:1fr;padding:18px}.znm-access-gate__mark{width:44px;height:44px}.znm-access-gate h2{font-size:20px}}
.znm-second-product{background:#fffaf5}
.znm-second-product__head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.znm-second-product__head h2{margin:2px 0 0;font-size:21px;line-height:1.25}
.znm-second-product__head small{color:#c85d12;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
.znm-second-product__head>span{display:grid;width:42px;height:42px;place-items:center;border-radius:50%;background:#f47a20;color:#fff;font-size:18px;font-weight:800}
.znm-second-product>p{margin:0;color:#5d6670;line-height:1.55}
.znm-second-product__list{display:grid;gap:8px}
.znm-second-product-empty{margin:0;padding:12px;border:1px dashed #e1c6b3;border-radius:9px;color:#806b5d;background:#fff}
.znm-second-product-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #eadfd6;border-radius:9px;background:#fff}
.znm-second-product-item>label{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.znm-second-product-item>label input{flex:0 0 auto}.znm-second-product-item>div{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.znm-second-product-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.znm-second-product-item span{color:#33825f;font-size:12px;font-weight:700}
.znm-second-product-item span.is-draft{color:#b45a18}.znm-second-product-item span.is-baseline{color:#667085}
.znm-second-product-item button,.znm-second-product__add{min-height:40px;padding:8px 13px;border:1px solid #d7dce1;border-radius:8px;background:#fff;color:#303844;font:inherit;font-weight:700;cursor:pointer}
.znm-second-product__add{justify-self:start;border-color:#f47a20;background:#f47a20;color:#fff}
@media(max-width:680px){.znm-second-product-item{align-items:stretch;flex-direction:column}.znm-second-product-item button,.znm-second-product__add{width:100%}}
.znm-second-product.is-invalid{outline:3px solid rgba(198,62,32,.16);border-color:#c63e20}
.znm-single-estimate-action{margin:1em 0}

.znm-admin-category-tools{margin:10px 0 16px}.znm-admin-category-button{min-height:38px;padding:8px 14px!important;border:1px solid #d8dee6!important;border-radius:9px!important;background:#fff!important;color:#334155!important;font-weight:700!important;box-shadow:0 2px 8px rgba(15,23,42,.05)!important}
.znm-admin-tool{display:grid;gap:14px;max-width:920px;margin:0 auto}.znm-admin-tool__summary{display:grid;grid-template-columns:86px minmax(0,1fr);gap:14px;align-items:center;padding:14px;border:1px solid #dfe4ea;border-radius:12px;background:#fff}.znm-admin-tool__image{width:86px;height:86px;object-fit:cover;border-radius:10px;background:#edf1f5;display:grid;place-items:center;color:#667085;font-weight:800}.znm-admin-tool__summary small{display:block;color:#6b7280;font-size:12px}.znm-admin-tool__summary h3{margin:4px 0 5px;font-size:21px;line-height:1.2;color:#1f2937}.znm-admin-tool__quick{display:flex;flex-wrap:wrap;gap:8px}.znm-admin-tool__quick button,.znm-admin-tool__actions button{min-height:40px;padding:9px 13px;border:1px solid #d4dae2;border-radius:9px;background:#fff;color:#334155;font-weight:700}.znm-admin-tool__quick button:hover,.znm-admin-tool__actions button:hover{background:#f7f9fb}.znm-admin-tool__transfer{display:grid;gap:11px;padding:15px;border:1px solid #dfe4ea;border-radius:12px;background:#f8fafc}.znm-admin-tool__transfer h4{margin:0;font-size:18px}.znm-admin-tool__transfer>p{margin:0;color:#5f6b7a;line-height:1.45}.znm-admin-tool__transfer label{display:grid;gap:5px}.znm-admin-tool__transfer label>span,.znm-admin-tool__source-path>span{font-size:12px;color:#64748b}.znm-admin-tool__transfer input[type="search"],.znm-admin-tool__transfer select{width:100%;min-height:42px;padding:8px 10px;border:1px solid #cfd6df;border-radius:9px;background:#fff;color:#1f2937}.znm-admin-tool__source-path{display:grid;gap:4px;padding:10px 11px;border:1px solid #d7dde5;border-radius:9px;background:#fff}.znm-admin-tool__source-path strong{font-size:13px;line-height:1.4}.znm-admin-tool__check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px!important}.znm-admin-tool__actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}.znm-admin-tool__actions button.is-primary{border-color:#2563eb;background:#2563eb;color:#fff}.znm-admin-tool__actions button.is-primary:hover{background:#1d4ed8}.znm-admin-tool__status{min-height:20px;color:#9a5b00!important;font-weight:700}.znm-admin-tool button:disabled{opacity:.55;cursor:wait}
@media(max-width:680px){.znm-admin-tool__summary{grid-template-columns:68px minmax(0,1fr);padding:10px}.znm-admin-tool__image{width:68px;height:68px}.znm-admin-tool__summary h3{font-size:18px}.znm-admin-tool__quick,.znm-admin-tool__actions{display:grid;grid-template-columns:1fr}.znm-admin-tool__quick button,.znm-admin-tool__actions button{width:100%}}

.znm-second-product__body{display:grid;gap:14px;background:#fffaf5}
.znm-second-product.znc-form-accordion>summary{background:#fffaf5}
.znm-second-product.znc-form-accordion[open]>summary{background:#fff8f1}
.znm-second-product.is-invalid>summary{box-shadow:inset 4px 0 0 #c63e20}
.znm-second-product__body>p{margin:0;color:#5d6670;line-height:1.55}

.znm-access-requirements,.znm-article-access-progress{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.znm-access-requirements>div,.znm-article-access-progress>span{display:grid;gap:3px;padding:11px 12px;border:1px solid #e1e5e9;border-radius:9px;background:#f8fafb;color:#5b6570}
.znm-access-requirements strong,.znm-article-access-progress strong{color:#25313a;font-size:15px}
@media(max-width:620px){.znm-access-requirements,.znm-article-access-progress{grid-template-columns:1fr}}


.znm-public-article-products{margin:34px 0 0;padding-top:24px;border-top:1px solid #e3e6e8}
.znm-public-article-products>h2{margin:0 0 16px;font-size:clamp(21px,3vw,28px);line-height:1.2}
.znm-public-article-products__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.znm-public-article-product{overflow:hidden;border:1px solid #e1e5e8;border-radius:12px;background:#fff}
.znm-public-article-product__image{display:block;aspect-ratio:4/3;background:#f3f5f6}
.znm-public-article-product__image img{display:block;width:100%;height:100%;object-fit:cover}
.znm-public-article-product__body{padding:14px 15px 16px}
.znm-public-article-product__body h3{margin:0 0 7px;font-size:17px;line-height:1.3}
.znm-public-article-product__body h3 a{text-decoration:none;color:inherit}
.znm-public-article-product__body p{margin:7px 0 0;color:#5d6770;font-size:14px;line-height:1.5}
.znm-public-article-product__unit{font-size:12px!important;color:#7a838b!important}

/* 0.4.7 — выбор до пяти товаров стандартным модулем Catalog */
.znm-article-catalog-selector{width:100%;max-width:none;margin:2px 0 0}
.znm-article-product-limit-note{padding:9px 11px;border-left:3px solid #d6a24a;background:#fff8e9;color:#6f5527!important;font-size:13px}
.znm-second-product__body>.zncat-app{background:transparent}

/* 0.5.1 — полный подтверждённый состав статьи из загруженной мастером сметы. */
.znm-article-estimate-composition{margin:22px 0 0;padding:18px;background:#f5f8fc;border:1px solid #d9e2ee}
.znm-article-estimate-composition h3,.znm-article-estimate-composition h4{margin:0 0 12px}
.znm-article-estimate-composition__group+.znm-article-estimate-composition__group{margin-top:18px}
.znm-article-estimate-composition__rows{border-top:1px solid #d9e2ee}
.znm-article-estimate-composition__row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:12px 0;border-bottom:1px solid #d9e2ee}
.znm-article-estimate-composition__main p{margin:5px 0 0;color:#4a5664}
.znm-article-estimate-composition__values{display:flex;align-items:flex-start;gap:14px;white-space:nowrap}
.znm-article-estimate-composition__total{display:flex;justify-content:flex-end;gap:20px;margin-top:16px;font-size:1.08em}
@media(max-width:640px){.znm-article-estimate-composition{padding:14px}.znm-article-estimate-composition__row{grid-template-columns:1fr;gap:7px}.znm-article-estimate-composition__values{justify-content:space-between;white-space:normal}.znm-article-estimate-composition__total{justify-content:space-between}}
