/* -----------------------------
   Overall wrapper
------------------------------ */
.soloflowai-calculator-wrapper {
  padding: 2rem;
  border: 1px solid #eee;
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* -----------------------------
   Header & billing toggle
------------------------------ */
.soloflowai-calculator-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.soloflowai-header-subtitle {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: #555;
  max-width: 36rem;
}

.soloflowai-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: #f5f5f5;
}

.soloflowai-billing-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #444;
}

.soloflowai-billing-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  color: #444;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

/* Active state handled via JS */
.soloflowai-billing-btn.is-active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

/* -----------------------------
   Layout & categories
------------------------------ */
.soloflowai-calculator-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.soloflowai-category-section {
  border-top: 1px solid #f0f0f0;
  padding-top: 1.5rem;
}

.soloflowai-category-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Grid of module cards */
.soloflowai-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* -----------------------------
   Module card
------------------------------ */
.soloflowai-module-card {
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  background: #fafafa;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.soloflowai-module-card:hover {
  border-color: #0ea5e9;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.soloflowai-module-card.is-selected {
  border-color: #0ea5e9;
  background: #ecfeff;
}

/* Recommended pill */
.soloflowai-module-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background-color: #eef2ff;
  color: #4f46e5;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* -----------------------------
   Pricing block
------------------------------ */
.soloflowai-module-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 0.4rem;
}

.soloflowai-module-price-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.soloflowai-module-price-main {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111827;
}

.soloflowai-module-price-suffix {
  font-size: 0.9rem;
  color: #4b5563;
}

.soloflowai-module-price-save {
  margin-left: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #059669;
}

/* Only one price line visible per billing mode */
.soloflowai-calculator-wrapper[data-soloflowai-billing-mode="monthly"]
  .soloflowai-module-price-yearly {
  display: none;
}

.soloflowai-calculator-wrapper[data-soloflowai-billing-mode="yearly"]
  .soloflowai-module-price-monthly {
  display: none;
}

/* -----------------------------
   Title + checkbox row
------------------------------ */
.soloflowai-module-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.soloflowai-module-title-row input[type="checkbox"] {
  flex-shrink: 0;
  cursor: pointer;
}

.soloflowai-module-title-text {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

/* -----------------------------
   Description
------------------------------ */
.soloflowai-module-description {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #555;
  margin: 0;
}

/* -----------------------------
   Read more as text link
------------------------------ */
.soloflowai-module-readmore {
  align-self: flex-start;
  padding: 0.45rem 0;
  margin-top: 0.4rem;
  border: none;
  background: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4f46e5;
  cursor: pointer;
  text-decoration: underline;
}

.soloflowai-module-readmore:hover {
  color: #4338ca;
  text-decoration: underline;
}

.soloflowai-module-readmore:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* -----------------------------
   Sticky summary bar
------------------------------ */
.soloflowai-summary-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  background: #0f172a;
  color: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.soloflowai-summary-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.soloflowai-summary-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
}

.soloflowai-summary-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5e7eb;
}

.soloflowai-summary-selected {
  font-size: 0.9rem;
  color: #a5f3fc;
}

.soloflowai-summary-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.soloflowai-summary-price-label {
  opacity: 0.8;
  margin-right: 0.25rem;
}

.soloflowai-summary-right {
  display: flex;
  align-items: center;
}

.soloflowai-summary-cta {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: #0ea5e9;
  color: #0f172a;
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.4);
  transition:
    background 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.15s ease;
}

.soloflowai-summary-cta:hover {
  background: #38bdf8;
  transform: translateY(-1px);
}

.soloflowai-summary-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(56, 189, 248, 0.4);
}

/* -----------------------------
   Responsive tweaks
------------------------------ */
@media (max-width: 640px) {
  .soloflowai-calculator-wrapper {
    padding: 1.25rem;
  }

  .soloflowai-summary-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .soloflowai-summary-right {
    width: 100%;
  }

  .soloflowai-summary-cta {
    width: 100%;
    text-align: center;
  }
}
/* === SoloFlowAI – Force brand color overrides === */
.soloflowai-module-pill {
  background-color: #69F548 !important;
  color: #000000 !important;
}

.soloflowai-module-readmore {
  color: #0ABCFF !important;
}

.soloflowai-module-readmore:hover {
  color: #0296cc !important;
}

.soloflowai-module-price-main {
  color: #0ABCFF !important;
}
/* === SoloFlowAI – Center content inside module cards === */

.soloflowai-module-card {
  text-align: center !important;
}

/* Center the title row contents */
.soloflowai-module-title-row {
  justify-content: center !important;
  gap: 0.4rem;
}

/* Make sure checkbox and title sit nicely together */
.soloflowai-module-checkbox {
  margin: 0 !important;
}

/* Center description text */
.soloflowai-module-description {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

/* Center the Read more link */
.soloflowai-module-readmore {
  display: inline-block;
  text-align: center;
}
/* === SoloFlowAI – Refined typography for mockup match === */

.soloflowai-module-price-main {
  font-size: 2.2rem !important;   /* a bit bigger for hero price */
  font-weight: 800 !important;
}

.soloflowai-module-title-text {
  font-size: 1.15rem !important;  /* slightly larger title */
  font-weight: 800 !important;    /* strong bold like mockup */
}

.soloflowai-module-price-suffix {
  font-size: 1rem !important;
  font-weight: 600 !important;
}
/* === SoloFlowAI – Final centering tweaks === */

/* Center badge, price, and read more inside the card */
.soloflowai-module-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Make the price block centered as a unit */
.soloflowai-module-price-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Ensure the badge is centered at the top of the card */
.soloflowai-module-pill {
  align-self: center !important;
}

/* Center the Read more link under the description */
.soloflowai-module-readmore {
  align-self: center !important;
}
/* === SoloFlowAI – Fix checkbox + title alignment across cards === */

/* Make sure the title row always stays as a centered row */
.soloflowai-module-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  width: 100%;
}

/* Keep the title text inline with the checkbox */
.soloflowai-module-title-text {
  display: inline-block;
}

/* Avoid any weird extra margins on the checkbox */
.soloflowai-module-checkbox {
  margin: 0 !important;
}
/* === SoloFlowAI – Strong fix for checkbox alignment === */

.soloflowai-module-title-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  width: 100% !important;
  text-align: center !important;
}

/* Make sure checkbox and label behave nicely in that row */
.soloflowai-module-title-row .soloflowai-module-checkbox {
  position: static !important;
  margin: 0 !important;
}

.soloflowai-module-title-row .soloflowai-module-title-text {
  display: inline-block !important;
}