/* KS Puan widget'ı (v2.429.0, 9 Eyl 2026) — YALNIZ YAPI. Renk, punto, boşluk
 * hepsi widget Biçim sekmesinden ({{WRAPPER}} seçicileri; yıldız boyu ve yıldız
 * arası boşluk --ks-star / --ks-star-gap değişkenleriyle). Dolu satır, boş
 * satırın üstünde; genişliği sunucuda calc() ile puan kadar (bkz. PHP). */
.ks-rating { display: flex; align-items: center; min-width: 0; line-height: 1; --ks-star: 1em; --ks-star-gap: 0px; }
.ks-rating__stars { position: relative; display: inline-flex; flex: 0 0 auto; line-height: 0; }
.ks-rating__row { display: inline-flex; flex-wrap: nowrap; gap: var(--ks-star-gap); }
.ks-rating__row--fill { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; white-space: nowrap; }
.ks-rating__star { display: inline-block; flex: 0 0 auto; width: var(--ks-star); height: var(--ks-star); }
.ks-rating__star svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.ks-rating__score, .ks-rating__count { white-space: nowrap; }
.ks-rating--empty { font-size: .8em; color: #999; font-style: italic; }

/* Görünürlük anahtarları — Elementor boş değere prefix sınıfı basmaz, kural
 * "evet sınıfı YOKSA gizle" (bkz. ks-price.css v2.428.11). */
.elementor-widget-ks-rating:not(.ks-rating-stars-yes) .ks-rating__stars { display: none !important; }
.elementor-widget-ks-rating:not(.ks-rating-score-yes) .ks-rating__score { display: none !important; }
.elementor-widget-ks-rating:not(.ks-rating-count-yes) .ks-rating__count { display: none !important; }

/* Fotoğraflı yorum göstergesi (v2.465.0): Phosphor ikon + isteğe bağlı sayı.
 * Boy/renk/boşluk widget'tan (--ks-photo-icon / --ks-photo-gap). Sunucu
 * anahtar kapalıyken hiç basmaz; sınıf kuralları editör aynası için. */
.ks-rating__photo { display: inline-flex; align-items: center; flex: 0 0 auto; gap: var(--ks-photo-gap, 2px); line-height: 1; white-space: nowrap; }
.ks-rating__photo-icon { display: inline-flex; align-items: center; font-size: var(--ks-photo-icon, 1em); line-height: 1; }
.ks-rating__photo-icon i { font-size: 1em; line-height: 1; display: inline-block; }
.ks-rating__photo-icon svg { display: block; width: 1em; height: 1em; fill: currentColor; } /* yüklenen SVG (Elementor satır içi) */
.elementor-widget-ks-rating:not(.ks-rating-photo-yes) .ks-rating__photo { display: none !important; }
.elementor-widget-ks-rating:not(.ks-rating-photo-count-yes) .ks-rating__photo-count { display: none !important; }
/* Yeri: flex sırası (yıldız 1, puan 2, sayı 3 varsayılan DOM sırası). */
.ks-rating-photo-pos-start .ks-rating__photo { order: -2; }
.ks-rating-photo-pos-after-stars .ks-rating__photo { order: -1; }
.ks-rating-photo-pos-after-stars .ks-rating__stars { order: -2; }

/* ── Masaüstü ── */
.ks-rating-layout-inline .ks-rating { flex-direction: row; }
.ks-rating-layout-column .ks-rating { flex-direction: column; }

/* ── laptop (≤1366px) ── */
@media (max-width: 1366px) {
	.ks-rating-layout-laptop-inline .ks-rating { flex-direction: row; }
	.ks-rating-layout-laptop-column .ks-rating { flex-direction: column; }
}

/* ── tablet (≤1024px) ── */
@media (max-width: 1024px) {
	.ks-rating-layout-tablet-inline .ks-rating { flex-direction: row; }
	.ks-rating-layout-tablet-column .ks-rating { flex-direction: column; }
}

/* ── mobile (≤767px) ── */
@media (max-width: 767px) {
	.ks-rating-layout-mobile-inline .ks-rating { flex-direction: row; }
	.ks-rating-layout-mobile-column .ks-rating { flex-direction: column; }
}
