/* Settlement → Book CTA Card (Task #1529251)
 * Contextual product cross-sell on every settlement detail page.
 * Matches settlement category to the relevant book + toolkit.
 * Position: after settlement details, before related settlements.
 */

/* ── Container ─────────────────────────────────────────────────────────────── */
.sr-book-cta-wrap {
  max-width: 860px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

/* ── Card ──────────────────────────────────────────────────────────────────── */
.sr-book-cta-card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

/* ── Book cover thumbnail ──────────────────────────────────────────────────── */
.sr-book-cta-cover {
  flex-shrink: 0;
  width: 80px;
  height: 108px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.4rem;
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.sr-book-cta-cover-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.sr-book-cta-cover-title {
  font-size: 0.55rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* ── Middle: title + hook + free chapters link ─────────────────────────────── */
.sr-book-cta-body {
  flex: 1;
  min-width: 0;
}

.sr-book-cta-eyebrow {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 0.3rem;
}

.sr-book-cta-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #111827;
  line-height: 1.3;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.sr-book-cta-hook {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.45;
  margin: 0 0 0.5rem;
}

.sr-book-cta-free-link {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #00875A;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.sr-book-cta-free-link:hover {
  text-decoration: underline;
}

/* ── Right: price button ───────────────────────────────────────────────────── */
.sr-book-cta-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.sr-book-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00875A;
  color: #ffffff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
  text-align: center;
  line-height: 1.2;
}

.sr-book-cta-btn-primary:hover {
  background: #006B4D;
}

/* ── Below-card: filing + Pro links ───────────────────────────────────────── */
.sr-book-cta-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f3f4f6;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8rem;
}

.sr-book-cta-footer-label {
  color: #6b7280;
  font-weight: 500;
}

.sr-book-cta-footer-link {
  color: #374151;
  font-weight: 600;
  text-decoration: none;
}

.sr-book-cta-footer-link:hover {
  color: #00875A;
  text-decoration: underline;
}

.sr-book-cta-footer-divider {
  color: #d1d5db;
}

/* ── Mobile: stack vertically ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .sr-book-cta-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  .sr-book-cta-cover {
    width: 100%;
    height: 72px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  .sr-book-cta-cover-icon {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  .sr-book-cta-cover-title {
    font-size: 0.7rem;
    text-align: left;
  }

  .sr-book-cta-actions {
    width: 100%;
    align-items: stretch;
  }

  .sr-book-cta-btn-primary {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  .sr-book-cta-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .sr-book-cta-footer-divider {
    display: none;
  }
}
