/* [PPS-BXGY] "Buy X, get Y at % or $ off": the storefront pieces (homepage section, hero pill, top bar, product page box,
   product-card chip, cart badges, cart drawer). The v3 bright tokens (navy, ice, gold) on the homepage; the deal green
   #0f7a3a on the product page, cart and drawer. Loaded by base_v2.html before fixes-oct2.css. Admin has its own styles. */

[data-bxgy][hidden], .bx-pdp-set[hidden] { display: none !important; }   /* the deal ended while the page was open (static/js/bxgy.js) */

/* ---------- homepage: hero pill (under the gold free-vial ribbon) ---------- */
.bx-hero-row { margin: 0; }
.hb-ribbon + .bx-hero-row, .hb-eyebrow + .bx-hero-row { margin-top: 8px; }
.hv2 .hb-ribbon.hb-ribbon--bx { min-height: 44px; padding: 6px 16px 6px 16px; color: var(--hb-navy, #0b1d4a) !important; background: #fff;
  box-shadow: 0 0 0 1px var(--hb-navy, #0b1d4a), 0 10px 22px -16px rgba(11,29,74,.55); }
.hv2 .hb-ribbon.hb-ribbon--bx:hover { box-shadow: 0 0 0 1px var(--hb-navy, #0b1d4a), 0 14px 26px -16px rgba(11,29,74,.7); }
.hb-ribbon--bx::after { display: none; }
.hb-ribbon--bx .hb-ribbon-txt b { font-size: 15px; }
.hb-ribbon--bx .hb-ribbon-txt span { font-size: 13px; color: var(--hb-navy-2, #1d2f5f); }

/* ---------- homepage: "Limited-time deals" section ---------- */
.hv2 .bx-home { --hb-navy: #0b1d4a; --hb-navy-2: #1d2f5f; --hb-text: #3a4a6e; --hb-muted: #4a5878; --hb-blue: #1459f0;
  --hb-blue-2: #2a78ff; --hb-ice: #eaf3ff; --hb-ice-2: #d9e8ff; --hb-line: #cddcf7; --hb-gold-1: #ffeab0; --hb-gold-2: #f8ca4d;
  --hb-gold-3: #e9a722; --hb-gold-ink: #2b1f00;
  background: #f3f8ff; color: var(--hb-text); padding-block: clamp(32px, 3vw + 20px, 64px); scroll-margin-top: 80px; }
.hv2 .bx-home + .hv2-sec { padding-top: var(--section); }
.bx-home .bx-head { margin-bottom: 18px; }
.bx-home .bx-kicker { margin: 0 0 8px; }
.hv2 .bx-home h2 { margin: 0; color: var(--hb-navy); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem);
  line-height: 1.08; letter-spacing: -.01em; overflow-wrap: anywhere; }
.bx-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.bx-cards.bx-n1 { max-width: 760px; }
.bx-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.bx-card { min-width: 0; border-radius: 16px; padding: 20px; background: #fff; box-shadow: 0 0 0 1px var(--hb-line), 0 14px 30px -24px rgba(11,29,74,.5); }
.bx-card.is-main { position: relative; overflow: hidden; padding-top: 24px; }
.bx-card.is-main::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--hb-gold-1), var(--hb-gold-2) 45%, var(--hb-gold-3)); }
.bx-chip { display: inline-block; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px; color: var(--hb-gold-ink);
  background: linear-gradient(135deg, var(--hb-gold-1), var(--hb-gold-2)); font: 700 15px/1.2 var(--font-body); }
.bx-how { margin: 0 0 10px; color: var(--hb-navy); font: 600 16px/1.4 var(--font-body); overflow-wrap: anywhere; }
.bx-extra { margin: 0 0 8px; font-size: 14px; line-height: 1.45; }
.bx-terms { margin: 0 0 14px; padding: 0 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--hb-text); }
.bx-terms li { margin: 2px 0; break-inside: avoid; }
.bx-terms-m { display: none; }
.bx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.bx-ends { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; color: var(--hb-navy); font: 600 14px/1.3 var(--font-body); }
.bx-cd { display: inline-flex; gap: 4px; }
.bx-cd-u { display: inline-flex; align-items: baseline; gap: 1px; padding: 4px 6px; border-radius: 6px; background: var(--hb-ice); color: var(--hb-navy);
  font: 600 12px/1 var(--font-body); }
.bx-cd-u b { display: inline-block; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }
.hv2 .bx-home .bx-cta { min-height: 48px; padding: 0 22px; font-size: 15px; }
.bx-home .hb-btn-main { color: #fff; background: linear-gradient(135deg, #1459f0, #2a78ff); box-shadow: 0 12px 24px -14px rgba(20,89,240,.85);
  text-decoration: none; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.bx-card.is-side { padding: 16px 18px; background: var(--hb-ice); box-shadow: 0 0 0 1px var(--hb-line); }
.bx-side-k { margin: 0 0 4px; font: 600 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--hb-muted); }
.bx-side-h { margin: 0 0 4px; color: var(--hb-navy); font: 700 18px/1.25 var(--font-body); }
.bx-side-t { margin: 0; font-size: 14px; line-height: 1.5; }
.bx-nw { white-space: nowrap; }
.bx-side-m { display: none; }
.bx-together { margin: 2px 2px 0; font-size: 14px; line-height: 1.5; color: var(--hb-navy-2); }
.bx-ruo { margin: 12px 0 0; font-size: 12px; color: var(--hb-muted); }
@media (min-width: 640px) {
  .bx-cards.bx-n2, .bx-cards.bx-n3 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
@media (min-width: 1024px) {
  .bx-cards.bx-n2, .bx-cards.bx-n3 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
  .bx-cards.bx-n2 .bx-terms, .bx-cards.bx-n1 .bx-terms { columns: 2; column-gap: 28px; }
}
/* phones: one compact card and one-line rows for the other deals (C4: the section stays short) */
@media (max-width: 639px) {
  .hv2 .bx-home { padding-block: 18px 20px; }
  .hb-ribbon.hb-ribbon--bx { display: flex; width: 100%; }
  .hb-ribbon--bx .hb-ribbon-txt { flex: 1 1 auto; }
  .bx-home .bx-head { margin-bottom: 10px; }
  .bx-home .bx-kicker { margin-bottom: 6px; }
  .hv2 .bx-home h2 { font-size: 1.45rem; }
  .bx-cards, .bx-side { gap: 8px; }
  .bx-card { padding: 14px; border-radius: 12px; }
  .bx-card.is-main { padding-top: 16px; }
  .bx-chip { font-size: 14px; margin-bottom: 6px; padding: 5px 10px; }
  .bx-how { font-size: 14px; margin-bottom: 6px; }
  .bx-extra { font-size: 13px; margin-bottom: 6px; }
  .bx-terms { display: none; }
  .bx-terms-m { display: block; margin: 0 0 8px; font-size: 13px; line-height: 1.4; }
  .bx-foot { gap: 10px; }
  .bx-ends { font-size: 13px; }
  .hv2 .bx-home .bx-cta { width: 100%; justify-content: center; min-height: 44px; }
  .bx-card.is-side { padding: 8px 12px; border-radius: 10px; }
  .bx-side-k, .bx-side-h, .bx-side-t { display: none; }
  .bx-side-m { display: block; margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--hb-navy-2); }
  .bx-side-m b { color: var(--hb-navy); }
  .bx-together { display: none; }   /* the terms in the card already say the same (free vials first, sale or code, one deal per vial) */
  .bx-ruo { margin-top: 6px; }
}

/* ---------- top deal bar ---------- */
.bxgy-bm-m { display: none; }
@media (max-width: 639px) {
  .hv2-sale-title .bxgy-bar-more { display: inline; font-size: 12px; font-weight: 600; }
  .bxgy-bm-d { display: none; }
  /* its own line, but inline, so the bar's "→" (home-v2.css .hv2-sale-title::after) follows it instead of wrapping alone */
  .bxgy-bm-m { display: inline; }
  .bxgy-bm-m::before { content: "\A"; white-space: pre; }
}

/* ---------- product page box ---------- */
.bx-pdp { margin: 10px 0 4px; max-width: 100%; }
.bx-pdp .bx-m { display: none; }
.bx-pdp-badge { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; max-width: 100%; margin: 0; padding: 8px 12px 8px 14px;
  border-radius: 10px; background: #fff; color: #0b1d4a; box-shadow: inset 4px 0 0 #e9a722, 0 0 0 1px #0b1d4a; font-size: 14px; line-height: 1.35; }
.bx-pdp-badge b { font-weight: 800; }
.bx-pdp-badge span { font-size: 13px; color: #3a4a6e; }
.bx-pdp-terms .bx-nw { white-space: nowrap; }
.bx-pdp-terms { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-mute, #5f636a); }
.bx-pdp-ex { margin: 4px 0 0; font-size: 14px; color: #0b1d4a; }
.bx-pdp-ex s { color: var(--ink-mute, #5f636a); font-weight: 400; margin-right: 2px; }
.bx-pdp-ex b { color: #0f7a3a; }
.bx-pdp-ex[hidden] { display: none; }
.bx-pdp-set { margin-top: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #0b1d4a; background: #fff; color: #0b1d4a;
  font: 600 13px/1 var(--font-body, inherit); cursor: pointer; }
.bx-pdp-set:hover { background: #f3f8ff; }
.bx-pdp-note { margin: 4px 0 0; font-size: 12px; color: var(--ink-mute, #5f636a); }
@media (max-width: 639px) {
  .bx-pdp .bx-d { display: none; }
  .bx-pdp .bx-m { display: inline; }
  .bx-pdp-badge { padding: 6px 10px 6px 12px; font-size: 14px; }
  .bx-pdp-terms { margin-top: 4px; font-size: 12px; line-height: 1.35; }
  .bx-pdp-ex { font-size: 13px; margin-top: 2px; }
}

/* ---------- product cards ---------- */
.pc4-deal { position: relative; margin: 6px 0 0; padding-left: 12px; font: 600 12px/1.25 var(--font-body); color: #0b1d4a; overflow-wrap: anywhere; }
.pc4-deal::before { content: ""; position: absolute; left: 0; top: .32em; width: 7px; height: 7px; border-radius: 50%; background: #e9a722; }

/* ---------- cart page and drawer ---------- */
body.hv2 .cart-bulk-badge.bxgy-badge, .cart-bulk-badge.bxgy-badge { background: rgba(15,122,58,.1) !important; color: #0f7a3a !important; border-color: rgba(15,122,58,.35) !important; }
.cx-promo-nudge.bxgy-nudge { border-color: rgba(11,29,74,.35); color: #0b1d4a; background: #f3f8ff; }
.pcq-bxgy[hidden] { display: none; }
.pcq-bxgy .pcq-bx-row { display: flex; justify-content: space-between; gap: 10px; color: #0c6831; font-weight: 600; }
.pcq-free.pcq-bxgy-l { color: #0c6831; }
