/* Narrow containment repairs only; original responsive styles remain authoritative. */
.bb-store .product-main .col,.bb-store .product-footer .col{min-width:0}
.bb-store .product-gallery img{max-width:100%;height:auto}
.bb-store .bb-swatches{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0;max-width:100%}
.bb-store .bb-swatches button{margin:0;padding:4px 9px;min-height:30px;line-height:1.35;font-size:14px;font-weight:400;text-transform:none;letter-spacing:0;background:#fff;color:#222;border:1px solid #ddd;border-radius:2px;white-space:normal}
.bb-store .bb-swatches button.selected{border-color:#000;box-shadow:0 0 0 1px #000}
.bb-store .bb-swatches button:disabled{opacity:.4}
.bb-store .variations select{max-width:100%}
.bb-store .product-gallery-slider:not(.flickity-enabled) .slide:not(:first-child){display:none}
.bb-store .bb-commerce-form .quantity{display:inline-flex}

@media(max-width:849px){
 .bb-store .product-main>.row{margin-left:auto;margin-right:auto;width:100%;max-width:100%}
 .bb-store .product-info,.bb-store .product-gallery{max-width:100%;min-width:0}
 .bb-store .product-info .price,.bb-store .product-info button,.bb-store .product-footer{overflow-wrap:anywhere}
 .bb-store .product-footer img,.bb-store .product-footer video,.bb-store .product-footer iframe{max-width:100%;height:auto}
 .bb-store .product-footer table{display:block;max-width:100%;overflow-x:auto}
 .bb-store #reviews,.bb-store .review-container,.bb-store .bbos-trust-sections{box-sizing:border-box;max-width:100%;margin-left:auto;margin-right:auto;overflow-wrap:anywhere}
 .bb-store .product-thumbnails{max-width:100%;margin-left:0;margin-right:0;overflow:hidden}
 .bb-store .variations td,.bb-store .variations th{max-width:100%;white-space:normal}
}

.bb-store .bb-swatches-ready .variations select{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.bb-store .product-gallery{position:relative}

/* Keep the product detail columns balanced at desktop widths. */
@media(min-width:850px){
 .bb-store .product-main>.row>.product-gallery,
 .bb-store .product-main>.row>.product-info{box-sizing:border-box;flex:0 0 50%;width:50%;max-width:50%;min-width:0}
}

/* Give variation labels and option buttons room to breathe. */
.bb-store form.cart .variations{width:100%;table-layout:fixed}
.bb-store form.cart .variations tr{display:grid;grid-template-columns:minmax(220px,42%) minmax(0,1fr);column-gap:16px;align-items:start;border-bottom:1px solid #e5e5e5;padding:12px 0}
.bb-store form.cart .variations tr:last-child{border-bottom:0}
.bb-store form.cart .variations th.label,.bb-store form.cart .variations td.label,.bb-store form.cart .variations td.value{width:auto;padding:0;vertical-align:top}
.bb-store form.cart .variations th.label label{display:block;line-height:1.2;margin:2px 0;font-weight:400}
.bb-store form.cart .variations td.value{min-width:0}
.bb-store .bb-swatches{gap:8px;margin:0;align-items:center}
.bb-store .bb-swatches button{padding:8px 13px;min-height:36px;font-size:14px;line-height:1.2}

@media(max-width:849px){
 .bb-store form.cart .variations tr{display:grid;grid-template-columns:1fr;row-gap:9px;column-gap:0;padding:14px 0}
 .bb-store form.cart .variations th.label,.bb-store form.cart .variations td.label{width:100%;padding:0}
 .bb-store form.cart .variations td.value{width:100%;padding:0}
 .bb-store .bb-swatches{gap:8px}
 .bb-store .bb-swatches button{padding:8px 14px;min-height:38px}
}

/* Sticky purchase bar shown after the native Buy now control leaves view. */
.bb-sticky-buybar{position:fixed;z-index:9998;left:0;right:0;bottom:0;display:none;background:rgba(255,255,255,.96);border-top:1px solid #ddd;box-shadow:0 -4px 18px rgba(0,0,0,.08)}
.bb-sticky-buybar.is-visible{display:block}
.bb-sticky-buybar-inner{display:flex;align-items:center;gap:18px;max-width:1080px;margin:0 auto;padding:10px 15px}
.bb-sticky-product{display:flex;align-items:center;gap:10px;min-width:250px;flex:1;min-height:48px;color:#173b72;font-weight:600;line-height:1.15}
.bb-sticky-product img{width:52px;height:52px;object-fit:contain;background:#fff}
.bb-sticky-product-title{display:block;max-width:300px;font-size:14px}
.bb-sticky-actions{display:flex;align-items:center;gap:10px}
.bb-sticky-actions .quantity{display:inline-flex!important;margin:0!important}
.bb-sticky-actions .quantity input{height:36px!important;width:42px!important;text-align:center}
.bb-sticky-actions button{height:36px;margin:0!important;padding:0 22px;border:0;font-size:13px;font-weight:700;text-transform:uppercase;cursor:pointer}
.bb-sticky-add{background:#7890ca;color:#fff}
.bb-sticky-buy{background:#7890ca;color:#fff;min-width:130px}
@media(max-width:849px){
 .bb-sticky-buybar-inner{display:grid;grid-template-columns:1fr auto;gap:6px 10px;padding:8px 12px}
 .bb-sticky-product{min-width:0;min-height:38px}
 .bb-sticky-product img{width:42px;height:42px}
 .bb-sticky-product-title{font-size:12px;max-width:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .bb-sticky-actions{grid-column:1 / -1;display:grid;grid-template-columns:auto 1fr;gap:8px}
 .bb-sticky-actions .quantity input{height:38px!important}
 .bb-sticky-actions button{height:40px;padding:0 10px;font-size:12px}
 .bb-sticky-add{width:100%}
 .bb-sticky-buy{grid-column:1 / -1;width:100%;height:44px!important;background:#d92525}
}
