/* ═══════════════════════════════════════════════════════════
   feature-card — Figma component 2274:8970
   Section=RATES "Cek Ongkir" (2274:8968) ⇄ Section=PPOB "Beli Pulsa"
   (2274:8969), stacked as a .flip-card. Card chrome (.mock-card /
   .mock-card-head / .mock-btn / .mock-field / .mock-label) lives in
   style.css's How block — shared with the other How previews.
   Type is Inter, as drawn in Figma.
═══════════════════════════════════════════════════════════ */

/* Field stack — Figma "Input Data Cek Ongkir": flex-col gap-16 */
.fc-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* Input box — Figma Text Input: h-50 px-12 gap-12, 2px #e6e6e6, r-6 */
.fc-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  padding: 0 12px;
  background: var(--white, #fff);
  border: 2px solid #e6e6e6;
  border-radius: 6px;
  transition: border-color 0.15s;
}
.fc-box:focus-within { border-color: var(--primary, #3f8be7); }

/* Headline 1/14-Medium: Inter Medium 14/18; placeholder Neutral/Dark-03 */
.fc-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: #202939;
  text-overflow: ellipsis;
}
.fc-input::placeholder { color: #bdbfc2; opacity: 1; }
.fc-input--filled { color: #62676f; }   /* Figma draws the prefilled phone in Neutral/Dark-02 */
.fc-box[data-cb-box] .fc-input { cursor: pointer; }

.fc-chevron,
.fc-unit,
.fc-contacts {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  pointer-events: none;
}
.fc-chevron { transition: transform 0.2s; }
.fc-box.is-open .fc-chevron { transform: rotate(180deg); }

/* Shared combobox menu (style.css .field-menu) opens under this box too */
.fc-box.is-open { z-index: 30; }
.fc-box.is-open .field-menu { display: flex; }

/* ✕ clears the phone number */
.fc-clear {
  display: flex;
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.fc-clear img { display: block; width: 20px; height: 20px; }
.fc-clear:focus-visible { outline: 2px solid var(--primary, #3f8be7); outline-offset: 2px; }
.fc-box.is-empty .fc-clear { visibility: hidden; }

/* Question + nominals, and the empty state shown instead while the number
   field is empty, share one grid cell: the taller one sets the height, so the
   card never changes size when they swap. .is-empty is set on .fc-body by
   feature-card.js. Hidden → opacity 0 + visibility, so it is also out of the
   tab order and the accessibility tree. */
.fc-body {
  display: grid;
  width: 100%;
}
.fc-pulsa-block,
.fc-empty {
  grid-area: 1 / 1;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.fc-pulsa-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.fc-body.is-empty .fc-pulsa-block,
.fc-body:not(.is-empty) .fc-empty {
  opacity: 0;
  visibility: hidden;
}

/* Empty state — phone icon on a pale-blue disc + a muted line (Inter) */
.fc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.fc-empty-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  background: #e9f4ff;
  border-radius: 50%;
}
.fc-empty-art img { display: block; width: 44px; height: 44px; }
.fc-empty-text {
  font-family: 'Inter', var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #62676f;
}

/* "Pesan Sekarang" can't be used without a number: muted, no total */
.fc-order:disabled,
.fc-order:disabled:hover {
  background: #b9d4f5;
  cursor: not-allowed;
  transform: none;
}
.fc-body.is-empty ~ .fc-order .fc-total { visibility: hidden; }

/* "Mau isi pulsa berapa?" — Inter Bold 16 */
.fc-question {
  width: 100%;
  font-family: 'Inter', var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  color: #202939;
}

/* Two rows of two — Figma: gap-17 across, rows sit in the card's gap-24 */
.fc-pulsa-grid {
  display: grid;
  grid-template-columns: repeat(2, 163px);
  column-gap: 17px;
  row-gap: 24px;
}

/* Pulsa option — Figma: 1px black/20%, r-8, p-12, gap-4, w-163.
   Selected (Figma 50.000): Primary/Lighter #baeeff fill + primary border */
.fc-pulsa {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 163px;
  padding: 12px;
  text-align: left;
  background: var(--white, #fff);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.fc-pulsa:hover { border-color: var(--primary, #3f8be7); }
.fc-pulsa[aria-checked="true"] {
  background: #baeeff;
  border-color: var(--primary, #3f8be7);
}
.fc-pulsa:focus-visible { outline: 2px solid var(--primary, #3f8be7); outline-offset: 2px; }

.fc-pulsa-name {
  font-family: 'Inter', var(--font);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  color: #62676f;
}
.fc-pulsa-price {
  font-family: 'Inter', var(--font);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #202939;
}
