/* Black Friday offer body (includes/bf_offer_macro.html + js/bf-offer.js): plan tabs, credits dropdown, Buy now.
   Neutral greys so it reads calm under the coral header. Used by the pricing modal (.bfm) and homepage pop-up (.bfp). */
.bfo { font-family: 'Figtree', system-ui, sans-serif; }
.bfo-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #F1F5F9; }
.bfo-tabs button { height: 42px; border: 0; border-radius: 11px; background: none; font-family: inherit; font-size: 14.5px; font-weight: 600; color: #64748B; cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.bfo-tabs button:hover { color: #0F172A; }
.bfo-tabs button[aria-selected="true"] { background: #fff; color: #0F172A; box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 4px 12px -6px rgba(15,23,42,.25); }

.bfo-dd { position: relative; margin-top: 14px; }
.bfo-dd-btn { display: flex; align-items: center; gap: 12px; width: 100%; height: 58px; padding: 0 16px 0 18px; border: 1px solid #E2E8F0; border-radius: 14px; background: #fff; font-family: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.bfo-dd-btn:hover { border-color: #CBD5E1; }
.bfo-dd-btn[aria-expanded="true"], .bfo-dd-btn:focus-visible { outline: none; border-color: #94A3B8; box-shadow: 0 0 0 4px rgba(148,163,184,.18); }
.bfo-dd-main { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfo-dd-price, .bfo-p { white-space: nowrap; font-size: 15px; color: #0F172A; }
.bfo-dd-price b, .bfo-p b { font-weight: 700; }
.bfo-dd-price s, .bfo-p s { margin-right: 4px; color: #94A3B8; font-weight: 500; }
.bfo-dd-price small, .bfo-p small { font-size: 12.5px; color: #64748B; }
.bfo-chev { flex: none; width: 18px; height: 18px; color: #64748B; transition: transform .2s ease; }
.bfo-dd-btn[aria-expanded="true"] .bfo-chev { transform: rotate(180deg); }

.bfo-dd-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; max-height: 264px; overflow: auto; margin: 0; padding: 6px; list-style: none;
  border: 1px solid #E2E8F0; border-radius: 14px; background: #fff; box-shadow: 0 24px 48px -20px rgba(15,23,42,.35); }
.bfo-up .bfo-dd-list { top: auto; bottom: calc(100% + 6px); }
.bfo-dd-list[hidden] { display: none; }
.bfo-dd-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: #334155; cursor: pointer; outline: none; }
.bfo-dd-list li:hover, .bfo-dd-list li:focus { background: #F8FAFC; }
.bfo-dd-list li[aria-selected="true"] { background: #F1F5F9; color: #0F172A; }

.bfo-note { margin: 10px 2px 0; font-size: 13px; line-height: 1.5; color: #64748B; }
.bfo-buy { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; margin-top: 16px; border: 0; border-radius: 14px; background: #0F172A; color: #fff;
  font-family: inherit; font-size: 16.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.bfo-buy:hover { background: #1E293B; transform: translateY(-1px); box-shadow: 0 14px 28px -14px rgba(15,23,42,.6); }
.bfo-buy:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0F172A; }
.bfo-code { margin: 12px 0 0; text-align: center; font-size: 13px; color: #64748B; }
.bfo-code b { padding: 2px 8px; border: 1px dashed #CBD5E1; border-radius: 6px; background: #F8FAFC; color: #0F172A; font-weight: 700; letter-spacing: .03em; }

/* Hosts: let the dropdown list overflow the card. */
.bfm .bfm-card { overflow: visible; }
.bfm .bfm-top { border-radius: 26px 26px 0 0; }
.bfm .bfm-body { padding: 20px 24px 20px; }
.bfp { overflow: visible; }
.bfp .bfp-top { border-radius: 22px 22px 0 0; }
.bfp .bfo-tabs button { height: 38px; font-size: 13.5px; }
.bfp .bfo-dd-btn { height: 52px; }
.bfp .bfo-dd-main { font-size: 15px; }
.bfp .bfo-buy { height: 52px; font-size: 15.5px; }

/* v2: sale prices in colour, price in the button in mint, bigger homepage card */
.bfo-dd-price b, .bfo-p b { color: #047857; }
.bfo-dd-list li[aria-selected="true"] .bfo-p b { color: #047857; }
.bfo-dd-price small, .bfo-p small { color: #059669; }
.bfo-buy { gap: 10px; }
.bfo-buy-p { color: #9AEEAC; }
.bfp { width: min(460px, calc(100vw - 32px)); border-radius: 26px; }
.bfp .bfp-top { gap: 16px; padding: 24px 54px 22px 24px; border-radius: 26px 26px 0 0; }
.bfp .bfp-top img { width: 76px; height: 56px; }
.bfp .bfp-tag { font-size: 11.5px; padding: 3px 10px; }
.bfp .bfp-h { margin-top: 8px; font-size: 24px; }
.bfp-s { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.92); }
.bfp .bfp-x { width: 34px; height: 34px; right: 14px; top: 14px; }
.bfp .bfp-body { padding: 20px 24px 20px; }
.bfp .bfo-tabs button { height: 42px; font-size: 14.5px; }
.bfp .bfo-dd-btn { height: 58px; }
.bfp .bfo-dd-main { font-size: 16px; }
.bfp .bfo-buy { height: 56px; font-size: 16.5px; }
@media (max-width: 520px) {
  .bfp { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .bfp .bfp-top { padding: 18px 48px 16px 18px; }
  .bfp .bfp-h { font-size: 20px; }
  .bfp .bfp-body { padding: 16px; }
  .bfo-dd-main { font-size: 14.5px !important; }
  .bfo-dd-price, .bfo-p { font-size: 13.5px; }
}

/* v3: labelled Credits | Price columns, blue hover on Buy now, room for the code line */
.bfo-dd-btn { height: auto; min-height: 66px; padding: 10px 16px 10px 18px; }
.bfp .bfo-dd-btn { height: auto; min-height: 64px; }
.bfo-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bfo-col:first-child { flex: 1; }
.bfo-col-r { align-items: flex-end; text-align: right; }
.bfo-col > small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94A3B8; }
.bfo-dd-main { font-size: 16px; }
.bfo-dd-main small, .bfo-l small { font-size: 13px; font-weight: 500; color: #64748B; }
.bfo-dd-price, .bfo-p { display: inline-flex; align-items: baseline; gap: 8px; }
.bfo-dd-price b, .bfo-p b { font-size: 16px; font-weight: 800; color: #047857; }
.bfo-dd-price b small, .bfo-p b small { font-size: 12.5px; font-weight: 600; color: #059669; }
.bfo-dd-price s, .bfo-p s { margin: 0; font-size: 12.5px; font-weight: 500; color: #94A3B8; }
.bfo-dd-list li { padding: 12px 14px; }
.bfo-l { font-size: 15px; font-weight: 600; color: #0F172A; }
.bfo-dd-list li[aria-selected="true"] { background: #ECFDF5; box-shadow: inset 0 0 0 1px #A7F3D0; }
.bfo-buy:hover { background: #3461FF; box-shadow: 0 14px 28px -14px rgba(52,97,255,.7); }
.bfo-buy:hover .bfo-buy-p { color: #fff; }
.bfo-buy:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #3461FF; }
.bfo-code { margin-top: 16px; }
.bfm-card:focus { outline: none; }
@media (max-width: 520px) {
  .bfo-col > small { font-size: 10px; }
  .bfo-dd-price, .bfo-p { flex-direction: column; align-items: flex-end; gap: 0; }
}

/* v4: more room between Buy now and the code line; old price readable (not pale). */
.bfo-buy { margin-top: 18px; }
.bfo-code { margin-top: 24px; }
.bfm .bfm-body { padding-bottom: 26px; }
.bfp .bfp-body { padding-bottom: 22px; }
.bfo-dd-price s, .bfo-p s { color: #64748B; font-size: 13.5px; font-weight: 600; text-decoration-thickness: 1.5px; }

/* ===== Mobile pass (<=767px) ===== */
@media (max-width: 767px) {
  /* Credits label wraps instead of being cut ("100,000 credits ..."); small labels stay readable. */
  .bfo-dd-main { white-space: normal; line-height: 1.25; }
  .bfo-col > small, .bfp .bfp-tag { font-size: 12px; }
  .bfo-col-r > small { letter-spacing: .02em; }
  .bfp .bfp-x { width: 44px; height: 44px; right: 8px; top: 8px; }
  .bfo .bfo-tabs button { height: 44px; }
}
