/* BP Store only. Keep the two sections and checkout intact while the catalog
   scrolls; unusually short panes/large text retain an outer-scroll fallback. */
#control-display #overlay[data-kind=bp-store]{display:flex;flex-direction:column;gap:5px;padding:6px!important;overflow:auto;min-width:0;scroll-padding:6px}
#control-display #overlay[data-kind=bp-store][hidden]{display:none}
#control-display #overlay[data-kind=bp-store]>.overlay-header{flex:none;position:static;min-height:44px!important;padding:2px 6px!important;margin:0!important}
#control-display #overlay[data-kind=bp-store]>.overlay-header h2{font:700 17px/1.2 Arial,sans-serif!important}
#control-display #overlay[data-kind=bp-store] #modal-close{min-width:44px;min-height:44px;width:44px;height:44px}
#control-display #overlay[data-kind=bp-store] .bp-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;flex:none;margin:0}
#control-display #overlay[data-kind=bp-store] button{min-height:44px;min-width:0;touch-action:manipulation}
#control-display #overlay[data-kind=bp-store] .bp-tabs button{font:700 14px/1.2 Arial,sans-serif;padding:5px;white-space:normal}
#control-display #overlay[data-kind=bp-store] .bp-search-row{display:flex;align-items:center;gap:6px;flex:none;min-width:0}
#control-display #overlay[data-kind=bp-store] #bp-search{width:100%;flex:1;min-width:0;min-height:44px;font:16px/1.2 Arial,sans-serif;padding:6px;margin:0}
#control-display #overlay[data-kind=bp-store] .bp-account{flex:0 1 auto;min-width:0;max-width:45%;text-align:right;overflow-wrap:anywhere;font:700 13px/1.25 Arial,sans-serif;font-variant-numeric:tabular-nums}
#control-display #overlay[data-kind=bp-store] .bp-account>*{display:block;font:inherit}
#control-display #overlay[data-kind=bp-store] #bp-count{font:11px/1.25 Arial,sans-serif;font-weight:400}
#control-display #overlay[data-kind=bp-store] .mart-catalog-list{flex:1 0 90px;min-height:90px;min-width:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;scroll-padding:3px;padding:2px;gap:4px;scrollbar-width:thin}
#control-display #overlay[data-kind=bp-store] .mart-pick{display:flex;align-items:center;flex:none;gap:5px;min-height:44px;width:100%;padding:5px 6px;white-space:normal}
#control-display #overlay[data-kind=bp-store] .mart-pick[hidden],#control-display #overlay[data-kind=bp-store] #bp-empty[hidden]{display:none}
#control-display #overlay[data-kind=bp-store] .mart-pick>span{min-width:0;flex:1;overflow-wrap:anywhere;font:700 13px/1.25 Arial,sans-serif}
#control-display #overlay[data-kind=bp-store] .mart-pick>small{min-width:0;max-width:42%;flex:none;white-space:normal;overflow-wrap:anywhere;text-align:right;font:12px/1.25 Arial,sans-serif}
#control-display #overlay[data-kind=bp-store] #bp-empty{font:14px/1.4 Arial,sans-serif;margin:8px;overflow-wrap:anywhere}
#control-display #overlay[data-kind=bp-store] .mart-transaction{flex:none;min-width:0;padding:5px;margin:0}
#control-display #overlay[data-kind=bp-store] .bp-selection-line{display:flex;justify-content:space-between;align-items:start;gap:8px;margin-bottom:4px;font:700 13px/1.25 Arial,sans-serif}
#control-display #overlay[data-kind=bp-store] .bp-selection-line strong{flex:1;min-width:0;overflow-wrap:anywhere}
#control-display #overlay[data-kind=bp-store] #bp-total{max-width:42%;font:12px/1.3 Arial,sans-serif;overflow-wrap:anywhere;text-align:right}
#control-display #overlay[data-kind=bp-store] .quantity-stepper legend{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#control-display #overlay[data-kind=bp-store] .quantity-stepper>div{grid-template-columns:repeat(2,minmax(44px,1fr)) minmax(24px,.8fr) repeat(2,minmax(44px,1fr))}
#control-display #overlay[data-kind=bp-store] .quantity-stepper button{min-height:44px;padding:4px;font:700 16px/1 Arial,sans-serif}
#control-display #overlay[data-kind=bp-store] .quantity-stepper output{min-height:44px;align-content:center;padding:4px;font:700 18px/1.2 Arial,sans-serif}
#control-display #overlay[data-kind=bp-store] .mart-transaction-actions{grid-template-columns:minmax(0,1fr) minmax(64px,auto);gap:5px;margin-top:5px}
#control-display #overlay[data-kind=bp-store] .mart-transaction-actions button{min-height:44px;padding:5px;font:700 13px/1.2 Arial,sans-serif;white-space:normal}
#control-display #overlay[data-kind=bp-store] #bp-result{font:12px/1.3 Arial,sans-serif;margin:4px 0 0;max-height:3.9em;overflow:auto;overflow-wrap:anywhere;overscroll-behavior:contain}
#control-display #overlay[data-kind=bp-store] #bp-result:empty{display:none}
.display-preview:has(.bp-preview),.dual-console[data-surface=adventure] .display-preview:has(.bp-preview){align-content:start}
.bp-preview{overflow-wrap:anywhere;min-width:0}
.bp-preview h2{min-width:0;overflow-wrap:anywhere}
.bp-preview dl>div{min-width:0;flex-wrap:wrap}
.bp-preview dd{white-space:normal;overflow-wrap:anywhere}
.bp-preview .bp-store-help{font:12px/1.4 Arial,sans-serif;border-top:1px solid #8ba3a5;padding-top:6px}
