/* RESET LAYOUT */
#ledang_review_list_wrapper .row, #ledang_review_list_wrapper .col, 
#ledang_review_list_wrapper .large-7, #ledang_review_list_wrapper .large-8, 
#ledang_review_list_wrapper .col-center {
    max-width: 100% !important; flex-basis: 100% !important; width: 100% !important; 
    margin: 0 !important; padding: 0 !important;
}
#ledang_review_list_wrapper #comments, #ledang_review_list_wrapper .comment-text, 
#ledang_review_list_wrapper .description {
    width: 100% !important; max-width: 100% !important; flex: 1 1 auto !important;
}

/* SUMMARY BOX */
.ledang-summary-box { 
    display: flex; flex-wrap: wrap; border: 1px solid #e0e0e0; border-radius: 8px; 
    padding-top: 10px; margin-bottom: 30px; background: #fff; align-items: center; box-sizing: border-box; 
}
.ledang-col-score { width: 25%; text-align: center; border-right: 1px solid #f0f0f0; display: flex; flex-direction: column; justify-content: center; }
.ledang-score-big { display: flex; align-items: center; justify-content: center; margin-bottom: 5px; }
.ledang-score-num { font-size: 48px; font-weight: 700; color: #CB4B01; line-height: 1; }
.ledang-score-star { font-size: 55px; color: #CB4B01; margin-left: 8px; line-height: 1; font-family: sans-serif; }
.ledang-score-label { font-size: 13px; color: #666; font-weight: 600; text-transform: uppercase; }

/* BARS GRID */
.ledang-col-bars { width: 50%; padding: 0 20px; box-sizing: border-box; }
.ledang-row { 
    display: grid !important; grid-template-columns: 60px 1fr 110px !important; 
    gap: 10px !important; align-items: center !important; margin-bottom: 8px !important; font-size: 17px;
}
.ledang-label { display: flex !important; align-items: center !important; justify-content: flex-end !important; font-weight: 700; color: #333; width: 100% !important; }
.ledang-num { margin-right: 5px; line-height: 1; }
.ledang-star-icon { color: #ccc; font-size: 18px !important; line-height: 1 !important; }
.ledang-bar { flex-grow: 1; background: #eee; height: 15px; border-radius: 4px; overflow: hidden; width: 100%; }
.ledang-fill { background: #CB4B01; height: 100%; border-radius: 4px; }
.ledang-text { text-align: right; color: #095d30; font-size: 13px; white-space: nowrap; width: 100% !important; }

/* BUTTON */
.ledang-col-btn { width: 25%; text-align: center; border-left: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: center; }
button.ledang-btn { 
    background-color: #095d30 !important; border: 1px solid #095d30 !important; color: #fff !important; 
    font-weight: 700; border-radius: 4px; padding: 0 25px !important; line-height: 40px !important; 
    min-height: 40px !important; text-transform: uppercase; font-size: 14px; margin: 0 !important; 
    width: auto !important; min-width: 140px; cursor: pointer; white-space: nowrap; 
}
button.ledang-btn:hover { background-color: #008acb !important; }

/* POPUP FORM */
.ledang-rating-wrapper { text-align: left; margin: 20px 0; border-top: 1px solid #eee; padding-top: 20px; }
.ledang-rating-header { font-weight: 700; display: block; margin-bottom: 15px; font-size: 15px; color: #333; }
.ledang-stars { display: flex; flex-direction: row-reverse; justify-content: space-between; }
.ledang-star-item { flex: 1; text-align: center; position: relative; }
.ledang-star-item input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; top:0; left:0; }
.ledang-star-item .g-icon { color: #ddd; font-size: 30px !important; transition: color 0.2s; font-family: sans-serif !important; display:block; }
.ledang-star-item .g-text { color: #999; font-size: 11px; display:block; margin-top:5px; }
.ledang-star-item:hover .g-icon, .ledang-star-item:hover ~ .ledang-star-item .g-icon,
.ledang-star-item.selected .g-icon, .ledang-star-item.selected ~ .ledang-star-item .g-icon { color: #CB4B01 !important; }
.ledang-star-item:hover .g-text, .ledang-star-item.selected .g-text { color: #CB4B01; font-weight: bold; }

/* MODAL OVERLAY */
body.ledang-modal-open { overflow: hidden; }
.ledang-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 99999; display: flex; align-items: center; justify-content: center; }
.ledang-modal-content { background: #fff; width: 700px; max-width: 95%; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); max-height: 90vh; overflow-y: auto; }
.ledang-modal-close { position: absolute; right: 15px; top: 10px; font-size: 30px; font-weight: bold; color: #aaa; cursor: pointer; z-index: 10; }
.ledang-modal-title { text-align: center; padding: 20px; margin: 0; border-bottom: 1px solid #eee; font-size: 18px; font-weight: bold; background: #f9f9f9; }
.ledang-modal-body { padding: 25px; }
.ledang-modal-body input, .ledang-modal-body textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.ledang-modal-body #submit { width: 100%; font-weight: bold; border-radius: 4px; text-transform: uppercase; margin-top: 10px; cursor: pointer; border: none; }

/* HIDE DEFAULT ELEMENTS */
.ledang-modal-body .comment-form-rating, .ledang-modal-body p.stars, 
#ledang_review_list_wrapper #review_form_wrapper, 
#ledang_review_list_wrapper .woocommerce-Reviews-title, 
#ledang_review_list_wrapper h2, .comments-title { display: none !important; }

/* LIST REVIEW STYLING */
#ledang_review_list_wrapper ol.commentlist li .comment_container { display: flex; padding: 15px 0; }
#ledang_review_list_wrapper img.avatar { width: 40px !important; height: 40px !important; border-radius: 50% !important; margin-right: 15px !important; }
#ledang_review_list_wrapper .star-rating { float: none !important; display: inline-block; color: #CB4B01 !important; font-size: 13px !important; margin-top: 5px !important; }

/* MOBILE RESPONSIVE */
@media (min-width: 600px) {
    .ledang-modal-body .comment-form-author, .ledang-modal-body .comment-form-email, .ledang-modal-body .comment-form-phone { width: 32%; float: left; margin-right: 2%; margin-bottom: 15px; }
    .ledang-modal-body .comment-form-phone { margin-right: 0; }
    .ledang-modal-body .form-submit { clear: both; }
}
@media (max-width: 768px) { 
    .ledang-summary-box { flex-direction: column; padding: 15px; } 
    .ledang-col-score, .ledang-col-bars, .ledang-col-btn { width: 100%; border: none; margin-bottom: 20px; padding: 0; } 
    .ledang-row { grid-template-columns: 50px 1fr 90px !important; font-size: 17px !important; }
    .ledang-text { font-size: 11px; }
}