/* BF_PRICING_ALIGNMENT_V3 — scoped presentation layer only.
 * No button/link/checkout/price/credit balance values modified.
 * Responsive on home, pricing and fallback checkout surfaces.
 */
/* Mirror the paid-price space with a short, translatable free-plan explanation. */
#pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan="free"] > .bf-pca3-free {
  display:flex;align-items:center;min-height:51px;margin:3px 0 4px;
  color:#576e8c;font-size:13px;line-height:1.5;font-weight:600;
  max-width:25ch;
}
.bf53-catalog .bf53-plan[data-plan="free"] > .bf-pca3-free {
  display:flex;align-items:center;min-height:82px;margin:3px 0 4px;
  color:#576e8c;font-size:13px;line-height:1.5;font-weight:600;
  max-width:26ch;
}
/* Keep the historic zero-valued price DOM private to CSS; present the note instead.
   No price/total data or feature availability is altered. */
#pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan="free"] > .bf-hp-v1-money,
.bf53-catalog .bf53-plan[data-plan="free"] > .bf53-price { display:none!important; }

/* More legible credit amount, with a consistent gap between number and unit. */
#pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] > .bf-hp-v1-credit,
.bf53-catalog .bf53-plan[data-plan] > .bf53-total {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) max-content;
  gap:10px 14px!important;
  align-items:center!important;
  padding:12px 14px!important;
  min-height:51px;
  box-sizing:border-box;
}
#pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] > .bf-hp-v1-credit .bf-pcd-credit-label,
.bf53-catalog .bf53-plan[data-plan] > .bf53-total .bf-pcd-credit-label {
  min-width:0;line-height:1.3;font-size:12px;
}
#pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] .bf-pcd-credit-value,
.bf53-catalog .bf53-plan[data-plan] .bf-pcd-credit-value {
  display:inline-flex!important;
  flex-wrap:nowrap!important;
  align-items:baseline!important;
  justify-content:flex-end!important;
  gap:9px!important;
  margin:0!important;
  white-space:nowrap;
  min-width:max-content;
  font-variant-numeric:tabular-nums;
  direction:ltr;
  unicode-bidi:isolate;
}
#pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] .bf-pcd-credit-value strong,
.bf53-catalog .bf53-plan[data-plan] .bf-pcd-credit-value strong {
  font-size:23px!important;letter-spacing:-.025em!important;
  line-height:1.12!important;font-weight:800!important;
}
#pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] .bf-pcd-credit-value span,
.bf53-catalog .bf53-plan[data-plan] .bf-pcd-credit-value span {
  font-size:12px!important;line-height:1.25!important;
  font-weight:650!important;
}
/* Compact pricing values, retain original currency/period and actions. */
#pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan]:not([data-plan="free"]) .bf-hp-v1-money bdi,
.bf53-catalog .bf53-plan[data-plan]:not([data-plan="free"]) > .bf53-price,
.bf53-catalog .bf53-plan[data-plan]:not([data-plan="free"]) > .bf53-price bdi {
  font-size:28px!important;line-height:1.2!important;
}
@media(max-width:630px){
  #pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan]:not([data-plan="free"]) .bf-hp-v1-money bdi,
  .bf53-catalog .bf53-plan[data-plan]:not([data-plan="free"]) > .bf53-price,
  .bf53-catalog .bf53-plan[data-plan]:not([data-plan="free"]) > .bf53-price bdi {font-size:26px!important}
  #pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] > .bf-hp-v1-credit,
  .bf53-catalog .bf53-plan[data-plan] > .bf53-total {padding:11px 12px!important;gap:8px!important}
}
@media(max-width:370px){
  #pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] > .bf-hp-v1-credit,
  .bf53-catalog .bf53-plan[data-plan] > .bf53-total {column-gap:6px!important}
  #pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] .bf-pcd-credit-value,
  .bf53-catalog .bf53-plan[data-plan] .bf-pcd-credit-value {gap:6px!important}
  #pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] .bf-pcd-credit-value strong,
  .bf53-catalog .bf53-plan[data-plan] .bf-pcd-credit-value strong {font-size:21px!important}
}
/* Dark mode: specifically adjust the new note; V2 controls tile contrast. */
:is(html[data-theme="dark"],html.dark,html[data-bf-theme="dark"],
    body[data-theme="dark"],body.dark,body[data-bf-theme="dark"],
    html[data-appearance="dark"],body[data-appearance="dark"])
 :is(#pricing.bf-hp-v1,.bf53-catalog) .bf-pca3-free {
  color:#ccdbef!important;
}
@media(prefers-color-scheme:dark){
  html:not([data-theme="light"]):not([data-bf-theme="light"]):not(.light)
  :is(#pricing.bf-hp-v1,.bf53-catalog) .bf-pca3-free {color:#ccdbef!important}
}

/* BF_PRICING_STORAGE_CONTRAST_V4_START
   Visual only. Existing HTML, values, Paddle checkout and payment sources unchanged. */
.bf53-catalog .bf53-plan[data-plan] .bf-p4-storage,
#pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] .bf-hp-v1-storage {
  display:flex!important; align-items:center!important; justify-content:space-between!important;
  gap:12px!important; padding:12px 14px!important; min-height:46px!important;
  border:1px solid #c8dff4!important; border-radius:11px!important;
  background:#e7f2ff!important; color:#173553!important;
  opacity:1!important; box-sizing:border-box!important;
}
.bf53-catalog .bf53-plan[data-plan] .bf-p4-storage :is(span,small,b),
#pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] .bf-hp-v1-storage :is(span,small,b) {
  color:#254d73!important; opacity:1!important; font-weight:650!important;
}
.bf53-catalog .bf53-plan[data-plan] .bf-p4-storage strong,
#pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] .bf-hp-v1-storage strong {
  color:#0c315b!important; opacity:1!important; font-weight:820!important;
  font-size:15px!important; white-space:nowrap!important; font-variant-numeric:tabular-nums;
}
/* Align credit number and unit; preserve source values and languages. */
.bf53-catalog .bf53-plan[data-plan] .bf-pcd-credit-value,
#pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] .bf-pcd-credit-value {
  display:inline-flex!important; flex-wrap:nowrap!important;
  align-items:baseline!important; gap:10px!important; white-space:nowrap!important;
}
/* Do not display a $0.00 price on the free plan. */
.bf53-catalog .bf53-plan[data-plan="free"] > .bf53-price,
#pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan="free"] > .bf-hp-v1-money {
  display:none!important;
}
/* Dark themes: use a deep card and high-contrast text, not pale empty-looking panels. */
:is(html[data-theme="dark"],html[data-bf-theme="dark"],html[data-appearance="dark"],html.dark,
    body[data-theme="dark"],body[data-bf-theme="dark"],body[data-appearance="dark"],body.dark)
 :is(.bf53-catalog .bf53-plan[data-plan] .bf-p4-storage,
     #pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] .bf-hp-v1-storage) {
  background:#263a52!important; border-color:#405a78!important; color:#eaf4ff!important;
}
:is(html[data-theme="dark"],html[data-bf-theme="dark"],html[data-appearance="dark"],html.dark,
    body[data-theme="dark"],body[data-bf-theme="dark"],body[data-appearance="dark"],body.dark)
 :is(.bf53-catalog .bf53-plan[data-plan] .bf-p4-storage,
     #pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] .bf-hp-v1-storage) :is(span,small,b) {
  color:#cfe1f7!important; opacity:1!important;
}
:is(html[data-theme="dark"],html[data-bf-theme="dark"],html[data-appearance="dark"],html.dark,
    body[data-theme="dark"],body[data-bf-theme="dark"],body[data-appearance="dark"],body.dark)
 :is(.bf53-catalog .bf53-plan[data-plan] .bf-p4-storage,
     #pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] .bf-hp-v1-storage) strong {
  color:#ffffff!important;opacity:1!important;
}
@media(prefers-color-scheme:dark){
  html:not([data-theme="light"]):not([data-bf-theme="light"]):not([data-appearance="light"]):not(.light)
   :is(.bf53-catalog .bf53-plan[data-plan] .bf-p4-storage,
       #pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] .bf-hp-v1-storage) {
    background:#263a52!important; border-color:#405a78!important; color:#eaf4ff!important;
  }
  html:not([data-theme="light"]):not([data-bf-theme="light"]):not([data-appearance="light"]):not(.light)
   :is(.bf53-catalog .bf53-plan[data-plan] .bf-p4-storage,
       #pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] .bf-hp-v1-storage) :is(span,small,b) {
    color:#cfe1f7!important;opacity:1!important;
  }
  html:not([data-theme="light"]):not([data-bf-theme="light"]):not([data-appearance="light"]):not(.light)
   :is(.bf53-catalog .bf53-plan[data-plan] .bf-p4-storage,
       #pricing.bf-hp-v1 .bf-hp-v1-plan[data-plan] .bf-hp-v1-storage) strong {color:#ffffff!important;opacity:1!important}
}
/* BF_PRICING_STORAGE_CONTRAST_V4_END */
