/* BK-BRG Offers Price Visuals v0.1.0
 * Read-only indication of the canonical H6 Offers checkbox.
 * The presence of an Offers checkbox cannot itself authorize public prices.
 * Public output remains governed by the existing Available renderer.
 */

/* PWA and universal editor. :has responds immediately to both user clicks and
 * asynchronous hydration of checked (without relying on a synthetic event). */
#bl-modal #bl-update-form:has(#bl-h6-clearance:checked:not(:disabled)) .bl-compact-cost {
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:3px 4px!important;
  min-height:50px!important;
}
#bl-modal #bl-update-form:has(#bl-h6-clearance:checked:not(:disabled)) .bl-compact-cost #bl-cost-amount:not(.bl-private-cost-locked) {
  border:2px solid #c72b38!important;
  color:#ae1f2d!important;
  background:#fff0f1!important;
  -webkit-text-fill-color:#ae1f2d!important;
  box-shadow:0 0 0 1px rgba(199,43,56,.06)!important;
  font-weight:800!important;
}
/* Keep existing private-cost locked styling and editing restrictions intact. */
#bl-modal #bl-update-form:has(#bl-h6-clearance:checked:not(:disabled)) .bl-compact-cost #bl-cost-amount.bl-private-cost-locked {
  outline:2px solid #c72b38!important;
  outline-offset:-2px!important;
}
#bl-modal #bl-update-form .bl-compact-cost .bk-offer-price-caption {
  display:none!important;
}
#bl-modal #bl-update-form:has(#bl-h6-clearance:checked:not(:disabled)) .bl-compact-cost .bk-offer-price-caption,
#bl-modal #bl-update-form.bk-offer-price-selected .bl-compact-cost .bk-offer-price-caption {
  display:block!important;
  order:3!important;
  flex:0 0 100%!important;
  width:100%!important;
  padding:0 2px!important;
  margin:0!important;
  color:#ab2030!important;
  font:750 10px/1.25 system-ui,-apple-system,sans-serif!important;
  letter-spacing:.01em!important;
  white-space:normal!important;
}
/* Fallback for browsers without CSS :has support; controlled by the
 * existing flag's UI state, never a new or shadow offer flag. */
#bl-modal #bl-update-form.bk-offer-price-selected .bl-compact-cost #bl-cost-amount:not(.bl-private-cost-locked) {
  border:2px solid #c72b38!important;
  color:#ae1f2d!important;
  background:#fff0f1!important;
  -webkit-text-fill-color:#ae1f2d!important;
  font-weight:800!important;
}

/* Existing public offer price badge only. Does not show/create new prices. */
.bosky-cat-card .bosky-cat-media-wrap > .bk-h6-clearance-price {
  color:#a51d2b!important;
  border-color:#ca3442!important;
  background:rgba(255,242,243,.97)!important;
  box-shadow:0 1px 5px rgba(125,21,35,.14)!important;
  font-weight:850!important;
}
/* Staff prices on the Offers filtered view already use H10's price chip.
 * Tint only cards explicitly marked as Offers by BK-BRG, not all prices. */
.bosky-cat-card[data-bk-h7-clearance-card="1"] .bosky-cat-media-wrap > .bk-h10-price-chip {
  color:#a51d2b!important;
  border-color:#ca3442!important;
  background:rgba(255,242,243,.97)!important;
}
