.wui-content .wui-reviews {
  color: #1f2937;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 auto;
}

.wui-reviews button,
.wui-reviews input,
.wui-reviews textarea {
  font-family: inherit;
  letter-spacing: 0;
}

.wui-reviews__panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px 30px 18px;
}

.wui-reviews__header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 26px;
  align-items: start;
}

.wui-reviews__header h2 {
  /* color: #333;
  font-size: 18px;
  line-height: 1.25;
  margin: 0; */
  margin: 10px 0 0 0;
}

.wui-review-write,
.wui-review-submit {
  align-items: center;
  background: #1479f6;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 4px 18px;
  text-transform: initial;
  width: 150px;
}

.wui-review-write:hover,
.wui-review-submit:hover {
  background: #0867df;
  color: #fff;
}

.wui-reviews__summary {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(150px, 0.65fr) minmax(280px, 1.45fr) minmax(210px, 0.8fr);
  margin-bottom: 28px;
}

.wui-reviews__summary--no-media {
  grid-template-columns: minmax(150px, 0.65fr) minmax(280px, 2fr);
}

.wui-reviews__score {
  text-align: center;
}

.wui-reviews__score div {
  align-items: baseline;
  display: inline-flex;
  gap: 4px;
  justify-content: center;
}

.wui-reviews__score span,
.wui-review-stars span,
.wui-review-bar i,
.wui-review-form-stars span {
  color: #fb8c00;
}

.wui-reviews__score strong {
  color: #111827;
  font-size: 38px;
  line-height: 1;
}

