/* =========================================================
   Redox Identification (redox-id) — Phase 1 (Patch A)
   Strong anti-overlap rules for Elementor + theme CSS
   ========================================================= */

#calc-root [data-mode="redoxid"] .tool-card{
  overflow-wrap:anywhere;
  word-break:break-word;
}

#calc-root [data-mode="redoxid"] .tool-card .info-box,
#calc-root [data-mode="redoxid"] .tool-card .status{
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.65;
  padding:14px 16px;
  display:block;
  position:relative;
}

/* Force normal flow INSIDE our result boxes only */
#calc-root [data-mode="redoxid"] .tool-card .info-box *,
#calc-root [data-mode="redoxid"] .tool-card .status *{
  position:static !important;
  float:none !important;
  clear:none !important;
}

#calc-root [data-mode="redoxid"] .tool-card .rid-line{
  display:block !important;
  margin:8px 0 !important;
  line-height:1.65 !important;
}

#calc-root [data-mode="redoxid"] table.redoxbal-table td,
#calc-root [data-mode="redoxid"] table.redoxbal-table th{
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.55;
}

#calc-root [data-mode="redoxid"] h2{ margin-top:0; }
#calc-root [data-mode="redoxid"] h3{ margin:18px 0 10px; }

#calc-root [data-mode="redoxid"] .rid-badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:#f4f6fa;
  border:1px solid #e2e4e8;
  font-weight:650;
  margin:2px 8px 2px 0;
}

#calc-root [data-mode="redoxid"] .rid-warn{
  background:#fff7e6;
  border:1px solid #ffd591;
}

#calc-root [data-mode="redoxid"] .rid-ok{
  background:#f6ffed;
  border:1px solid #b7eb8f;
}

#calc-root [data-mode="redoxid"] .rid-mini{
  font-size:0.95em;
  color:var(--muted);
}
/* ===== Anti-overlap table renderer ===== */

#calc-root [data-mode="redoxid"] .rid-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 6px;
}

#calc-root [data-mode="redoxid"] .rid-table td{
  background:transparent;
  padding:4px 2px;
  line-height:1.6;
  vertical-align:top;
}

#calc-root [data-mode="redoxid"] .rid-table .rid-badge{
  display:inline-block;
  margin-right:6px;
}
