/* BundleRocket front end */
.bundlerocket-items { list-style: none; margin: 0 0 1.5em; padding: 0; }
.bundlerocket-item { display: flex; gap: 1em; align-items: flex-start; padding: 1em 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.bundlerocket-item:first-child { border-top: 1px solid rgba(0,0,0,.08); }
.bundlerocket-thumb { flex: 0 0 80px; }
.bundlerocket-thumb img { width: 80px; height: auto; display: block; border-radius: 4px; }
.bundlerocket-details { flex: 1; min-width: 0; }
.bundlerocket-title { margin: 0 0 .25em; font-size: 1em; }
.bundlerocket-desc { font-size: .9em; opacity: .85; }
.bundlerocket-desc p { margin: 0 0 .5em; }
.bundlerocket-price { margin: .25em 0; }
.bundlerocket-attr { margin: .5em 0; }
.bundlerocket-attr label { display: block; font-size: .85em; font-weight: 600; margin-bottom: .2em; }
.bundlerocket-attr select { max-width: 100%; }
.bundlerocket-qty { display: flex; align-items: center; gap: .5em; margin-top: .5em; }
.bundlerocket-qty label { font-size: .85em; }
.bundlerocket-qty input { width: 4.5em; }
.bundlerocket-stock.out-of-stock { color: #b32d2e; font-size: .9em; }
.bundlerocket-item.is-optional:not(.is-selected) .bundlerocket-variations,
.bundlerocket-item.is-optional:not(.is-selected) .bundlerocket-qty { display: none; }
.bundlerocket-optional { cursor: pointer; }
.bundlerocket-summary { margin-bottom: 1em; }
.bundlerocket-total { font-size: 1.25em; }
.bundlerocket-total-label { font-size: .8em; font-weight: 600; margin-right: .25em; }
.bundlerocket-button-row { display: flex; gap: .5em; align-items: center; flex-wrap: wrap; }
.bundlerocket-form .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }

/* Grid layout */
.bundlerocket-layout-grid .bundlerocket-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1em; }
.bundlerocket-layout-grid .bundlerocket-item { flex-direction: column; border: 1px solid rgba(0,0,0,.08); border-radius: 6px; padding: 1em; }
.bundlerocket-layout-grid .bundlerocket-thumb, .bundlerocket-layout-grid .bundlerocket-thumb img { width: 100%; flex: none; }

/* Tabular layout: compact rows */
.bundlerocket-layout-tabular .bundlerocket-item { align-items: center; padding: .5em 0; }
.bundlerocket-layout-tabular .bundlerocket-thumb, .bundlerocket-layout-tabular .bundlerocket-thumb img { flex-basis: 48px; width: 48px; }
.bundlerocket-layout-tabular .bundlerocket-desc { display: none; }

/* Cart: indent bundle contents */
tr.bundlerocket-child td.product-name { padding-left: 2.5em; position: relative; }
tr.bundlerocket-child td.product-name::before { content: "\21B3"; position: absolute; left: 1em; opacity: .5; }
tr.bundlerocket-child td.product-thumbnail img { max-width: 40px; }
tr.bundlerocket-child, tr.bundled_table_item { font-size: .92em; }
.wc-block-cart-items__row.is-br-child .wc-block-cart-item__product,
.wc-block-components-order-summary-item.is-br-child { padding-left: 1.5em; }
.wc-block-cart-items__row.is-br-child .wc-block-cart-item__image { padding-left: 24px; }
.wc-block-cart-items__row.is-br-child .wc-block-cart-item__image img { max-width: 48px; }
.wc-block-cart-items__row.is-br-child .wc-block-components-quantity-selector { display: none; }
.is-br-price-hidden .wc-block-cart-item__prices,
.is-br-price-hidden .wc-block-cart-item__total,
.is-br-price-hidden .wc-block-components-order-summary-item__total-price { visibility: hidden; }

/* Orders and emails */
.order_item.bundlerocket-child td:first-child, .order_item.bundled_table_item td:first-child { padding-left: 2.5em; }

/* Build your own */
.bundlerocket-component { border: 1px solid rgba(0,0,0,.1); border-radius: 8px; padding: 1em 1.25em; margin: 0 0 1.25em; }
.bundlerocket-component[hidden], .bundlerocket-review[hidden] { display: none; }
.bundlerocket-component-title { font-weight: 600; font-size: 1.05em; padding: 0 .35em; }
.bundlerocket-step-no { display: block; font-size: .75em; font-weight: 400; opacity: .7; text-transform: uppercase; letter-spacing: .04em; }
.bundlerocket-optional-tag { font-weight: 400; font-size: .85em; opacity: .7; }
.bundlerocket-component-desc { font-size: .92em; opacity: .85; }
.bundlerocket-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .75em; margin: .75em 0; }
.bundlerocket-option { position: relative; display: flex; flex-direction: column; gap: .35em; padding: .75em; border: 2px solid rgba(0,0,0,.1); border-radius: 8px; cursor: pointer; font-size: .92em; transition: border-color .15s; }
.bundlerocket-option:hover { border-color: rgba(0,0,0,.3); }
.bundlerocket-option.is-selected { border-color: currentColor; box-shadow: 0 0 0 1px currentColor inset; }
.bundlerocket-option input[type=radio] { position: absolute; top: .6em; right: .6em; margin: 0; }
.bundlerocket-option.is-out { opacity: .5; cursor: not-allowed; }
.bundlerocket-option.is-none { justify-content: center; text-align: center; min-height: 4em; }
.bundlerocket-option-thumb img { width: 100%; height: auto; max-height: 120px; object-fit: contain; border-radius: 4px; display: block; }
.bundlerocket-option-name { font-weight: 600; padding-right: 1.25em; }
.bundlerocket-option-desc { font-size: .85em; opacity: .8; }
.bundlerocket-option-stock { color: #b32d2e; font-size: .85em; }
.bundlerocket-option-variations { margin: .5em 0; }
.bundlerocket-component-error { color: #b32d2e; font-size: .9em; margin-top: .5em; }
.bundlerocket-step-buttons { display: flex; gap: .5em; justify-content: flex-end; margin-top: 1em; }
.bundlerocket-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .25em; margin: 0 0 1em; padding: 0; counter-reset: brstep; }
.bundlerocket-steps li { counter-increment: brstep; }
.bundlerocket-steps button { background: none; border: 1px solid rgba(0,0,0,.15); border-radius: 999px; padding: .3em .9em; font-size: .85em; cursor: pointer; color: inherit; }
.bundlerocket-steps button::before { content: counter(brstep) ". "; opacity: .6; }
.bundlerocket-steps li.is-done button { border-color: #00a32a; }
.bundlerocket-steps li.is-current button { background: #1e1e1e; color: #fff; border-color: #1e1e1e; }
.bundlerocket-review { border-top: 1px solid rgba(0,0,0,.1); padding-top: 1em; }
.bundlerocket-review-title { margin: 0 0 .5em; }
.bundlerocket-review-list { margin: 0 0 1em 1.2em; padding: 0; font-size: .95em; }
.bundlerocket-review-comp { font-weight: 600; }
.bundlerocket-review-price { opacity: .8; }
.bundlerocket-composite .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }

.bundlerocket-qty[hidden] { display: none; }
.bundlerocket-count { font-size: .9em; opacity: .8; margin-bottom: .25em; }
.bundlerocket-component.is-inactive { display: none; }
.bundlerocket-edit { font-size: .85em; margin-left: .5em; }
