/*
 * WealthR — wr-tools.css
 * ─────────────────────────────────────────────────────────────
 * Styling for the in-context CTA panel rendered by wr-tools.js.
 * Loaded on every /tools/* calculator page.
 *
 * Designed to match WealthR's existing palette:
 *   --green:      #00A85B
 *   --green-soft: #E6F7EE (approx.)
 *   --border:     rgba(127,127,127,0.16)
 *
 * Self-sufficient (no dependency on host page CSS variables).
 */

.wr-tool-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 24px 0 8px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #E6F7EE 0%, #F4FBF6 100%);
  border: 1px solid #BFE6D0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 168, 91, 0.05);
  font-family: inherit;
}

.wr-tool-cta-copy {
  flex: 1 1 320px;
  min-width: 0;
}

.wr-tool-cta-hook {
  font-size: 15.5px;
  font-weight: 700;
  color: #0E2D17;
  line-height: 1.35;
  margin-bottom: 4px;
}

.wr-tool-cta-sub {
  font-size: 13.5px;
  color: #355C42;
  line-height: 1.5;
}

.wr-tool-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  background: #00A85B;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  font-family: inherit;
}

.wr-tool-cta-btn:hover {
  background: #009450;
  color: #ffffff !important;
  text-decoration: none;
}

.wr-tool-cta-btn:active {
  transform: translateY(1px);
}

@media (max-width: 560px) {
  .wr-tool-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 16px;
    gap: 12px;
  }
  .wr-tool-cta-btn {
    width: 100%;
    padding: 12px 16px;
  }
}
