.post-rating {
    display: flex;
    align-items: start;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    z-index: 2;
    justify-content: end;
}

.single-blog .post-rating {
    align-items: center;
    justify-content: start;
}

.post-rating__stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.post-rating__star {
    --fill: 0%;
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
    color: #d0d0d0 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.post-rating__star::before,
.post-rating__star::after {
    box-shadow: none !important;
}

.post-rating__star:hover,
.post-rating__star:focus,
.post-rating__star:active {
    background: transparent !important;
    color: #d0d0d0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.post-rating--interactive .post-rating__star:hover {
    transform: scale(1.1);
}

.post-rating__star-fill {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    line-height: 0;
}

.post-rating__star-fill svg {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    fill: #d0d0d0 !important;
    color: #d0d0d0 !important;
}

.post-rating__star-fill::before {
    content: "";
    display: block;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: var(--fill, 0%);
    height: 100%;
    background-color: #ffc107;
    pointer-events: none;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2.5l2.9 6.1 6.6.9-4.8 4.7 1.1 6.6-5.8-3.1-5.8 3.1 1.1-6.6-4.8-4.7 6.6-.9L12 2.5z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    -webkit-mask-size: 28px 28px;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2.5l2.9 6.1 6.6.9-4.8 4.7 1.1 6.6-5.8-3.1-5.8 3.1 1.1-6.6-4.8-4.7 6.6-.9L12 2.5z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: left center;
    mask-size: 28px 28px;
}

.post-rating__star:disabled {
    cursor: default;
    opacity: 1 !important;
}

.post-rating__star:disabled:hover {
    transform: none;
}

.post-rating__star:focus-visible {
    outline: 2px solid #ffc107 !important;
    outline-offset: 3px;
}

.post-rating__value {
    display: inline-block;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #fff;
}

.single-blog .post-rating__value {
    color: #333;
}

.post-rating__message {
    display: block;
    flex-basis: 100%;
    margin-top: 2px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.post-rating--readonly .post-rating__star {
    cursor: default;
    pointer-events: none;
}

@media (max-width: 767px) {
    .post-rating__star {
        width: 25px !important;
        height: 25px !important;
        min-width: 25px !important;
        min-height: 25px !important;
        font-size: 25px !important;
    }

    .post-rating__star-fill::before {
        -webkit-mask-size: 25px 25px;
        mask-size: 25px 25px;
    }

    .post-rating__stars {
        gap: 2px;
    }
}

.post-rating__star-fill::before {
    -webkit-mask-size: 28px 28px;
    mask-size: 28px 28px;
}

.post-rating__stars {
    gap: 2px;
}