/* Postpaid bills on the order form (fp2-bill.js). */
.fp2-bill-mode #captcha,
.fp2-bill-mode #order-pin,
.fp2-bill-mode .fp2-pay .fp2-field,
.fp2-bill-mode .fp2-remaining {
  display: none;
}

.fp2-bill-card {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--fp2-border-strong, #c9d8e2);
  border-radius: var(--fp2-radius-md, 10px);
  background: var(--fp2-primary-soft, #e6f3fa);
  color: var(--fp2-text, #0b2a3f);
}

.fp2-bill-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.fp2-bill-list {
  margin: 0 0 10px;
}

.fp2-bill-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--fp2-border, #dfe8ee);
  font-size: 14px;
}

.fp2-bill-row span {
  color: var(--fp2-muted, #5b7083);
}

.fp2-bill-row b {
  text-align: right;
  overflow-wrap: anywhere;
}

.fp2-bill-row.is-total {
  border-bottom: 0;
  font-size: 16px;
}

.fp2-bill-note {
  margin: 4px 0;
  font-size: 13px;
  color: var(--fp2-muted, #5b7083);
}

.fp2-bill-msg {
  margin: 0 0 10px;
  font-size: 14px;
}

.fp2-bill-msg.is-error {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--fp2-danger-soft, #fbe7e2);
  color: var(--fp2-danger, #a3321f);
}

.fp2-bill-msg.is-ok {
  color: var(--fp2-success-text, #075e40);
}

.fp2-bill-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Re-check before paying (fp2-bill.js): an empty slot takes no space, a changed amount is a warning. */
.fp2-bill-card:empty {
  display: none;
}

.fp2-bill-card.is-changed {
  border-color: var(--fp2-warn-border, #e3b341);
  background: var(--fp2-warn-soft, #fff6df);
}

.fp2-bill-msg.is-warn {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--fp2-warn-soft, #fff1cc);
  color: var(--fp2-warn-text, #7a4b00);
  font-weight: 600;
}

.fp2-bill-actions .fp2-btn {
  white-space: nowrap;
}

#fp2-bill-detail .fp2-bill-actions {
  margin-top: 0;
}

/* Bill detail page, "Bayar tagihan": the button is centred and never wider than its card (the desktop side column is narrow);
   it may wrap, but the amount stays on one line. */
[data-fp2-bill-static] .fp2-field {
  margin-bottom: 20px;
}

.fp2-bill-pay-actions {
  justify-content: center;
  container-type: inline-size;
}

/* The narrow desktop side column: label and amount stacked on two lines, full card width, no separating dot. */
@container (max-width: 270px) {
  .fp2-bill-pay-actions .fp2-btn {
    width: 100%;
    flex-direction: column;
  }

  .fp2-bill-pay-dot {
    display: none;
  }
}

.fp2-bill-pay-actions .fp2-btn {
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 6px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding: 10px 24px;
}

.fp2-bill-pay-part {
  white-space: nowrap;
}

/* Guide: "Cara mendapatkan nomor VA". */
.fp2-bill-guide {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--fp2-border, #dfe8ee);
  border-radius: 8px;
  font-size: 14px;
}

.fp2-bill-guide summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--fp2-primary, #0b6aa2);
}

.fp2-bill-guide ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.fp2-bill-guide li {
  margin: 4px 0;
}

.fp2-bill-guide img {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  border-radius: 8px;
}

/* "Batal" under a bill: the ghost button is made for dark panels (white text); the bill card is light */
.fp2-bill-actions .fp2-btn-ghost {
  border-color: var(--fp2-primary, #0b72b5);
  color: var(--fp2-primary, #0b72b5);
}

.fp2-bill-actions .fp2-btn-ghost:hover,
.fp2-bill-actions .fp2-btn-ghost:focus-visible {
  background: rgba(11, 114, 181, .08);
  color: var(--fp2-primary-dark, #085a8f);
}
