
.sago-review-custom{
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
}
.woocommerce #reviews .rating_details .rating_details_avg {
  margin: 0 0 10px -2px;
  font-size: 2.8em;
  line-height: 0.9em;
  font-weight: 600;
  color: #0047ff;
}

.woocommerce #reviews .rating_details .rating_details_avg_stars .star-rating {
  float: none;
}

.woocommerce .star-rating,
.woocommerce-page .star-rating {
  width: 88px;
  height: 1.2em;
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 14px;
  letter-spacing: 4px;
}

.woocommerce .required {
  color: red;
}

.woocommerce #reviews .rating_details .rating_details_table {
  margin-top: 1em;
  width: 90%;
  font-size: 16px;
}

.woocommerce
  #reviews
  .rating_details
  .rating_details_table
  .rating_details_table_row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
}

.woocommerce
  #reviews
  .rating_details
  .rating_details_table
  .rating_details_table_row
  .rating_details_table_cell_mark {
  flex-basis: 18%;
  box-sizing: border-box;
  padding-right: 0.5em;
}

.woocommerce
  #reviews
  .rating_details
  .rating_details_table
  .rating_details_table_row
  .rating_details_table_cell_bar {
  flex-basis: 70%;
  height: 6px;
  margin-top: 3px;
  background-color: #eef6fa;
}

.woocommerce
  #reviews
  .rating_details
  .rating_details_table
  .rating_details_table_row
  .rating_details_table_cell_bar
  [class*="rating_details_table_cell_bar_fill_"] {
  height: 6px;
  background-color: #0047ff;
}

.woocommerce
  #reviews
  .rating_details
  .rating_details_table
  .rating_details_table_row
  .rating_details_table_cell_total {
  flex-basis: 12%;
  box-sizing: border-box;
  padding-left: 0.5em;
}

.woocommerce .comment-form .comment-form-rating,
.woocommerce #review_form #respond p,
.woocommerce .submit {
  margin: 0 0 1.4em;
}

.woocommerce #review_form #respond input[type="text"],
.woocommerce #review_form #respond input[type="number"],
.woocommerce #review_form #respond input[type="email"],
.woocommerce #review_form #respond textarea,
.woocommerce-page #review_form #respond input[type="text"],
.woocommerce-page #review_form #respond input[type="number"],
.woocommerce-page #review_form #respond input[type="email"],
.woocommerce-page #review_form #respond textarea {
  width: 100%;
  box-shadow: 0 15px 15px -14px rgba(0, 0, 0, 0.018);
}

.woocommerce #review_form #respond p.stars {
  margin-bottom: 0;
  margin-top: 7px;
}
.woocommerce p.stars a,
.star-rating span,
.star-rating:before {
  color: #ffc107;
}

.woocommerce p.stars a {
  position: relative;
  height: 1em;
  width: 1em;
  text-indent: -999em;
  display: inline-block;
  text-decoration: none;
}

.woocommerce p.stars a::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-family: WooCommerce;
  content: "\e021";
  text-indent: 0;
}

.woocommerce p.stars:hover a::before {
  content: "\e020";
}

.woocommerce p.stars.selected a.active::before {
  content: "\e020";
}

.woocommerce
  select:not(.esg-sorting-select):not([class*="trx_addons_attrib_"]) {
  visibility: hidden;
}

.woocommerce #review_form #respond textarea,
.woocommerce-page #review_form #respond textarea {
  height: 6em;
  min-height: 5em;
  overflow: auto;
}

.woocommerce .comment-form p.comment-form-author,
.woocommerce .comment-form p.comment-form-email,
.woocommerce .comment-form p.comment-form-url {
  flex: initial;
}

.woocommerce .comment-respond input,
.woocommerce .comment-respond textarea {
  border: none;
  border-bottom: 1px solid #d3e5ee;
}

.sago-rating .sago-stars {
  margin-right: 15px;
}

.sago-rating.feedback .sago-stars {
  display: flex;
  gap: 5px;
  cursor: pointer;
}

.sago-rating .sago-stars svg {
  fill: #d0e8f0;
  font-size: 3em;
}

.sago-rating svg {
  transition: 0.3s ease-in-out;
  width: 25px;
  height: auto;
}

.sago-rating.feedback .sago-stars .sago-star svg:hover,
.sago-rating .sago-stars .sago-star.to_rate svg,
.sago-rating .sago-stars .sago-star.rated svg {
  fill: #ffc107;
}

.woocommerce
  .single_product_details_position_default
  #reviews
  .rating_details
  ~ #comments {
  order: 3;
  float: none;
  width: 100%;
  margin-top: 60px;
}

.woocommerce .comment_container {
  display: flex;
  gap: 10px;
}

.woocommerce .comment_container .avatar {
  background: 0 0;
  border: none;
  padding: 0;
  position: static;
  width: 60px;
  border-radius: 10px;
}

.valid__error {
  color: red;
  font-size: 12px;
}

.rating_details_table_row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.rating_details_table_cell {
  padding: 5px;
}