.wui-reviews__score em {
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.wui-reviews__score p,
.wui-reviews__score a {
  color: #4b5563;
  display: block;
  margin: 6px 0 0;
  text-decoration: none;
}

.wui-reviews__score i {
  border: 1px solid #9ca3af;
  border-radius: 50%;
  color: #64748b;
  display: inline-flex;
  font-size: 10px;
  font-style: normal;
  height: 14px;
  justify-content: center;
  margin-left: 5px;
  width: 14px;
}

.wui-reviews__score a {
  color: #94a3b8;
  font-weight: 600;
}

.wui-reviews__bars {
  display: grid;
  gap: 8px;
}

.wui-review-bar {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 28px minmax(120px, 1fr) 48px;
}

.wui-review-bar > span {
  color: #111827;
  font-weight: 600;
}

.wui-review-bar b {
  background: #eeeeef;
  border-radius: 999px;
  display: block;
  height: 6px;
  overflow: hidden;
}

.wui-review-bar b span {
  background: #66b9ff;
  border-radius: inherit;
  display: block;
  height: 100%;
}

.wui-review-bar strong {
  color: #3f3f46;
  font-size: 13px;
  text-align: right;
}

.wui-review-media {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wui-review-media a,
.wui-review-item__images a,
.wui-review-previews span {
  background: #f3f4f6;
  border-radius: 7px;
  display: block;
  overflow: hidden;
  position: relative;
}

.wui-review-media img,
.wui-review-item__images img,
.wui-review-previews img {
  display: block;
  height: 74px;
  object-fit: contain;
  width: 100%;
}

.wui-review-media a span {
  align-items: center;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  display: flex;
  font-size: 13px;
  inset: 0;
  justify-content: center;
  line-height: 1.3;
  padding: 10px;
  position: absolute;
  text-align: center;
}

.wui-review-controls {
  align-items: flex-start;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 6px 0 18px;
}

.wui-review-filters {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.wui-review-filters > strong {
  color: #222;
  font-size: 15px;
}

.wui-review-rating-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wui-review-rating-filters button {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 999px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  gap: 4px;
  justify-content: center;
  min-height: 32px;
  min-width: 48px;
  padding: 0 20px;
  text-transform: initial;
  height: 32px;
}

.wui-review-rating-filters button:hover,
.wui-review-rating-filters button.is-active {
  background: #fff;
  border-color: #1479f6;
  color: #1479f6;
}

.wui-review-rating-filters span {
  color: #fb8c00;
}

.wui-review-image-filter {
  align-items: center;
  color: #303846;
  display: inline-flex;
  font-size: 14px;
  gap: 6px;
}

.wui-review-image-filter input {
  appearance: none;
  border: 1px solid #9ca3af;
  border-radius: 3px;
  height: 16px;
  margin: 0;
  position: relative;
  width: 16px;
  margin-right: 0 !important;
}

.wui-review-image-filter input:checked {
  background: #1479f6;
  border-color: #1479f6;
}

.wui-review-image-filter input:checked::after {
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  content: "";
  height: 8px;
  left: 5px;
  position: absolute;
  top: 1px;
  transform: rotate(45deg);
  width: 4px;
}

.wui-review-sort {
  align-items: center;
  color: #111827;
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.wui-review-sort span {
  font-size: 14px;
}

.wui-review-sort select {
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 6px;
  color: #111827;
  font-size: 14px;
  min-height: 36px;
  padding: 0 32px 0 10px;
  margin: 0;
}

.wui-review-list {
  display: grid;
  /*min-height: 120px;*/
  position: relative;
  scroll-margin-top: 96px;
}

.wui-reviews.is-review-loading .wui-review-list {
  opacity: 0.58;
  pointer-events: none;
}

.wui-review-item {
  border-top: 1px solid #e5e7eb;
  padding: 18px 0;
}

.wui-review-item:first-child {
  border-top: 0;
}

.wui-review-item header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 8px;
}

.wui-review-item header strong {
  color: #1f2937;
  font-size: 15px;
}

.wui-review-verified {
  align-items: center;
  color: #10a64a;
  display: inline-flex;
  font-size: 13px;
  gap: 3px;
}

.wui-review-verified::before {
height: 22px;
  width: 22px;
  content: "\f147";
  font-family: 'dashicons';
  font-size: 22px;
  line-height: 1;
}

.wui-review-item__rating {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.wui-review-stars {
  display: inline-flex;
  gap: 2px;
  white-space: nowrap;
}

.wui-review-stars span:not(.is-active) {
  color: #d1d5db;
}

.wui-review-recommend {
  color: #334155;
  font-size: 13px;
}

.wui-review-recommend::before {
  color: #ef233c;
  content: "♥";
  font-size: 15px;
  margin-right: 5px;
}

.wui-review-item__content p {
  color: #243044;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 10px;
}

.wui-review-item__images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.wui-review-item__images a {
  flex: 0 0 76px;
}

.wui-review-item__images img {
  height: 76px;
}

.wui-review-reply {
  background: #f1f5fb;
  border-radius: 6px;
  color: #27364f;
  margin: 10px 0;
  padding: 10px 12px;
}

.wui-review-reply p {
  margin: 0;
}

.wui-review-item footer {
  align-items: center;
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.wui-review-item footer button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  gap: 5px;
  padding: 0;
  text-transform: initial;
  background: transparent !important;
  height: auto;
  margin-top: 5px;
}
.wui-review-item footer button:hover,
.wui-review-item footer button.is-voted,
.wui-review-item footer button:disabled {
  background: transparent !important;
  opacity: 1;
}

.wui-review-item footer button::before {
  content: none;
}

.wui-review-item footer span {
  color: #8a96aa;
  font-size: 13px;
}
.wui-review-item footer button .dashicons {
  flex: 0 0 16px;
  font-size: 15px;
  height: 16px;
  line-height: 16px;
  width: 16px;
}

.wui-review-empty {
  border-top: 1px solid #e5e7eb;
  color: #64748b;
  padding: 18px 0 8px;
}

.wui-review-empty p {
  margin: 0;
}

.wui-review-pagination {
  align-items: center;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 18px 0 6px;
}

.wui-review-pagination button,
.wui-review-pagination span {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 6px;
  color: #334155;
  display: inline-flex;
  font-size: 14px;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 10px;
}

.wui-review-pagination button {
  cursor: pointer;
  text-transform: initial;
}

.wui-review-pagination button:hover,
.wui-review-pagination button.is-active {
  border-color: #1479f6;
  color: #1479f6;
}

.wui-review-pagination button:disabled {
  cursor: default;
  opacity: 0.5;
}

.wui-review-pagination span {
  border-color: transparent;
}

.wui-review-modal[hidden] {
  display: none;
}

.wui-review-gallery-modal[hidden] {
  display: none;
}

.wui-review-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 1002;
}

.wui-review-gallery-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 1003;
}

.wui-review-modal__backdrop {
  background: rgba(0, 0, 0, 0.72);
  inset: 0;
  position: absolute;
}

.wui-review-gallery-modal__backdrop {
  background: rgba(0, 0, 0, 0.46);
  inset: 0;
  position: absolute;
}

.wui-review-gallery-dialog {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
  max-width: 1000px;
  min-height: 590px;
  overflow: hidden;
  position: relative;
  width: min(1000px, calc(100vw - 56px));
}

.wui-review-gallery-dialog__head {
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  height: 64px;
  justify-content: space-between;
  padding: 0 20px 0 28px;
}

.wui-review-gallery-back,
.wui-review-gallery-close,
.wui-review-gallery-arrow {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  padding: 0;
  text-transform: initial;
}

.wui-review-gallery-back {
  background: transparent;
  color: #1479f6;
  font-size: 15px;
  gap: 8px;
}

.wui-review-gallery-back::before {
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  content: "";
  height: 8px;
  transform: rotate(-45deg);
  width: 8px;
}

.wui-review-gallery-close {
  background: transparent;
  color: #333;
  font-size: 34px;
  height: 42px;
  line-height: 1;
  width: 42px;
}

.wui-review-gallery-dialog__body {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(240px, 46%) minmax(280px, 1fr);
  min-height: 526px;
  padding: 30px 86px 36px;
}

.wui-review-gallery-image {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 480px;
}

.wui-review-gallery-image img {
  border-radius: 8px;
  display: block;
  max-height: 520px;
  max-width: 100%;
  object-fit: contain;
}

.wui-review-gallery-info {
  padding-top: 16px;
}

.wui-review-gallery-info header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.wui-review-gallery-info header strong {
  color: #1f2937;
  font-size: 16px;
}

.wui-review-gallery-rating {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.wui-review-gallery-info p {
  color: #111827;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.wui-review-gallery-arrow {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  color: #fff;
  font-size: 42px;
  height: 52px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  z-index: 2;
}

.wui-review-gallery-arrow--prev {
  left: 10px;
}

.wui-review-gallery-arrow--next {
  right: 10px;
}

.wui-review-gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
}

.wui-review-dialog {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
  max-height: min(92vh, 760px);
  max-width: 680px;
  overflow-y: auto;
  padding: 0 30px 28px;
  position: relative;
  width: min(680px, 100%);
}

.wui-review-dialog__head {
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  height: 52px;
  justify-content: center;
  margin: 0 -30px 20px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.wui-review-dialog__head h2 {
  color: #111827;
  font-size: 17px;
  margin: 0;
  padding-left: 30px;
}

.wui-review-dialog__head button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #333;
    cursor: pointer;
    display: flex;
    font-size: 22px;
    height: 30px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 18px;
    top: 10px;
    width: 30px;
}

.wui-review-dialog__product {
  align-items: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-bottom: 18px;
  text-align: center;
}

.wui-review-dialog__product img {
  height: 96px;
  object-fit: contain;
  width: 96px;
}

.wui-review-dialog__product strong {
  color: #111827;
  font-size: 19px;
  line-height: 1.25;
}

.wui-review-form-stars {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 auto 20px;
  max-width: 460px;
}

.wui-review-form-stars button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #7c7c82;
  cursor: pointer;
  display: grid;
  gap: 3px;
  justify-items: center;
  min-width: 0;
  padding: 0;
  text-transform: initial;
}
.wui-review-form-stars button:hover{
  background: transparent !important;
}

.wui-review-form-stars span {
  font-size: 36px;
  line-height: 1;
}

.wui-review-form-stars button:not(.is-active) span {
  color: transparent;
  -webkit-text-stroke: 1px #fb8c00;
}

.wui-review-form-stars small {
  color: #71717a;
  font-size: 13px;
  min-height: 18px;
  white-space: nowrap;
}

.wui-review-form-stars .is-current small {
  color: #fb8c00;
  font-weight: 700;
}

.wui-review-dialog textarea,
.wui-review-fields input {
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  color: #111827;
  font-size: 15px;
  outline: none;
  width: 100%;
}

.wui-review-dialog textarea:focus,
.wui-review-fields input:focus {
  border-color: #7dbaf8;
  box-shadow: 0 0 0 3px rgba(20, 121, 246, 0.12);
}

.wui-review-dialog textarea {
  min-height: 95px;
  padding: 14px;
  resize: vertical;
}

.wui-review-dialog__options {
  align-items: center;
  
  
  
  margin: 12px 0;
}

.wui-review-dialog__options label,
.wui-review-consent {
  align-items: center;
  color: #303846;
  display: inline-flex;
  font-size: 14px;
  gap: 7px;
  margin-bottom: 15px;
}

.wui-review-dialog input[type="checkbox"] {
  appearance: none;
  border: 1px solid #6b7280;
  border-radius: 4px;
  height: 16px;
  margin: 0;
  position: relative;
  width: 16px;
}

.wui-review-dialog input[type="checkbox"]:checked {
  background: #1479f6;
  border-color: #1479f6;
}

.wui-review-dialog input[type="checkbox"]:checked::after {
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  content: "";
  height: 8px;
  left: 5px;
  position: absolute;
  top: 1px;
  transform: rotate(45deg);
  width: 4px;
}

.wui-review-upload {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
  position: relative;
}

.wui-review-upload input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.wui-review-upload label {
  align-items: center;
  color: #1479f6;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 7px;
  margin: 0;
}

.wui-review-upload label::before {
  content: "";
  height: 22px;
  position: relative;
  width: 22px;
  background-image: url(../images/icon-photo.png);
  background-repeat: no-repeat;
  display: inline-block;
  line-height: 30px;
  vertical-align: middle;
}

.wui-review-upload small {
  color: #4b5563;
  font-size: 13px;
}

.wui-review-previews {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}

.wui-review-previews span {
  flex: 0 0 58px;
}

.wui-review-previews img {
  height: 58px;
}

.wui-review-previews button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #000;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  height: 18px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 2px;
  top: 2px;
  width: 18px;
}

