:root {
    --elikofav-inactive: #6b7280;
    --elikofav-active: #e11d48;
    --elikofav-hover: #be123c;
    --elikofav-bg: #fff;
    --elikofav-active-bg: #fff1f2;
    --elikofav-border: #e5e7eb;
    --elikofav-button-size: 44px;
    --elikofav-icon-size: 22px;
    --elikofav-radius: 50%;
    --elikofav-toast-bg: #111827;
    --elikofav-toast-color: #fff;
}

.elikofav-trigger {
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
}

.elikofav-trigger.is-loading {
    pointer-events: none;
}

.elikofav-button {
    -webkit-appearance: none;
    appearance: none;
    align-items: center;
    background: var(--elikofav-bg);
    border: 1px solid var(--elikofav-border);
    border-radius: var(--elikofav-radius);
    box-shadow: none;
    box-sizing: border-box;
    color: var(--elikofav-inactive);
    display: inline-flex;
    font: inherit;
    gap: 8px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-height: var(--elikofav-button-size);
    min-width: var(--elikofav-button-size);
    padding: 9px;
    text-decoration: none;
}

.elikofav-button:hover,
.elikofav-button:focus-visible {
    background: var(--elikofav-bg);
    border-color: var(--elikofav-active);
    color: var(--elikofav-hover);
    outline: none;
}

.elikofav-button.is-favorite {
    background: var(--elikofav-active-bg);
    border-color: var(--elikofav-active);
    color: var(--elikofav-active);
}

.elikofav-icon {
    align-items: center;
    color: inherit !important;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: var(--elikofav-icon-size);
    justify-content: center;
    line-height: 1;
}

.elikofav-icon i {
    color: inherit !important;
}

.elikofav-icon svg {
    color: inherit !important;
    display: block;
    fill: currentColor !important;
    height: 1em;
    stroke: currentColor !important;
    width: 1em;
}

.elikofav-icon svg [fill]:not([fill="none"]) {
    fill: currentColor !important;
}

.elikofav-icon svg [stroke]:not([stroke="none"]) {
    stroke: currentColor !important;
}

.elikofav-icon-active,
.elikofav-button.is-favorite .elikofav-icon-default {
    display: none;
}

.elikofav-button.is-favorite .elikofav-icon-active {
    display: inline-flex;
}

.elikofav-button-text {
    line-height: 1.25;
    white-space: nowrap;
}

.elikofav-user-count,
.elikofav-user-count-value {
    display: inline;
}

.elikofav-trigger .elikofav-icon-on,
.elikofav-trigger .elikofav-on,
.elikofav-trigger .heart-on {
    display: none !important;
}

.elikofav-trigger.is-favorite .elikofav-icon-off,
.elikofav-trigger.is-favorite .elikofav-off,
.elikofav-trigger.is-favorite .heart-off {
    display: none !important;
}

.elikofav-trigger.is-favorite .elikofav-icon-on,
.elikofav-trigger.is-favorite .elikofav-on,
.elikofav-trigger.is-favorite .heart-on {
    display: block !important;
}

.elikofav-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(var(--elikofav-columns, 4), minmax(0, 1fr));
}

.elikofav-grid-item {
    min-width: 0;
    transition: opacity .24s ease, transform .24s ease;
}

.elikofav-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.elikofav-card-image {
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
    display: block;
    overflow: hidden;
}

.elikofav-card-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
    width: 100%;
}

.elikofav-card:hover .elikofav-card-image img {
    transform: scale(1.025);
}

.elikofav-card-placeholder {
    display: block;
    height: 100%;
    width: 100%;
}

.elikofav-card-content {
    padding: 16px;
}

.elikofav-card-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 8px;
}

.elikofav-card-title a {
    color: inherit;
    text-decoration: none;
}

.elikofav-card-price {
    font-weight: 600;
}

.elikofav-card-button {
    inset-inline-end: 12px;
    position: absolute;
    top: 12px;
    z-index: 2;
}

.elikofav-empty,
.elikofav-login-required {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
    padding: 32px;
    text-align: center;
}

.elikofav-login-required p {
    margin: 0 0 16px;
}

.elikofav-login-link {
    background: #111827;
    border-radius: 5px;
    color: #fff;
    display: inline-block;
    padding: 10px 18px;
    text-decoration: none;
}

.elikofav-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 28px;
}

.elikofav-pagination .page-numbers {
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    color: inherit;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    min-width: 38px;
    padding: 0 8px;
    text-decoration: none;
}

