/* BB Offers: quantity offers on the product page. Scoped to .bb-tiers so a theme's own rules stay out. */
.bb-tiers {
    --bb-accent: var(--cc-submit, #068830);
    --bb-ink: #1c1c1c;
    --bb-muted: #6b6b6b;
    --bb-line: #dcdcdc;
    --bb-paper: #ffffff;
    --bb-tint: color-mix(in srgb, var(--bb-accent) 7%, var(--bb-paper));
    --bb-accent-dark: color-mix(in srgb, var(--bb-accent) 80%, #000);
    margin: 16px 0 18px;
    color: var(--bb-ink);
    font: 400 14px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-align: left;
}
.bb-tiers *, .bb-tiers *::before, .bb-tiers *::after { box-sizing: border-box; }
/* Some themes (Journal 3) take the line off every <s>. */
.bb-tiers s, .bb-price-was { text-decoration: line-through; }
.bb-price-was { display: inline-block; margin-left: 0.4em; color: #8a8a8a; font-size: 0.6em; font-weight: 400; vertical-align: baseline; }
.bb-tiers-title { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 0; color: var(--bb-ink); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.3; text-transform: uppercase; }
.bb-tiers-title::before, .bb-tiers-title::after { content: ''; flex: 1; height: 1px; background: var(--bb-line); }
.bb-tiers-title span { flex: none; max-width: 80%; text-align: center; }
.bb-tiers-sub { margin: -6px 0 12px; color: var(--bb-muted); font-size: 13px; text-align: center; }
.bb-tiers-list { display: grid; gap: 10px; }

.bb-tier { position: relative; display: flex; align-items: center; gap: 12px; min-height: 68px; margin: 0; padding: 12px 14px; border: 1.5px solid var(--bb-line); border-radius: 12px; background: var(--bb-paper); font-weight: 400; cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.bb-tier.has-label { margin-top: 8px; }
.bb-tier:hover { border-color: color-mix(in srgb, var(--bb-accent) 45%, var(--bb-line)); }
.bb-tier input { position: absolute; opacity: 0; pointer-events: none; }
.bb-tier.is-picked { border-color: var(--bb-accent); background: var(--bb-tint); box-shadow: 0 0 0 1px var(--bb-accent); }
.bb-tier:has(input:focus-visible) { outline: 2px solid var(--bb-ink); outline-offset: 2px; }

.bb-tier-dot { flex: none; width: 20px; height: 20px; border: 2px solid #b8b8b8; border-radius: 50%; background: var(--bb-paper); transition: border-color 0.15s; }
.is-picked .bb-tier-dot { border-color: var(--bb-accent); box-shadow: inset 0 0 0 4px var(--bb-paper); background: var(--bb-accent); }

.bb-tier-thumb { position: relative; flex: none; width: 52px; height: 52px; border: 1px solid var(--bb-line); border-radius: 8px; background: #fff; }
.bb-tier-thumb img { display: block; width: 100%; height: 100%; border-radius: 7px; object-fit: contain; }
.bb-tier-thumb b { position: absolute; right: -6px; bottom: -6px; min-width: 24px; padding: 2px 5px; border-radius: 10px; color: #fff; background: var(--bb-ink); font-size: 11px; font-weight: 700; line-height: 1.3; text-align: center; font-variant-numeric: tabular-nums; }

.bb-tier-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bb-tier-name { font-size: 15px; font-weight: 700; line-height: 1.25; }
.bb-tier-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--bb-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bb-tier-save { color: var(--bb-save-text, var(--bb-accent-dark)); background: var(--bb-save-bg, transparent); font-weight: 650; }
/* With a background of its own, "You save" becomes a small label. */
.bb-tiers[style*="--bb-save-bg"] .bb-tier-save { padding: 1px 7px; border-radius: 6px; }
.bb-tier-sum { color: var(--bb-price, var(--bb-ink)); font-weight: 700; }
.bb-tier-meta s { margin-right: 2px; color: var(--bb-muted); }
.bb-tier-free { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 1px 8px; border-radius: 20px; color: var(--bb-free-text, #fff); background: var(--bb-free-bg, var(--bb-accent)); font-size: 12px; font-weight: 700; vertical-align: 2px; white-space: nowrap; }
.bb-tier-free svg { width: 13px; height: 13px; flex: none; }
.bb-tier-gift { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 2px; padding: 2px 8px; border-radius: 20px; color: #8a4b00; background: #fff1db; font-size: 12px; font-weight: 650; }
.bb-tier-gift svg { width: 14px; height: 14px; flex: none; }

.bb-tier-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-variant-numeric: tabular-nums; text-align: right; }
.bb-tier-price strong { font-size: 17px; font-weight: 750; line-height: 1.2; }
.bb-tier-price s { color: var(--bb-muted); font-size: 13px; }
.bb-tier-price small { color: var(--bb-muted); font-size: 11.5px; line-height: 1.2; }

.bb-tier-label { position: absolute; top: -11px; right: 14px; padding: 3px 10px; border-radius: 20px; color: var(--bb-label-ink, #fff); background: var(--bb-label, var(--bb-accent)); font-size: 11px; font-weight: 750; letter-spacing: 0.05em; line-height: 1.4; text-transform: uppercase; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }

/* A bundle: its products side by side */
.bb-tier-thumbs { display: flex; flex: none; align-items: center; gap: 2px; }
.bb-tier-thumbs .bb-tier-thumb { width: 38px; height: 38px; }
.bb-tier-thumbs i { color: var(--bb-muted); font-style: normal; font-weight: 700; font-size: 12px; }
.bb-tier-bundle .bb-tier-meta { font-size: 12px; }
.bb-tier-bundle .bb-tier-label { background: var(--bb-ink); }
.bb-tiers-note[hidden] { display: none; }
.bb-tiers-note { margin: 10px 0 0; color: var(--bb-muted); font-size: 12.5px; }
.bb-tiers-note.is-warn { padding: 8px 11px; border-radius: 8px; color: #8a4b00; background: #fff1db; }
.bb-tiers.is-blocked .bb-tier-save, .bb-tiers.is-blocked .bb-tier-price s { text-decoration: line-through; opacity: 0.6; }

@media (max-width: 480px) {
    .bb-tier { gap: 10px; padding: 11px 12px; }
    .bb-tier-thumb { width: 44px; height: 44px; }
    .bb-tier-thumbs .bb-tier-thumb { width: 36px; height: 36px; }
    .bb-tier-name { font-size: 14px; }
    .bb-tier-price strong { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .bb-tier, .bb-tier-dot { transition: none; }
}
