/* Bloom Offers — storefront widget. Measured against the live Kaching Bundles widget on bloomfit.store (2026-09-24).
   Brand tokens are CSS variables so the dashboard can retheme without touching the layout. Font-family is inherited from the theme. */
.bo {
  --bo-bg: #F6EEE9;
  --bo-bg-selected: rgba(246, 238, 233, 0.655);
  --bo-text: #292827;
  --bo-bg-2: #D8D1CD;
  --bo-text-2: #555555;
  --bo-accent: #000000;
  --bo-accent-text: #FFFFFF;
  --bo-badge-bg: #000000;
  --bo-badge-text: #F6EEE9;
  --bo-border: #0000004D;
  --bo-error: #D72C2C;
  --bo-radius: 12px;
  --bo-pad-x: 21.5px;
  direction: rtl;
  text-align: right;
  color: var(--bo-text);
  font-family: inherit;
  line-height: 1.4;
  letter-spacing: normal;
  margin: 15px 0 10px;
  box-sizing: border-box;
}
.bo *, .bo *::before, .bo *::after { box-sizing: border-box; }
.bo img { max-width: none; }
/* Prices: isolated so the digits never reorder, but laid out RTL so "220.90 ₪" reads ₪ 220.90 exactly like the theme's own price. */
.bo bdi { unicode-bidi: isolate; direction: rtl; white-space: nowrap; }

/* Block title: "מבצע השקה" with a hairline on each side */
.bo__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 400; line-height: 21px; color: var(--bo-accent);
  text-align: center; margin: 0 0 10px;
}
.bo__title::before, .bo__title::after { content: ""; flex: 1 1 0; height: 1px; background: var(--bo-border); }

/* Timer strip */
.bo__timer {
  display: flex; align-items: center; justify-content: center;
  background: var(--bo-badge-bg); color: var(--bo-badge-text);
  border-radius: var(--bo-radius); padding: 10px 20px; margin: 0 0 8.8px;
  font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center;
}
.bo__timer [data-timer-value] { font-variant-numeric: tabular-nums; margin-inline-start: 4px; }

/* Tier list */
.bo__tiers { display: flex; flex-direction: column; position: relative; }

.bo-tier {
  position: relative; margin: 5.5px 0; cursor: pointer;
  background: var(--bo-bg); border-radius: var(--bo-radius);
  box-shadow: inset 0 0 0 1px var(--bo-border);
  outline: none; -webkit-tap-highlight-color: transparent;
  transition: box-shadow .12s ease, background-color .12s ease;
}
.bo-tier:focus-visible { box-shadow: inset 0 0 0 1px var(--bo-border), 0 0 0 3px rgba(0, 0, 0, 0.25); }
.bo-tier--selected { background: var(--bo-bg-selected); box-shadow: inset 0 0 0 2px var(--bo-accent); }
.bo-tier--selected:focus-visible { box-shadow: inset 0 0 0 2px var(--bo-accent), 0 0 0 3px rgba(0, 0, 0, 0.25); }

.bo-tier__body { padding: 11px var(--bo-pad-x); }
.bo-tier__main { display: flex; align-items: center; gap: 18px; min-height: 55px; }
.bo-tier--selected .bo-tier__main { margin: 7px 0; }

/* Radio dot: white with a grey ring; black with a white gap when selected */
.bo-tier__radio {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--bo-border);
}
.bo-tier--selected .bo-tier__radio { background: var(--bo-accent); box-shadow: 0 0 0 2px var(--bo-accent); }

.bo-tier__content { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.bo-tier__text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.bo-tier__line { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 4px; }
.bo-tier__name { font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--bo-accent); }
.bo-tier__sub { font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--bo-text-2); }

/* "חסכת 256₪" pill */
.bo-tier__pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  background: var(--bo-badge-bg); color: var(--bo-badge-text);
  border-radius: 12px; padding: 4px 8px; font-size: 12px; font-weight: 400; line-height: 1.4; white-space: nowrap;
}

.bo-tier__pricing { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; }
.bo-tier__price { font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--bo-accent); }
.bo-tier__compare { font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--bo-text-2); text-decoration: line-through; }

/* "הכי נמכר" tab hanging from the top edge, 20px from the inline-start corner */
.bo-tier__badge {
  position: absolute; z-index: 3; top: -8px; inset-inline-start: 20px;
  display: block; background: var(--bo-badge-bg); color: var(--bo-badge-text);
  border-radius: 0 0 5px 5px; padding: 6px 8px; font-size: 12px; font-weight: 700; line-height: 12px; white-space: nowrap;
}

/* Per-unit variant selectors (only inside the selected tier) */
.bo-tier__variants { display: flex; flex-direction: column; align-items: flex-start; margin-top: -7px; }
.bo-tier__variants[hidden] { display: none; }
.bo-var__names { font-size: 12px; font-weight: 300; line-height: 1.4; color: var(--bo-text-2); margin: 3px 0; }
.bo-var { display: flex; align-items: center; flex-wrap: wrap; column-gap: 10px; row-gap: 6px; margin-top: 5px; }
.bo-var__img { width: 30px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--bo-bg-2); margin-inline-end: -3px; }
.bo-var__selects { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-inline-end: 2px; }

