#review-form .submit-review:hover,
.review-list .submit-review:hover {
  opacity: 0.8;
}

/* Keep the familiar WordPress comment layout while leaving theme typography
   and the plugin's configurable button colors in place. */
#ng-reviews-title {
  margin-bottom: 18px;
}

.ng-reviews-total {
  margin-bottom: 16px;
  font-size: 0.9em;
  opacity: 0.75;
}

ol.comment-list.review-list {
  /* Keep the form below the complete list, even if the theme floats comments. */
  display: flow-root;
  float: none;
  clear: both;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
}

ol.comment-list.review-list > li.review-root {
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.13);
}

.review-list .review-item {
  list-style: none;
}

.review-list .review-item .comment-content {
  margin: 12px 0 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.review-list .review-item .comment-content p:last-child {
  margin-bottom: 0;
}

.review-list .review-item .comment-author .fn {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-weight: 600;
}

.review-list .review-item .comment-metadata {
  font-size: 0.88em;
  line-height: 1.5;
  opacity: 0.72;
}

.review-list .review-item .comment-metadata a {
  color: inherit;
  text-decoration: none;
}

.review-list .review-item .comment-metadata a:hover,
.review-list .review-item .comment-metadata a:focus-visible {
  text-decoration: underline;
}
#review-form .review-form-submit-container,
.review-list .review-form-submit-container {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

ol.comment-list.review-list > li.review-form-submit-container {
  float: none;
  clear: both;
  width: 100%;
  box-sizing: border-box;
  padding: 0 0 12px;
}

#review-form .review-form-submit-container.center,
.review-list .review-form-submit-container.center {
  justify-content: center;
}

#review-form .review-form-submit-container.right,
.review-list .review-form-submit-container.right {
  justify-content: flex-end;
}
#review-form .review-form-submit-container:before,
.review-list .review-form-submit-container:before {
  display: none;
}

#review-form .submit-review,
.review-list .submit-review {
  border: none;
  border-radius: 3px;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  font: inherit;
  line-height: 1.4;
  transition: background-color 0.3s ease;
}

.review-hidden {
  display: none;
}

.review-list .ng-review-children {
  list-style: none;
  margin: 18px 0 0 28px;
  padding: 0 0 0 18px;
  border-left: 1px solid rgba(0, 0, 0, 0.16);
}
.review-list .ng-review-children .review-item {
  margin: 0 0 18px;
}
.review-list .ng-review-children .review-item:last-child {
  margin-bottom: 0;
}
.ng-carousel-children {
  margin: 18px 0 0 20px;
  padding-left: 16px;
  border-left: 1px solid rgba(0, 0, 0, 0.16);
}
.ng-carousel-reply { margin: 16px 0; overflow-wrap: anywhere; }
.ng-review-reply-button,
#ng-review-cancel-reply {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 4px 0 2px;
  font: inherit;
  font-size: 0.9em;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.ng-review-reply-button:hover,
#ng-review-cancel-reply:hover { opacity: 0.7; }

#review-form {
  display: flow-root;
  float: none;
  clear: both;
  width: 100%;
  box-sizing: border-box;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.13);
}

#review-form h3 { margin: 0 0 18px; }

#ng-review-reply-context {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-left: 2px solid currentColor;
  background: rgba(0, 0, 0, 0.04);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#ng-review-reply-context > span {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#ng-review-reply-context[hidden] { display: none; }

#ng-review-form .comment-form-author { flex-wrap: wrap; }

#ng-review-form input[type="text"],
#ng-review-form textarea {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  color: inherit;
  font: inherit;
}

#ng-review-form input[type="text"]:focus-visible,
#ng-review-form textarea:focus-visible,
.ng-review-reply-button:focus-visible,
#ng-review-cancel-reply:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .review-list .ng-review-children { margin-left: 12px; padding-left: 12px; }
  .ng-carousel-children { margin-left: 12px; padding-left: 12px; }
  #ng-review-form .comment-form-author { display: block !important; }
  #ng-review-form .comment-form-author label { display: block; margin-bottom: 6px; }
}

.ng-review-rating {
  display: inline-block;
  font-size: 0;
  white-space: nowrap;
}

.ng-review-star {
  font-size: 30px;
  color: gray;
  cursor: pointer;
}

.ng-review-star.active {
  color: gold;
}

.ng-review-rating-container .ng-review-star {
  font-size: 20px;
}
.ng-review-rating-container.left {
  position: absolute;
  top: 0;
  left: 0;
}

.review-list .comment-meta:after {
  content: '';
  display: block;
  clear: both;
}

.review-item .comment-content + .comment-meta {
  margin-top: 10px;
}

.review-list .review-item .comment-author {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.review-list .review-item .comment-metadata {
  display: block;
}

.review-list .review-item .review-body {
  position: relative;
  padding-left: 10px;
}

#ng-review-form label {
  margin-right: 10px;
  min-width: 80px;
  white-space: nowrap;
}

#ng-review-form textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 6px 12px;
  line-height: 1.42857143;
}
