/* Kashvika Core – likes and star ratings. Uses theme variables with safe fallbacks. */
.kfc-like { display: inline-block; margin: 0; }
.kfc-like__btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line, #d3e6f3); border-radius: 999px; background: #fff; color: var(--ink, #12303f); font: 600 .92rem var(--font, system-ui, sans-serif); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.kfc-like__btn:hover { border-color: var(--blue-2, #0284c7); }
.kfc-like__btn:focus-visible { outline: 3px solid var(--sky, #38bdf8); outline-offset: 2px; }
.kfc-like__btn[disabled] { opacity: .6; cursor: progress; }
.kfc-like.is-liked .kfc-like__btn { background: #fdeef0; border-color: #f2a3ae; color: #b4233a; }
.kfc-like.is-liked .kfc-heart path { fill: currentColor; }
.kfc-heart { flex: none; }

.kfc-rate { background: #fff; border: 1px solid var(--line, #d3e6f3); border-radius: var(--radius, 16px); padding: 22px; margin: 24px 0; color: var(--ink, #12303f); position: relative; }
.kfc-rate__title { margin: 0 0 14px; font-size: 1.2rem; }
.kfc-rate__sum { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-bottom: 16px; }
.kfc-rate__avg { text-align: center; }
.kfc-rate__avg strong { display: block; font-size: 2.6rem; line-height: 1; color: var(--navy, #0c4a6e); }
.kfc-rate__avg span, .kfc-rate__count { font-size: .85rem; color: var(--muted, #55697a); }
.kfc-rate__bars { display: grid; gap: 4px; min-width: 0; }
.kfc-bar { display: grid; grid-template-columns: 14px 1fr 28px; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted, #55697a); }
.kfc-bar i { display: block; height: 8px; border-radius: 99px; background: var(--sky-100, #e0f2fe); overflow: hidden; }
.kfc-bar b { display: block; height: 100%; background: var(--blue-2, #0284c7); border-radius: 99px; }
.kfc-bar em { font-style: normal; text-align: right; }

.kfc-rate__form { display: grid; gap: 12px; }
.kfc-stars { border: 0; margin: 0; padding: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.kfc-stars legend { float: left; width: 100%; padding: 0 0 6px; font-weight: 600; font-size: .92rem; }
.kfc-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kfc-stars label { cursor: pointer; color: #c3d3de; line-height: 0; padding: 2px; border-radius: 8px; }
.kfc-stars .kfc-star { fill: none; transition: fill .12s, color .12s; }
.kfc-stars input:checked ~ label, .kfc-stars label:hover, .kfc-stars label:hover ~ label { color: #f5a524; }
.kfc-stars input:checked ~ label .kfc-star, .kfc-stars label:hover .kfc-star, .kfc-stars label:hover ~ label .kfc-star { fill: currentColor; }
.kfc-stars input:focus-visible + label { outline: 3px solid var(--sky, #38bdf8); outline-offset: 1px; }
.kfc-field { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.kfc-field input, .kfc-field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line, #d3e6f3); border-radius: 12px; font: 500 1rem var(--font, system-ui, sans-serif); color: var(--ink, #12303f); background: #fff; resize: vertical; }
.kfc-field input:focus, .kfc-field textarea:focus { border-color: var(--blue-2, #0284c7); outline: none; box-shadow: 0 0 0 4px rgba(29, 90, 153, .15); }
.kfc-rate .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kfc-rate--compact { padding: 14px; margin: 12px 0 0; }
.kfc-rate--compact .kfc-rate__sum { grid-template-columns: auto 1fr; }
.kfc-rate--compact .kfc-rate__bars, .kfc-rate--compact .kfc-rate__count { display: none; }
@media (max-width: 520px) { .kfc-rate__sum { grid-template-columns: auto 1fr; } .kfc-rate__count { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .kfc-like__btn, .kfc-stars .kfc-star { transition: none; } }