.bo-swatches {
  display: flex; align-items: stretch; background: #fff; border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--bo-border);
}
.bo-swatch {
  appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 35px; height: 36px; padding: 0; background: transparent;
  border: 2px solid transparent; border-radius: 6px;
}
.bo-swatch:focus-visible { outline: 2px solid var(--bo-accent); outline-offset: 1px; }
.bo-swatch--selected { border-color: var(--bo-accent); }
.bo-swatch--unavailable .bo-swatch__dot { opacity: .35; }
.bo-swatch--unavailable .bo-swatch__dot::after {
  content: ""; position: absolute; inset: 50% -2px auto; height: 1px; background: var(--bo-accent); transform: rotate(-45deg);
}
.bo-swatch__dot {
  position: relative; width: 16px; height: 16px; border-radius: 50%;
  background: var(--swatch, #ccc) center / cover; border: 1px solid rgba(0, 0, 0, 0.18);
}

.bo-select {
  appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer;
  height: 36px; min-width: 56px; padding: 7px 7px 7px 25px;
  background: #fff url("data:image/svg+xml;utf8,<svg width='10' height='4' viewBox='0 0 10 4' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M5 4L0.669872 0.25L9.33013 0.249999L5 4Z' fill='black'/></svg>") no-repeat 8px 50%;
  border: 0; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--bo-border);
  color: var(--bo-accent); font: inherit; font-size: 14px; line-height: 1.4; direction: rtl; text-align: right;
}
.bo-select:focus-visible { outline: 2px solid var(--bo-accent); outline-offset: 1px; }

/* Free-gift strip glued to the bottom of the card */
.bo-gift {
  display: flex; align-items: center; justify-content: space-between; gap: 5px 10px;
  margin: 0 1px 1px; padding: 7px 8px 7px var(--bo-pad-x);
  background: var(--bo-badge-bg); color: var(--bo-badge-text);
  border-radius: 0 0 11px 11px;
}
.bo-tier--selected .bo-gift { margin: 0 2px 2px; border-radius: 0 0 10px 10px; }
.bo-gift__main { display: flex; align-items: center; gap: 10.5px; flex: 1 1 0; min-width: 0; }
.bo-gift__img { height: 30px; width: auto; border-radius: 6px; object-fit: cover; flex: 0 0 auto; }
.bo-gift__text { font-size: 13px; font-weight: 700; line-height: 1.4; }
.bo-gift__price { font-size: 12px; font-weight: 400; line-height: 1.4; text-decoration: line-through; flex: 0 0 auto; }

/* Notes, errors, button */
.bo__note { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--bo-text-2); }
.bo__error { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--bo-error); }
.bo__error[hidden] { display: none; }
.bo__atc {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 49px;
  margin: 12px 0 0; padding: 0 30px; cursor: pointer;
  background: var(--bo-accent); color: var(--bo-accent-text);
  border: 0; border-radius: var(--bo-radius);
  font: inherit; font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: 1px;
}
.bo__atc:hover { opacity: .92; }
.bo__atc:focus-visible { outline: 2px solid var(--bo-accent); outline-offset: 3px; }
.bo__atc[disabled] { opacity: .55; cursor: default; }

/* Sticky "תבחרי חבילה" bar (mobile, only while the widget is scrolled out of view) */
.bo-sticky {
  position: fixed; inset: auto 0 0 0; z-index: 999; direction: rtl;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px; background: #F6EEE9; box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  transform: translateY(110%); transition: transform .2s ease;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.bo-sticky--visible { transform: none; }
.bo-sticky__content { display: flex; align-items: center; gap: 16px; min-width: 0; }
.bo-sticky__img { height: 40px; width: 40px; object-fit: cover; flex: 0 0 auto; }
.bo-sticky__title { font-size: 16px; font-weight: 400; color: #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-sticky__btn {
  flex: 0 0 auto; cursor: pointer; background: #000; color: #fff; border: 0; border-radius: 8px;
  padding: 15px; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
}
@media (min-width: 750px) { .bo-sticky { display: none; } }

/* Injected by the app embed before first paint when the active offer has hideVariantPicker:true.
   Scoped to the main product info column so nothing else on the page is affected. offers.js removes the
   class if no offer root is present, so the theme's own picker/buttons come back. */
.bo-hide-picker :is(product-info, .product__info-container, .product__info-wrapper, .product-form)
  :is(variant-radios, variant-selects, variant-picker, .product-form__input, quantity-input, .product-form__quantity, .product__quantity, .quantity) { display: none !important; }
.bo-hide-buttons :is(product-info, .product__info-container, .product__info-wrapper) .product-form__buttons { display: none !important; }

@media (max-width: 749px) {
  .bo { --bo-pad-x: 18px; }
}
