/* CSS Fix cho post type group_buying_program */

/* Đảm bảo reviews hiển thị đúng cho group_buying_program */
.post-type-group_buying_program #reviews,
.single-group_buying_program #reviews {
  border-bottom: 1px solid #ddd;
  width: 100%;
  max-width: 750px;
  margin: 0 auto 30px;
  padding: 20px 0;
}

.post-type-group_buying_program .woocommerce-Reviews,
.single-group_buying_program .woocommerce-Reviews {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

/* Fix cho star rating */
.post-type-group_buying_program .star_box,
.single-group_buying_program .star_box {
  border: 1px solid #ddd;
  border-radius: 7px;
  padding: 15px;
  margin: 15px 0 20px;
  overflow: hidden;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #f9f9f9;
}

.post-type-group_buying_program .star_box_left,
.single-group_buying_program .star_box_left {
  flex: 1;
}

.post-type-group_buying_program .star_box_right,
.single-group_buying_program .star_box_right {
  width: 190px;
  text-align: center;
}

/* Fix cho button đánh giá */
.post-type-group_buying_program .btn-reviews-now,
.single-group_buying_program .btn-reviews-now {
  background-color: #03a0e2;
  color: #fff;
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-type-group_buying_program .btn-reviews-now:hover,
.single-group_buying_program .btn-reviews-now:hover {
  background-color: #0288c7;
  color: #fff;
}

/* Fix cho form đánh giá */
.post-type-group_buying_program #review_form_wrapper,
.single-group_buying_program #review_form_wrapper {
  border-radius: 8px;
  padding: 25px;
  width: 100%;
  max-width: 600px;
  background: #fff;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Fix cho comments */
.post-type-group_buying_program .devvn_prod_cmt,
.single-group_buying_program .devvn_prod_cmt {
  width: 100%;
  max-width: 750px;
  margin: 30px auto;
  position: relative;
}

.post-type-group_buying_program .devvn_cmt_form,
.single-group_buying_program .devvn_cmt_form {
  margin: 0 0 25px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.post-type-group_buying_program .devvn_cmt_input textarea,
.single-group_buying_program .devvn_cmt_input textarea {
  border: 1px solid #c1bfbf;
  width: 100%;
  padding: 10px 15px;
  border-radius: 5px;
  outline: none;
  height: 100px;
  resize: vertical;
  font-family: inherit;
}

.post-type-group_buying_program .devvn_cmt_input input,
.single-group_buying_program .devvn_cmt_input input {
  border: 1px solid #c1bfbf;
  width: 100%;
  padding: 8px 12px;
  border-radius: 5px;
  outline: none;
  height: 35px;
}

/* Fix cho button submit */
.post-type-group_buying_program button#devvn_cmt_submit,
.single-group_buying_program button#devvn_cmt_submit,
.post-type-group_buying_program button#devvn_cmt_replysubmit,
.single-group_buying_program button#devvn_cmt_replysubmit {
  width: 100%;
  height: 40px;
  background: #fbd648;
  border: 0;
  text-transform: uppercase;
  font-weight: 700;
  outline: none;
  border-radius: 5px;
  margin: 10px 0 0;
  padding: 0 15px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.post-type-group_buying_program button#devvn_cmt_submit:hover,
.single-group_buying_program button#devvn_cmt_submit:hover,
.post-type-group_buying_program button#devvn_cmt_replysubmit:hover,
.single-group_buying_program button#devvn_cmt_replysubmit:hover {
  background: #f9d02e;
}

/* Fix cho review list */
.post-type-group_buying_program .commentlist,
.single-group_buying_program .commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-type-group_buying_program .commentlist li,
.single-group_buying_program .commentlist li {
  margin: 0 0 20px;
  padding: 15px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

/* Fix cho rating stars */
.post-type-group_buying_program .star-rating,
.single-group_buying_program .star-rating {
  color: #fe9727;
  font-size: 16px;
}

.post-type-group_buying_program .star-rating span:before,
.single-group_buying_program .star-rating span:before {
  color: #fe9727;
}

/* Fix cho mobile */
@media (max-width: 767px) {
  .post-type-group_buying_program .star_box,
  .single-group_buying_program .star_box {
    display: block;
  }

  .post-type-group_buying_program .star_box_left,
  .single-group_buying_program .star_box_left {
    display: block;
    margin: 0 0 15px;
  }

  .post-type-group_buying_program .star_box_right,
  .single-group_buying_program .star_box_right {
    width: 100%;
  }

  .post-type-group_buying_program #review_form_wrapper,
  .single-group_buying_program #review_form_wrapper {
    padding: 20px 15px;
    margin: 0 10px;
  }
}

/* Fix cho Magnific Popup */
.post-type-group_buying_program .mfp-bg,
.single-group_buying_program .mfp-bg {
  z-index: 99999999;
}

.post-type-group_buying_program .mfp-wrap,
.single-group_buying_program .mfp-wrap {
  z-index: 999999999;
}

/* Fix cho attachment images */
.post-type-group_buying_program .cmt_attachment_img,
.single-group_buying_program .cmt_attachment_img {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  overflow: hidden;
}

.post-type-group_buying_program .cmt_attachment_img li,
.single-group_buying_program .cmt_attachment_img li {
  width: 60px;
  float: left;
  margin: 0 10px 10px 0;
  padding: 0;
  border: 0;
  clear: none;
}

.post-type-group_buying_program .cmt_attachment_img li img,
.single-group_buying_program .cmt_attachment_img li img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Fix cho loading state */
.post-type-group_buying_program .devvn_loading,
.single-group_buying_program .devvn_loading {
  position: relative;
}

.post-type-group_buying_program .devvn_loading:before,
.single-group_buying_program .devvn_loading:before {
  position: absolute;
  content: "";
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 9;
}

/* Fix cho error messages */
.post-type-group_buying_program .error,
.single-group_buying_program .error {
  font-size: 12px;
  color: #e74c3c;
  margin-top: 5px;
}

/* Fix cho success messages */
.post-type-group_buying_program .success,
.single-group_buying_program .success {
  font-size: 12px;
  color: #27ae60;
  margin-top: 5px;
}