.rating_details_table_cell_mark {
  width: 100px;
}

.rating_details_table_cell_bar {
  flex: 1;
  height: 20px;
  background-color: #e0e0e0;
  margin: 0 10px;
  position: relative;
}

.rating_details_table_cell_bar_fill {
  height: 100%;
  background-color: #0047ff;
  position: absolute;
  top: 0;
  left: 0;
  transition: width 0.3s ease;
}

.rating_details_table_cell_total {
  width: 50px;
  text-align: right;
}

input:disabled {
  cursor: not-allowed; /* Thay đổi con trỏ chuột */
  opacity: 0.6; /* Giảm độ trong suốt (tùy chọn) */
  pointer-events: none;
}
.woocommerce .sc_form_field_wrap {
  display: flex;
  gap: 5px;
  align-items: center;
}

.sago-rating.rating__comment svg {
  width: 17px;
}

.comment_container .description p {
  margin-bottom: 5px;
}

/* Popup */

.sago-message {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translate(-50%, 0%);
  width: 300px;
  background: white;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-weight: 300;
  color: #2c2928;
  opacity: 0;
  transition: top 0.3s cubic-bezier(0.31, 0.25, 0.5, 1.5),
    opacity 0.2s ease-in-out;
  z-index: 1;
}
.sago-message .sago-check {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%) scale(4);
  width: 110px;
  height: 110px;
  background: #0047ff;
  color: white;
  font-size: 3.8rem;
  padding-top: 10px;
  border-radius: 50%;
  opacity: 0;
  transition: transform 0.2s 0.25s cubic-bezier(0.31, 0.25, 0.5, 1.5),
    opacity 0.1s 0.25s ease-in-out;
}
.sago-message .scaledown {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.sago-message p {
  font-size: 14px;
  margin: 15px 0px;
  padding: 0;
}
.sago-message p:nth-child(2) {
  font-size: 24px;
  margin: 40px 0px 0px 0px;
}
.sago-message #ok {
  position: relative;
  color: white;
  border: 0;
  background: rgb(0, 71, 255, 0.8);
  width: 100%;
  height: 50px;
  border-radius: 6px;
  font-size: 1.2rem;
  transition: background 0.2s ease;
  outline: none;
  margin-bottom: 0;
}

.sago-message #ok:hover {
  background: rgb(0, 71, 255, 1);
}
.sago-message #ok:active {
  background: rgb(0, 71, 255, 1);
}

.comein {
  top: 150px;
  opacity: 1;
  z-index: 2;
}

.cp__loader--wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.cp__loader--wrapper.inner {
  position: absolute;
}

.cp__loader--overlay {
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  background: #333;
  opacity: 0.4;
}

.cp__loader--wrapper.show {
  opacity: 1;
  visibility: visible;
  overflow: hidden;
}

.checkmark::before {
  content: "\2714"; /* Unicode cho dấu check */
}

/* CSS cho phân trang */
.sago-pagination {
  display: flex;
  list-style-type: none;
  padding: 0;
  justify-content: center; /* Canh giữa */
  margin: 20px 0;
}

.sago-pagination li {
  margin: 0 5px;
  margin-left: 0 !important;
}

.sago-pagination li a {
  display: block;
  padding: 5px 10px;
  background-color: #f1f1f1;
  color: #0073aa;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #ddd;
  transition: background-color 0.3s, color 0.3s;
}

.sago-pagination .prev,
.sago-pagination .next {
  display: none;
}

.sago-pagination li a:hover {
  background-color: #0073aa;
  color: #fff;
}

.sago-pagination li span {
  display: block;
  padding: 5px 10px;
  background-color: #0073aa;
  color: #fff;
  border-radius: 4px;
  border: 1px solid #0073aa;
}

/* Để làm nổi bật trang hiện tại */
.sago-pagination li span {
  background-color: #0047ff;
  color: #fff;
  cursor: default;
}

#comments {
  position: relative;
  min-height: 200px;
}

#comments.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0, 0.1);
}

.sago-reply-comment a {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  transition: 0.3s ease-in-out;
}

.reply-commentform {
  display: none;
}

.sago-reply-comment textarea {
  min-width: 360px;
  margin-bottom: 0;
}

#sendReply {
  margin-left: 8px;
  background-color: #f5f6f7;
  color: #4b4f56;
  text-decoration: none;
  line-height: 22px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: bold;
  position: relative;
  text-align: center;
  border-color: #ccd0d5;
}

.sago-replycontent {
  display: flex;
  gap: 10px;
}

.sago-replycontent .sago-replycontent--image {
  width: 32px;
  height: 32px;
  background-size: cover;
  margin: 0px 8px 0px 0px;
  border-radius: 50%;
  min-width: 32px;
}

.sago-replycontent .sago-replycontent--image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.replycontent-check-icon {
  display: block;
  width: 10px;
  height: 10px;
  background-color: rgb(13, 92, 182);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  margin: 0px 0px 0px 4px;
}

