/**
 * Stan skupu klienta (2026-12-04): licznik na SPRZEDAJĘ i baner w hero.
 * Dane z lazy buildera StanKlienta (rebooks_skup_panel).
 */

/* Licznik na przycisku SPRZEDAJĘ. */
.rbh > .rbh-ile {
  order: 2;
  position: relative;
  z-index: 2;
  align-self: center;
  transform: translateY(-20px);
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin: 0 -6px 0 -28px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #b5441f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
}
.rbh > .rbh-ile--czeka { background: #2f7d4f; }
.rbh > .rbh-ile--nadaj { background: #2b2620; }
.rbh:not(:has(.rbh-sprzedaj)) .rbh-ile { display: none; }

/* Baner w hero: zastępuje nagłówek, opis, pole ISBN i przerwę. */
.rb-hero:has(.rb-stan:not(.rb-stan--lekki)) :is(.rb-hero__h1, .rb-hero__lead, .rb-hero__ticks, .rb-urlop, .addbooks-anonim) { display: none; }
.rb-hero:has(.rb-stan--lekki) :is(.rb-hero__h1, .rb-hero__lead) { display: none; }

.rb-stan { position: relative; z-index: 1; max-width: 520px; margin-bottom: 18px; }
.rb-stan__tytul {
  margin: 0 0 10px;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: #2b2620;
}
.rb-stan__tekst { margin: 0 0 18px; font-size: 17px; line-height: 1.5; color: #3a342b; }

.rb-stan__karta {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  font-weight: 600;
  color: #2b2620;
}
.rb-stan__kropka { width: 10px; height: 10px; border-radius: 50%; background: #b5441f; flex: 0 0 auto; }
.rb-stan--czeka .rb-stan__kropka { background: #2f7d4f; }

.rb-stan__przycisk {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 26px;
  border-radius: 12px;
  background: #b5441f;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
}
.rb-stan__przycisk:hover { background: #9c3a19; }
.rb-stan--czeka .rb-stan__przycisk { background: #2f7d4f; }
.rb-stan--czeka .rb-stan__przycisk:hover { background: #276a43; }
.rb-stan--nadaj .rb-stan__przycisk { background: #2b2620; }
.rb-stan--nadaj .rb-stan__przycisk:hover { background: #000; }

/* Pasek postępu: 4 odcinki. */
.rb-stan__postep {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 420px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: #6b604c;
}
.rb-stan__postep li { padding-top: 9px; border-top: 4px solid rgba(43, 38, 32, .15); border-radius: 2px; }
.rb-stan__postep li.zrobione { border-top-color: #2f7d4f; color: #2b2620; }
.rb-stan__postep li.teraz { border-top-color: #2b2620; color: #2b2620; font-weight: 700; }

@media (max-width: 575px) {
  .rbh > .rbh-ile { transform: translateY(-17px); }
  .rb-stan__tekst { font-size: 16px; }
  .rb-stan:not(.rb-stan--lekki) { margin-bottom: 110px; }
  .rb-stan__przycisk { width: 100%; justify-content: center; }
}
