/* Calculator-only tweaks. Modal/global UI comes from cg-bootstrap-ui.css */

/* Keep hero title white */
.cg-wrapper .cg-hero__title {
  color: #ffffff !important;
}

/* Help hidden unless toggled */
#cg-percentage-difference-calculator .cg-help--hidden {
  display: none !important;
}
#cg-percentage-difference-calculator .cg-help:not(.cg-help--hidden) {
  display: block !important;
}

/* Help wrapping */
#cg-percentage-difference-calculator .cg-help {
  margin-top: 6px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--cg-text-muted, #64748b);
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  max-width: 100% !important;
}

/* ✅ i button EXACTLY like previous calculators */
#cg-percentage-difference-calculator .cg-info {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  border-radius: 999px !important;
  border: 1px solid #16a34a !important;
  background: #ffffff !important;
  color: #16a34a !important;
  font-weight: 800 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin-left: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
#cg-percentage-difference-calculator .cg-info:hover {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.20) !important;
}
#cg-percentage-difference-calculator .cg-info:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.20) !important;
}

/* Radio group */
#cg-percentage-difference-calculator .pd-radio-group {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
#cg-percentage-difference-calculator .pd-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #0f172a;
}
#cg-percentage-difference-calculator .pd-radio input[type="radio"] {
  transform: translateY(-1px);
}

/* Formula spacing like previous calculators */
#cg-percentage-difference-calculator .pd-formula {
  margin-top: 8px;
}

/* Make subscripts look clean inside labels */
#cg-percentage-difference-calculator sub {
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
  position: relative;
  bottom: -0.2em;
}
