/* --- Average Rating Display Styles --- */
.average-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1em;
}

.average-rating-wrapper .star-rating {
    font-size: 1.2em;
}

.average-rating-wrapper .star-rating span::before {
    color: #333 !important;
}

.average-rating-wrapper .review-count-text {
    font-family: 'Annie Use Your Telescope', cursive;
    font-size: 1.1em;
    color: #f39c12;
}

/* --- Custom Review Form Styles --- */
.custom-review-wrapper {
    font-family: 'Annie Use Your Telescope', cursive;
    text-align: left;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
}

.custom-review-wrapper h3.review-title {
    color: #f39c12;
    font-size: 2.5em;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: normal;
    text-shadow: 0.7px 0 0 #f39c12, -0.7px 0 0 #f39c12;
}

.custom-review-wrapper .comment-form-comment.comment-form-hidden {
    visibility: hidden;
    position: absolute;
    height: 0;
    width: 0;
}

.custom-review-wrapper .comment-form-rating {
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-review-wrapper .stars .screen-reader-text,
.custom-review-wrapper .stars .description {
    display: none !important;
}

.custom-review-wrapper .comment-form-rating select {
    display: none;
}

.custom-review-wrapper p.stars {
    margin: 0;
}

.custom-review-wrapper p.stars a {
    color: #f39c12;
    border: none;
    outline: none;
    text-decoration: none;
    font-size: 1.5em;
}

.custom-review-wrapper p.stars a::before {
    font-family: "star" !important;
    content: "\f006";
    color: #f39c12;
}

.custom-review-wrapper p.stars a:hover::before,
.custom-review-wrapper p.stars.selected a::before {
    content: "\f005";
    color: #f39c12;
}

.custom-review-wrapper .form-submit {
    text-align: center;
    padding-top: 20px;
    margin-bottom: 0;
}

.custom-review-wrapper #respond input#submit {
    font-family: 'Annie Use Your Telescope', cursive;
    background-color: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    color: #555 !important;
    font-size: 1.5em;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.custom-review-wrapper #respond input#submit:hover {
    background-color: #e9e9e9 !important;
}

/* **NEW**: Style for the "Already Reviewed" message */
.already-reviewed-notice {
    font-family: 'Annie Use Your Telescope', cursive;
    text-align: center;
    border: 1px solid #eee;
    padding: 20px;
    font-size: 1.5em;
    color: #333;
}

.already-reviewed-notice p{
margin-block-end: 0;
}