/* Custom Rating System - Complete redesign to avoid conflicts */

/* Main container for rating display */
.custom-rating-container {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Current rating display */
.current-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.current-rating-stars {
    display: flex;
}

.current-rating-value {
    font-weight: bold;
    margin-left: 10px;
    font-size: 18px;
}

.rating-count {
    color: #6c757d;
    margin-left: 5px;
    font-size: 14px;
}

/* Star display */
.rating-star {
    font-size: 24px;
    color: gold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    margin-right: 2px;
}

.rating-star.empty {
    color: #e0e0e0;
}

/* User rating interaction */
.user-rating {
    margin-top: 10px;
    border-top: 1px solid #e9ecef;
    padding-top: 10px;
}

.user-rating-title {
    font-size: 14px;
    color: #495057;
    margin-bottom: 5px;
}

.user-rating-stars {
    display: flex;
}

.user-rating-star {
    font-size: 28px;
    color: #e0e0e0;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    margin-right: 3px;
}

.user-rating-star:hover,
.user-rating-star.selected {
    color: gold;
    transform: scale(1.1);
}

.user-rating-message {
    height: 20px;
    font-size: 14px;
    margin-top: 5px;
    color: #28a745;
}

/* Fix for the button style */
.btn-outline-dark, .btn-primary {
  margin-right: 5px;
}

/* Completely hide the original rating system */
.star-ratings {
    display: none !important;
}