.wui-review-previews button:hover {
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
}

.wui-review-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0;
}

.wui-review-fields input {
  min-height: 42px;
  padding: 0 14px;
      box-shadow: none !important;
    border-radius: 5px !important;
}

.wui-review-consent {
  align-items: flex-start;
  line-height: 1.45;
  margin: 2px 0 18px;
}

.wui-review-consent input {
  flex: 0 0 auto;
  margin-top: 2px !important;
}

.wui-review-consent a {
  color: #1479f6;
  text-decoration: none;
}

.wui-review-submit {
  min-height: 50px;
  width: 100%;
}

.wui-review-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.wui-review-notice {
  color: #0f8a43;
  font-size: 14px;
  min-height: 20px;
  padding-top: 10px;
  text-align: center;
}

.wui-review-notice.is-error {
  color: #dc2626;
}

@media (max-width: 900px) {
  .wui-reviews__summary {
    grid-template-columns: minmax(140px, 0.7fr) minmax(240px, 1.3fr);
  }

  .wui-review-controls {
    flex-direction: column;
  }

  .wui-review-sort {
    width: 100%;
  }

  .wui-review-sort select {
    flex: 1;
  }

  .wui-review-media {
    grid-column: 1 / -1;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wui-content .wui-reviews {
    margin: 0 -12px;
  }

  .wui-reviews__panel {
    padding: 20px 16px 8px;
  }

  .wui-reviews__header,
  .wui-review-dialog__options,
  .wui-review-item footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .wui-review-write {
    width: 100%;
  }

  .wui-reviews__summary {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .wui-review-media {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wui-review-modal {
    align-items: stretch;
    padding: 12px;
  }

  .wui-review-gallery-modal {
    align-items: stretch;
    padding: 12px;
  }

  .wui-review-gallery-dialog {
    border-radius: 14px;
    min-height: 0;
    width: 100%;
  }

  .wui-review-gallery-dialog__body {
    gap: 18px;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px 48px 26px;
  }

  .wui-review-gallery-image {
    min-height: 280px;
  }

  .wui-review-gallery-image img {
    max-height: 420px;
  }

  .wui-review-gallery-info {
    padding-top: 0;
  }

  .wui-review-gallery-arrow {
    font-size: 34px;
    height: 42px;
    width: 42px;
  }

  .wui-review-dialog {
    border-radius: 14px;
    max-height: calc(100vh - 24px);
    padding: 0 18px 22px;
  }

  .wui-review-dialog__head {
    margin-left: -18px;
    margin-right: -18px;
  }

  .wui-review-form-stars {
    gap: 6px;
  }

  .wui-review-form-stars small {
    font-size: 11px;
  }

  .wui-review-form-stars span {
    font-size: 34px;
  }

  .wui-review-fields {
    grid-template-columns: 1fr;
  }

  .wui-review-upload {
    justify-content: flex-start;
    margin-left: 0;
  }
}