.elikofav-pagination .current {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.elikofav-toast {
    background: var(--elikofav-toast-bg);
    border-radius: 7px;
    bottom: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    color: var(--elikofav-toast-color);
    inset-inline-start: 50%;
    max-width: calc(100vw - 32px);
    opacity: 0;
    padding: 12px 18px;
    pointer-events: none;
    position: fixed;
    transform: translate(-50%, 12px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 999999;
}

[dir="rtl"] .elikofav-toast {
    transform: translate(50%, 12px);
}

.elikofav-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

[dir="rtl"] .elikofav-toast.is-visible {
    transform: translate(50%, 0);
}

.elikofav-toast.is-error {
    background: #991b1b;
}

.elikofav-is-removing {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(.96) !important;
}

.elikofav-unresolved {
    opacity: .55;
}

.elikofav-button .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
}

/* דירוגים ומשובים */
.elikofav-rating-survey {
    --elikofav-rating-icon-normal: #d9d9d5;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-sizing: border-box;
    padding: 28px;
    text-align: center;
    width: 100%;
}

.elikofav-rating-survey,
.elikofav-rating-survey * {
    box-sizing: border-box;
}

.elikofav-rating-title {
    color: #252525;
    font-size: 24px;
    line-height: 1.3;
    margin: 0;
}

.elikofav-rating-description {
    color: #666;
    margin-top: 8px;
}

.elikofav-rating-description p,
.elikofav-rating-question-heading div p {
    margin: 0;
}

.elikofav-rating-header {
    margin-bottom: 20px;
}

.elikofav-rating-questions {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

.elikofav-rating-question {
    min-width: 0;
    transition: opacity .2s ease;
}

.elikofav-rating-question.is-loading {
    opacity: .72;
    pointer-events: none;
}

.elikofav-rating-question-heading h4 {
    color: #333;
    font-size: 17px;
    line-height: 1.4;
    margin: 0;
}

.elikofav-rating-question-heading div {
    color: #707070;
    margin-top: 4px;
}

.elikofav-rating-icons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: 10px;
}

.elikofav-rating-choice {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--elikofav-rating-icon-normal);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    line-height: 1;
    margin: 0;
    padding: 2px;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.elikofav-rating-choice:hover,
.elikofav-rating-choice:focus-visible,
.elikofav-rating-choice.is-preview {
    color: #7c3aed;
    outline: none;
    transform: translateY(-1px);
}

.elikofav-rating-choice.is-selected {
    color: #6d28d9;
}

.elikofav-rating-icon {
    align-items: center;
    display: inline-flex;
    font-size: 30px;
    justify-content: center;
}

.elikofav-rating-icon,
.elikofav-rating-icon i {
    color: inherit !important;
}

.elikofav-rating-icon svg {
    color: inherit !important;
    display: block;
    fill: currentColor !important;
    height: 1em;
    stroke: currentColor !important;
    width: 1em;
}

.elikofav-rating-icon svg [fill]:not([fill="none"]) {
    fill: currentColor !important;
}

.elikofav-rating-icon svg [stroke]:not([stroke="none"]) {
    stroke: currentColor !important;
}

.elikofav-rating-icon-active,
.elikofav-rating-choice.is-selected .elikofav-rating-icon-normal,
.elikofav-rating-choice.is-preview .elikofav-rating-icon-normal {
    display: none;
}

.elikofav-rating-choice.is-selected .elikofav-rating-icon-active,
.elikofav-rating-choice.is-preview .elikofav-rating-icon-active {
    display: inline-flex;
}

.elikofav-rating-question.is-previewing .elikofav-rating-choice.is-selected:not(.is-preview) {
    color: var(--elikofav-rating-icon-normal) !important;
}

.elikofav-rating-question.is-previewing .elikofav-rating-choice.is-selected:not(.is-preview) .elikofav-rating-icon-active {
    display: none;
}

.elikofav-rating-question.is-previewing .elikofav-rating-choice.is-selected:not(.is-preview) .elikofav-rating-icon-normal {
    display: inline-flex;
}

.elikofav-rating-results {
    color: #444;
    margin-top: 10px;
}

.elikofav-rating-result-line {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    justify-content: inherit;
}

.elikofav-rating-results.is-empty .elikofav-rating-result-line,
.elikofav-rating-results.has-results .elikofav-rating-empty-text {
    display: none;
}

.elikofav-results-never .elikofav-rating-results,
.elikofav-results-after_vote .elikofav-rating-question:not(.has-voted) .elikofav-rating-results {
    display: none;
}

.elikofav-rating-distribution {
    display: grid;
    gap: 6px;
    margin: 14px auto 0;
    max-width: 460px;
    width: 100%;
}

.elikofav-rating-distribution-row {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 24px minmax(70px, 1fr) 34px;
}

.elikofav-rating-distribution-track {
    background: #ececef;
    border-radius: 20px;
    display: block;
    height: 7px;
    overflow: hidden;
}

.elikofav-rating-distribution-track i {
    background: #7c3aed;
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width .25s ease;
}

.elikofav-rating-distribution-label,
.elikofav-rating-distribution-count {
    font-size: 12px;
    text-align: center;
}

.elikofav-rating-feedback {
    color: #15803d;
    display: none;
    margin-top: 8px;
}

.elikofav-rating-feedback.is-visible {
    display: block;
}

.elikofav-rating-feedback.is-error {
    color: #b91c1c;
}

.elikofav-rating-summary-shortcode {
    display: inline;
}

@media (max-width: 900px) {
    .elikofav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .elikofav-grid { gap: 16px; grid-template-columns: 1fr; }
    .elikofav-rating-survey { padding: 20px; }
    .elikofav-rating-title { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    .elikofav-trigger,
    .elikofav-grid-item,
    .elikofav-toast,
    .elikofav-rating-question,
    .elikofav-rating-choice,
    .elikofav-rating-distribution-track i { transition: none; }
}
