/* v7: production time ABOVE the order form; full-width readable cards. */
.pzh-v4-shell{max-width:100%;min-width:0;box-sizing:border-box;overflow:visible}
.pzh-v4-shell .pzh-v7-time-above{
 display:block!important;position:relative!important;float:none!important;width:100%!important;
 max-width:none!important;min-width:0!important;margin:12px 0 16px!important;padding:13px 16px 16px!important;
 border:1px solid #b6d2f8!important;border-radius:17px!important;background:#fff!important;
 box-shadow:0 4px 17px rgba(17,70,140,.06)!important;box-sizing:border-box;
}
.pzh-v4-shell .pzh-v7-time-above legend{color:#123c79;font-size:17px;font-weight:850;padding:0 8px;}
.pzh-v4-shell .pzh-v7-time-above .pzh-term-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;padding:2px 0!important;}
.pzh-v4-shell .pzh-v7-time-above .pzh-term-button{min-width:0!important;min-height:73px!important;padding:10px 16px!important;justify-content:flex-start!important;}
.pzh-v4-shell .pzh-v7-time-above .pzh-term-button__text{font-size:clamp(13px,1.15vw,17px)!important;}
.pzh-v4-shell .pzh-v7-time-above .pzh-term-button__text small{font-size:clamp(11px,.95vw,14px)!important;line-height:1.4;overflow-wrap:anywhere;}
.pzh-v4-shell .pzh-v7-time-above .main_table{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;}
/* Once the timing fieldset is outside the grid, use two columns for designs + preview. */
.pzh-v4-shell .pzh-choice-grid{grid-template-columns:minmax(0,2.5fr) minmax(215px,.82fr)!important;align-items:start!important;}
.pzh-v4-shell .pzh-choice-grid>.pzh-imprint-choice{grid-column:1!important;grid-row:1!important;}
.pzh-v4-shell .pzh-choice-grid>.pzh-time-choice:not(.pzh-v7-time-above){grid-column:1/3!important;grid-row:1!important;}
.pzh-v4-shell .pzh-choice-grid>.pzh-v4-gallery{grid-column:2!important;grid-row:1!important;}
/* Full catalog should remain visible: remove nested scroll regions. */
.pzh-v4-shell .pzh-choice-grid .imprint_container{max-height:none!important;overflow:visible!important;scrollbar-width:auto!important;}
.pzh-v4-shell .osnastka_container{max-height:none!important;overflow:visible!important;scrollbar-width:auto!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;}
.pzh-v4-shell .item_container .item_wrapper{box-sizing:border-box;min-width:0!important;overflow-wrap:break-word;}
.pzh-v4-shell .osnastka_container .item_wrapper{min-height:155px!important;grid-template-columns:clamp(62px,6.5vw,96px) minmax(0,1fr)!important;align-content:start!important;}
.pzh-v4-shell .osnastka_container .item_wrapper .img_wrap{width:100%!important;max-width:100%!important;height:92px!important;}
.pzh-v4-shell .osnastka_container .item_wrapper .img_wrap img{height:90px!important;width:100%!important;object-fit:contain;}
.pzh-v4-shell .osnastka_container .item_wrapper .item_title{font-size:clamp(12px,.95vw,14px)!important;overflow-wrap:break-word!important;word-break:normal!important;}
.pzh-v4-shell .osnastka_container .item_wrapper .pzh-view-image{font-size:11px!important;white-space:normal!important;max-width:100%!important;}
.pzh-v4-shell .osnastka_container .item_wrapper .pzh-model-note{overflow-wrap:break-word!important;}
/* Fix overflow of small imprint cards and ensure the quantity controls remain accessible. */
.pzh-v4-shell .pzh-choice-grid .item_wrapper.imprint{overflow:visible!important;min-height:113px!important;}
.pzh-v4-shell .pzh-choice-grid .item_wrapper.imprint .item_quantity_wrap{flex-wrap:wrap;}
.pzh-v4-shell .pzh-choice-grid .item_wrapper.imprint .pzh-view-image{max-width:100%;white-space:normal;}
@media(max-width:1100px){
 .pzh-v4-shell .pzh-choice-grid{grid-template-columns:minmax(0,1fr)!important;}
 .pzh-v4-shell .pzh-choice-grid>.pzh-imprint-choice{grid-column:1!important;grid-row:1!important;}
 .pzh-v4-shell .pzh-choice-grid>.pzh-v4-gallery{grid-column:1!important;grid-row:2!important;}
 .pzh-v4-shell .osnastka_container{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:650px){
 .pzh-v4-shell .pzh-v7-time-above .pzh-term-list{grid-template-columns:1fr!important;}
 .pzh-v4-shell .pzh-v7-time-above .pzh-term-button{min-height:63px!important;}
 .pzh-v4-shell .pzh-choice-grid .imprint_container{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .pzh-v4-shell .osnastka_container{grid-template-columns:1fr!important;}
 .pzh-v4-shell .pzh-choice-grid .item_wrapper.imprint{grid-template-columns:55px minmax(0,1fr)!important;}
}
