/* Scoped to the comparison so existing product tables remain untouched. */
#health-compare {
  --hc-count: 8;
  --hc-ink: #193d5a;
  --hc-muted: #5c7081;
  --hc-line: #dbe6ee;
  padding: clamp(48px, 7vw, 88px) 24px !important;
  background: #f7fafc !important;
  color: var(--hc-ink);
  scroll-margin-top: 90px;
}
#health-compare *, #health-compare *::before, #health-compare *::after { box-sizing: border-box; }
#health-compare [hidden] { display: none !important; }
#health-compare .hc-inner { width: min(1240px, 100%); min-width: 0; margin: auto; }
#health-compare .hc-heading { max-width: 760px; margin: 0 auto 32px; text-align: center; }
#health-compare .hc-eyebrow { color: #b73366; font-size: 14px; font-weight: 700; margin: 0 0 12px; }
#health-compare h2 { margin: 0 0 16px; font: 700 clamp(28px, 4vw, 44px)/1.4 'Prompt',sans-serif; color: var(--hc-ink); }
#health-compare h2 em { color: #23689e; font-style: normal; }
#health-compare .hc-heading > p:last-child { color: var(--hc-muted); font-size: 16px; line-height: 1.8; }
#health-compare .hc-insights { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 28px; }
#health-compare .hc-insights > div { padding: 20px; border: 1px solid var(--hc-line); border-radius: 14px; background: white; }
#health-compare .hc-insights strong { font-size: 16px; }
#health-compare .hc-insights p { margin: 8px 0 0; color: var(--hc-muted); font-size: 14px; line-height: 1.75; }
#health-compare .hc-controls { padding: 24px; border: 1px solid var(--hc-line); border-radius: 20px; background: white; }
#health-compare .hc-picker { min-width: 0; padding: 0; margin: 0; border: 0; }
#health-compare legend { padding: 0; font-size: 18px; font-weight: 700; }
#health-compare #hc-pick-help { margin: 6px 0 16px; font-size: 14px; color: var(--hc-muted); }
#health-compare .hc-plan-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
#health-compare .hc-plan-option { display: flex; align-items: center; gap: 10px; min-height: 78px; padding: 13px; border: 1px solid var(--hc-line); border-radius: 12px; cursor: pointer; }
#health-compare .hc-plan-option:has(input:checked) { background: #edf6fe; border-color: #2678b8; box-shadow: inset 0 0 0 1px #2678b8; }
#health-compare input[type=checkbox] { flex-shrink: 0; width: 18px; height: 18px; accent-color: #1b6dac; }
#health-compare .hc-plan-option strong { display: block; font-size: 14px; line-height: 1.5; }
#health-compare .hc-plan-option small { display: block; margin-top: 4px; font-size: 13px; color: var(--hc-muted); }
#health-compare .hc-toolbar, #health-compare .hc-viewbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
#health-compare .hc-viewbar { padding-top: 20px; border-top: 1px solid var(--hc-line); }
#health-compare .hc-presets, #health-compare .hc-views { display: flex; flex-wrap: wrap; gap: 8px; }
#health-compare button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--hc-line); border-radius: 9px; background: #fff; color: var(--hc-ink); font: 600 14px/1.4 'Sarabun',sans-serif; cursor: pointer; }
#health-compare button:hover { border-color: #2678b8; }
#health-compare button[aria-pressed=true] { background: #193d5a; border-color: #193d5a; color: #fff; }
#health-compare .hc-difference { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; font-size: 14px; cursor: pointer; }
#health-compare #hc-status { margin: 0; font-size: 14px; color: var(--hc-muted); }
#health-compare .hc-table-hint { margin: 22px 0 12px; font-size: 14px; line-height: 1.7; color: var(--hc-muted); }
#health-compare .hc-table-scroll { max-height: min(720px,75vh); overflow: auto; border: 1px solid #cddde9; border-radius: 16px; background: #fff; overscroll-behavior-x: contain; scrollbar-color: #8baec9 #edf3f7; }
#health-compare .hc-table { width: max(100%, calc(220px + var(--hc-count) * 220px)) !important; min-width: 0 !important; table-layout: fixed; border-collapse: separate !important; border-spacing: 0; margin: 0; border: 0 !important; border-radius: 0 !important; overflow: visible !important; box-shadow: none !important; font-size: 14px; }
#health-compare .hc-table th, #health-compare .hc-table td { width: 220px; padding: 18px !important; border: 0 !important; border-right: 1px solid #e6edf3 !important; border-bottom: 1px solid #e6edf3 !important; text-align: left !important; white-space: normal !important; vertical-align: top; overflow-wrap: break-word; font-size: 14px !important; line-height: 1.7; color: #3d5367 !important; background: white !important; }
#health-compare .hc-table thead th { position: sticky; top: 0; z-index: 4; color: white !important; background: #1d527c !important; }
#health-compare .hc-table thead th a { display: block; margin: 7px 0; color: white; text-decoration: underline; text-underline-offset: 4px; font-size: 16px; }
#health-compare .hc-family { display: block; font-size: 12px; font-weight: 400; color: #d1e6f7; }
#health-compare .hc-limit { display: block; font: 700 26px/1.3 'Prompt',sans-serif; }
#health-compare .hc-limit small { font: 400 12px/1.5 'Sarabun',sans-serif; }
#health-compare .hc-table .hc-row-title { position: sticky; left: 0; z-index: 2; width: 220px; background: #f1f6fa !important; color: var(--hc-ink) !important; box-shadow: 3px 0 8px rgba(20,50,75,.04); }
#health-compare .hc-table thead .hc-row-title { z-index: 6; background: #163a5b !important; color: white !important; }
#health-compare .hc-table .hc-group-label th { background: #e5eff6 !important; color: #184c73 !important; font-weight: 700; padding-block: 11px !important; }
#health-compare .hc-unit { display: block; font-size: 12px; font-weight: 400; color: var(--hc-muted); }
#health-compare .hc-table td.hc-extra { color: #84531d !important; background: #fffcf5 !important; }
#health-compare .hc-table td.hc-excluded { color: #7b8590 !important; }
#health-compare .hc-row-note { margin-top: 8px; font-weight: 400; }
#health-compare .hc-row-note summary { padding-block: 4px; color: #1466a3; cursor: pointer; font-size: 13px; }
#health-compare .hc-row-note p { margin: 8px 0 0; font-size: 13px; line-height: 1.75; }
#health-compare .hc-detail-link { display: block; color: #1466a3; font-weight: 700; padding: 7px 0; }
#health-compare .hc-source-link { display: block; color: var(--hc-muted); padding: 7px 0; font-size: 13px; }
#health-compare .hc-notes { margin: 20px 0; padding: 20px 24px; border-left: 3px solid #7fa8c8; background: #eef4f8; border-radius: 0 12px 12px 0; }
#health-compare .hc-notes p { margin: 0 0 10px; font-size: 14px; line-height: 1.85; color: #4c6375; }
#health-compare .hc-notes p:last-child { margin-bottom: 0; }
#health-compare .hc-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 26px; border-radius: 16px; background: #193d5a; color: white; }
#health-compare .hc-next h3 { margin: 0 0 8px; color: white; font-size: 18px; }
#health-compare .hc-next p { margin: 0; font-size: 14px; color: #d4e3ed; line-height: 1.8; }
#health-compare .hc-next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
#health-compare .hc-next-actions a { color: white; font-size: 14px; font-weight: 600; }
#health-compare .hc-next-actions .hc-quote { display: inline-flex; align-items: center; min-height: 46px; padding: 12px 18px; border-radius: 10px; background: #087e43; text-decoration: none; }
#health-compare .hc-sources { margin-top: 22px; color: var(--hc-muted); font-size: 14px; line-height: 1.8; }
#health-compare .hc-sources summary { min-height: 44px; cursor: pointer; padding-block: 10px; }
#health-compare .hc-sources ul { padding-left: 22px; }
#health-compare .hc-sources a { color: #1466a3; }
#health-compare .hc-empty { padding: 18px; margin: 0; color: var(--hc-muted); }
#health-compare :is(button,input,a,summary,.hc-table-scroll):focus-visible { outline: 3px solid #de6693; outline-offset: 3px; }
#health-compare .hc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 900px) {
  #health-compare .hc-plan-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #health-compare .hc-insights { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  #health-compare { padding: 48px 16px !important; }
  #health-compare .hc-controls { padding: 16px; }
  #health-compare .hc-plan-option { padding: 10px; gap: 7px; }
  #health-compare .hc-plan-option strong { font-size: 13px; }
  #health-compare .hc-table { width: calc(140px + var(--hc-count) * 190px) !important; }
  #health-compare .hc-table th, #health-compare .hc-table td { width: 190px; padding: 13px !important; }
  #health-compare .hc-table .hc-row-title { width: 140px; }
  #health-compare .hc-table-scroll { max-height: 70vh; }
  #health-compare .hc-notes, #health-compare .hc-next { padding: 18px; }
  #health-compare .hc-next-actions { width: 100%; }
}
