/* Sticky CTA tray background + display-only promo price (admin: Site settings → credit button). */

@media (max-width: 991.98px) {
  .cc-mobile-bar.cc-mobile-bar--tray-white {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 -6px 22px rgba(15, 23, 42, .1);
  }

  .cc-mobile-bar.cc-mobile-bar--tray-glass {
    background: rgba(255, 255, 255, .28);
    backdrop-filter: blur(18px) saturate(1.45);
    -webkit-backdrop-filter: blur(18px) saturate(1.45);
    border-top: 1px solid rgba(255, 255, 255, .45);
    box-shadow: 0 -10px 32px rgba(15, 23, 42, .14);
  }

  .cc-mobile-bar.cc-mobile-bar--tray-dark {
    background: rgba(10, 25, 49, .9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .35);
  }

  .cc-mobile-bar.cc-mobile-bar--tray-custom {
    background: var(--cc-tray-bg, #ffffff);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 -6px 22px rgba(15, 23, 42, .1);
  }

  .cc-mobile-bar.cc-mobile-bar--tray-none {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 0 !important;
    border-top: 0 !important;
    box-shadow: none !important;
  }

  /* Premium bar must not force a solid white tray over admin mode. */
  .cc-mobile-bar.cc-mobile-bar--premium.cc-mobile-bar--tray-white,
  .cc-mobile-bar.cc-mobile-bar--premium.cc-mobile-bar--tray-glass,
  .cc-mobile-bar.cc-mobile-bar--premium.cc-mobile-bar--tray-dark,
  .cc-mobile-bar.cc-mobile-bar--premium.cc-mobile-bar--tray-custom,
  .cc-mobile-bar.cc-mobile-bar--premium.cc-mobile-bar--tray-none {
    background: inherit;
  }

  .cc-mobile-bar.cc-mobile-bar--premium.cc-mobile-bar--tray-white {
    background: #ffffff;
  }

  .cc-mobile-bar.cc-mobile-bar--premium.cc-mobile-bar--tray-glass {
    background: rgba(255, 255, 255, .28);
    backdrop-filter: blur(18px) saturate(1.45);
    -webkit-backdrop-filter: blur(18px) saturate(1.45);
  }

  .cc-mobile-bar.cc-mobile-bar--premium.cc-mobile-bar--tray-dark {
    background: rgba(10, 25, 49, .9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .cc-mobile-bar.cc-mobile-bar--premium.cc-mobile-bar--tray-custom {
    background: var(--cc-tray-bg, #ffffff);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .cc-mobile-bar.cc-mobile-bar--premium.cc-mobile-bar--tray-none {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 0 !important;
    border-top: 0 !important;
    box-shadow: none !important;
  }
}

/* Promo price lives inside the CTA — compact cluster, no stretched empty middle. */
.loan-credit-check-btn.loan-credit-check-btn--promo,
a.loan-credit-check-btn.loan-credit-check-btn--promo,
.cc-design-shell.loan-credit-check-btn--promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: .4rem .55rem;
  width: auto;
  max-width: 100%;
  padding-inline: .9rem 1rem;
}

.loan-credit-check-btn--promo .cc-cta-btn__main,
.loan-credit-check-btn--promo .ccp-btn__body {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  flex: 0 1 auto;
}

.loan-credit-check-btn--promo .ccp-btn__body {
  flex-direction: column;
  align-items: flex-start;
  gap: .05rem;
}

.loan-credit-check-btn--promo .cc-cta-btn__sep {
  flex: 0 0 1px;
  align-self: center;
  width: 1px;
  height: 1.35rem;
  margin: 0 .1rem;
  background: rgba(255, 255, 255, .4);
}

.loan-credit-check-btn--promo.ccp-btn .cc-cta-btn__sep {
  background: rgba(232, 200, 119, .5);
}

.cc-cta-promo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: .35rem;
  flex: 0 0 auto;
  line-height: 1.1;
  white-space: nowrap;
  margin: 0;
}

.cc-cta-promo__pct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .22rem .4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #3b1d6d;
  font-size: .64rem;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}

.cc-cta-promo__prices {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.cc-cta-promo__was {
  font-size: .64rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.cc-cta-promo__now {
  display: inline-flex;
  align-items: baseline;
  gap: .18rem;
  color: #fff;
  font-size: .86rem;
}

.cc-cta-promo__now b {
  font-weight: 800;
  letter-spacing: -.01em;
}

.cc-cta-promo__now small {
  font-size: .62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
}

.loan-credit-check-btn--promo > .bi-arrow-left,
.loan-credit-check-btn--promo .ccp-btn__arrow {
  flex: 0 0 auto;
  margin: 0;
  opacity: .95;
}

/* Premium navy: keep price readable on dark. */
.loan-credit-check-btn--promo.ccp-btn .cc-cta-promo__was {
  color: rgba(226, 232, 240, .75);
}

.loan-credit-check-btn--promo.ccp-btn .cc-cta-promo__now,
.loan-credit-check-btn--promo.ccp-btn .cc-cta-promo__now small {
  color: #fff;
}

@media (max-width: 991.98px) {
  .cc-mobile-bar .loan-credit-check-btn--promo,
  .cc-mobile-bar a.loan-credit-check-btn--promo {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
    padding-inline: .7rem .85rem;
  }

  .cc-mobile-bar .loan-credit-check-btn--promo .cc-cta-btn__main {
    flex: 0 1 auto;
  }

  .cc-mobile-bar .cc-cta-promo__pct {
    font-size: .58rem;
    padding: .18rem .32rem;
  }

  .cc-mobile-bar .cc-cta-promo__was {
    font-size: .58rem;
  }

  .cc-mobile-bar .cc-cta-promo__now {
    font-size: .8rem;
  }
}

/* Premium badge replaces shield when admin sets promo badge text. */
.ccp-btn__badge {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  color: #1a1205;
  letter-spacing: -.02em;
}
