/* Spoiler Styles */
.cr-spoiler {
    background-color: #111827; /* Tailwind gray-900 */
    color: #111827;
    padding: 0 2px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.cr-spoiler.is-revealed {
    background-color: #e5e7eb; /* Tailwind gray-200 */
    color: #1f2937; /* Tailwind gray-800 */
}

/* Review Form Star Rating Styles */
.cr-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    font-size: 2em;
}

.cr-star-rating input {
    display: none;
}

.cr-star-rating label {
    color: #d1d5db; /* gray-300 */
    cursor: pointer;
    transition: color 0.2s;
}

.cr-star-rating input:checked ~ label,
.cr-star-rating label:hover,
.cr-star-rating label:hover ~ label {
    color: #f59e0b; /* amber-500 */
}

/* **NEW** Review Summary Chart Styles */
.cr-rating-summary-chart {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}
.cr-chart-bars-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end; /* Aligns bars to the bottom */
    height: 60px; /* Sets a fixed height for the chart area */
    gap: 2px; /* Small space between bars */
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
    padding-bottom: 4px;
}
.cr-chart-bar-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}
.cr-chart-bar {
    width: 70%; /* Width of each bar relative to its wrapper */
    background-color: #4f46e5; /* indigo-600 */
    border-radius: 3px 3px 0 0; /* Rounded top corners */
    transition: height 0.3s ease-out;
    min-height: 2px; /* Ensure even bars with 0 votes are visible */
}
.cr-chart-labels-container {
    display: flex;
    justify-content: space-around;
}
.cr-chart-label {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #6b7280; /* gray-500 */
}
