/* Reviews */
.product-reviews-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 120px;
}

.woocommerce-Reviews {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.write-review-btn {
  text-align: center;
}

.write-review-btn button {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.write-review-btn svg {
  width: 16px;
  height: 16px;
}

.comment-form-comment textarea:focus,
.comment-form-comment textarea:focus-visible {
  outline: 1px solid var(--black1);
  border: 1px solid var(--black1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Review list */
.commentlist {
  display: flex;
  width: 800px;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.comment-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  align-self: stretch;
}

.commentlist li {
  width: 100%;
}

.reviewer-date-rate-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  align-self: stretch;
}

.reviewer-and-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1 0 0;
}

.comment-date {
  color: var(--grey1, #919191);
  text-align: center;
}

.review-summary,
.review-comment {
  width: 100%;
}
/* star */
.star-rating span {
  display: none;
}

.center {
  text-align: center;
}

/* separator */
.commentlist li {
  border-bottom: 1px solid var(--brand1);
  padding-bottom: 40px;
}

.commentlist li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* modal */
.review-modal.hidden {
  display: none;
}

.review-modal {
  position: fixed;
  inset: 0;
  background: rgba(34, 34, 34, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.review-modal-content {
  display: flex;
  width: 700px;
  padding: 32px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border-radius: 8px;
  background: var(--white1, #fff);
  position: relative;
}

.modal-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

/* btn close */
.modal-title-wrapper .reviews-modal-close {
  background-color: unset;
  border: unset;
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--black1);
}
.modal-title-wrapper .reviews-modal-close:hover {
  color: var(--black2);
}

.modal-title-wrapper .reviews-modal-close svg {
  flex-shrink: 0;
}

/* form */

#review_form_wrapper {
  width: 100%;
}
.comment-form {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.comment-form-rating {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
}
/* .comment-form-rating label,
.comment-form-comment label {
  font-weight: 400;
} */

.comment-form-comment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
}

.comment-form-comment textarea {
  width: 100%;
  display: flex;
  height: 150px;
  padding: 14.5px 16px;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  border-radius: 4px;
  border: 1px solid var(--border1, #cecdc9);
}

.thank-you-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  text-align: center;
}

.thank-you-wrapper p {
  color: var(--grey1);
}

#thankyou-modal .review-modal-content {
  align-items: center;
}

/* not logged in */
.not-logged-in {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.not-logged-in a {
  text-decoration: underline;
  color: var(--black1);
}

.not-logged-in a:hover {
  color: var(--grey1);
}

/* stars and rating */
.star-rating-input {
  display: flex;
  align-items: center;
  gap: 6.563px;
  cursor: pointer;
}
.star-rating-input span svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

/* responsive */
@media (max-width: 870px) {
  .commentlist,
  .woocommerce-Reviews {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .commentlist li {
    padding-bottom: 32px;
  }

  .custom-rating svg {
    width: 12px;
    height: 12px;
  }

  .product-reviews-container {
    margin-bottom: 10px;
    margin-top: 50px;
  }

  /* modal */
  .review-modal {
    padding: 0 16px;
  }
  .review-modal-content {
    width: 100%;
    padding: 24px 16px;
  }

  .form-submit,
  .form-submit .black-btn {
    width: 100%;
  }

  #thankyou-modal .review-modal-content {
    align-items: unset;
  }

  .not-logged-in {
    display: flex;
    flex-direction: column;
    gap: 6;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 376px) {
  .modal-title-wrapper {
    align-items: unset;
  }
}
