/* Blood Test Finder — page-specific styles, scoped under .btf-wrap.
   Reuses the site's shared design tokens (--teal-*, --sand, --ink, etc.)
   defined in style.css, loaded before this file on the same page. */

.btf-wrap { max-width: 780px; margin: 0 auto; }

.btf-card {
  background: var(--white); border: 1px solid rgba(1,47,53,0.1); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 24px; margin-bottom: 20px;
}
.btf-card h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 14px; color: var(--teal-ink); }
.btf-section-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); font-weight: 700; margin-bottom: 8px; }
.btf-finder-help { margin-top: 12px; }

.btf-search-box { position: relative; }
.btf-search-input {
  width: 100%; padding: 13px 16px; font-size: 1rem; border: 1.5px solid rgba(1,47,53,0.15);
  border-radius: var(--radius-sm); background: var(--sand); color: var(--ink); font-family: inherit;
}
.btf-search-input:focus { outline: none; border-color: var(--teal-bright); }
.btf-suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--white);
  border: 1px solid rgba(1,47,53,0.12); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft);
  max-height: 320px; overflow-y: auto; z-index: 20; display: none;
}
.btf-suggestion { padding: 10px 14px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.btf-suggestion:hover, .btf-suggestion.is-active { background: var(--sand-dim); }
.btf-s-name { font-size: 0.92rem; color: var(--ink); }
.btf-s-meta { font-size: 0.76rem; color: var(--ink-soft); white-space: nowrap; }
.btf-no-results { padding: 12px 14px; color: var(--ink-soft); font-size: 0.85rem; }
.btf-badge-panel { display: inline-block; background: var(--sand-dim); color: var(--teal-text); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-right: 6px; }

.btf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btf-chip {
  display: flex; align-items: center; gap: 7px; background: var(--sand-dim); color: var(--ink);
  border: 1px solid var(--teal-bright); border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 0.85rem;
}
.btf-chip button { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 4px; border-radius: 50%; }
.btf-chip button:hover { background: rgba(1,47,53,0.08); color: #b91c1c; }
.btf-empty-chips { color: var(--ink-soft); font-size: 0.85rem; font-style: italic; }

.btf-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btf-actions .btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btf-results { display: none; }
.btf-results.is-visible { display: block; }
.btf-results h2 { margin-top: 0; }

.btf-badge { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.btf-badge-unicare { background: var(--sand-dim); color: var(--teal-text); }
.btf-badge-pantai { background: rgba(1,47,53,0.08); color: var(--ink-soft); }
.btf-badge-tagon { background: #fef3c7; color: #8a5a08; margin-left: 4px; }

.btf-combo-table, .btf-combo-table + table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 0.9rem; }
.btf-combo-table th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); border-bottom: 1px solid rgba(1,47,53,0.1); padding: 6px 8px 8px 0; font-weight: 700; }
.btf-combo-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid rgba(1,47,53,0.08); vertical-align: top; }
.btf-combo-table tr:last-child td { border-bottom: none; }
.btf-price { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.btf-item-tests { font-size: 0.78rem; color: var(--ink-soft); margin-top: 3px; }
.btf-combo-table tfoot td { border-top: 1.5px solid var(--teal-ink); border-bottom: none; font-weight: 700; padding-top: 12px; }
.btf-muted { color: var(--ink-soft); }

.btf-savings-banner {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: #dcfce7; color: #15803d;
  font-size: 0.9rem; font-weight: 600;
}
.btf-savings-banner.btf-none { background: var(--sand-dim); color: var(--ink-soft); font-weight: 400; }

.btf-flag-box { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fef3c7; color: #8a5a08; font-size: 0.85rem; }
.btf-flag-box.btf-critical { background: #fee2e2; color: #b91c1c; }

.btf-ref { border: 1px solid rgba(1,47,53,0.1); border-radius: var(--radius-lg); background: var(--white); margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow-card); }
.btf-ref > summary { padding: 16px 20px; cursor: pointer; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--teal-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.btf-ref > summary::-webkit-details-marker { display: none; }
.btf-ref > summary::after { content: "+"; font-family: var(--font-body); font-weight: 400; font-size: 1.3rem; color: var(--ink-soft); }
.btf-ref[open] > summary::after { content: "–"; }
.btf-ref-body { padding: 0 20px 18px; }
.btf-ref-group { margin-top: 10px; }
.btf-ref-group h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal-text); margin: 16px 0 6px; }
.btf-ref-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(1,47,53,0.08); font-size: 0.85rem; }
.btf-ref-row:last-child { border-bottom: none; }
.btf-rn { flex: 1; color: var(--ink); }
.btf-rp { white-space: nowrap; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.btf-ref-note { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 10px; }

.btf-overflow-x { overflow-x: auto; }

@media (max-width: 560px) {
  .btf-card { padding: 18px; }
}
