/* 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: 5px;
    padding: 7px 10px;
    border: 1px solid var(--yayrev-border-color, #e4e4e7);
    border-radius: 6px;
    background: transparent;
    color: var(--yayrev-text-muted, #5a6d80);
    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;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    outline: none;
}

.yayrev-vote__btn:hover:not(:disabled):not(.yayrev-vote__btn--voted) {
    background: var(--yayrev-vote-hover-bg, #f4f4f5);
    color: var(--yayrev-text-color, #171719);
    border-color: var(--yayrev-vote-hover-border, #c7c7ca);
}

.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, #f0fbf7);
  color: var(--yayrev-vote-yes-color, #377e62);
  border: 1.5px solid var(--yayrev-vote-yes-color, #377e62);
  padding: 6.5px 9.5px;
}

/* Voted state - No */
.yayrev-vote__btn--no.yayrev-vote__btn--voted {
  background: var(--yayrev-vote-no-bg, #fbf1f2);
  color: var(--yayrev-vote-no-color, #be0010);
  border: 1.5px solid var(--yayrev-vote-no-color, #be0010);
  padding: 6.5px 9.5px;
}

/* 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;
    }
}