.replycontent-check-icon::before {
  content: "";
  width: 5px;
  height: 3px;
  border-left: 1px solid rgb(255, 255, 255);
  border-bottom: 1px solid rgb(255, 255, 255);
  position: absolute;
  display: block;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -70%) rotate(-45deg);
}

#reviewResults .comment-text {
  flex: 1;
}

.replycontent-description-inner {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sago-replycontent .sago-replycontent-description {
  padding: 10px 12px;
  border: 1px solid rgb(242, 242, 242);
  background-color: rgb(250, 250, 250);
  border-radius: 6px;
  -webkit-box-flex: 1;
  flex-grow: 1;
}

.replycontent-date {
  color: rgb(120, 120, 120);
  position: relative;
  z-index: 1;
  font-size: 13px;
  line-height: 20px;
}

.reply-commentform {
  border: 1px solid #ccc; /* Đường viền xung quanh khung */
  border-radius: 5px; /* Bo góc khung */
  padding: 15px; /* Khoảng cách bên trong khung */
  margin-top: 10px; /* Khoảng cách từ trên xuống */
  background-color: #f9f9f9; /* Màu nền cho khung */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Đổ bóng nhẹ cho khung */
}

.reply-form {
  width: 100%; /* Chiều rộng của textarea bằng 100% */
  padding: 10px; /* Khoảng cách bên trong textarea */
  border: 1px solid #ccc; /* Đường viền cho textarea */
  border-radius: 4px; /* Bo góc cho textarea */
  resize: vertical; /* Cho phép người dùng thay đổi kích thước chiều cao */
}

.send-reply,
.cancel-reply {
  display: inline-block; /* Hiển thị dưới dạng khối bên nhau */
  margin-top: 10px; /* Khoảng cách từ trên xuống */
  padding: 8px 15px; /* Khoảng cách bên trong button */
  border: none; /* Bỏ đường viền */
  border-radius: 4px; /* Bo góc cho button */
  cursor: pointer; /* Đổi con trỏ thành tay khi hover */
}

.send-reply {
  background-color: #28a745; /* Màu nền cho nút "Trả lời" */
  color: #fff; /* Màu chữ cho nút "Trả lời" */
  padding: 0.375rem 0.75rem;
}

.cancel-reply {
  background-color: #f8f9fa; /* Màu nền cho nút "Hủy" */
  color: #212529; /* Màu chữ cho nút "Hủy" */
}

.send-reply:hover {
  color: #fff;
  background-color: #218838;
  border-color: #1e7e34;
}

.cancel-reply:hover {
  color: #212529;
  background-color: #e2e6ea;
  border-color: #dae0e5;
}

.sc_form_field_wrap input {
  margin: 0 !important;
}

.privacy-policy {
  margin-bottom: 0;
}

.privacy-policy a {
  text-decoration: underline;
}

.is__buy {
  display: inline-block;
  background-color: #28a745; /* Màu nền của nhãn (màu xanh) */
  color: #fff; /* Màu chữ trắng */
  padding: 5px 10px; /* Khoảng cách giữa chữ và viền nhãn */
  font-size: 10px; /* Kích thước chữ */
  font-weight: bold; /* Chữ in đậm */
  border-radius: 15px; /* Bo góc cho nhãn */
  text-transform: uppercase; /* Chuyển chữ thành in hoa */
}

.is__buy::before {
  content: "\2713"; /* Biểu tượng dấu check */
  margin-right: 5px; /* Khoảng cách giữa dấu check và chữ */
  font-weight: bold;
}

.filter__review {
  display: flex;
  gap: 5px;
  align-items: center;
}

.filter__review p {
  margin-bottom: 0;
}

.filter__review .sago-rating {
  font-size: 14px;
  line-height: 20px;
  padding: 5px 12px;
  border-radius: 16px;
  color: rgb(120, 120, 120);
  background: rgb(238, 238, 238);
  cursor: pointer;
  display: flex;
  margin: 3px;
  align-items: center;
}

.filter__review .sago-stars {
  display: flex;
  gap: 3px;
  margin-right: 0;
}

.filter__review .sago-stars a {
  margin-top: -2px;
  display: flex;
  align-items: center;
}

.filter__review .sago-stars svg {
  width: 16px;
}

.filter__review .filter-review__check {
  display: none;
  width: 12px;
  height: 6px;
  border-left: 1px solid rgb(13, 92, 182);
  border-bottom: 1px solid rgb(13, 92, 182);
  transform: rotate(-45deg);
  margin: -3px 4px 0px 0px;
}

.filter__review .sago-rating.active {
  background: rgb(230, 238, 247) !important;
}


/* HTML: <div class="loader"></div> */
#comments .cp-loader {
  width: 30px;
  padding: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #25b09b;
  --_m: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
  mask: var(--_m);
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  animation: l3 1s infinite linear;
  
}
@keyframes l3 {
  to {
    transform: rotate(1turn);
  }
}

#comments .comments__loader--wrapper {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#comments.loading .comments__loader--wrapper {
  display: block;
}