/* Buy one, get one: the line under a product's price, the badge on its card,
   the free line and the "Add 1, free" in the cart. Inherits the theme's type;
   one accent (the theme's own text colour), no colours of its own to clash. */

/* The offer box under the price: the free item's picture, what it is, what it
   costs, the conditions, and the rest behind "Offer details". Colours come
   from the theme's own text colour, so it sits on any theme, light or dark. */
.bb-obox {
	display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start;
	margin: 6px 0 18px; padding: 14px 16px 15px; border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, .1); border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	background: rgba(0, 0, 0, .025); background: color-mix(in srgb, currentColor 4%, transparent);
	font-size: 1rem; line-height: 1.4; text-align: start;
}
.bb-obox-th { position: relative; width: 56px; height: 56px; border-radius: 8px; background: #fff; display: grid; place-items: center; }
.bb-obox-th img { width: 48px !important; height: 48px !important; max-width: none; object-fit: contain; border-radius: 6px; margin: 0 !important; box-shadow: none !important; }
.bb-obox-mark { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; background: currentColor; display: grid; place-items: center; }
.bb-obox-mark svg { width: 12px; height: 12px; fill: none; stroke: Canvas; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bb-obox-body { min-width: 0; }
.bb-obox-main { font-weight: 650; font-size: 1.125em; letter-spacing: -.01em; line-height: 1.3; text-wrap: pretty; }
.bb-obox-sub { margin-top: 3px; font-size: .8125em; opacity: .8; }
.bb-obox-sub s { opacity: .8; margin-right: 2px; }
.bb-obox-sub b { font-weight: 700; }
/* A gift with options of its own (Pro): chosen in the window, said once chosen. */
.bb-obox-sub:has(.bb-obox-gift-choose) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.bb-obox button.bb-obox-gift-choose { margin: 0; padding: 2px 10px; min-height: 28px; border: 1px solid currentColor !important; border-radius: 6px; background: transparent !important; color: inherit !important; box-shadow: none !important; font: inherit; font-weight: 600; line-height: 1.4; text-transform: none; letter-spacing: normal; cursor: pointer; opacity: 1; }
.bb-obox button.bb-obox-gift-choose:hover, .bb-obox button.bb-obox-gift-choose:focus-visible { background: rgba(0, 0, 0, .05) !important; }
/* Add options on a gift that goes in by itself: a quiet link, nothing here must be answered. */
.bb-obox button.bb-obox-gift-choose.bb-obox-gift-more { padding: 0; min-height: 24px; border: 0 !important; border-radius: 0; font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
.bb-obox button.bb-obox-gift-choose.bb-obox-gift-more:hover, .bb-obox button.bb-obox-gift-choose.bb-obox-gift-more:focus-visible { background: transparent !important; }
.bb-obox button.bb-obox-gift-choose.bb-obox-gift-more:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.bb-obox-said:not(:empty) { font-weight: 600; }
.bb-obox-said:empty { display: none; }
.bb-offer-said:not(:empty) { flex-basis: 100%; font-weight: 400; }
@media (max-width: 600px) { .bb-obox button.bb-obox-gift-choose:not(.bb-obox-gift-more) { min-height: 44px; padding: 0 14px; } }
.bb-obox-cond { margin: 6px 0 0 !important; padding: 0; font-size: .8125em; }
.bb-obox-gone { margin: 8px 0 0 !important; padding: 7px 10px; border: 1px dashed rgba(0, 0, 0, .25); border-radius: 8px; font-size: .8125em; }
/* Where the basket stands on the offer: "2 in your cart. Add 1 more, it's free", "Offer earned". */
.bb-obox-now { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 0 !important; font-size: .875em; font-weight: 600; }
.bb-obox-now[hidden], .bb-obox-sub[hidden] { display: none !important; }
.bb-obox.is-gone .bb-obox-main { opacity: .75; }
/* At the checkout, near the button: a gift still to be chosen. */
.bb-offer-waiting { margin: 0 0 12px !important; padding: 8px 12px !important; border: 1px dashed rgba(0, 0, 0, .3); border-radius: 8px; font-size: .875em; }
.bb-offer-waiting.is-used { border-style: solid; border-color: #b81c23; }
.bb-offer-nudge.is-gone > span { font-weight: 400; }
.bb-obox-gifts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bb-obox-gift { width: 84px; display: grid; justify-items: center; gap: 2px; text-align: center; font-size: .75em; line-height: 1.25; }
/* A gift that opens its page reads as the gift, underlined on hover and focus, never in the theme's link colour. */
a.bb-obox-gift, a.bb-obox-th { color: inherit; text-decoration: none; }
a.bb-obox-gift:hover > span, a.bb-obox-gift:focus-visible > span { text-decoration: underline; text-underline-offset: 2px; }
.bb-obox-gift img { width: 44px !important; height: 44px !important; border-radius: 8px; background: #fff; object-fit: contain; margin: 0 !important; }
.bb-obox-gift.is-out { opacity: .5; }
.bb-obox-gift.is-more { align-content: center; min-height: 44px; }
.bb-obox-more { margin-top: 4px; font-size: .8125em; }
.bb-obox-more summary { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; list-style: none; }
.bb-obox-more summary::-webkit-details-marker { display: none; }
.bb-obox-more summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 3px; }
.bb-obox-more ul { margin: 2px 0 0 !important; padding: 0 !important; list-style: none !important; display: grid; gap: 3px; }
.bb-obox-more li { position: relative; margin: 0 !important; padding-left: 12px; }
.bb-obox-more li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .55; }
@media (max-width: 600px) {
	.bb-obox { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 12px 13px 13px; }
	.bb-obox-th { width: 48px; height: 48px; }
	.bb-obox-th img { width: 40px !important; height: 40px !important; }
	.bb-obox-main { font-size: 1em; }
	.bb-obox-more summary { min-height: 44px; }
}

li.product.bb-has-offer { position: relative; }
.bb-offer-badge {
	position: absolute; top: 10px; left: 10px; z-index: 2;
	display: inline-flex; align-items: center; gap: 4px;
	max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	padding: 3px 8px 3px 6px; border-radius: 6px;
	background: #111; color: #fff; font-size: 12px; font-weight: 650; line-height: 1.4;
	pointer-events: none;
}
/* The badge's mark: a gift, or a price tag. Drawn in the badge's own colour. */
.bb-offer-badge svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.wc-block-components-product-image { position: relative; }

/* The word, not the row: the Cart block puts the same class on the whole row. */
span.bb-offer-free { font-weight: 700; }
.bb-offer-qty { display: inline-block; min-width: 2em; text-align: center; }
.bb-offer-nudge {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
	margin-top: 6px; font-size: .875em;
}
.bb-offer-nudge > span { font-weight: 600; }
.bb-offer-take {
	display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
	border: 1px solid currentColor; border-radius: 6px;
	text-decoration: none !important; font-weight: 600; white-space: nowrap; color: inherit;
}
.bb-offer-take:hover, .bb-offer-take:focus-visible { background: rgba(0, 0, 0, .05); }
/* Add options on a free gift already in: a quiet link, nothing must be answered. */
.bb-offer-more .bb-offer-take { min-height: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; font-weight: 400; text-decoration: underline !important; text-underline-offset: 2px; }
.bb-offer-more .bb-offer-take:hover, .bb-offer-more .bb-offer-take:focus-visible { background: transparent; }
.bb-offer-nudges { display: grid; gap: 8px; margin: 0 0 12px; }
.bb-offer-nudges .bb-offer-nudge { justify-content: space-between; margin: 0; }
tr.bb-offer-saving th, tr.bb-offer-saving td { font-weight: 600; }
tr.bb-offer-returns td, p.bb-offer-returns { text-align: start !important; font-weight: 400 !important; font-size: .875em; line-height: 1.5; opacity: .8; }
.bb-offer-nudges .bb-offer-nudge > span { font-weight: 400; }
.bb-offer-nudges .bb-offer-take { min-height: 36px; }
.bb-offer-nudges .bb-offer-more .bb-offer-take { min-height: 24px; }

@media (max-width: 600px) {
	.bb-offer-take { min-height: 44px; padding: 0 14px; }
}

/* Choose a gift (Pro): the gifts side by side, each one press. */
.bb-offer-choose { margin: 16px 0 20px; }
.bb-offer-choose-h { margin: 0 0 8px; font-weight: 700; }
.bb-offer-choose-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bb-offer-gift {
	display: grid; gap: 4px; align-content: start; padding: 10px;
	border: 1px solid rgba(0, 0, 0, .12); border-radius: 10px;
	text-decoration: none !important; color: inherit !important;
}
.bb-offer-gift img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin: 0 0 4px; }
.bb-offer-gift-name { font-weight: 600; font-size: .9375em; line-height: 1.3; }
.bb-offer-gift-price { font-size: .875em; }
.bb-offer-gift-price del { opacity: .6; margin-right: 4px; }
.bb-offer-gift-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 36px; margin-top: 4px;
	border: 1px solid currentColor; border-radius: 6px; font-weight: 600;
}
.bb-offer-gift:hover .bb-offer-gift-btn, .bb-offer-gift:focus-visible .bb-offer-gift-btn { background: rgba(0, 0, 0, .05); }
.bb-offer-gift:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 600px) {
	.bb-offer-choose-row { grid-template-columns: 1fr; }
	.bb-offer-gift { grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
	.bb-offer-gift img { grid-row: 1 / 3; width: 56px; margin: 0; }
	.bb-offer-gift-btn { grid-column: 3; grid-row: 1 / 3; min-height: 44px; padding: 0 14px; margin: 0; }
}

/* The Cart block puts the gifts in its narrow summary column: one row each, as on a phone. */
.wc-block-cart .bb-offer-choose { margin: 12px 0; }
.wc-block-cart .bb-offer-choose-row { grid-template-columns: 1fr; gap: 8px; }
.wc-block-cart .bb-offer-gift { grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 8px 10px; }
.wc-block-cart .bb-offer-gift img { grid-row: 1 / 3; width: 48px; margin: 0; }
.wc-block-cart .bb-offer-gift-btn { grid-column: 3; grid-row: 1 / 3; min-height: 40px; padding: 0 12px; margin: 0; }
@media (max-width: 600px) {
	.wc-block-cart .bb-offer-gift-btn { min-height: 44px; }
}

/* The free line's note as a chip (the mockup's "Free with Galaxy S25"): the
   "Offer:" label steps aside where the browser can tell the row apart. */
.bb-offer-chip {
	display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
	padding: 2px 10px 2px 8px; border-radius: 999px;
	background: rgba(0, 0, 0, .06); background: color-mix(in srgb, currentColor 8%, transparent);
	font-size: .8125em; font-weight: 650; line-height: 1.5;
}
.bb-offer-chip::before {
	content: ""; flex: none; width: 12px; height: 12px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M4 11h16v9H4zM3 7h18v4H3zM12 7v13M12 7c-2-4-6-3-5 0M12 7c2-4 6-3 5 0'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M4 11h16v9H4zM3 7h18v4H3zM12 7v13M12 7c-2-4-6-3-5 0M12 7c2-4 6-3 5 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bb-offer-chip.is-deal::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8z'/%3E%3Ccircle cx='7.5' cy='8.5' r='1.3'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8z'/%3E%3Ccircle cx='7.5' cy='8.5' r='1.3'/%3E%3C/svg%3E");
}
.bb-offer-chip.is-short { white-space: nowrap; }
.bb-offer-chip:not(.is-short) { border-radius: 12px; }
dl.variation dt:has(+ dd .bb-offer-chip) { display: none !important; }
dl.variation dd:has(.bb-offer-chip) { margin-left: 0; }
dl.variation dd:has(.bb-offer-chip) p { margin: 0; }
.wc-block-components-product-details__item:has(.bb-offer-chip) .wc-block-components-product-details__name { display: none; }

/* "You save": the mockup's green line with a tag. */
tr.bb-offer-saving th, tr.bb-offer-saving td { background: #edf7ef; color: #14532d; }
tr.bb-offer-saving th::before {
	content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 7px; vertical-align: -1px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8z'/%3E%3Ccircle cx='7.5' cy='8.5' r='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8z'/%3E%3Ccircle cx='7.5' cy='8.5' r='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Free gifts by spend (Pro, #170): the bar, then each tier's cards. Theme colours; the accent is BundleBoss's own. ---- */
.bb-gt { --bb-gt-accent: var(--bb-accent, #7c3aed); --bb-gt-ok: #15803d; display: grid; gap: 14px; margin: 16px 0 20px; container-type: inline-size; }
/* An inline-size container contributes no intrinsic width, so an Elementor
   widget set to Align items: Start shrink-wraps the panel to 0px — the same
   collapse the builder met on a live shop's product page (css/bundle.css). A
   width the shop set itself (Width > Custom) is left alone. */
.elementor-widget:not([class*="__width-initial"]):has(.bb-gt) { width: 100%; }
.bb-gt-notice { margin: 0; padding: 9px 12px; border-radius: 8px; background: #fef3c7; color: #78350f; font-size: .9em; }
.bb-gt-bar { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 12px; }
.bb-gt-say { margin: 0; line-height: 1.4; }
.bb-gt-say b { color: inherit; } /* a light brand colour as text was unreadable: the brand stays on the fill and the rings */
.bb-gt-then { display: block; font-size: .875em; opacity: .75; }
.bb-gt-track { position: relative; height: 44px; margin: 0 22px 18px; }
.bb-gt-rail { position: absolute; left: 0; right: 0; top: 19px; height: 6px; border-radius: 99px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.bb-gt-rail i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--bb-gt-accent); }
.bb-gt-mk { position: absolute; top: 0; left: var(--bb-at); width: 44px; height: 44px; transform: translateX(-50%); border-radius: 50%; border: 3px solid rgba(0, 0, 0, .1); background: #fff; overflow: hidden; filter: grayscale(1); opacity: .75; box-sizing: border-box; }
.bb-gt-mk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-gt-mk.is-on { border-color: var(--bb-gt-accent); filter: none; opacity: 1; }
.bb-gt-at { position: absolute; top: 48px; left: var(--bb-at); transform: translateX(-50%); font-size: .75em; opacity: .7; white-space: nowrap; }
.bb-gt.is-simple .bb-gt-track { height: 14px; margin-bottom: 20px; }
.bb-gt.is-simple .bb-gt-rail { top: 4px; }
.bb-gt.is-simple .bb-gt-mk { width: 12px; height: 12px; top: 1px; border-width: 2px; border-color: rgba(0, 0, 0, .25); filter: none; opacity: 1; }
.bb-gt.is-simple .bb-gt-mk.is-on { background: var(--bb-gt-accent); border-color: var(--bb-gt-accent); }
.bb-gt.is-simple .bb-gt-at { top: 18px; }
.bb-gt-basis { margin: 0; font-size: .8em; opacity: .7; }
.bb-gt-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 8px; font-size: 1em; white-space: nowrap; }
.bb-gt-h > span:not([class]) { flex: 0 1 auto; min-width: 0; white-space: normal; }
.bb-gt-hmk { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bb-gt-accent); overflow: hidden; flex: none; display: inline-grid; place-items: center; background: #fff; box-sizing: border-box; }
.bb-gt-hmk img { width: 100%; height: 100%; object-fit: cover; }
.bb-gt-hmk.is-dot { width: 12px; height: 12px; background: var(--bb-gt-accent); }
/* The spend and the count sit beside the heading they belong to, read as one
   line ("Choose 2 free gifts · With £500 spend · 2 of 2 added"), never pushed
   to the far edge of a wide cart where the eye has to cross the row for them. */
.bb-gt-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: 2px; white-space: normal; font-weight: 400; }
.bb-gt-tag { padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, .06); background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; font-weight: 650; font-size: .8125em; line-height: 1.5; white-space: nowrap; } /* the gift line's chip (.bb-offer-chip), one style for both */
.bb-gt-count { font-size: .8em; opacity: .75; }
.bb-gt-cards { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 42%, 190px); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.bb-gt-card { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; border: 1.5px solid rgba(0, 0, 0, .12); border-radius: 12px; overflow: hidden; background: #fff; margin: 0; }
.bb-gt-card > img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; margin: 0; }
.bb-gt-txt { display: grid; gap: 2px; padding: 8px 10px 0; font-size: .875em; align-content: start; }
.bb-gt-txt b { font-size: 1.02em; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; } /* two lines at most: a long name ran to six on a phone card; the window and the cart line show it whole */
.bb-gt-cap { opacity: .7; font-size: .9em; }
.bb-gt-price del { opacity: .6; margin-right: 4px; }
.bb-gt-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 8px 10px 10px; padding: 4px 10px; box-sizing: border-box; text-align: center; line-height: 1.2; border: 1.5px solid currentColor; border-radius: 8px; font-weight: 700; font-size: .875em; text-decoration: none !important; color: inherit !important; align-self: end; }
.bb-gt-btn:hover, .bb-gt-btn:focus-visible { background: rgba(0, 0, 0, .05); }
.bb-gt-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.bb-gt-card.is-on { border-color: var(--bb-gt-ok); box-shadow: 0 0 0 2px rgba(21, 128, 61, .15); }
.bb-gt-card.is-on .bb-gt-btn { background: var(--bb-gt-ok); border-color: var(--bb-gt-ok); color: #fff !important; gap: 8px; }
/* "✓ Added" stays the control: the × says a press takes it out, and a pointer over it gets the remove look. Its name says both ("Added: <gift>. Remove"). */
.bb-gt-card.is-on a.bb-gt-btn::after { content: "\0d7"; font-size: 1.25em; font-weight: 400; line-height: 1; opacity: .85; }
@media (hover: hover) { .bb-gt-card.is-on a.bb-gt-btn:hover { background: #fff; color: var(--bb-gt-ok) !important; } }
.bb-gt-card.is-full { opacity: .55; }
.bb-gt-card.is-full .bb-gt-btn { border-style: dashed; }
.bb-gt-stop { margin: 6px 0 0; font-size: .8em; opacity: .8; }
.bb-gt-cards.is-rows { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; overflow: visible; gap: 8px; }
.bb-gt-cards.is-rows .bb-gt-card { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; }
.bb-gt-cards.is-rows .bb-gt-card > img { width: 56px; height: 56px; }
.bb-gt-cards.is-rows .bb-gt-txt { padding: 6px 0 6px 10px; }
.bb-gt-cards.is-rows .bb-gt-btn { margin: 0 10px; padding: 0 14px; min-width: 96px; }
.bb-gt-line { margin-top: 4px; }
.bb-gt-change { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; }
.bb-gt.is-compact { gap: 10px; margin: 10px 0; }
.bb-gt.is-compact .bb-gt-bar { padding: 10px; }
.wc-block-cart .bb-gt { margin: 12px 0; }
@media (prefers-reduced-motion: no-preference) { .bb-gt-rail i { transition: width .35s ease; } }
/* In a block theme's Mini-Cart drawer: after the list, before the subtotal. */
.bb-gt-mini { padding: 0 16px 12px; }
.bb-gt-mini .bb-gt { margin: 12px 0 0; }
/* A theme's list styles (Astra and Kadence pad .entry-content ul) never move the cards. */
.bb-gt .bb-gt-cards { margin: 0; padding-left: 0; padding-right: 0; list-style: none; }
/* Room for every card (a desktop cart): rows that wrap, never a strip cut at the edge. A phone keeps the swipe. */
@container (min-width: 560px) {
	/* Every tier the same card, whatever its number of gifts: picture beside
	   the words, in columns of one width (two across, three on a wide cart),
	   wrapping to a new row. A tier of four turned into tall picture cards
	   under a tier of three in rows, two designs on one cart. */
	.bb-gt .bb-gt-cards:not(.is-rows) { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; }
	.bb-gt .bb-gt-cards:not(.is-rows) > .bb-gt-card { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: 1fr auto; }
	.bb-gt .bb-gt-cards:not(.is-rows) > .bb-gt-card > img { grid-row: 1 / 3; width: 112px; height: 100%; min-height: 112px; }
	.bb-gt .bb-gt-cards:not(.is-rows) .bb-gt-txt { padding: 10px 12px 0; }
	.bb-gt .bb-gt-cards:not(.is-rows) .bb-gt-btn { justify-self: start; min-width: 132px; margin: 8px 12px 12px; padding: 4px 18px; }
}
@container (min-width: 780px) {
	.bb-gt .bb-gt-cards:not(.is-rows) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* A narrow side cart (a theme's dropdown, 150 to 300px): the button goes under the name and price. */
@container (max-width: 300px) {
	.bb-gt .bb-gt-cards.is-rows .bb-gt-card { grid-template-columns: 44px minmax(0, 1fr); }
	.bb-gt .bb-gt-cards.is-rows .bb-gt-card > img { width: 44px; height: 44px; }
	.bb-gt .bb-gt-cards.is-rows .bb-gt-btn { grid-column: 1 / -1; min-width: 0; margin: 6px 8px 8px; }
	.bb-gt .bb-gt-txt { overflow-wrap: anywhere; }
	/* Three gift pictures on a 150px bar: smaller, so they never overlap. */
	.bb-gt:not(.is-simple) .bb-gt-track { height: 30px; margin: 0 15px 18px; }
	.bb-gt:not(.is-simple) .bb-gt-rail { top: 12px; }
	.bb-gt:not(.is-simple) .bb-gt-mk { width: 30px; height: 30px; border-width: 2px; }
	.bb-gt:not(.is-simple) .bb-gt-at { top: 34px; }
}
/* A theme's widget list styles (Astra pads a side cart's li 80px for its picture) never reach a card. */
.bb-gt .bb-gt-cards > li.bb-gt-card { padding: 0; margin: 0; min-height: 0; list-style: none; border: 1.5px solid rgba(0, 0, 0, .12); }
.bb-gt .bb-gt-cards > li.bb-gt-card.is-on { border-color: var(--bb-gt-ok); }
.bb-gt .bb-gt-cards > li.bb-gt-card::before, .bb-gt .bb-gt-cards > li.bb-gt-card::after { content: none; }
/* Change on an added gift with options (a block or side cart, where the line has none). */
.bb-gt-chg { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0 -10px; font-size: max(.9em, 13px); font-weight: 600; text-decoration: underline !important; color: inherit !important; } /* 44px to tap, the room it takes no more than a line */
/* Beyond the cart (#170): the line on product and shop pages. The next gift's picture, one sentence, a thin bar to that gift. */
.bb-gt-strips { display: grid; gap: 8px; margin: 16px 0 4px; max-width: 560px; container-type: inline-size; }
.bb-gt-strips.is-shop { max-width: none; margin: 0 0 20px; }
.bb-gt-strip { --bb-gt-accent: var(--bb-accent, #7c3aed); display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 4px 12px; min-height: 58px; padding: 10px 12px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 12px; background: #fff; color: inherit; font-size: .92rem; line-height: 1.35; box-sizing: border-box; }
.bb-gt-strip > img, .bb-gt-strip-dot { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; margin: 0; border: 2px solid rgba(0, 0, 0, .1); box-sizing: border-box; }
.bb-gt-strip-dot { background: var(--bb-gt-accent); opacity: .25; }
.bb-gt-strip.is-won > img { border-color: var(--bb-gt-accent); }
.bb-gt-strip p { grid-column: 2; margin: 0; }
.bb-gt-strip p b { font-weight: 700; }
.bb-gt-strip-bar { grid-column: 2; display: block; height: 4px; border-radius: 99px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.bb-gt-strip-bar i { display: block; height: 100%; border-radius: 99px; background: var(--bb-gt-accent); }
/* "Choose your gift": a text link under the words (#173), never a second button under Add to cart. */
.bb-gt-strip-go { grid-column: 2; justify-self: start; padding: 2px 0; font-weight: 700; color: inherit !important; text-decoration: underline !important; text-underline-offset: 2px; }
.bb-gt-strip-go:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* A gift earned: the picture beside the words and the link; the bar to the next gift below them, its picture and the amount at its end. */
.bb-gt-strip.is-won > img, .bb-gt-strip.is-won > .bb-gt-strip-dot { grid-row: 1 / span 2; }
.bb-gt-strip.is-won.has-next > img, .bb-gt-strip.is-won.has-next > .bb-gt-strip-dot { grid-row: 1 / span 3; align-self: start; }
.bb-gt-strip-next { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; margin-top: 2px; }
.bb-gt-strip-next > img { width: 26px; height: 26px; margin: 0; border-radius: 50%; object-fit: cover; border: 1px solid rgba(0, 0, 0, .1); box-sizing: border-box; }
.bb-gt-strip-more { font-size: .85em; opacity: .75; white-space: nowrap; }
.bb-gt-strip-next > .bb-gt-strip-bar { grid-column: 1; }
/* Checkout: the cards still to choose, one row each even in a narrow order column; nothing at all when no gift waits. */
.bb-gt-checkout:empty { display: none; }
.bb-gt-checkout .bb-gt { margin: 0 0 18px; }
.bb-gt .bb-gt-cards.is-rows .bb-gt-card { min-width: 0; }
.bb-gt.is-checkout .bb-gt-cards.is-rows .bb-gt-card { grid-template-columns: 44px minmax(0, 1fr) auto; }
.bb-gt.is-checkout .bb-gt-cards.is-rows .bb-gt-card > img { width: 44px; height: 44px; }
.bb-gt.is-checkout .bb-gt-cards.is-rows .bb-gt-btn { grid-column: auto; min-width: 64px; margin: 0 10px; padding: 0 14px; }
/* A row's button sits in the middle of the row, beside the picture and the name, never pinned to its foot.
   A mouse needs no 44px target, so it takes the room a line takes; a touch screen keeps 44px to tap. */
.bb-gt .bb-gt-cards.is-rows .bb-gt-btn { align-self: center; }
@media (hover: hover) and (pointer: fine) and (min-width: 768px) { .bb-gt .bb-gt-cards.is-rows .bb-gt-btn { min-height: 34px; } }
.bb-gt.is-checkout .bb-gt-txt { padding: 6px 0 6px 10px; }
.bb-gt.is-checkout .bb-gt-btn[aria-busy="true"],
.bb-gt-side .bb-gt-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
/* A phone's order column: each tier one row to swipe, the cart's own phone
   cards, sized so a third card always shows at the edge of a column as
   narrow as 270px. A row per gift stacked six gifts some 1300px above the
   order and Place order. */
@container (max-width: 420px) {
	.bb-gt.is-checkout .bb-gt-h { flex-wrap: nowrap; } /* the words take two lines, the tag stays beside them */
	.bb-gt.is-checkout .bb-gt-cards.is-rows { grid-auto-flow: column; grid-auto-columns: clamp(112px, calc((100% - 20px) / 2.25), 190px); grid-template-columns: none; gap: 10px; padding-bottom: 6px; overflow-x: auto; scroll-snap-type: x mandatory; }
	.bb-gt.is-checkout .bb-gt-cards.is-rows .bb-gt-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-items: stretch; }
	.bb-gt.is-checkout .bb-gt-cards.is-rows .bb-gt-card > img { width: 100%; height: auto; aspect-ratio: 1; margin: 0; }
	.bb-gt.is-checkout .bb-gt-txt { padding: 8px 10px 0; }
	.bb-gt.is-checkout .bb-gt-cards.is-rows .bb-gt-btn { grid-column: auto; justify-self: stretch; align-self: end; min-width: 0; margin: 8px; padding: 4px 6px; }
}
/* Checkout: said at the top of the form beside WooCommerce's notices (js/tiers-pages), so not again here. */
.bb-gt-checkout .bb-gt-notice.is-on-top { display: none; }
.bb-gt-checkout .bb-gt:not(:has(> :not(.bb-gt-notice.is-on-top))) { display: none; }
/* ---- #173: the band opens the cart; the panel holds only the tiers still to choose. ---- */
/* The band: the one line and the bar, above the items, part of the cart (never sticky). */
.bb-gt-top .bb-gt-band { margin: 0 0 16px; }
.bb-gt-side-top .bb-gt-band { margin: 0 0 12px; }
.bb-gt-side-top:empty { display: none; }
/* A theme's side cart that gives its item list only the room left in the drawer (Shoptimizer: the
   list is flex: 1 with a scroll of its own, in a column as tall as the drawer): the band and the
   gifts took that room and the items shrank to a strip, or to nothing (a1terps.express, 30 Oct
   2026). The items keep their own height; the drawer, a scroll box itself, scrolls as one column. */
.widget_shopping_cart .widget_shopping_cart_content:has(.bb-gt-side-top:not(:empty), .bb-gt-side:not(:empty)) > .woocommerce-mini-cart { flex-shrink: 0; flex-basis: auto; height: auto; }
.bb-gt-jump { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }
.bb-gt-go { display: block; width: fit-content; padding: 2px 0; font-weight: 700; color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }
.bb-gt-jump:focus-visible, .bb-gt-go:focus-visible, .bb-gt-reopen:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* A wide cart has the gifts beside the band: the words on the left, the bar on the right, no link down. */
@container (min-width: 700px) {
	.bb-gt-band .bb-gt-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "say track" "basis track"; column-gap: 40px; row-gap: 6px; align-items: start; }
	.bb-gt-band .bb-gt-say { grid-area: say; }
	.bb-gt-band .bb-gt-track { grid-area: track; margin-bottom: 18px; }
	.bb-gt-band .bb-gt-basis { grid-area: basis; align-self: end; }
	.bb-gt-band .bb-gt-go { display: none; }
	.bb-gt-band .bb-gt-jump { text-decoration: none !important; }
}
/* The panel: "Ready to choose" per tier; a chosen tier stays where it was, as its ✓ lines. */
.bb-gt-panel { margin: 12px 0 20px; }
.bb-gt-panel:not(:has(> .bb-gt-pick:not([hidden]))) { display: none; }
.bb-gt-pick[hidden] { display: none !important; }
.bb-gt-pick, .bb-gt-gifts { scroll-margin-top: 24px; }
.bb-gt-pick.is-ready > .bb-gt-h > span:not([class]) { font-weight: 400; }
/* A chosen tier (option E): one line per gift, ✓ the gift, Free with its spend, Change. Change opens its gifts in
   the same place, Done closes them: only the tier pressed changes, nothing else opens, closes or flashes. */
.bb-gt-pick.is-chosen:not(.is-open) > .bb-gt-h, .bb-gt-pick.is-chosen:not(.is-open) > .bb-gt-cards { display: none; }
.bb-gt-pick.is-chosen.is-open > .bb-gt-done { display: none; }
.bb-gt-done { display: grid; gap: 8px; }
.bb-gt-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; min-height: 59px; border: 1.5px solid currentColor; border-radius: 12px; background: #fff; box-sizing: border-box; }
.bb-gt-row > img { display: block; width: 40px; height: 40px; margin: 0 0 0 8px; border-radius: 8px; object-fit: cover; }
.bb-gt .bb-gt-row .bb-gt-txt { padding: 6px 0 6px 10px; }
.bb-gt .bb-gt-row .bb-gt-btn { align-self: center; min-width: 96px; margin: 0 10px; padding: 0 14px; }
.bb-gt-tick { margin-right: 4px; color: var(--bb-gt-ok); font-weight: 800; }
.bb-gt-fold { display: inline-flex; align-items: center; min-height: 28px; margin-left: auto; padding: 4px 2px; font-size: .8125em; font-weight: 650; color: inherit !important; text-decoration: underline !important; text-underline-offset: 2px; }
.bb-gt-fold:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) and (min-width: 768px) { .bb-gt .bb-gt-row .bb-gt-btn { min-height: 34px; } }
@container (max-width: 300px) {
	.bb-gt-row { grid-template-columns: auto minmax(0, 1fr); }
	.bb-gt .bb-gt-row .bb-gt-btn { grid-column: 1 / -1; min-width: 0; margin: 6px 8px 8px; }
}
/* A wide classic cart: the rows two across. */
@container (min-width: 700px) {
	.bb-gt-panel .bb-gt-cards.is-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* A phone (a touch screen or a narrow window): each tier of several gifts one row to swipe, a third card showing at the edge. */
@media (pointer: coarse), (max-width: 599px) {
	.bb-gt-panel .bb-gt-cards.is-rows.is-many { grid-auto-flow: column; grid-auto-columns: clamp(124px, calc((100% - 20px) / 2.3), 190px); grid-template-columns: none; gap: 10px; padding-bottom: 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; }
	.bb-gt-panel .bb-gt-cards.is-rows.is-many .bb-gt-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-items: stretch; }
	.bb-gt-panel .bb-gt-cards.is-rows.is-many .bb-gt-card > img { width: 100%; height: auto; aspect-ratio: 1; margin: 0; }
	.bb-gt-panel .bb-gt-cards.is-rows.is-many .bb-gt-txt { padding: 8px 10px 0; }
	.bb-gt-panel .bb-gt-cards.is-rows.is-many .bb-gt-btn { grid-column: auto; justify-self: stretch; align-self: end; min-width: 0; min-height: 44px; margin: 8px; padding: 4px 6px; }
}
/* Change on a chosen gift's cart line, beside its chip. Not at checkout, where nothing is swapped. */
.bb-gt-reopen { display: inline-block; margin-left: 6px; padding: 2px 0; font-size: max(.9em, 13px); font-weight: 600; color: inherit !important; text-decoration: underline !important; text-underline-offset: 2px; white-space: nowrap; }
.wc-block-checkout .bb-gt-reopen, .woocommerce-checkout-review-order .bb-gt-reopen { display: none !important; }
/* The clause in WooCommerce's "added to your cart" notice: its link looks like one, whatever the notice colours. */
.bb-gt-unlock a { color: inherit !important; text-decoration: underline !important; text-underline-offset: 2px; }
