/* Bundle Builder — storefront styles. Accent color comes from --bb-accent (module setting).
   Every block uses the shop frame: 1px solid #ddd, radius 7px. Font is inherited from the theme (Nunito Sans on Journal). */
.bb {
	--bb-accent: #ce1111;
	--bb-accent-soft: rgba(206, 17, 17, .07);
	--bb-text: #333;
	--bb-muted: #8a8a8a;
	--bb-line: #ddd;
	--bb-grey: #f6f6f6; /* the one grey used for every grey surface on the page */
	--bb-soft: var(--bb-grey);
	--bb-bg: #fff;
	--bb-radius: 7px;
	--bb-panel-w: 340px;
	color: var(--bb-text);
	line-height: 1.5;
	margin: 0 0 40px;
	position: relative;
	-webkit-font-smoothing: antialiased;
}
.bb *, .bb *::before, .bb *::after { box-sizing: border-box; }
.bb button { font: inherit; color: inherit; cursor: pointer; }
.bb a { transition: color .15s; }
.bb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Shared frame */
.bb-frame,
.bb-card,
.bb-panel__inner,
.bb-alert {
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius);
	background: var(--bb-bg);
}

/* Head */
.bb-head { margin: 0 0 24px; max-width: 760px; }
.bb-title { margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em; color: var(--bb-text); }
.bb--page .bb-title { font-size: 32px; line-height: 1.15; }
.bb-desc { color: #333333; font-size: 15px; line-height: 1.6; }
.bb-desc p:last-child { margin-bottom: 0; }

/* Discount steps ("Final" design): headline left, step pills right */
.bb-steps { --bb-ink: #1d1d1f; --bb-ink-2: #86868b; --bb-ink-3: #b0b0b5; --bb-fill: var(--bb-grey); --bb-sep: #d2d2d7; margin: 0 0 24px; padding: 24px 26px; border: 1px solid #e8e8ed; border-radius: 18px; background: var(--bb-bg); }
.bb-steps__label { font-size: 13px; font-weight: 600; color: var(--bb-ink-2); margin-bottom: 4px; }
.bb-steps__split { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.bb-steps__text { min-width: 0; }
.bb-steps__title { margin: 0 0 6px; font-size: 38px; line-height: 1.08; font-weight: 700; letter-spacing: -.03em; color: var(--bb-ink); }
.bb-steps__title span { color: var(--bb-accent); font-variant-numeric: tabular-nums; }
.bb-steps__hint { min-height: 22px; font-size: 15px; color: var(--bb-ink-2); }
.bb-steps__hint b { color: var(--bb-ink); font-weight: 600; }
.bb-steps__pills { position: relative; display: flex; flex: none; gap: 12px; padding: 10px 8px 10px 0; }
.bb-pill { position: relative; width: 132px; padding: 13px 10px 10px; line-height: 1.25; text-align: center; border: 1px solid var(--bb-sep); border-radius: 16px; background: var(--bb-bg); transition: background .35s, border-color .35s; }
.bb-pill__qty { display: block; font-size: 13px; color: var(--bb-ink-2); white-space: nowrap; transition: color .35s; }
.bb-pill__off { display: block; margin-top: 1px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--bb-ink); white-space: nowrap; transition: color .35s; }
.bb-pill__badge { position: absolute; top: -.5px; left: 50%; transform: translate(-50%, -50%); max-width: calc(100% + 16px); overflow: hidden; text-overflow: ellipsis; padding: 1px 9px; border-radius: 999px; background: var(--bb-accent); color: #fff; font-size: 10px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.bb-pill__check { position: absolute; top: -8px; right: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--bb-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 10px no-repeat; opacity: 0; transform: scale(.5); transition: opacity .35s, transform .35s; }
.bb-pill.is-done .bb-pill__check, .bb-pill.is-current .bb-pill__check { opacity: 1; transform: none; }
.bb-pill.is-done { background: var(--bb-grey); border-color: var(--bb-grey); }
.bb-pill.is-current { background: var(--bb-ink); border-color: var(--bb-ink); }
.bb-pill.is-current .bb-pill__qty { color: rgba(255,255,255,.65); }
.bb-pill.is-current .bb-pill__off { color: #fff; }
.bb-pill.is-off .bb-pill__qty, .bb-pill.is-off .bb-pill__off { color: var(--bb-ink-3); }
.bb-pill.is-off.is-popular { border-color: var(--bb-accent); }
.bb-pill.is-off.is-popular .bb-pill__qty { color: var(--bb-ink-2); }
.bb-pill.is-off.is-popular .bb-pill__off { color: var(--bb-ink); }
/* Grey fill grows left to right with every product added to the step (transform = smooth, inside the border) */
.bb-pill__track { position: absolute; inset: 0; border-radius: 15px; overflow: hidden; pointer-events: none; transition: opacity .45s; }
.bb-pill__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--bb-grey); transform: translateX(-100%); transition: transform .45s cubic-bezier(.25, .1, .25, 1); will-change: transform; }
.bb-pill__qty, .bb-pill__off { position: relative; }
.bb-pill.is-current .bb-pill__track { opacity: 0; }
.bb-pill.is-off.is-filling .bb-pill__qty { color: var(--bb-ink-2); }
.bb-pill.is-off.is-filling .bb-pill__off { color: var(--bb-ink); }
/* 4+ steps: pills go under the headline and scroll sideways */
.bb-steps.is-many .bb-steps__split { flex-direction: column; align-items: stretch; gap: 14px; }
.bb-steps.is-many .bb-steps__pills { margin: -2px 0 -10px; padding: 12px 10px 10px 2px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.bb-steps.is-many .bb-steps__pills::-webkit-scrollbar { display: none; }
.bb-steps.is-many .bb-pill { flex: 0 0 132px; scroll-snap-align: start; }
@media (max-width: 760px) {
	.bb-steps { padding: 22px 14px; text-align: center; }
	.bb-steps__split { flex-direction: column; align-items: center; gap: 18px; }
	.bb-steps.is-many .bb-steps__split { align-items: stretch; }
}

/* Layout */
.bb-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--bb-panel-w); gap: 28px; align-items: start; }
.bb-main { min-width: 0; }

/* Categories — iOS segmented control (grey track, white segment on the active one) */
.bb-tabs { margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bb-tabs::-webkit-scrollbar { display: none; }
.bb-tabs__track { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bb-grey); vertical-align: top; }
.bb .bb-tab { flex: none; padding: 7px 14px; border: 0; border-radius: 8px; background: none; color: #1d1d1f; font-size: 14px; line-height: 1.3; white-space: nowrap; transition: background .2s, color .2s; }
.bb .bb-tab:hover { color: #1d1d1f; background: rgba(0,0,0,.04); }
.bb .bb-tab.is-active { background: var(--bb-bg); font-weight: 600; }
/* focus ring only for keyboard users, never after a mouse click (themes add their own button:focus rings) */
.bb .bb-tab:focus, .bb .bb-chip:focus { outline: none; }
.bb .bb-tab:focus-visible, .bb .bb-chip:focus-visible { outline: 2px solid #1d1d1f; outline-offset: -2px; }

/* Search — grey field, no frame */
.bb-toolbar { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.bb-search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; height: 40px; margin: 0; padding: 0 12px; border-radius: 10px; background: var(--bb-grey); font-weight: normal; transition: background .2s; }
.bb-search:focus-within { background: var(--bb-bg); outline: 1px solid #c7c7cc; outline-offset: -1px; }
.bb-search svg { flex: none; width: 17px; height: 17px; color: #86868b; }
.bb-search input { width: 100%; height: 38px; padding: 0; border: 0; outline: 0; background: none; box-shadow: none; color: #1d1d1f; font-size: 15px; }
.bb-search input::placeholder { color: #86868b; }

/* Brands — small grey capsules, black when selected */
.bb-brands { display: flex; align-items: center; margin: 0 0 20px; }
.bb-brands[hidden] { display: none; }
.bb-brands__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bb-brands__list { display: flex; gap: 6px; flex-wrap: wrap; }
.bb .bb-chip { padding: 5px 12px; border: 0; border-radius: 999px; background: var(--bb-grey); color: #1d1d1f; font-size: 13px; line-height: 1.3; white-space: nowrap; transition: background .2s, color .2s; }
.bb .bb-chip:hover { background: #ececef; }
.bb-chip small { margin-left: 4px; color: #b0b0b5; font-size: 12px; }
.bb .bb-chip.is-active { background: #1d1d1f; color: #fff; }
.bb-chip.is-active small { color: rgba(255,255,255,.6); }

/* Grid */
.bb-grid-wrap { position: relative; min-height: 120px; }
/* Desktop: the admin column count, but a card never gets narrower than 220px (fewer columns next to the cart on 1025-1199px screens) */
.bb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(220px, calc((100% - (var(--bb-cols-d) - 1) * 20px) / var(--bb-cols-d))), 1fr)); gap: 20px; }
.bb-grid.is-loading { opacity: .4; pointer-events: none; transition: opacity .2s; }
.bb-grid-empty { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--bb-muted); border: 1px dashed var(--bb-line); border-radius: var(--bb-radius); }
/* Loading: small ring + "Loading products" (over the dimmed old cards, or in the flow when the grid is empty / on "load more") */
.bb-loader { position: absolute; z-index: 2; top: 48px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--bb-bg); font-size: 13px; color: #86868b; white-space: nowrap; }
.bb-loader.is-inline { position: static; transform: none; display: flex; justify-content: center; margin: 24px auto 0; background: none; }
/* After the inline variant: the same specificity would otherwise keep a hidden inline loader on screen */
.bb-loader[hidden], .bb-loader.is-inline[hidden] { display: none; }
.bb-loader__ring { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #e5e5ea; border-top-color: #1d1d1f; animation: bb-spin .8s linear infinite; }
@keyframes bb-spin { to { transform: rotate(360deg); } }

.bb-item { display: flex; flex-direction: column; min-width: 0; position: relative; }
.bb-item.is-disabled { opacity: .55; }

/* Product card (built-in, mirrors Journal product-thumb) */
.bb-card { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow: hidden; position: relative; transition: border-color .15s; }
.bb-card__img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bb-bg); }
.bb-card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.bb-card:hover .bb-card__img img { transform: scale(1.04); }
.bb-card__body { padding: 10px; flex: 1; display: flex; flex-direction: column; }
/* Brand / model bar, same look as the Journal 3 card stats: full-width grey strip under the image */
.bb-card__stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 8px; margin: -10px -10px 10px; padding: 5px 10px; background: var(--bb-grey); font-size: 11px; line-height: 1.5; color: #686868; text-transform: uppercase; }
.bb-card__stats > span { min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* "Brand:" / "Model:" stay for screen readers only */
.bb-card__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bb-card__stats a { color: inherit; text-decoration: none; }
.bb-card__stats a:hover { color: #333333; }
.bb-card__name { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--bb-text); text-decoration: none; overflow-wrap: anywhere; }
.bb-card__name:hover, .bb-card__name:focus { color: var(--bb-text); text-decoration: none; }
/* Price block as in the Journal 3 card: 15px, #333, 5px above, 7px below (margin-top auto keeps rows aligned) */
.bb-card__price { display: block; margin-top: auto; margin-bottom: 7px; padding-top: 5px; font-size: 15px; font-weight: 400; color: #333333; text-align: left; }
.bb-price-new { color: var(--bb-accent); }
.bb-price-old { color: var(--bb-muted); font-weight: 400; font-size: 13px; text-decoration: line-through; margin-left: 4px; }
.bb-item:not(.is-selected) .bb-card:hover, .bb-item--j3:not(.is-selected) .product-thumb:hover { border-color: #333333; }
.bb-item.is-selected .bb-card { border-color: var(--bb-accent); }
.bb-item.is-selected::before { content: ""; position: absolute; z-index: 2; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--bb-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Add / quantity control (sits at the bottom of the card) */
.bb-ctrl { margin-top: auto; padding-top: 12px; }
/* Names can wrap to any length: price + controls sit at the bottom so rows line up */
.bb-card__price ~ .bb-ctrl { margin-top: 0; padding-top: 0; }
.bb .bb-add { width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; background: #333333; border: 1px solid #333333; color: #fff; border-radius: var(--bb-radius); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; transition: background .15s, color .15s, border-color .15s; }
.bb .bb-add:hover { background: var(--bb-accent); border-color: var(--bb-accent); color: #fff; }
.bb-qty { display: none; height: 40px; border: 1px solid #333333; background: #333333; color: #fff; border-radius: var(--bb-radius); align-items: stretch; overflow: hidden; }
.bb .bb-qty button { width: 40px; flex: none; border: 0; background: none; font-size: 18px; line-height: 1; color: #fff; transition: background .15s; }
.bb .bb-qty button:hover { background: rgba(255, 255, 255, .12); }
.bb .bb-qty button:disabled { opacity: .3; cursor: default; background: none; }
.bb-qty span { flex: 1; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.bb-item.is-selected .bb-add { display: none; }
.bb-item.is-selected .bb-qty { display: flex; }
.bb-oos { display: flex; align-items: center; justify-content: center; height: 40px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--bb-muted); border: 1px solid var(--bb-line); border-radius: var(--bb-radius); }

/* Journal 3 cards: the theme styles the card, we keep our grid, frame and control */
.bb-grid.main-products.product-grid { display: grid !important; margin: 0 !important; }
.bb-item--j3 .product-layout { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; flex: 1 1 auto; float: none !important; display: flex; }
.bb-item--j3 .product-thumb { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--bb-line); border-radius: var(--bb-radius); background: var(--bb-bg); transition: border-color .15s; }
.bb-item--j3 .product-thumb .caption { flex: 1; display: flex; flex-direction: column; }
.bb-item--j3 .product-thumb .bb-ctrl { padding-left: 0; padding-right: 0; }
/* Photo is not a link inside the builder (accidental taps), also for the theme's own card template */
.bb-item--j3 .image a.product-img { pointer-events: none; cursor: default; }
.bb-item--j3.is-selected .product-thumb { border-color: var(--bb-accent); }
.bb-item--j3.bb-hide-native .button-group,
.bb-item--j3.bb-hide-native .buttons-wrapper,
.bb-item--j3.bb-hide-native .quickview-button,
.bb-item--j3.bb-hide-native .extra-group,
.bb-item--j3.bb-hide-native .wish-group,
.bb-item--j3.bb-hide-native .button-wishlist,
.bb-item--j3.bb-hide-native .button-compare { display: none !important; }

.bb-more { text-align: center; margin-top: 28px; }
.bb-more[hidden] { display: none; }

/* Buttons */
.bb-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; border: 1px solid var(--bb-text); border-radius: var(--bb-radius); background: var(--bb-bg); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; transition: background .15s, color .15s, border-color .15s, opacity .15s; }
.bb-btn--ghost:hover { background: var(--bb-text); color: #fff; }
.bb-btn--primary { background: var(--bb-accent); border-color: var(--bb-accent); color: #fff !important; }
.bb-btn--primary:hover { filter: brightness(.92); }
.bb-btn:disabled { background: var(--bb-soft); border-color: var(--bb-line); color: var(--bb-muted) !important; cursor: not-allowed; filter: none; }
.bb-link { background: none; border: 0; padding: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--bb-muted); text-decoration: underline; text-underline-offset: 3px; }
.bb-link:hover { color: var(--bb-accent); }

/* Bundle panel — iOS grouped list: #f6f6f6 background, white groups, list capped at 5 rows */
.bb-panel { position: sticky; top: 60px; }
.bb-panel__inner { --bb-ink: #1d1d1f; --bb-ink-2: #86868b; --bb-ink-3: #b0b0b5; --bb-sep: #e8e8ed; --bb-row: 60px; display: flex; flex-direction: column; max-height: calc(100vh - 80px); padding: 16px; border: 0; border-radius: 18px; background: var(--bb-grey); color: var(--bb-ink); }
.bb-panel__head { display: none; }
.bb-panel__title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.bb-panel__close { margin-left: auto; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #e8e8ed; color: var(--bb-ink-2); font-size: 20px; line-height: 1; }
.bb-g__cap { display: flex; justify-content: space-between; gap: 10px; padding: 0 14px 6px; font-size: 12px; color: #515154; text-transform: uppercase; letter-spacing: .04em; }
.bb-g__cap-r { min-width: 0; color: var(--bb-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.bb-g__cap-r b { color: var(--bb-ink); font-weight: 600; }
.bb-g__grp { margin: 0 0 18px; background: var(--bb-bg); border-radius: 12px; overflow: hidden; }
.bb-g__grp--list { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; }
.bb-list { position: relative; list-style: none; margin: 0; padding: 0; max-height: calc(var(--bb-row) * 5); overflow-y: auto; overscroll-behavior: contain; }
/* Always-visible slim scrollbar (macOS hides overlay bars otherwise) */
.bb-list::-webkit-scrollbar { width: 10px; }
.bb-list::-webkit-scrollbar-track { background: transparent; }
.bb-list::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: #c7c7cc padding-box; }
@supports not selector(::-webkit-scrollbar) { .bb-list { scrollbar-width: thin; scrollbar-color: #c7c7cc transparent; } }
.bb-line { display: flex; align-items: center; gap: 12px; min-height: var(--bb-row); padding: 8px 14px; }
.bb-line + .bb-line { border-top: 1px solid var(--bb-sep); }
.bb-line img { flex: none; width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: var(--bb-grey); }
.bb-line__info { flex: 1; min-width: 0; line-height: 1.25; }
.bb-line__name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-line__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; }
.bb-line__meta { min-width: 0; font-size: 13px; color: var(--bb-ink-2); white-space: nowrap; }
/* Set explicitly: themes such as Journal3 reset the default strike-through of <s> */
.bb-line__meta s { margin-right: 4px; color: var(--bb-ink-3); text-decoration: line-through; }
.bb-line__qty { flex: none; display: inline-flex; align-items: center; height: 22px; border-radius: 999px; background: var(--bb-grey); }
.bb-line__qty button { width: 22px; height: 22px; padding: 0; border: 0; background: none; color: var(--bb-ink); font-size: 14px; line-height: 1; }
.bb-line__qty button:disabled { opacity: .3; cursor: default; }
.bb-line__qty span { min-width: 14px; text-align: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bb-g__more { padding: 7px 14px 8px; border-top: 1px solid var(--bb-sep); font-size: 12px; color: var(--bb-ink-2); text-align: center; }
.bb-g__more[hidden] { display: none; }
.bb-empty { margin: 0; padding: 18px 14px; font-size: 14px; color: var(--bb-ink-2); text-align: center; }
.bb-empty[hidden] { display: none; }
.bb-sums { margin: 0 0 16px; font-size: 15px; }
.bb-g__kv { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; }
.bb-g__kv + .bb-g__kv { border-top: 1px solid var(--bb-sep); }
.bb-sums dt { font-weight: 400; color: var(--bb-ink); }
.bb-sums dd { margin: 0; white-space: nowrap; color: var(--bb-ink-2); font-variant-numeric: tabular-nums; }
.bb-sums__discount dd, .bb-sums__discount dt span { color: var(--bb-accent); }
.bb-sums__total dt, .bb-sums__total dd { color: var(--bb-ink); font-weight: 700; }

.bb-alert { font-size: 13px; line-height: 1.45; padding: 10px 12px; margin-bottom: 12px; border: 0; border-radius: 12px; background: var(--bb-accent-soft); color: var(--bb-ink); }
.bb-alert.is-success { display: flex; align-items: center; gap: 8px; background: #dff0d8; }
/* Apple-style filled check in a circle */
.bb-alert.is-success::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #34a853 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.bb-alert[hidden] { display: none; }
.bb .bb-submit { flex: none; width: 100%; height: 48px; border-radius: 12px; font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: -.01em; }
.bb .bb-submit:disabled { background: #e8e8ed; border-color: #e8e8ed; color: var(--bb-ink-3) !important; }
.bb-panel__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 10px; padding: 0 4px; }
.bb-note { font-size: 11px; line-height: 1.4; color: var(--bb-ink-2); }

/* Mobile bar */
.bb-bar, .bb-backdrop { display: none; }

/* Tablet: steps stay in one row. Pill width and title size follow the screen width only,
   never the text, so the pills do not jump when the headline changes */
@media (min-width: 761px) and (max-width: 1024px) {
	.bb-steps__text { flex: 1 1 auto; min-width: 0; }
	.bb-steps__title { font-size: clamp(26px, 3.6vw, 38px); white-space: nowrap; }
	.bb-steps__pills { flex: none; }
	.bb-pill { width: clamp(96px, calc(96px + (100vw - 761px) * .14), 132px); }
}

/* Breakpoints follow the theme: mobile <= 760px, tablet 761-1024px, desktop >= 1025px */
@media (max-width: 1024px) {
	.bb-grid { grid-template-columns: repeat(var(--bb-cols-t), minmax(0, 1fr)); }
	.bb { --bb-panel-w: 300px; }
	.bb-layout { gap: 20px; }
}

@media (max-width: 1024px) {
	.bb-layout { grid-template-columns: minmax(0, 1fr); }
	.bb-panel { position: fixed; z-index: 10001; left: 0; right: 0; bottom: 0; top: auto; transform: translateY(105%); transition: transform .3s ease; }
	.bb-panel__inner { max-height: 85vh; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
	.bb-panel__inner::before { content: ""; flex: none; align-self: center; width: 36px; height: 5px; border-radius: 3px; background: #d2d2d7; margin: 0 0 10px; }
	.bb-panel__head { display: flex; align-items: center; gap: 10px; padding: 0 4px; margin-bottom: 12px; }
	.bb.is-open .bb-panel { transform: none; }
	.bb.is-open .bb-backdrop { display: block; position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.35); }

	.bb-bar { display: flex; align-items: center; gap: 10px; position: fixed; z-index: 9999; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 10px 10px 10px 16px; background: #fff; border: 1px solid #e8e8ed; border-radius: 16px; color: #1d1d1f; }
	.bb-bar__info { flex: 1; min-width: 0; }
	.bb-bar__total { font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
	.bb-bar__sub { font-size: 13px; line-height: 1.35; color: #86868b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.bb-bar__msg b { color: #1d1d1f; font-weight: 600; }
	.bb-bar .bb-btn { flex: none; height: 42px; padding: 0 16px; border-radius: 12px; font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: -.01em; }
	.bb { padding-bottom: 96px; }
}

@media (max-width: 760px) {
	.bb-grid { grid-template-columns: repeat(var(--bb-cols-m), minmax(0, 1fr)); gap: 12px; }
	.bb--page .bb-title { font-size: 24px; }
	.bb-head { margin-bottom: 18px; }
	.bb-steps { margin-bottom: 18px; }
	.bb-steps__title { font-size: 30px; }
	.bb-steps__hint { font-size: 14px; }
	.bb-steps__pills { width: 100%; gap: 8px; padding-right: 6px; }
	.bb-pill { width: auto; flex: 1 1 0; min-width: 0; padding: 8px 4px 7px; border-radius: 12px; }
	.bb-pill__qty { font-size: 11px; }
	.bb-pill__off { font-size: 15px; }
	.bb-pill__track { border-radius: 11px; }
	.bb-pill__badge { padding: 0 6px; font-size: 8px; }
	.bb-pill__check { top: auto; bottom: -8px; right: -7px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 12.5l3 3 6-6.5'/%3E%3C/svg%3E"); background-size: 18px; }
	.bb-steps.is-many .bb-steps__pills { width: calc(100% + 28px); margin: -2px -14px -10px; padding: 12px 14px 10px; }
	.bb-steps.is-many .bb-pill { flex: 0 0 96px; width: 96px; }
	.bb-tabs { margin: 0 0 12px; }
	.bb .bb-tab { padding: 7px 12px; font-size: 13px; }
	.bb-line__qty { height: 26px; }
	.bb-line__qty button { width: 26px; height: 26px; }
	.bb-brands__list { flex-wrap: nowrap; overflow-x: auto; width: 100%; margin: 0; padding: 0 0 2px; scrollbar-width: none; }
	.bb-brands__list::-webkit-scrollbar { display: none; }
	.bb-card__body { padding: 10px; }
	.bb-card__stats { margin: -10px -10px 8px; padding: 5px 10px; }
	.bb-card__name { font-size: 13px; }
	.bb .bb-add, .bb-qty, .bb-oos { height: 38px; }
	.bb .bb-add { font-size: 12px; letter-spacing: .03em; }
	.bb .bb-qty button { width: 36px; }
	.bb-item.is-selected::before { top: 8px; right: 8px; width: 22px; height: 22px; }
}

body.bb-lock { overflow: hidden; }

/* Background picture of the discount block (admin: Display > Discount block picture)
   Theme breakpoints: desktop >= 1025px, tablet 761-1024px, mobile <= 760px
   desktop — text | pills | art in the bottom-right corner (pills narrow down if space runs out)
   tablet  — text on top, pills under it on the left (desktop look, stretch to fill), art bottom-right next to them
   mobile  — text, full-width pills, art in the bottom-right corner under the pills (mobile size / shift) */
.bb-steps.has-art { position: relative; overflow: hidden; text-align: left; container-type: inline-size; }
.bb-steps.has-art > *:not(.bb-steps__art) { position: relative; z-index: 1; }
.bb-steps__art { position: absolute; z-index: 0; right: -40px; bottom: var(--art-b, -80px); width: var(--art-w, 300px); height: auto; pointer-events: none; user-select: none; }
.bb-steps.has-art .bb-steps__split { padding-right: calc(var(--art-w, 300px) * .68); }
/* Pill width and title size follow the block width only (container units), never the text,
   so nothing moves when the headline changes */
.bb-steps.has-art .bb-steps__text { flex: 1 1 auto; min-width: 0; }
.bb-steps.has-art .bb-steps__title { white-space: nowrap; font-size: clamp(32px, calc(32px + (100cqi - 888px) * .03), 38px); }
.bb-steps.has-art .bb-steps__pills { flex: none; }
.bb-steps.has-art .bb-pill { flex: none; width: clamp(112px, calc(118px + (100cqi - 888px) * .07), 132px); min-width: 0; }

@media (min-width: 761px) and (max-width: 1024px) {
	.bb-steps.has-art .bb-steps__split { flex-direction: column; align-items: flex-start; gap: 14px; padding-right: 0; }
	.bb-steps.has-art .bb-steps__pills { width: 100%; gap: 12px; padding-right: calc(var(--art-w, 300px) * .68); box-sizing: border-box; }
	.bb-steps.has-art .bb-pill { flex: 1 1 132px; width: auto; max-width: 230px; }
	.bb-steps.has-art .bb-steps__title { font-size: 38px; }
	.bb-steps.has-art .bb-pill__qty { font-size: clamp(12px, 1.6vw, 13px); }
	.bb-steps.has-art .bb-pill__off { font-size: clamp(15px, 2vw, 17px); }
}

@media (max-width: 760px) {
	.bb-steps.has-art { padding: 22px 14px var(--art-mpad, 100px); text-align: left; }
	.bb-steps.has-art .bb-steps__split { align-items: stretch; padding-right: 0; }
	.bb-steps.has-art .bb-steps__title { white-space: normal; font-size: 30px; }
	.bb-steps.has-art .bb-steps__pills { width: 100%; padding-right: 6px; }
	.bb-steps.has-art .bb-pill { flex: 1 1 0; width: auto; max-width: none; }
	.bb-steps.has-art .bb-steps__art { right: -22px; bottom: var(--art-mb, -68px); width: var(--art-mw, 239px); }
}
/* 4+ steps keep their sideways scroll, just leave room for the picture */
.bb-steps.has-art.is-many .bb-steps__split { padding-right: 0; }
.bb-steps.has-art.is-many .bb-steps__pills { width: 100%; padding-right: calc(var(--art-w, 300px) * .68); box-sizing: border-box; }
.bb-steps.has-art.is-many .bb-pill { flex: 0 0 132px; width: 132px; max-width: none; }
@media (max-width: 760px) {
	.bb-steps.has-art.is-many .bb-steps__pills { width: calc(100% + 28px); padding-right: 14px; }
	.bb-steps.has-art.is-many .bb-pill { flex: 0 0 96px; width: 96px; }
}

/* Soft grey + blue glow behind the picture (admin: Display > Picture glow).
   Blurred ellipse centred a little below the box, follows the picture size / shift */
.bb-steps.has-art.has-glow::before { content: ""; position: absolute; z-index: 0; pointer-events: none;
	width: var(--art-w, 300px); height: calc(var(--art-w, 300px) * .65);
	right: calc(var(--art-w, 300px) * -.03 - 40px); bottom: calc(var(--art-b, -80px) + var(--art-w, 300px) * .055 - 20px);
	border-radius: 50%; filter: blur(40px);
	background: radial-gradient(closest-side at 38% 58%, rgba(120, 124, 135, .38), transparent), radial-gradient(closest-side at 62% 45%, rgba(56, 108, 190, .45), transparent); }
@media (max-width: 760px) {
	.bb-steps.has-art.has-glow::before { width: var(--art-mw, 239px); height: calc(var(--art-mw, 239px) * .65); filter: blur(28px);
		right: calc(var(--art-mw, 239px) * -.03 - 22px); bottom: calc(var(--art-mb, -68px) + var(--art-mw, 239px) * .055 - 14px); }
}

/* Shown to the admin only while the builder is in "admins only" test mode */
.bb-admin-only { margin: 0 0 14px; padding: 9px 14px; border-radius: 12px; background: #fff4e5; color: #8a4b00; font-size: 13px; }
