/* Review Helpful Vote Buttons */
.yayrev-vote {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--yayrev-border-color, #e5e7eb);
    flex-wrap: wrap;
}

.yayrev-vote__label {
    font-size: 13px;
    color: var(--yayrev-text-muted, #6b7280);
    line-height: 1;
}

.yayrev-vote__buttons {
    display: flex;
    gap: 8px;
}

.yayrev-vote__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--yayrev-border-color, #d1d5db);
    border-radius: 6px;
    background: transparent;
    color: var(--yayrev-text-muted, #6b7280);
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    user-select: none;
}

.yayrev-vote__btn:hover:not(:disabled) {
    background: var(--yayrev-vote-hover-bg, #f3f4f6);
    color: var(--yayrev-text-color, #374151);
    border-color: var(--yayrev-text-muted, #9ca3af);
}

.yayrev-vote__btn:active:not(:disabled) {
    transform: scale(0.95);
}

.yayrev-vote__btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Voted state - Yes */
.yayrev-vote__btn--yes.yayrev-vote__btn--voted {
    background: var(--yayrev-vote-yes-bg, #ecfdf5);
    color: var(--yayrev-vote-yes-color, #059669);
    border-color: var(--yayrev-vote-yes-color, #059669);
}

/* Voted state - No */
.yayrev-vote__btn--no.yayrev-vote__btn--voted {
    background: var(--yayrev-vote-no-bg, #fef2f2);
    color: var(--yayrev-vote-no-color, #dc2626);
    border-color: var(--yayrev-vote-no-color, #dc2626);
}

/* Icon */
.yayrev-vote__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Summary line ("X people found this helpful") */
.yayrev-vote__summary {
    font-size: 12px;
    color: var(--yayrev-text-muted, #9ca3af);
    line-height: 1;
}

.yayrev-vote__summary--hidden {
    display: none;
}

/* Error flash */
@keyframes yayrev-error-flash {
    0%, 100% { background: inherit; }
    50%      { background: #fde8e8; }
}

.yayrev-vote__btn--error {
    animation: yayrev-error-flash 0.5s ease 2;
}

/* Read-only mode (ineligible voters) */
.yayrev-vote--readonly {
    gap: 6px;
}

.yayrev-vote--readonly .yayrev-vote__icon {
    color: var(--yayrev-text-muted, #9ca3af);
}

/* Responsive */
@media (max-width: 480px) {
    .yayrev-vote {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
