.psm-productstars-widget {
    --psm-star-selected: #FFD700;
    --psm-star-unselected: #CCCCCC;
    margin: 1rem 0;
    font-family: inherit;
}

.psm-star {
    fill: var(--psm-star-unselected);
    transition: fill 0.15s ease, transform 0.1s ease;
    cursor: default;
    vertical-align: middle;
}

.psm-star.psm-star-filled {
    fill: var(--psm-star-selected);
}

.psm-productstars-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.psm-productstars-votable .psm-productstars-stars {
    cursor: pointer;
}

.psm-productstars-votable .psm-star {
    cursor: pointer;
}

.psm-productstars-votable .psm-star:hover {
    transform: scale(1.15);
}

.psm-productstars-votable .psm-productstars-stars:focus {
    outline: 2px solid #4A90D9;
    outline-offset: 4px;
    border-radius: 4px;
}

.psm-productstars-votable .psm-productstars-stars:focus:not(:focus-visible) {
    outline: none;
}

.psm-productstars-votable .psm-productstars-stars:focus-visible {
    outline: 2px solid #4A90D9;
    outline-offset: 4px;
    border-radius: 4px;
}

.psm-productstars-info {
    margin: 0 0 0 0.55rem;
    display: inline-block;
}

.psm-productstars-text {
    font-size: 0.85rem;
    color: #000;

}

.psm-productstars-empty {
    color: #000;
    font-style: italic;
}

.psm-productstars-message {
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.psm-productstars-message:empty {
    display: none;
}

.psm-productstars-message.psm-msg-success {
    padding: 0.75rem 1rem;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.psm-productstars-message.psm-msg-error {
    padding: 0.75rem 1rem;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.psm-productstars-miniature {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.25rem 0;
}

.psm-productstars-mini-stars {
    display: inline-flex;
    gap: 1px;
}

.psm-star-mini {
    fill: var(--psm-star-unselected);
}

.psm-star-mini.psm-star-filled {
    fill: var(--psm-star-selected);
}

.psm-productstars-mini-text {
    font-size: 0.8rem;
    color: #000;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .psm-productstars-stars .psm-star {
        width: 32px;
        height: 32px;
    }
}