/* Bar promo di atas header. Angka dari kanvas "Bedah Desain Beautyhaul", Bedah 6. */

.elementor-widget-habits_promo_bar { width: 100%; }   /* CLAUDE.md §5.12 */

/*
 * Tinggi dipesan sejak render server, jadi bar tidak mendorong halaman turun
 * saat JS jalan. Hanya bar yang semua itemnya di luar jadwal yang hilang.
 */
.hbt-pb { --hbt-pb-text-h: 30px; --hbt-pb-img-h: 30px; font-family: var(--hbt-font); }
.hbt-pb__bar { position: relative; overflow: hidden; }
.hbt-pb__bar[hidden] { display: none; }
.hbt-pb__bar--text { height: var(--hbt-pb-text-h); background: #EEF3EE; }
.hbt-pb__bar--img { height: var(--hbt-pb-img-h); }

/*
 * Item bertumpuk di tempat yang sama: yang tayang di posisi 0, yang berikut
 * menunggu di bawah, yang baru lewat naik ke atas. Kelas ganda: <a> kena
 * Theme Style → Link (0,1,1).
 */
.hbt-pb__item.hbt-pb__item {
  position: absolute; inset: 0;
  display: block; box-sizing: border-box;
  padding: 0 16px;
  background: var(--hbt-pb-bg, #EEF3EE);
  color: var(--hbt-pb-fg, #4F6350);
  font-size: 13px; font-weight: 500; line-height: var(--hbt-pb-text-h);
  text-align: center; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform: translateY(100%);
  transition: transform .45s ease;
}
a.hbt-pb__item.hbt-pb__item:hover { color: var(--hbt-pb-fg, #4F6350); text-decoration: underline; }
.hbt-pb__item.hbt-pb__item[hidden] { display: none; }
.hbt-pb__item.is-on { transform: none; }
.hbt-pb__item.is-out { transform: translateY(-100%); }
/* Tanpa JS: item pertama tampil diam. */
.hbt-pb:not(.is-ready) .hbt-pb__item:first-child { transform: none; }

.hbt-pb__item--img.hbt-pb__item--img { padding: 0; background: transparent; line-height: 0; }
.hbt-pb__item--img picture { display: block; width: 100%; height: 100%; }
.hbt-pb__img.hbt-pb__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }

@media (max-width: 767px) {
  .hbt-pb { --hbt-pb-img-h: 20px; }
  /* Hanya bar teks: kelas ganda sama spesifisitasnya dengan --img dan menang karena datang belakangan. */
  .hbt-pb__bar--text .hbt-pb__item.hbt-pb__item { font-size: 12px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hbt-pb__item.hbt-pb__item { transition: none; }
}
