/* Bentuk pil dari habits-site/SiteFooter.dc.html. */
.hbt-news {
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--hbt-font);
}
.hbt-news__label { font-size: 14px; font-weight: 500; }
.hbt-news__desc  { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--hbt-body); max-width: 34ch; }

.hbt-news__field {
  display: flex; align-items: center;
  width: 100%; max-width: 320px; height: 46px;
  padding: 0 6px 0 20px; gap: 10px;
  background: #fff;
  border: 1px solid #D8D8D4;
  border-radius: var(--hbt-pill);
}
.hbt-news__field:focus-within { border-color: var(--hbt-ink); }

/*
 * Selektor menyertakan `input` supaya spesifisitasnya (0,1,1) menyamai
 * reset.css tema, yang memberi SEMUA input border 1px #666, sudut 3px, dan
 * padding .5rem 1rem. Tanpa itu border gelap tema menembus ke dalam pil.
 */
input.hbt-news__input {
  flex: 1; min-width: 0; width: auto;
  height: auto; margin: 0; padding: 0;
  border: 0; border-radius: 0; outline: 0;
  background: transparent;
  font-family: inherit; font-size: 13.5px; color: var(--hbt-ink);
}
input.hbt-news__input:focus { border: 0; box-shadow: none; }
.hbt-news__input::placeholder { color: #A0A0A0; }

.hbt-news__btn {
  height: 34px; padding: 0 18px;
  border: 0; border-radius: var(--hbt-pill);
  background: var(--hbt-ink); color: #fff;
  font-family: inherit; font-size: 13px; cursor: pointer;
  white-space: nowrap;
}
.hbt-news__btn:hover:not(:disabled),
.hbt-news__btn:focus:not(:disabled) { background: var(--hbt-accent); color: #fff; }
.hbt-news__btn:focus { outline: none; }
.hbt-news__btn:focus-visible { outline: 2px solid var(--hbt-accent); outline-offset: 2px; }
.hbt-news__btn:disabled { background: var(--hbt-ink); opacity: .6; cursor: default; }

.hbt-news--stacked .hbt-news__field {
  flex-direction: column; align-items: stretch;
  height: auto; border-radius: var(--hbt-radius); padding: 8px; gap: 8px;
}
input.hbt-news--stacked .hbt-news__input,
.hbt-news--stacked input.hbt-news__input { height: 34px; padding: 0 12px; }
.hbt-news--stacked .hbt-news__btn   { width: 100%; height: 42px; }

.hbt-news__consent { margin: 0; font-size: 12px; color: var(--hbt-muted); }
.hbt-news__msg     { margin: 0; font-size: 13px; min-height: 1em; }
.hbt-news.is-ok  .hbt-news__msg { color: var(--hbt-accent); }
.hbt-news.is-err .hbt-news__msg { color: var(--hbt-sale); }
