.dga-rate {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
}

.dga-rate-star {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 8px;
    background-color: #e5e7eb;
    cursor: pointer;
    color: #9ca3af;
    transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.dga-rate-star::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: transparent;
    opacity: 0;
    transition: opacity 0.2s;
}

.dga-rate-star:hover:not(:disabled)::before,
.dga-rate-star:focus-visible::before,
.dga-rate-star:active:not(:disabled)::before {
    background: rgba(0, 0, 0, 0.06);
    opacity: 1;
}

.dga-rate-star:focus-visible {
    outline: 2px solid #019E87;
    outline-offset: 2px;
}

.dga-rate-star:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.dga-rate-star-icon {
    position: absolute;
    font-size: 1.25rem;
    pointer-events: none;
}

.dga-rate-star-icon--filled {
    color: #d4a012;
    display: none;
}

.dga-rate-star-icon--empty {
    color: #9ca3af;
    display: block;
}

.dga-rate-star--filled .dga-rate-star-icon--filled {
    display: block;
}

.dga-rate-star--filled .dga-rate-star-icon--empty {
    display: none;
}

[dir="rtl"] .dga-rate {
    flex-direction: row-reverse;
}
