/* Restore independent, full-height product rows even with an older cached stylesheet. */
#shelfDialog{display:block;width:min(1000px,calc(100vw - 28px));height:auto;max-height:90dvh;padding:30px 40px;overflow:auto}
#shelfDialog:not([open]){display:none}
#shelfDialog .shelf-heading{display:flex;gap:20px;flex:none}#shelfDialog .shelf-heading h2{font-size:30px;margin:6px 0}#shelfDialog .shelf-heading p{display:block;font-size:11px;margin:5px 0 20px}#shelfNumber{display:block}
#shelfDialog .shelf-search{margin:12px 0;flex:none}#shelfDialog .shelf-subcorners{display:flex;flex-wrap:wrap;overflow:visible;margin:8px 0 18px;padding:0;gap:7px;flex:none}#shelfDialog .shelf-subcorners button{flex:none}
#shelfDialog .shelf-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:max-content;align-items:stretch;align-content:start;gap:12px 30px;height:auto;min-height:0;max-height:58dvh;overflow:auto;padding:15px 20px 5px;flex:none}
#shelfDialog .shelf-slot{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;width:auto;min-width:0;min-height:260px;height:auto;padding:28px 0 16px;margin:0 0 15px;border-bottom-width:10px}
#shelfDialog .shelf-slot .slot-category{position:absolute;top:0;max-width:100%;text-align:center}
#shelfDialog .shelf-slot>.product-box{flex:none;width:125px;height:128px;min-width:0;max-width:100%;padding:12px 13px}
#shelfDialog .shelf-slot>.product-box.photo-pack{display:grid;grid-template-rows:minmax(0,1fr) auto;width:165px;height:170px;padding:13px}
#shelfDialog .shelf-slot .photo-pack img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
#shelfDialog .shelf-slot>.atc-pick{display:flex;flex:none;width:auto;max-width:100%;min-height:40px;margin:0;padding:8px 16px;font-size:12px;white-space:normal}
#shelfDialog .shelf-slot .product-box strong{font-size:13px;line-height:1.4}#shelfDialog .shelf-slot .photo-pack strong{font-size:9px;line-height:1.45}
#shelfDialog .shelf-foot{margin-top:20px;flex:none}#shelfDialog .shelf-foot>span{display:block}#shelfDialog .kids-caution{max-height:none;overflow:visible;margin:10px 0;flex:none}
@media(max-width:850px){#shelfDialog{padding:25px}#shelfDialog .shelf-products{gap:10px 20px;padding:10px}#shelfDialog .shelf-heading h2{font-size:25px}}
@media(max-width:600px){#shelfDialog{width:calc(100vw - 18px);padding:24px 18px}#shelfDialog .shelf-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px;max-height:56dvh;padding:10px 13px}#shelfDialog .shelf-slot{min-height:240px;padding-bottom:15px;margin-bottom:12px}#shelfDialog .shelf-slot>.product-box{width:100px;height:110px;padding:9px}#shelfDialog .shelf-slot>.product-box.photo-pack{width:118px;height:160px;padding:11px}#shelfDialog .shelf-slot .product-box strong{font-size:12px}#shelfDialog .shelf-slot .photo-pack strong{font-size:8px}#shelfDialog .shelf-heading p{font-size:9px}#shelfDialog .shelf-subcorners{gap:5px;margin-bottom:13px}}

#otcShelfNotice{display:block}
#otcShelfNotice:empty,#shelfBatchPages[hidden]{display:none}
.shelf-batch-pages{display:flex;align-items:center;justify-content:center;gap:12px;margin:14px 0 0;font-size:12px}
.shelf-batch-pages button{border:1px solid #becfc1;border-radius:9px;padding:8px 12px;background:#fff;color:#244436}
#shelfDialog .shelf-slot .otc-display-pack strong{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
