/* =========================================================
   BAYS B2B PRO v3.1.0 — Premium Finance & Button Contrast
   ========================================================= */

/* JavaScript only adds this class when the rendered background is blue. */
.bays-blue-button-white-text,
.bays-blue-button-white-text:hover,
.bays-blue-button-white-text:focus,
.bays-blue-button-white-text:active,
.bays-blue-button-white-text *,
.bays-blue-button-white-text:hover *,
.bays-blue-button-white-text:focus *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-decoration-color:rgba(255,255,255,.75)!important;
}

/* Known primary actions are protected even before JavaScript runs. */
.bays-app .checkout-button,
.bays-app .bays-card-add,
.bays-app .single_add_to_cart_button,
.bays-app .bays-smart-order-add,
.bays-app .bays-smart-order-add-selected,
.bays-app .bays-finance-head>a,
.bays-app .bays-pwa-manual-trigger,
.bays-admin-app .primary,
.bays-admin-app a.primary,
.bays-admin-app button.primary{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.bays-app .checkout-button *,
.bays-app .bays-card-add *,
.bays-app .single_add_to_cart_button *,
.bays-app .bays-smart-order-add *,
.bays-app .bays-smart-order-add-selected *,
.bays-app .bays-finance-head>a *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Finance header */
.bays-finance-pro{gap:22px!important}
.bays-finance-head{padding:4px 0 2px!important}
.bays-finance-head>div>small{
  color:#1768ef!important;
  font-size:11px!important;
  font-weight:950!important;
  letter-spacing:.09em!important;
}
.bays-finance-head h1{
  margin-top:7px!important;
  color:#0b1325!important;
  font-size:34px!important;
  letter-spacing:-.035em!important;
}
.bays-finance-head p{
  margin-top:8px!important;
  color:#52627a!important;
  font-size:14px!important;
  line-height:1.55!important;
}
.bays-finance-head>a{
  min-height:48px!important;
  padding:0 20px!important;
  border:1px solid rgba(255,255,255,.22)!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,#1768ef,#3155f5)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:12px!important;
  box-shadow:0 13px 30px rgba(37,99,235,.22)!important;
}

/* Premium summary cards */
.bays-finance-summary{
  gap:14px!important;
}
.bays-finance-summary article{
  position:relative!important;
  isolation:isolate!important;
  min-height:154px!important;
  overflow:hidden!important;
  padding:22px 20px 20px!important;
  border:1px solid #dce5f1!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,#ffffff 0%,#f9fbff 100%)!important;
  box-shadow:0 14px 36px rgba(15,23,42,.075)!important;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important;
}
.bays-finance-summary article:hover{
  transform:translateY(-3px)!important;
  box-shadow:0 20px 44px rgba(15,23,42,.11)!important;
}
.bays-finance-summary article:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg,#1768ef,#4f46e5);
}
.bays-finance-summary article:after{
  content:"";
  position:absolute;
  right:-42px;
  bottom:-62px;
  z-index:-1;
  width:150px;
  height:150px;
  border-radius:50%;
  background:rgba(37,99,235,.055);
}
.bays-finance-summary article.debit-card:before{background:linear-gradient(90deg,#ef4444,#fb7185)}
.bays-finance-summary article.debit-card:after{background:rgba(239,68,68,.055)}
.bays-finance-summary article.credit-card:before{background:linear-gradient(90deg,#16a34a,#34d399)}
.bays-finance-summary article.credit-card:after{background:rgba(22,163,74,.06)}
.bays-finance-summary article.overdue-card:before{background:linear-gradient(90deg,#f59e0b,#fbbf24)}
.bays-finance-summary article.overdue-card:after{background:rgba(245,158,11,.065)}
.bays-finance-card-icon{
  position:absolute;
  top:18px;
  right:18px;
  display:grid!important;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:12px;
  background:#eef5ff;
  color:#1768ef;
  font-size:17px;
  font-style:normal;
  font-weight:950;
  box-shadow:inset 0 0 0 1px rgba(23,104,239,.08);
}
.debit-card .bays-finance-card-icon{background:#fff1f2;color:#dc2626}
.credit-card .bays-finance-card-icon{background:#ecfdf3;color:#15803d}
.overdue-card .bays-finance-card-icon{background:#fff7e6;color:#d97706}
.bays-finance-summary article small{
  max-width:calc(100% - 52px)!important;
  color:#607089!important;
  font-size:10px!important;
  font-weight:950!important;
  letter-spacing:.055em!important;
}
.bays-finance-summary article strong{
  margin-top:15px!important;
  color:#101828!important;
  font-size:25px!important;
  font-weight:950!important;
  line-height:1.08!important;
  letter-spacing:-.025em!important;
}
.bays-finance-summary article strong .woocommerce-Price-currencySymbol{
  color:inherit!important;
  font-size:.72em!important;
}
.bays-finance-summary article span{
  margin-top:11px!important;
  color:#66758c!important;
  font-size:10px!important;
  font-weight:650!important;
  line-height:1.45!important;
}

/* Chart and empty state */
.bays-finance-chart-card,
.bays-finance-table-card{
  border:1px solid #dce5f1!important;
  border-radius:19px!important;
  box-shadow:0 14px 38px rgba(15,23,42,.07)!important;
}
.bays-finance-chart-card{
  padding:22px!important;
}
.bays-finance-chart-card .bays-card-head h2,
.bays-finance-table-card .bays-card-head h2{
  color:#101828!important;
  font-size:18px!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
}
.bays-finance-chart-card .bays-card-head small,
.bays-finance-table-card .bays-card-head small{
  color:#66758c!important;
  font-size:11px!important;
}
.bays-finance-chart-card.is-empty .bays-finance-legend{display:none!important}
.bays-finance-chart-empty{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  min-height:260px;
  padding:34px 20px 24px;
  text-align:center;
}
.bays-finance-chart-empty>span{
  display:grid;
  place-items:center;
  width:66px;
  height:66px;
  margin-bottom:17px;
  border-radius:20px;
  background:linear-gradient(145deg,#eaf2ff,#f5f8ff);
  color:#1768ef;
  font-size:27px;
  font-weight:950;
  box-shadow:inset 0 0 0 1px rgba(23,104,239,.1),0 14px 32px rgba(23,104,239,.11);
}
.bays-finance-chart-empty strong{
  color:#172033;
  font-size:18px;
  font-weight:950;
}
.bays-finance-chart-empty p{
  max-width:500px;
  margin:9px 0 0!important;
  color:#718096!important;
  font-size:12px!important;
  line-height:1.6!important;
}

.bays-finance-toolbar{
  padding:12px!important;
  border-color:#dce5f1!important;
  border-radius:14px!important;
  box-shadow:0 8px 24px rgba(15,23,42,.045)!important;
}
.bays-finance-toolbar a{
  min-height:38px!important;
  padding:0 13px!important;
  font-size:10px!important;
}
.bays-finance-toolbar a.active{
  background:#1768ef!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 8px 20px rgba(23,104,239,.19)!important;
}
.bays-finance-toolbar select{
  min-height:40px!important;
  font-size:11px!important;
}

@media(max-width:1100px){
  .bays-finance-summary article strong{font-size:22px!important}
}
@media(max-width:760px){
  .bays-finance-head h1{font-size:32px!important}
  .bays-finance-summary article{min-height:146px!important}
  .bays-finance-summary article strong{font-size:28px!important}
  .bays-finance-summary article span{font-size:13px!important}
  .bays-finance-chart-empty{min-height:230px;padding:28px 12px 20px}
}


/* =========================================================
   BAYS B2B PRO v3.1.0 — Portal Price Isolation & Finance Readability
   ========================================================= */
.bays-finance-summary article{
  border-color:#cbd7e6!important;
  background:linear-gradient(145deg,#ffffff 0%,#f7faff 100%)!important;
  box-shadow:0 16px 40px rgba(15,23,42,.095)!important;
}
.bays-finance-summary article small{
  color:#34445c!important;
  font-size:11px!important;
  font-weight:950!important;
  letter-spacing:.065em!important;
}
.bays-finance-summary article strong{
  color:#07101f!important;
  font-size:28px!important;
  font-weight:950!important;
  text-shadow:0 1px 0 rgba(255,255,255,.75)!important;
}
.bays-finance-summary article span{
  color:#40516a!important;
  font-size:11px!important;
  font-weight:750!important;
  line-height:1.5!important;
}
.bays-finance-summary article .woocommerce-Price-amount,
.bays-finance-summary article .woocommerce-Price-currencySymbol{
  color:inherit!important;
  -webkit-text-fill-color:inherit!important;
}

.bays-price-isolation-note{
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  padding:14px 16px!important;
  border:1px solid #bdd4ff!important;
  border-radius:13px!important;
  background:#f2f7ff!important;
}
.bays-price-isolation-note strong{color:#134da8!important;font-size:12px!important;font-weight:950!important}
.bays-price-isolation-note span{color:#4b6283!important;font-size:10px!important;line-height:1.5!important}
.bays-site-price-readonly input[readonly]{
  background:#f3f5f8!important;
  color:#667085!important;
  cursor:not-allowed!important;
}
.bays-site-price-readonly span em{
  display:inline-flex!important;
  margin-left:5px!important;
  padding:3px 6px!important;
  border-radius:999px!important;
  background:#e9edf3!important;
  color:#64748b!important;
  font-size:7px!important;
  font-style:normal!important;
  font-weight:900!important;
  text-transform:uppercase!important;
}
.bays-site-price-cell small{
  display:block!important;
  margin-top:4px!important;
  color:#8a98ac!important;
  font-size:8px!important;
}
.bays-portal-price-cell{
  display:grid!important;
  gap:5px!important;
}
.bays-portal-price-cell span{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  min-width:130px!important;
  color:#6b7890!important;
  font-size:8px!important;
}
.bays-portal-price-cell strong{
  color:#1458c8!important;
  font-size:9px!important;
  white-space:nowrap!important;
}
.bays-product-quick-form input[name="standard_dealer_price"],
.bays-product-quick-form input[name="plus_dealer_price"]{
  border-color:#bdd4ff!important;
  background:#f7faff!important;
}
@media(max-width:760px){
  .bays-finance-summary article strong{font-size:30px!important}
  .bays-finance-summary article small{font-size:12px!important}
  .bays-finance-summary article span{font-size:13px!important}
}

.bays-admin-app .bays-product-admin-table{min-width:1240px!important}
.bays-admin-app .bays-product-quick-form{
  grid-template-columns:88px 88px 62px 82px auto!important;
  min-width:390px!important;
}
