:root {
    --star-color: #ffc107;
    --star-inactive-color: #ccc;
    --button-size: 32px;
}

.share-rating-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    margin-right: 10px;
    font-weight: bold;
}

.share-button {
    display: inline-block;
    width: var(--button-size);
    height: var(--button-size);
    transition: opacity 0.3s;
}

.share-button img {
    width: 100%;
    height: 100%;
}

.share-button:hover {
    opacity: 0.7;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-label {
    font-weight: bold;
}

.star-rating {
    display: flex;
    gap: 5px;
    font-size: 24px;
    cursor: pointer;
}

.star {
    color: var(--star-inactive-color);
    transition: color 0.3s;
}

.star:hover,
.star.active {
    color: var(--star-color);
}

.rating-average {
    font-size: 16px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .share-rating-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .share-button {
        width: 24px;
        height: 24px;
    }
    .star-rating {
        font-size: 20px;
    }
}

/* Стили для toast-уведомления */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: #333;
    color: #fff;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}