/*
 * Affiliate Monetization Blocks — Task #1558209
 * Styles for: "Helpful Tools & Resources" (.rr-*), "Protect Your Money" (.sr-pmb-*),
 * and "While You Wait" (.sr-wyw-*) blocks on settlement detail pages.
 * Subtle, editorial aesthetic — not banner-ad style.
 */

/* ─── Shared: recommended-resources-section wrapper ──────────────────────── */
.recommended-resources-section {
  margin: 1.5rem 0;
  padding: 1.25rem 1.25rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

/* ─── .rr-* — "Helpful Tools & Resources" (existing block, missing CSS) ──── */
.rr-header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.rr-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.rr-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.15rem;
  line-height: 1.3;
}

.rr-subtitle {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.rr-cards {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.rr-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rr-card:hover {
  border-color: #d1fae5;
  box-shadow: 0 1px 6px rgba(0, 166, 110, 0.10);
}

.rr-card-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 1.75rem;
  text-align: center;
}

.rr-card-body {
  flex: 1;
  min-width: 0;
}

.rr-card-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.1rem;
  line-height: 1.3;
}

.rr-card-desc {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
}

.rr-card-arrow {
  font-size: 0.875rem;
  color: #9ca3af;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}

.rr-card:hover .rr-card-arrow {
  color: #00875a;
  transform: translateX(2px);
}

.rr-disclosure {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}


/* ─── .sr-pmb-* — "Protect Your Money" block ─────────────────────────────── */
.sr-pmb {
  margin: 1.25rem 0;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #f9fafb 100%);
  border: 1px solid #d1fae5;
  border-radius: 12px;
}

.sr-pmb__header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.sr-pmb__icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.sr-pmb__title {
  font-size: 1rem;
  font-weight: 700;
  color: #065f46;
  margin: 0 0 0.15rem;
  line-height: 1.3;
}

.sr-pmb__subtitle {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.sr-pmb__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 599px) {
  .sr-pmb__cards {
    grid-template-columns: 1fr;
  }
}

.sr-pmb__card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d1fae5;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  gap: 0.2rem;
}

.sr-pmb__card:hover {
  border-color: #6ee7b7;
  box-shadow: 0 2px 8px rgba(0, 135, 90, 0.12);
}

.sr-pmb__card-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sr-pmb__card-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.sr-pmb__card-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #065f46;
  line-height: 1.3;
}

.sr-pmb__card-badge {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sr-pmb__card-desc {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
}

.sr-pmb__card-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
  margin-top: 0.2rem;
}

.sr-pmb__disclosure {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
  font-style: italic;
  line-height: 1.5;
}


/* ─── .sr-wyw-* — "While You Wait" block ─────────────────────────────────── */
.sr-wyw {
  margin: 1.25rem 0;
  padding: 1.25rem 1.25rem 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
}

.sr-wyw__header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.sr-wyw__icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.sr-wyw__title {
  font-size: 1rem;
  font-weight: 700;
  color: #78350f;
  margin: 0 0 0.15rem;
  line-height: 1.3;
}

.sr-wyw__subtitle {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.sr-wyw__cards {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.sr-wyw__card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sr-wyw__card:hover {
  border-color: #f59e0b;
  box-shadow: 0 1px 6px rgba(245, 158, 11, 0.12);
}

.sr-wyw__card-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 1.75rem;
  text-align: center;
}

.sr-wyw__card-body {
  flex: 1;
  min-width: 0;
}

.sr-wyw__card-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.1rem;
  line-height: 1.3;
}

.sr-wyw__card-desc {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
}

.sr-wyw__card-arrow {
  font-size: 0.875rem;
  color: #9ca3af;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}

.sr-wyw__card:hover .sr-wyw__card-arrow {
  color: #d97706;
  transform: translateX(2px);
}

.sr-wyw__disclosure {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
  font-style: italic;
  line-height: 1.5;
}
