.stbd{--stbd-line:rgba(127,127,127,.25);--stbd-soft:rgba(127,127,127,.06)}
.stbd .stbd-item{box-sizing:border-box;border:1px solid var(--stbd-line);border-radius:12px;padding:16px!important;margin:0 0 12px!important;background:var(--stbd-soft);min-width:0;overflow-wrap:anywhere}
.stbd .bundled_product_title{font-size:1.05em;line-height:1.4;margin-bottom:8px}.stbd .bundled_product_images img{border-radius:8px;object-fit:contain}.stbd:not(.stbd-feature-images) .bundled_product_images{display:none!important}.stbd .stbd-control{font:inherit;color:inherit;background:transparent;border:1px solid var(--stbd-line);border-radius:6px;padding:.45em .8em;cursor:pointer;line-height:1.4}.stbd .stbd-control:hover,.stbd .stbd-control[aria-pressed=true]{border-color:currentColor;background:var(--stbd-soft)}.stbd .stbd-control[aria-pressed=true]{box-shadow:inset 0 0 0 1px currentColor;font-weight:700}.stbd .stbd-control:disabled{opacity:.4;cursor:not-allowed}.stbd .stbd-options{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}.stbd .stbd-native-select{position:absolute!important;clip-path:inset(50%);width:1px!important;height:1px!important;min-width:0!important;padding:0!important;overflow:hidden}.stbd .quantity{display:inline-flex;align-items:center;gap:5px}.stbd .stbd-description{font-size:.9em;margin:8px 0}.stbd .stbd-description summary{cursor:pointer}.stbd-grid .bundled_products{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px}.stbd-grid .stbd-item{width:auto!important;float:none!important;margin:0!important}.stbd-grid .bundled_product_images{float:none!important;width:100%!important;max-width:150px;margin:auto!important}.stbd-grid .details{width:100%!important;float:none!important}.stbd .stbd-step-hidden{display:none!important}.stbd .stbd-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.stbd .stbd-summary{border:1px solid var(--stbd-line);border-radius:12px;padding:16px;margin:16px 0;background:var(--stbd-soft)}.stbd-summary-line{padding:5px 0;border-bottom:1px solid var(--stbd-line);font-size:.9em}.stbd-total{font-weight:700;margin-top:10px}.stbd-saving{font-size:.9em}.stbd-sticky{display:none}@media(max-width:767px){.stbd .stbd-sticky{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:99;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--wp--preset--color--base,#fff);color:var(--wp--preset--color--contrast,#222);box-shadow:0 -2px 10px #0002}.stbd{padding-bottom:85px}.stbd .stbd-item{padding:12px!important}}
/* Full-page builder: scoped to enhanced bundle pages only. */
.stbd-full-product .stbd-full-gallery{display:none!important}
.stbd-full-product .stbd-full-width{width:100%!important;max-width:100%!important;flex:0 0 100%!important;float:none!important;margin-inline:0!important;min-width:0!important;grid-column:1/-1!important}
.stbd-full-product .stbd-full-row{display:block!important;max-width:100%!important;width:100%!important}
.stbd-full-product .product_title{font-size:clamp(1.6rem,3vw,2.5rem);line-height:1.15}
.stbd-full-product .woocommerce-product-details__short-description{max-width:75ch}
.stbd-full{width:100%!important;max-width:none!important;display:block!important}
.stbd-full .stbd-build-heading{font-size:1.45rem;margin:12px 0 18px}
.stbd-full .stbd-full-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:16px;align-items:start;min-width:0}
.stbd-full .stbd-item{width:auto!important;float:none!important;margin:0!important;background:transparent;border-radius:16px;padding:14px!important;display:block!important}
.stbd-full .bundled_product_images{display:block;float:none!important;width:100%!important;max-width:none!important;margin:0 0 14px!important;background:var(--stbd-soft);border-radius:12px;padding:12px;box-sizing:border-box;text-align:center}
.stbd-full .bundled_product_images img{width:100%!important;height:180px!important;object-fit:contain;display:block;margin:auto}
.stbd-full:not(.stbd-feature-images) .bundled_product_images{display:none!important}
.stbd-full .details{float:none!important;width:100%!important;margin:0!important;max-width:none!important}
.stbd-full .stbd-builder-columns{display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(0,2.5fr);gap:24px;align-items:start}
.stbd-full .stbd-builder-columns>.stbd-build-heading{grid-column:1/-1}
.stbd-full .stbd-builder-panel{grid-column:1;grid-row:2;position:sticky;top:100px;min-width:0}
.stbd-full .stbd-builder-columns>.stbd-full-grid{grid-column:2;grid-row:2}
.stbd-full .stbd-builder-panel .stbd-summary{margin-top:0}
.stbd-full .stbd-builder-panel .bundle_data{width:100%!important;max-width:none!important}
@media(max-width:900px){.stbd-full .stbd-builder-columns{display:flex!important;flex-direction:column;gap:16px}.stbd-full .stbd-builder-panel{order:3;position:static;width:100%}.stbd-full .stbd-full-grid{width:100%}}
@media(max-width:480px){.stbd-full .stbd-full-grid{grid-template-columns:1fr}.stbd-full .bundled_product_images img{height:150px!important}}
.stbd-full .stbd-builder-columns{grid-template-rows:auto auto 1fr}
.stbd-full .stbd-builder-columns>.stbd-builder-summary{grid-column:1;grid-row:2;margin:0}
.stbd-full .stbd-builder-columns>.stbd-builder-panel{grid-row:3;position:static}
.stbd-full .stbd-builder-columns>.stbd-full-grid{grid-row:2/4}
@media(max-width:900px){.stbd-full .stbd-builder-summary{order:2;width:100%;box-sizing:border-box}}
/* v1.2: independent card grid, no reliance on theme wrapper classes. */
.stbd-full-product.stbd-shell-ready .product_title{display:none!important}
.stbd-full-product.stbd-shell-ready .summary>.price{display:none!important}
.stbd-full .stbd-shell{display:grid!important;grid-template-columns:minmax(240px, .95fr) minmax(0,2.4fr);gap:clamp(18px,3vw,48px);align-items:start;width:100%;max-width:1320px;margin:0 auto 30px}
.stbd-full .stbd-panel{min-width:0;position:sticky;top:150px;align-self:start}
.stbd-full .stbd-panel .stbd-build-heading{font-size:clamp(22px,2vw,32px)!important;line-height:1.2;margin:0 0 14px}
.stbd-full .stbd-panel .woocommerce-product-details__short-description{font-size:14px;line-height:1.5;margin:0 0 16px}
.stbd-full .stbd-card-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;align-items:start;width:100%!important;min-width:0;float:none!important}
.stbd-full .stbd-card-grid>.stbd-item{display:block!important;width:100%!important;max-width:100%!important;flex:none!important;float:none!important;padding:10px!important;margin:0!important;border:0;background:transparent;text-align:center}
.stbd-full .stbd-card-grid .bundled_product_images{aspect-ratio:1;display:flex;align-items:center;justify-content:center;padding:12px!important;margin:0 0 12px!important;background:#f5f5f5}
.stbd-full .stbd-card-grid .bundled_product_images img{height:auto!important;max-height:100%!important;width:auto!important;max-width:100%!important;object-fit:contain}
.stbd-full .stbd-card-grid .bundled_product_title,.stbd-full .stbd-card-grid .bundled_product_title_inner{font-size:17px!important;line-height:1.3!important;margin:8px 0!important}
.stbd-full .stbd-card-grid .details{padding:0!important;text-align:center;font-size:14px}
.stbd-full .stbd-card-grid .stbd-options{justify-content:center}
.stbd-full .stbd-card-grid .stbd-control{font-size:13px!important;border-radius:24px;padding:6px 12px}
.stbd-full .stbd-add{display:inline-block;background:var(--wd-primary-color,#3272ed);color:white;border:0;border-radius:24px;margin:8px;min-width:75px}
.stbd-full .stbd-optional-native{position:absolute!important;clip-path:inset(50%);width:1px!important;height:1px!important}
.stbd-full .stbd-summary{background:transparent;border:0;padding:0;margin:18px 0}
.stbd-full .stbd-summary h3{font-size:18px;margin:0 0 12px}
.stbd-full .stbd-slots{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.stbd-full .stbd-slot{width:46px;height:46px;object-fit:contain;border:1px solid #ddd;border-radius:6px}
.stbd-full .stbd-count{font-size:13px;font-weight:600;margin-bottom:8px}
.stbd-full .bundle_price{font-size:22px!important;margin:12px 0!important}
.stbd-full .bundle_error,.stbd-full .bundle_availability{font-size:13px!important}
.stbd-full .stbd-panel .bundle_data{width:100%!important;max-width:100%!important;float:none!important}
.stbd-full .stbd-panel .bundle_add_to_cart_button{border-radius:24px;max-width:100%}
@media(max-width:1050px){.stbd-full .stbd-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:767px){.stbd-full .stbd-shell{display:flex!important;flex-direction:column;gap:12px}.stbd-full .stbd-panel{position:static;width:100%}.stbd-full .stbd-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.stbd-full .stbd-sticky-price{display:none}}
/* v1.3: direct children of native bundle form, verified against saved Webvue markup. */
.stbd-full-product.stbd-shell-ready h1.product_title{display:none!important}
.stbd-full-product.stbd-shell-ready .summary-inner>p.price{display:none!important}
.stbd-full-product.stbd-shell-ready .summary-inner>.wd-product-brands{display:none!important}
.stbd-full-product.stbd-shell-ready .stbd-card-grid .product_title{display:block!important}
.stbd-full-product.stbd-shell-ready .stbd-shell{max-width:1400px!important;margin:12px auto 24px!important;grid-template-columns:minmax(220px, 30fr) minmax(0,70fr)!important;gap:24px!important}
.stbd-full-product.stbd-shell-ready .stbd-card-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
.stbd-full-product.stbd-shell-ready .stbd-card-grid>.stbd-item{min-width:0!important;padding:0!important;box-shadow:none!important}
.stbd-full-product.stbd-shell-ready .stbd-card-grid .bundled_product_images{height:auto!important;aspect-ratio:1!important;overflow:hidden;display:flex!important;align-items:center;justify-content:center}
.stbd-full-product.stbd-shell-ready .stbd-card-grid .bundled_product_images figure{width:100%!important;margin:0!important;max-width:100%!important}
.stbd-full-product.stbd-shell-ready .stbd-card-grid .bundled_product_images img{width:100%!important;height:auto!important;max-height:220px!important;object-fit:contain!important}
.stbd-full-product.stbd-shell-ready .stbd-card-grid .bundled_product_title{font-size:17px!important;line-height:1.3!important}
.stbd-full-product.stbd-shell-ready .stbd-card-grid .stbd-add{display:inline-flex!important;justify-content:center;align-items:center;color:#fff!important;background:var(--wd-primary-color,#3272ed)!important;min-height:36px}
.stbd-full-product.stbd-shell-ready .stbd-panel .bundle_error .woocommerce-info{padding:10px!important;font-size:13px!important;line-height:1.4!important;min-height:0!important}
.stbd-full-product.stbd-shell-ready .stbd-panel .bundle_price .price{font-size:24px!important}
.stbd-full-product.stbd-shell-ready .stbd-panel .bundle_button{display:flex!important;flex-wrap:wrap;gap:8px}
.stbd-full-product.stbd-shell-ready .stbd-panel .bundle_add_to_cart_button{width:100%!important}
.stbd-full-product.stbd-shell-ready .stbd-sticky-price{display:none!important}
.stbd-full-product.stbd-shell-ready .stbd-card-grid:not(.stbd-feature-images) .bundled_product_images{visibility:inherit}
.stbd-full:not(.stbd-feature-images) .stbd-card-grid .bundled_product_images{display:none!important}
@media(max-width:900px){.stbd-full-product.stbd-shell-ready .stbd-shell{display:flex!important;flex-direction:column!important}.stbd-full-product.stbd-shell-ready .stbd-panel{position:static!important;width:100%!important}.stbd-full-product.stbd-shell-ready .stbd-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* v1.3.1: prefer existing WoodMart quantity controls, including late insertion. */
.stbd .quantity:has(.minus):has(.plus) > :is(.stbd-qty-minus,.stbd-qty-plus){display:none!important}
/* Native validation text and status remain intact; suppress decorative pseudo-icons. */
.stbd .bundle_error .woocommerce-info::before,.stbd .bundle_error .woocommerce-info::after,.stbd .bundle_error .woocommerce-info .msg::before,.stbd .bundle_error .woocommerce-info .msg li::before,.stbd .bundle_error .woocommerce-info .status_msg::before,.stbd .bundle_error .woocommerce-info .bundled_items_selection_msg::before{content:none!important;display:none!important}

/* v1.3.2: responsive theme inheritance and configurable image styling. */
.stbd{--stbd-active-cols:var(--stbd-cols-desktop,3)}
@media(max-width:1024px){.stbd{--stbd-active-cols:var(--stbd-cols-tablet,2)}}
@media(max-width:767px){.stbd{--stbd-active-cols:var(--stbd-cols-mobile,2)}}
.stbd-full.stbd .stbd-card-grid,.stbd-full-product.stbd-shell-ready .stbd-full.stbd .stbd-card-grid,.stbd-grid.stbd .bundled_products,.stbd-grid.stbd .stbd-grid-direct{grid-template-columns:repeat(var(--stbd-active-cols),minmax(0,1fr))!important}
.stbd-grid.stbd .stbd-grid-direct{display:grid!important;gap:12px;align-items:start;min-width:0}
.stbd.stbd .bundled_product_images,.stbd-full-product.stbd-shell-ready .stbd.stbd .stbd-card-grid .bundled_product_images{background:var(--stbd-image-bg,transparent)!important;padding:var(--stbd-image-padding,0px)!important;border-radius:var(--stbd-image-radius,0px)!important;box-shadow:none!important;box-sizing:border-box}
.stbd.stbd .bundled_product_images img{border-radius:var(--stbd-image-radius,0px)!important}
.stbd:not(.stbd-feature-images).stbd .bundled_product_images,.stbd-full-product.stbd-shell-ready .stbd:not(.stbd-feature-images).stbd .stbd-card-grid .bundled_product_images{display:none!important}

.stbd .stbd-quoted-native{display:none!important}.stbd .stbd-promo-quote:empty{display:none}.stbd .stbd-promo-quote{margin:12px 0}.stbd .stbd-quote-line{display:flex;justify-content:space-between;gap:12px;margin:6px 0}.stbd .stbd-quote-original{text-decoration:line-through;color:#777}.stbd .stbd-quote-final{font-size:1.4em;font-weight:700;color:var(--wd-primary-color,#3272ed)}.stbd .stbd-quote-saving{color:#18743a;font-weight:600}.stbd .stbd-promo-quote small{display:block;color:#777}

/* v1.3.4: independent price panel and synchronized sticky price. */
.stbd-full-product.stbd-shell-ready .stbd-sticky .stbd-sticky-price{display:block!important}
.stbd .stbd-promo-quote .stbd-control{margin-top:8px}

.stbd .stbd-selection-group{grid-column:1/-1;width:100%;margin-bottom:20px;min-width:0}.stbd .stbd-group-grid{display:grid;grid-template-columns:repeat(var(--stbd-cols-desktop,3),minmax(0,1fr));gap:12px}.stbd .stbd-group-status{margin:6px 0 12px;color:#287547;font-weight:600}.stbd .stbd-group-invalid{color:#a33}.stbd .stbd-group-single .quantity,.stbd .stbd-group-single .stbd-add{display:none!important}.stbd .stbd-group-select{width:100%;margin-top:8px}.stbd .stbd-group-chosen .stbd-group-select{background:#3272ed!important;color:white!important}.stbd .stbd-group-single.stbd-group-chosen{outline:2px solid #3272ed;outline-offset:-2px;border-radius:12px}@media(max-width:1024px){.stbd .stbd-group-grid{grid-template-columns:repeat(var(--stbd-cols-tablet,2),minmax(0,1fr))}}@media(max-width:767px){.stbd .stbd-group-grid{grid-template-columns:repeat(var(--stbd-cols-mobile,2),minmax(0,1fr))}}

/* v1.4.1: keep native variation controls in their original product DOM. */
.stbd .stbd-group-compact .stbd-group-grid{position:relative;align-items:stretch;overflow:visible!important}
.stbd.stbd .stbd-group-compact .stbd-group-grid>.stbd-item{display:flex!important;flex-direction:column;position:static!important;overflow:visible!important;min-width:0;width:auto!important;margin:0!important;padding:12px!important;float:none!important;text-align:center}
.stbd .stbd-group-compact .stbd-item .details,.stbd .stbd-group-compact .bundled_item_cart_content{position:static!important;overflow:visible!important;transform:none!important;contain:none!important}
.stbd .stbd-group-compact .stbd-item .details{flex:1;display:flex;flex-direction:column}
.stbd .stbd-group-compact .stbd-group-select{margin-top:auto;min-height:38px}
.stbd .stbd-group-compact .stbd-item:not(.stbd-group-chosen) table.variations{display:none!important}
.stbd .stbd-group-compact .stbd-group-chosen table.variations{position:absolute!important;top:calc(100% + 10px);left:0;right:0;width:100%!important;max-width:none!important;box-sizing:border-box;display:block!important;background:var(--stbd-soft);border:1px solid var(--stbd-line);border-radius:12px;padding:12px 16px;margin:0!important;text-align:start;z-index:2}
.stbd .stbd-group-compact table.variations tbody{display:block;width:100%}
.stbd .stbd-group-compact table.variations tr{display:flex!important;align-items:center;flex-wrap:wrap;gap:8px 16px;padding:4px 0;width:100%}
.stbd .stbd-group-compact table.variations td{display:block!important;width:auto!important;padding:0!important;text-align:start!important}
.stbd .stbd-group-compact table.variations td.value{flex:1 1 180px;min-width:0}
.stbd .stbd-group-compact table.variations :is(.variable-items-wrapper,.wd-swatches-product,.stbd-options){display:flex;flex-direction:row!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:6px;margin:0!important}
.stbd .stbd-group-compact table.variations .reset_bundled_variations_fixed{margin-top:4px}
.stbd .stbd-group-compact .bundled_product_title{font-size:14px!important;line-height:1.35!important}
.stbd .stbd-group-compact .bundled_product_images{max-width:150px!important;margin:0 auto 8px!important}
@media(max-width:767px){.stbd .stbd-group-compact table.variations tr{align-items:flex-start}.stbd .stbd-group-compact table.variations td.value{flex-basis:100%}}
/* v1.4.2: anchor native item price area above the selection button. */
.stbd .stbd-group-compact .stbd-item .bundled_item_cart_content{margin-top:auto!important}
.stbd .stbd-group-compact .stbd-group-select{margin-top:8px!important}
.stbd .stbd-group-compact .stbd-item .details{justify-content:flex-start}
.stbd .stbd-unavailable :is(.bundled_product_images,.bundled_product_title,.price){opacity:.45;filter:grayscale(1)}
.stbd .stbd-unavailable .stbd-group-select:disabled,.stbd .stbd-stock-disabled{opacity:.4!important;filter:grayscale(1);cursor:not-allowed!important;text-decoration:line-through!important}
.stbd .stbd-stock-disabled *{cursor:not-allowed!important}
.stbd .stbd-group-compact table.variations tr{align-items:center!important}
.stbd .stbd-group-compact table.variations td.label{flex:0 0 auto;align-self:center!important;margin:0!important}
.stbd .stbd-group-compact table.variations td.value{display:flex!important;align-items:center!important;flex-wrap:wrap;gap:8px 12px}
.stbd .stbd-group-compact table.variations td.value :is(.variable-items-wrapper,.wd-swatches-product,.stbd-options){flex:0 1 auto;align-items:center!important}
.stbd .stbd-group-compact table.variations .reset_bundled_variations_fixed{margin:0 0 0 auto!important;width:auto!important;flex:0 0 auto;align-self:center!important}
.stbd .stbd-group-compact table.variations .reset_variations{margin:0!important;position:static!important;white-space:nowrap}

/* Quote ownership persists even when WooCommerce replaces the native price node. */
.stbd.stbd-managed-price:not(.stbd-native-fallback) .bundle_price{display:none!important}
.stbd .stbd-promo-quote[aria-busy="true"]{opacity:.75}
.stbd .stbd-quote-updating{margin-top:6px}
