/* Approved card design v11: layout/behavior separated from the legacy product form. */
html body form.pzh-category-form .pzh-choice-grid .item_container.imprint_container:not([style*="display:none"]):not([style*="display: none"]),
html body form.pzh-category-form .pzh-imprint-choice .imprint_container:not([style*="display:none"]):not([style*="display: none"]){
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;
 max-height:none!important;height:auto!important;overflow:visible!important;align-items:stretch!important;
}
html body form.pzh-category-form .imprint_container[style*="display:none"],
html body form.pzh-category-form .imprint_container[style*="display: none"]{display:none!important}
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
 grid-template-rows:178px minmax(36px,auto) 24px 42px!important;
 align-items:stretch!important;align-content:stretch!important;column-gap:8px!important;row-gap:8px!important;
 min-width:0!important;min-height:310px!important;height:auto!important;
 padding:12px!important;border-radius:15px!important;overflow:hidden!important;
 background:#fff!important;border:1px solid #bcd6f9!important;
 box-shadow:0 4px 12px rgba(17,65,130,.045)!important;
 position:relative!important;box-sizing:border-box!important;
}
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card.pzh-v4-selected,
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card.pzh-simple-chosen{
 border-color:#1172e8!important;box-shadow:0 0 0 1px #1172e8,0 5px 16px #116dd41c!important;
}
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card>.img_wrap{
 grid-column:1/-1!important;grid-row:1!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 position:relative!important;width:100%!important;height:178px!important;min-height:0!important;max-height:178px!important;
 padding:9px!important;margin:0!important;overflow:hidden!important;
 background:#fff!important;border-radius:12px!important;box-sizing:border-box!important;cursor:default!important;
}
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card>.img_wrap>img{
 position:static!important;display:block!important;width:auto!important;height:auto!important;
 max-width:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;
 margin:auto!important;transform:none!important;object-fit:contain!important;object-position:center!important;
 float:none!important;filter:none!important;cursor:default!important;
}
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card>.pzh-card-native,
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card>div:not(.img_wrap):not(.pzh-layout-v10-rating):not(.pzh-approved-placeholder){
 display:contents!important;position:static!important;height:auto!important;min-height:0!important;max-width:none!important;
 margin:0!important;padding:0!important;overflow:visible!important;
}
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card .item_title{
 grid-row:2!important;grid-column:1/-1!important;display:block!important;
 position:static!important;width:100%!important;max-width:100%!important;
 margin:0!important;padding:0!important;min-height:0!important;
 font-size:14px!important;line-height:1.35!important;font-weight:850!important;
 color:#13355e!important;text-align:left!important;overflow-wrap:break-word!important;
}
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card>.pzh-layout-v10-rating{
 grid-row:3!important;grid-column:1/-1!important;order:unset!important;
 display:flex!important;gap:7px!important;align-items:center!important;position:static!important;
 padding:0!important;margin:0!important;min-width:0!important;
 font-size:12px!important;line-height:1.2!important;color:#69809f!important;
 white-space:normal!important;
}
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card>.pzh-layout-v10-rating span:first-child{color:#9caec4!important;font-size:16px;white-space:nowrap;letter-spacing:1px}
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card .item_price{
 grid-row:4!important;grid-column:1!important;display:flex!important;align-items:center!important;
 position:static!important;margin:0!important;padding:0!important;width:auto!important;min-width:0!important;
 background:none!important;color:#0763c7!important;font-size:21px!important;line-height:1.15!important;font-weight:900!important;
 white-space:nowrap!important;text-align:left!important;border:none!important;box-shadow:none!important;
}
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card>.pzh-simple-open{
 grid-row:4!important;grid-column:2!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 position:static!important;float:none!important;width:auto!important;min-width:93px!important;max-width:100%!important;
 height:40px!important;min-height:40px!important;margin:0!important;padding:6px 13px!important;
 font-size:13px!important;line-height:1!important;font-weight:800!important;
 color:white!important;background:linear-gradient(135deg,#278ef1,#065cc3)!important;border:0!important;border-radius:9px!important;
 white-space:nowrap!important;overflow-wrap:normal!important;text-align:center!important;cursor:pointer!important;
}
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card .item_quantity_wrap{
 display:none!important;visibility:hidden!important;
}
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card>.pzh-view-image,
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card>.pzh-v9-diameter{display:none!important}
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card .img_wrap img.pzh-broken{display:none!important}
html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card .pzh-approved-placeholder{
 grid-row:1!important;grid-column:1/-1!important;display:flex!important;align-items:center!important;justify-content:center!important;
 border-radius:12px;background:#fff;color:#6b809a;font-size:13px;font-weight:700;text-align:center;padding:12px;
}
/* Quantity remains coupled to original .item_inc/.item_dec, but lives outside product tiles. */
form.pzh-category-form .pzh-approved-selection[hidden]{display:none!important}
form.pzh-category-form .pzh-approved-selection{
 grid-column:1/-1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:14px;flex-wrap:wrap;margin:15px 0 0;padding:13px 16px;
 border:1px solid #a8cff8;border-radius:14px;background:#edf6ff;color:#153964;
}
.pzh-approved-selection strong{display:block;font-size:15px}.pzh-approved-selection small{display:block;color:#5c7290;margin-top:3px}
.pzh-approved-count{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:850}
.pzh-approved-count button{width:36px;height:36px;border:1px solid #b6d2f6;border-radius:9px;background:white;color:#1153a9;font-weight:900;font-size:21px;cursor:pointer}
/* Mounts, same presentation principles: never let images or buttons spill into copy. */
html body form.pzh-category-form .osnastka_container:not([style*="display:none"]):not([style*="display: none"]){grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:visible!important;max-height:none!important}
html body form.pzh-category-form .osnastka_container .item_wrapper{
 display:flex!important;flex-direction:column!important;gap:8px!important;align-items:stretch!important;
 min-width:0!important;min-height:300px!important;padding:12px!important;overflow:hidden!important;
}
html body form.pzh-category-form .osnastka_container .item_wrapper .img_wrap{
 position:relative!important;display:flex!important;flex:none!important;align-items:center!important;justify-content:center!important;
 width:100%!important;max-width:100%!important;height:155px!important;max-height:155px!important;min-height:155px!important;
 padding:9px!important;overflow:hidden!important;background:#fff!important;border-radius:10px!important;box-sizing:border-box!important;
}
html body form.pzh-category-form .osnastka_container .item_wrapper .img_wrap img{
 position:static!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;transform:none!important;
}
html body form.pzh-category-form .osnastka_container .item_wrapper>div:not(.img_wrap):not(.pzh-model-note){
 position:static!important;display:flex!important;flex-direction:column!important;gap:5px!important;align-items:stretch!important;flex:none!important;
 min-height:0!important;width:100%!important;overflow:visible!important;
}
html body form.pzh-category-form .osnastka_container .item_wrapper .item_title{font-size:14px!important;line-height:1.35!important;text-align:left!important}
html body form.pzh-category-form .osnastka_container .item_wrapper .item_price{font-size:20px!important;text-align:left!important}
html body form.pzh-category-form .osnastka_container .item_wrapper .pzh-view-image{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 position:static!important;width:100%!important;max-width:100%!important;min-height:38px!important;
 margin-top:auto!important;padding:7px 10px!important;white-space:nowrap!important;line-height:1.2!important;box-sizing:border-box!important;
}
@media(max-width:950px){
 html body form.pzh-category-form .pzh-choice-grid .item_container.imprint_container:not([style*="display:none"]):not([style*="display: none"]),
 html body form.pzh-category-form .pzh-imprint-choice .imprint_container:not([style*="display:none"]):not([style*="display: none"]),
 html body form.pzh-category-form .osnastka_container:not([style*="display:none"]):not([style*="display: none"]){grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:540px){
 html body form.pzh-category-form .pzh-choice-grid .item_container.imprint_container:not([style*="display:none"]):not([style*="display: none"]),
 html body form.pzh-category-form .pzh-imprint-choice .imprint_container:not([style*="display:none"]):not([style*="display: none"]){grid-template-columns:1fr!important}
 html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card{grid-template-rows:200px minmax(30px,auto) 23px 42px!important}
 html body form.pzh-category-form .item_wrapper.imprint.pzh-approved-card>.img_wrap{height:200px!important;max-height:200px!important}
 html body form.pzh-category-form .osnastka_container:not([style*="display:none"]):not([style*="display: none"]){grid-template-columns:1fr!important}
}

/* Layout does not depend on the optional v4 wrapper being injected. */
html body form.pzh-category-form .pzh-choice-grid{grid-template-columns:minmax(0,1fr)!important;}
html body form.pzh-category-form .pzh-choice-grid .pzh-imprint-choice{grid-column:1!important;grid-row:auto!important;}
html body form.pzh-category-form .pzh-choice-grid .pzh-time-choice{grid-column:1!important;grid-row:auto!important;}
