/* Custom CSS for Custom WC Product Rating Plugin */

.custom-wc-pr-rating-wrapper {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    margin-top: 30px;
    border-radius: 5px;
}

.custom-wc-pr-rating-wrapper h3 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Styling untuk form komentar */
.custom-wc-pr-rating-wrapper #respond {
    margin-top: 0; /* Override default theme margin */
}

.custom-wc-pr-rating-wrapper #review_form_wrapper p {
    margin-bottom: 15px;
}

.custom-wc-pr-rating-wrapper p.stars {
    margin-bottom: 10px;
}

/* Styling untuk bintang rating */
.custom-wc-pr-rating-wrapper p.stars a {
    color: #ffd700; /* Warna kuning untuk bintang */
    font-size: 1.5em;
    text-decoration: none;
    margin-right: 2px;
}

.custom-wc-pr-rating-wrapper p.stars a.active ~ a {
    color: #ccc; /* Warna abu-abu untuk bintang yang belum dipilih */
}

/* Styling untuk textarea komentar */
.custom-wc-pr-rating-wrapper textarea#comment {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Pastikan padding dan border termasuk dalam lebar */
    min-height: 100px;
}

/* Styling untuk input nama dan email */
.custom-wc-pr-rating-wrapper input[type="text"],
.custom-wc-pr-rating-wrapper input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

/* Styling untuk tombol submit */
.custom-wc-pr-rating-wrapper input#submit {
    background-color: #0073aa; /* Warna biru WordPress default */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.custom-wc-pr-rating-wrapper input#submit:hover {
    background-color: #005177;
}

/* Styling pesan error/informasi */
.custom-wc-pr-error, .custom-wc-pr-message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.custom-wc-pr-error {
    background-color: #ffe0e0;
    color: #d80000;
    border: 1px solid #d80000;
}

.custom-wc-pr-message {
    background-color: #e0f7fa;
    color: #00796b;
    border: 1px solid #00796b;
}

/* Jika Anda ingin menyembunyikan bagian tertentu dari form komentar standar (misal: "Your email address will not be published."),
   Anda mungkin perlu menggunakan JavaScript atau CSS spesifik tergantung struktur DOM tema Anda.
   Contoh: .custom-wc-pr-rating-wrapper .comment-form-comment label[for="email"] { display: none; } */