/* 4 Nov 2026: Compact browser-only estimates, using the site's font and color
   tokens. Figures use the cost page's planning counts and supplied rate ranges. */
.cost-flow {
  margin: 0 0 32px;
  padding: 20px;
  border-radius: 12px;
  background: #E8F0F8;
  color: #1E293B;
  font-family: "Source Serif 4", "Source Serif 4 Fallback", Georgia, serif;
}
.cost-flow *, .cost-flow *::before, .cost-flow *::after { box-sizing: border-box; }
.cost-flow [hidden] { display: none !important; }
.cost-flow p { margin: 0; }
.cost-flow .cf-title, .cost-flow .cf-step-title, .cost-flow button,
.cost-flow .cf-grafts, .cost-flow .cf-price, .cost-flow .cf-link {
  font-family: "Libre Franklin", "Libre Franklin Fallback", system-ui, sans-serif;
}
.cost-flow .cf-title { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.cost-flow .cf-sub { margin-top: 6px; color: #475569; font-size: 15px; line-height: 1.5; }
.cost-flow .cf-step-title { margin: 20px 0 12px; font-size: 18px; font-weight: 600; line-height: 1.4; scroll-margin-top: 80px; }
.cost-flow .cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cost-flow .cf-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 44px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: #FFFFFF;
  color: #1E293B;
  text-align: left;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .16s ease;
}
.cost-flow .cf-option:hover { background: #C5D9ED; }
.cost-flow .cf-option:active { background: #8DB3DB; }
.cost-flow .cf-option svg { width: 48px; height: 56px; margin-bottom: 6px; flex-shrink: 0; }
.cost-flow .cf-option-name { font-weight: 600; }
.cost-flow .cf-option-note { display: block; margin-top: 3px; font-size: 13px; color: #475569; }
.cost-flow .cf-unsure { grid-column: 1 / -1; justify-content: center; }
.cost-flow .cf-methods { display: grid; gap: 8px; }
.cost-flow .cf-methods .cf-option { padding: 16px; }
.cost-flow .cf-grafts { font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.cost-flow .cf-price { margin: 12px 0 20px; color: #0A4F8C; font-size: clamp(24px, 5vw, 32px); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cost-flow .cf-baht { display: block; margin-top: 6px; color: #475569; font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.cost-flow .btn-cta { width: 100%; min-height: 44px; padding: 14px 16px; text-align: center; }
.cost-flow .cf-reassurance { margin: 10px 0 24px; font-size: 14px; line-height: 1.5; color: #475569; }
.cost-flow .cf-copy { margin: 0 0 14px; font-size: 16px; line-height: 1.6; }
.cost-flow .cf-fine { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: #475569; }
.cost-flow .cf-link, .cost-flow .cf-text-button { display: flex; align-items: center; min-height: 44px; width: fit-content; max-width: 100%; padding: 10px 0; color: #084070; font-size: 14px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.cost-flow .cf-text-button { border: 0; background: transparent; cursor: pointer; }
.cost-flow .cf-rate { margin-top: 16px; font-size: 12px; line-height: 1.5; color: #475569; }
.cost-flow :focus-visible { outline: 3px solid #0A4F8C; outline-offset: 3px; }
.cost-flow ::selection { background: #C5D9ED; color: #042038; }
/* The watched static button makes quote-bar.js yield as soon as it is visible. */
body:has([data-cost-flow]) .quote-bar:not(.is-on) { transition: none; }
@media (min-width: 640px) {
  .cost-flow { padding: 24px; }
  .cost-flow .cf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Keep the existing heading and first choices together on a phone. */
@media (max-width: 639px) {
  article:has(> .cost-flow) { padding-top: 16px; }
  article:has(> .cost-flow) > h1 { font-size: 28px; line-height: 1.2; margin-bottom: 16px; }
  article:has(> .cost-flow) > h1 + div { margin-bottom: 16px; padding-bottom: 0; border: 0; }
  .cost-flow { padding: 16px; }
  .cost-flow .cf-title { font-size: 22px; }
  .cost-flow .cf-step-title { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cost-flow *, body:has([data-cost-flow]) .quote-bar { transition: none; animation: none; }
  html:has([data-cost-flow]) { scroll-behavior: auto; }
}
