/**
 * Estilos de alta prioridade para avaliações de produtos WooCommerce
 * Este arquivo contém regras CSS essenciais que precisam ser aplicadas com prioridade para
 * sobrepor quaisquer estilos padrão do WooCommerce para o sistema de avaliação por estrelas.
 */

/* Esconder o select original do rating */
.woocommerce #reviews #respond .comment-form-rating select {
    display: none !important;
}

/* Garantir que as estrelas sejam sempre exibidas */
.woocommerce #reviews #respond .comment-form-rating .stars {
    display: flex !important;
    margin-top: 0.5em !important;
}

.woocommerce #reviews #respond .comment-form-rating .stars a {
    position: relative !important;
    height: 1em !important;
    width: 1em !important;
    text-indent: -999em !important;
    display: inline-block !important;
    text-decoration: none !important;
    color: #ddd !important;
    font-weight: 400 !important;
    margin-right: 0.3em !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.woocommerce #reviews #respond .comment-form-rating .stars a::before {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 1em !important;
    height: 1em !important;
    line-height: 1 !important;
    font-family: "FontAwesome" !important;
    content: "\f006" !important; /* Empty star - FontAwesome */
    text-indent: 0 !important;
    transition: all 0.3s ease !important;
}

.woocommerce #reviews #respond .comment-form-rating .stars:hover a::before {
    content: "\f005" !important; /* Filled star - FontAwesome */
    color: #f8bb00 !important; /* Golden color for stars */
}

.woocommerce #reviews #respond .comment-form-rating .stars a:hover ~ a::before {
    content: "\f006" !important; /* Empty star - FontAwesome */
}

.woocommerce #reviews #respond .comment-form-rating .stars.selected a.active::before {
    content: "\f005" !important; /* Filled star - FontAwesome */
    color: #f8bb00 !important; /* Golden color for stars */
}

.woocommerce #reviews #respond .comment-form-rating .stars.selected a.active ~ a::before {
    content: "\f006" !important; /* Empty star - FontAwesome */
    color: #ddd !important;
}

.woocommerce #reviews #respond .comment-form-rating .stars.selected a:not(.active)::before {
    content: "\f005" !important; /* Filled star - FontAwesome */
    color: #f8bb00 !important; /* Golden color for stars */
}

/* Garantir que o Font Awesome esteja disponível como fallback caso não seja carregado */
@font-face {
    font-family: 'FontAwesome';
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Estilos para garantir que o contêiner de classificação funcione corretamente */
.woocommerce-noreviews {
    margin-bottom: 2em !important;
}

#review_form_wrapper {
    margin-top: 2em !important;
}

.comment-form-rating {
    margin: 1.5em 0 !important;
    padding: 1em !important;
    background-color: #f9f9f9 !important;
    border-radius: 5px !important;
    border: 1px solid #eee !important;
    position: relative !important;
}

/* Estilo do label para maior destaque */
.comment-form-rating label {
    display: block !important;
    margin-bottom: 0.5em !important;
    font-weight: 600 !important;
    color: #333 !important;
}
