/* Единая компактная компоновка заказа для всех разделов печатей и штампов. */
.pzh-choice-grid { display:grid; grid-template-columns:minmax(0, 2.4fr) minmax(245px, 1fr); align-items:start; gap:16px; margin:16px 0; }
.pzh-choice-grid > fieldset {min-width:0; margin:0!important; background:#fff; border:1px solid #d9e6f8; border-radius:18px; box-shadow:0 6px 22px #153b690a; padding:18px!important;}
.pzh-choice-grid > .pzh-imprint-choice {grid-column:1;grid-row:1;}
.pzh-choice-grid > .pzh-time-choice {grid-column:2;grid-row:1;}
.pzh-choice-grid legend {font-size:1.04rem!important;letter-spacing:0!important;text-transform:none!important;color:#112b53!important;font-weight:800!important;}
.pzh-choice-grid .item_container {grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
.pzh-choice-grid .item_wrapper {padding:10px 8px;gap:6px;}
.pzh-choice-grid .item_wrapper .img_wrap img {width:auto;max-width:100%;max-height:88px;object-fit:contain;}
.pzh-choice-grid .item_title {font-size:.77rem;font-weight:750;}
.pzh-choice-grid .item_price {font-size:1.06rem;font-weight:900;color:var(--term,#165ed1);}
.pzh-choice-grid .pzh-time-choice .main_table {position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;}
.pzh-term-list {display:grid;gap:9px;padding-top:12px;}
.pzh-term-button {width:100%;border:2px solid #d4e5fd;border-radius:13px;padding:12px;display:flex;align-items:center;gap:12px;text-align:left;background:#eff6ff;color:#114d9c;cursor:pointer;font:inherit;transition:.15s;}
.pzh-term-button:nth-child(2){background:#fff5e7;border-color:#ffd4a2;color:#b65b04}
.pzh-term-button:nth-child(3){background:#fff0ee;border-color:#ffc4bb;color:#c2382d}
.pzh-term-button.is-selected{box-shadow:0 0 0 2px currentColor inset;transform:translateY(-1px);}
.pzh-term-button__icon{font-size:25px;}
.pzh-term-button__text{display:flex;flex-direction:column;font-size:1rem;font-weight:800;}
.pzh-term-button__text small{font-size:.85rem;font-weight:850;}
.pzh-term-button__check{margin-left:auto;font-weight:900;}
.pzh-category-form .tabs_cont {gap:7px;display:flex;flex-wrap:wrap;}
.pzh-category-form .tabs_cont > div {border-radius:999px!important;padding:8px 13px!important;}
.pzh-category-form .item_container .selected,.pzh-category-form .item_container .active {border:2px solid #1263d7!important;background:#ebf4ff!important;box-shadow:0 0 0 2px #c6e0ff!important;}
.pzh-category-form .item_container .selected:before,.pzh-category-form .item_container .active:before {content:'✓';position:absolute;right:7px;top:5px;background:#1263d7;color:white;border-radius:50%;width:23px;height:23px;text-align:center;line-height:23px;font-weight:800;z-index:1;}
.pzh-category-form .item_wrapper{position:relative;border-radius:13px;}
.pzh-view-image {display:inline-flex;gap:4px;align-items:center;justify-content:center;align-self:center;border:1px solid #b9d6f9;background:#fff;color:#1254ad;border-radius:50px;font-size:.76rem;font-weight:700;padding:5px 8px;margin:6px auto 2px;cursor:pointer;}
.pzh-view-image:hover{background:#e6f1ff;}
.pzh-model-note {font-size:.72rem;color:#516786;line-height:1.3;text-align:center;}
.pzh-characteristic {font-size:.7rem;color:#b76b00;text-align:center;font-weight:800;}
.pzh-viewer[hidden]{display:none!important;}
.pzh-viewer{position:fixed;inset:0;z-index:2147483000;background:#091c36b8;display:grid;place-items:center;padding:16px;}
.pzh-viewer__panel{background:white;border-radius:20px;position:relative;width:min(700px,95vw);max-height:90vh;overflow:auto;padding:20px 24px;box-shadow:0 20px 90px #06132988;}
.pzh-viewer__close{position:absolute;right:12px;top:10px;border:0;background:#eaf1fa;border-radius:50%;width:36px;height:36px;cursor:pointer;font-size:23px;}
.pzh-viewer__img{display:block;max-height:55vh;max-width:100%;width:auto;object-fit:contain;margin:15px auto;}
.pzh-viewer__title{font-size:1.25rem;font-weight:800;color:#0d3469;max-width:92%;}
.pzh-viewer__desc{color:#435771;line-height:1.5;}
@media(max-width:900px){.pzh-choice-grid{grid-template-columns:1fr;}.pzh-choice-grid>.pzh-imprint-choice,.pzh-choice-grid>.pzh-time-choice{grid-column:1;grid-row:auto;}.pzh-choice-grid>.pzh-time-choice{grid-row:1;}.pzh-choice-grid .item_container{grid-template-columns:repeat(2,minmax(0,1fr));}.pzh-term-list{grid-template-columns:repeat(3,minmax(0,1fr));}.pzh-term-button{padding:8px;gap:5px;}.pzh-term-button__icon{font-size:16px;}.pzh-term-button__text{font-size:.8rem}.pzh-term-button__text small{font-size:.73rem;}}
@media(max-width:540px){.pzh-term-list{grid-template-columns:1fr}.pzh-choice-grid .item_container{grid-template-columns:repeat(2,minmax(0,1fr))}.pzh-choice-grid>fieldset{padding:10px!important}}

/* Visual design v2 — real ordering form, not an illustration */
body.pz_flow form.pzh-category-form .pzh-choice-grid {display:grid!important;grid-template-columns:minmax(0,2.25fr) minmax(240px,.85fr);gap:14px;align-items:stretch;margin:16px 0 18px}
body.pz_flow .pzh-choice-grid > fieldset{border:1px solid #c8dbf5!important;background:linear-gradient(145deg,#fff,#f8fbff)!important;border-radius:19px!important;padding:17px!important;box-shadow:0 6px 18px #1a56a30a;min-width:0;}
body.pz_flow .pzh-choice-grid .item_container{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;max-height:400px;overflow:auto;align-content:start;}
body.pz_flow .pzh-choice-grid .item_wrapper.imprint{display:grid!important;grid-template-columns:65px minmax(0,1fr);align-items:center;gap:5px!important;padding:9px!important;min-height:95px;border:1px solid #c8dcfa;border-radius:13px;position:relative;}
body.pz_flow .pzh-choice-grid .item_wrapper.imprint .img_wrap{grid-column:1;grid-row:1;height:67px;display:grid;place-items:center;}
body.pz_flow .pzh-choice-grid .item_wrapper.imprint .img_wrap img{width:65px!important;height:65px!important;object-fit:contain;}
body.pz_flow .pzh-choice-grid .item_wrapper.imprint>div:not(.img_wrap){grid-column:2;grid-row:1;min-width:0;display:flex;flex-direction:column;gap:4px;padding:0!important;}
body.pz_flow .pzh-choice-grid .item_wrapper.imprint .item_title{text-align:left;font-size:.83rem;font-weight:800!important;color:#10345f;min-height:0;}
body.pz_flow .pzh-choice-grid .item_wrapper.imprint .item_price{text-align:left!important;font-weight:900!important;font-size:1.12rem!important;color:var(--term-ink,#1256b3)!important;}
body.pz_flow .pzh-choice-grid .item_wrapper.imprint .pzh-view-image{grid-column:1;grid-row:2;padding:3px 5px;font-size:.65rem;white-space:nowrap;}
body.pz_flow .pzh-choice-grid .item_wrapper.imprint .item_quantity_wrap{margin:4px 0 0;justify-content:start!important;}
body.pz_flow .pzh-choice-grid .item_wrapper.imprint.selected{background:linear-gradient(135deg,#e4f0ff,#fff)!important;border:2px solid #1264ed!important;box-shadow:0 0 0 1px #1264ed!important;}
body.pz_flow .pzh-choice-grid .pzh-time-choice .main_table{display:block!important;position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;}
body.pz_flow .pzh-choice-grid .pzh-term-list{display:grid!important;grid-template-columns:1fr!important;gap:10px;margin:0;}
body.pz_flow .pzh-term-button{padding:14px 15px;min-height:79px;box-shadow:none;}
body.pz_flow .pzh-term-button:first-child{background:linear-gradient(110deg,#e8fbf2,#d1f4e4);border-color:#9fe2c1;color:#087946;}
body.pz_flow .pzh-term-button:nth-child(2){background:linear-gradient(110deg,#eaf3ff,#d5e8ff);border-color:#9fc8ff;color:#135db7;}
body.pz_flow .pzh-term-button:nth-child(3){background:linear-gradient(110deg,#ffefee,#ffd8d4);border-color:#f99b93;color:#c72e27;}
body.pz_flow .pzh-term-button.is-selected{border-color:currentColor;box-shadow:0 0 0 2px currentColor inset;}
body.pz_flow .pzh-term-button__icon{font-size:26px;min-width:30px;}
body.pz_flow .pzh-term-button__text{font-size:1.08rem;}
body.pz_flow .pzh-term-button__text small{font-size:1rem;font-weight:900;}
body.pz_flow .pzh-term-button__check{font-size:1.6rem;}
body.pz_flow form.pzh-category-form>fieldset>fieldset:has(.osnastka_container){border:1px solid #c8dbf5!important;border-radius:19px;background:linear-gradient(145deg,#fff,#f8fbff);padding:16px!important;}
body.pz_flow form.pzh-category-form .item_wrapper.osnastka{border:1px solid #c8dcfa!important;border-radius:14px!important;box-shadow:none;min-height:220px;}
body.pz_flow form.pzh-category-form .item_wrapper.osnastka.selected{background:linear-gradient(135deg,#e0efff,#fff)!important;border:2px solid #1264ed!important;box-shadow:0 0 0 1px #1264ed!important;}
body.pz_flow .pz_kit{border:1px solid #b9d3fc;border-radius:18px;background:linear-gradient(100deg,#f4f9ff,#fff);box-shadow:0 8px 23px #19468116;}
body.pz_flow .pz_kit_total b{font-size:2rem!important;color:#6b24c9!important;}
body.pz_flow .pz_kit_add{background:linear-gradient(90deg,#7f38d8,#5b22bf)!important;color:#fff!important;border-radius:12px!important;box-shadow:0 6px 20px #792bc455;}
@media(max-width:960px){body.pz_flow form.pzh-category-form .pzh-choice-grid{grid-template-columns:1fr!important;}body.pz_flow .pzh-choice-grid .pzh-term-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;}body.pz_flow .pzh-term-button{padding:9px;min-height:85px;}}
@media(max-width:600px){body.pz_flow .pzh-choice-grid .item_container{grid-template-columns:repeat(2,minmax(0,1fr))!important;}body.pz_flow .pzh-choice-grid .pzh-term-list{grid-template-columns:1fr!important;}body.pz_flow .pzh-choice-grid .item_wrapper.imprint{grid-template-columns:52px minmax(0,1fr);}body.pz_flow .pzh-choice-grid .item_wrapper.imprint .img_wrap img{width:50px!important;height:50px!important;}}

/* Refined production styling matching the approved visual direction. */
.pzh-polished { --pzh-blue:#1565ce;--pzh-border:#bcd7f9; }
.pzh-polished > fieldset {border-radius:20px!important;border:1px solid #cadcf2!important;background:linear-gradient(155deg,#fff,#f7fbff)!important;padding:clamp(12px,2vw,22px)!important;box-shadow:0 8px 26px rgba(22,69,133,.08);}
.pzh-polished > fieldset > legend {font-weight:900!important;color:#0e376a!important}
.pzh-choice-grid {grid-template-columns:minmax(0,2.7fr) minmax(225px,1fr)!important;gap:13px!important;}
.pzh-choice-grid > fieldset {background:linear-gradient(160deg,#fff,#f4f9ff)!important;border:1px solid var(--pzh-border)!important;padding:13px!important;}
.pzh-choice-grid > .pzh-time-choice {position:relative;}
.pzh-choice-grid .imprint_container {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;}
.pzh-polished .item_wrapper {background:linear-gradient(#fff,#f9fcff);border:1px solid #c6d9f3!important;border-radius:14px!important;position:relative;transition:background .15s,border-color .15s,box-shadow .15s;}
.pzh-polished .item_wrapper:has(.item_quantity:not(:empty)) {min-width:0}
.pzh-polished .item_wrapper:hover {border-color:#438aef!important;box-shadow:0 5px 18px rgba(22,100,211,.14)}
.pzh-polished .item_wrapper:has(.item_quantity[data-confirmed="true"]) {background:#eaf3ff}
.pzh-polished .item_wrapper .item_price {font-size:1.12rem!important;font-weight:900!important;color:var(--term-ink,#1565ce)!important}
.pzh-choice-grid .imprint_container .item_wrapper {padding:10px!important;align-items:center}
.pzh-choice-grid .imprint_container .img_wrap {max-height:86px!important;overflow:hidden}
.pzh-choice-grid .imprint_container .img_wrap img{max-height:86px!important;}
.pzh-polished .tabs_cont > div{border:1px solid #bcd7f9!important;background:#fff!important;color:#154b90!important;cursor:pointer;}
.pzh-polished .tabs_cont > .tab_active{background:linear-gradient(#348cef,#0052bb)!important;color:#fff!important;box-shadow:0 3px 11px #135eb552;}
.pzh-polished .item_container.osnastka_container {grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:9px;}
.pzh-polished .osnastka.item_wrapper {padding:9px!important;}
.pzh-term-button {min-height:75px;background:linear-gradient(120deg,#e7fff5,#d4f7eb)!important;border-color:#a6dfc8!important;color:#087350!important;}
.pzh-term-button:nth-child(2){background:linear-gradient(120deg,#eef7ff,#dcecff)!important;border-color:#9ac9ff!important;color:#0756b1!important}
.pzh-term-button:nth-child(3){background:linear-gradient(120deg,#fff2ef,#ffe0dc)!important;border-color:#ffaea7!important;color:#ca2d22!important}
.pzh-term-button.is-selected {border-color:currentColor!important;box-shadow:inset 0 0 0 1px currentColor,0 5px 12px #183c7421}
.pzh-term-button__text {font-size:1.08rem!important}.pzh-term-button__text small{font-size:.95rem!important}
.pzh-view-image {box-shadow:0 2px 5px #1b578521}
@media(max-width:950px){.pzh-choice-grid{grid-template-columns:1fr!important}.pzh-choice-grid>.pzh-imprint-choice,.pzh-choice-grid>.pzh-time-choice{grid-column:1!important;grid-row:auto!important}.pzh-term-list{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:540px){.pzh-choice-grid .imprint_container{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pzh-term-list{grid-template-columns:1fr;}}
