.rate-any-cpt {
    display: inline-flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: inherit;
    color: inherit;
}

.rate-any-cpt-stars {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}

.rate-any-cpt-star {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    width: 2.25rem;
    height: 2.25rem;
    cursor: pointer;
    color: #f6a500;
    transition: transform 0.15s ease, filter 0.2s ease;
}

.rate-any-cpt-star:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 165, 0, 0.35);
    border-radius: 50%;
}

.rate-any-cpt-star svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    transition: fill 0.15s ease, stroke 0.15s ease;
}

.rate-any-cpt-star.is-active svg,
.rate-any-cpt-star:hover svg {
    fill: currentColor;
    stroke: currentColor;
}

.rate-any-cpt-star:hover {
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.1));
}

.rate-any-cpt.is-disabled .rate-any-cpt-star {
    cursor: not-allowed;
    opacity: 0.4;
    transform: none;
    filter: none;
}

.rate-any-cpt-meta {
    display: inline-flex;
    gap: 0.35rem;
    align-items: baseline;
    font-size: 0.95rem;
    color: #4a5568;
}

.rate-any-cpt-average {
    font-weight: 600;
    font-size: 1rem;
    color: inherit;
}

.rate-any-cpt-count {
    color: #6b7280;
}

.rate-any-cpt-message {
    min-height: 1rem;
    font-size: 0.9rem;
    color: #667085;
}

.rate-any-cpt-message.is-error {
    color: #b91c1c;
}

.rate-any-cpt-message.is-success {
    color: #047857;
}

@media (prefers-reduced-motion: reduce) {
    .rate-any-cpt-star,
    .rate-any-cpt-star svg {
        transition: none;
    }
}
