.yasr-rating-card {
  max-width: 30rem;
  margin: 3rem auto 0;
  padding: 2rem 1.75rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
  border: 1px solid #e2e8f0; /* slate-200 */
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
  0 8px 24px -12px rgba(2, 132, 199, 0.18);
}

/* Wariant samodzielny (blok ocen na stronie). Poprzednia sekcja ma już duży odstęp
   u góry (py-20), a pod kartą jest stopka — więc mniej marginesu u góry, więcej u dołu. */
.yasr-rating-card--section {
  margin-top: 1rem;
  margin-bottom: 4.5rem;
}

.yasr-rating-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a; /* slate-900 */
}

.yasr-rating-card__subtitle {
  margin: 0 auto 1.5rem;
  max-width: 24rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #64748b; /* slate-500 */
}

/* ---- Widżet YASR wewnątrz karty ---- */
.yasr-rating-card__widget .yasr-visitor-votes,
.yasr-rating-card__widget .yasr-auto-insert-visitor {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

/* Tekst zachęty nad gwiazdkami (before) */
.yasr-rating-card__widget .yasr-custom-text-vv-before {
  order: -1;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155; /* slate-700 */
}

/* Gwiazdki — wyśrodkowanie i lekki odstęp */
.yasr-rating-card__widget .yasr-rater-stars-vv {
  margin: 0 auto;
}

/* Pasek statystyk pod gwiazdkami — w pigułkę */
.yasr-rating-card__widget .yasr-vv-stats-text-container {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
  padding: 0.3rem 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0; /* slate-200 */
  border-radius: 9999px;
  font-size: 0.8rem;
  line-height: 1.2;
  color: #475569; /* slate-600 */
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Ikona statystyk w kolorze akcentu */
.yasr-rating-card__widget .yasr-dashicons-visitor-stats {
  color: #0284c7; /* sky-600 */
  fill: #0284c7;
  width: 1rem;
  height: 1rem;
}

.yasr-rating-card__widget .yasr-vv-text-container,
.yasr-rating-card__widget .yasr-vv-votes-number-container,
.yasr-rating-card__widget .yasr-vv-average-container {
  font-weight: 600;
  color: #0f172a; /* slate-900 */
}

/* Komunikat po oddaniu głosu */
.yasr-rating-card__widget .yasr-vv-second-row-container,
.yasr-rating-card__widget .yasr-vv-bottom-container {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #0284c7; /* sky-600 */
}
