.jba-presentation-mounting[hidden],.jba-presentation-framing[hidden],.jba-presentation-price[hidden]{display:none!important}
.jba-presentation-materials,.jba-presentation-mounting,.jba-presentation-framing{margin-top:.75rem}
.jba-presentation-label{margin-bottom:.4rem;font:inherit}
.jba-presentation-frame-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin-top:.6rem;max-height:400px;overflow:auto}
.jba-presentation-frame{display:flex;flex-direction:column;gap:.4rem;align-items:flex-start;min-width:0;white-space:normal;text-align:left}
.jba-presentation-frame img{width:100%;height:72px;object-fit:contain}
.jba-presentation-frame span{font-size:.85rem;line-height:1.3}
.jba-presentation-filters{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.6rem}
.jba-presentation-filters button{font:inherit;font-size:.8rem;padding:.3rem .5rem}
.jba-presentation-selected .single_variation .woocommerce-variation-price:not(.jba-presentation-price){display:none!important}
body.jba-presentation-review .summary [id*="express-checkout"],body.jba-presentation-review .summary [class*="payment-request"]{display:none!important}
@media(max-width:480px){.jba-presentation-frame-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.jba-presentation-controls [hidden]{display:none!important}
.jba-presentation-controls .jba-swatches{min-width:0;max-width:100%}
.jba-presentation-compact{flex-wrap:nowrap;align-items:center}
.jba-presentation-compact>.jba-swatch{flex:0 1 auto;min-width:0;max-width:calc(100% - 5rem);white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
.jba-presentation-change{flex:0 0 auto;width:4.5rem;min-width:4.5rem;min-height:44px;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;padding:.4rem .6rem;font:inherit;font-size:.85rem;line-height:1.2;background:transparent;color:inherit;border:1px solid currentColor;border-radius:2px;cursor:pointer}
.jba-presentation-compact>.jba-swatch>span{max-width:100%}
.jba-presentation-change:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media(max-width:480px){
 .jba-presentation-controls .variations,.jba-presentation-controls .variations tbody,.jba-presentation-controls .variations tr,.jba-presentation-controls .variations th,.jba-presentation-controls .variations td{display:block;width:100%;min-width:0;box-sizing:border-box}
 .jba-presentation-controls .jba-swatch,.jba-presentation-filters button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 .jba-presentation-controls .jba-presentation-compact>.jba-swatch{max-width:calc(100% - 5rem)}
}

/* Private review: simultaneous framed artwork and room views. */
.jba-framed-views[hidden],body.jba-presentation-review .woocommerce-product-gallery[hidden]{display:none!important}
.jba-framed-views figure{margin:0 0 1.25rem}
.jba-framed-art>div>svg,.jba-framed-room>svg{display:block;width:100%;height:auto}
.jba-framed-art>div{padding:.75rem;background:transparent;box-sizing:border-box}
.jba-framed-views figcaption{font:inherit;font-size:.85rem;text-align:center;margin-top:.5rem}
.jba-presentation-mount-option{display:flex;flex-direction:column;align-items:center;gap:.4rem}
.jba-presentation-mount-option img{width:100%;max-width:120px;height:60px;object-fit:contain}

/* Keep the selected presentation available beside desktop controls. */
.jba-mobile-preview{display:none}
@media(min-width:769px){
 body.jba-presentation-review .wp-block-woocommerce-product-image-gallery{position:sticky;top:48px}
 .jba-framed-views:not(.jba-preview-dialog .jba-framed-views){max-height:calc(100dvh - 64px)}
 .jba-framed-views:not(.jba-preview-dialog .jba-framed-views) figure{margin-bottom:.6rem}
 .jba-framed-views:not(.jba-preview-dialog .jba-framed-views) figure>svg,.jba-framed-views:not(.jba-preview-dialog .jba-framed-views) figure>div>svg{max-height:calc((100dvh - 156px)/2);width:100%}
}
@media(max-width:768px){
 .jba-mobile-preview{display:block;margin-top:.8rem;text-align:center}
 .jba-mobile-preview>img,.jba-preview-enlarge>svg{display:block;width:100%;height:190px;object-fit:contain}
 .jba-mobile-preview p,.jba-preview-enlarge>span{display:block;font-size:.85rem;margin:.4rem 0}
 .jba-preview-enlarge{display:block;width:100%;padding:.5rem;background:transparent;color:inherit;border:1px solid currentColor;cursor:pointer;font:inherit}
}
.jba-preview-dialog{width:min(90vw,780px);max-height:90dvh;box-sizing:border-box;overflow:auto;padding:1rem;border:1px solid #333;background:#fff;color:#222}
.jba-preview-dialog::backdrop{background:rgb(0 0 0 / .65)}
.jba-preview-close{position:sticky;top:0;z-index:1;display:block;margin:0 0 .75rem auto;min-height:44px;padding:.5rem .75rem;cursor:pointer}
.jba-preview-dialog .jba-framed-views{display:block;width:100%!important;float:none!important;position:static!important;margin:0!important}

/* Bound native selects retained behind the custom controls. */
.jba-presentation-controls .jba-select-hidden{width:1px!important;max-width:1px!important;min-width:0!important}

