.thl-product-reviews {
  --thl-pr-bg: #ffffff;
  --thl-pr-panel: #f7f7f7;
  --thl-pr-border: #e6e6e6;
  --thl-pr-text: #111111;
  --thl-pr-muted: #6f6f6f;
  --thl-pr-accent: #d9ff00;
  --thl-pr-accent-dark: #bcd500;
  --thl-pr-shadow: 0 20px 48px rgba(0, 0, 0, 0.06);
  font-family: inherit;
  color: var(--thl-pr-text);
  margin: 32px 0;
}

.thl-product-reviews *,
.thl-product-reviews *::before,
.thl-product-reviews *::after {
  box-sizing: border-box;
}

.thl-product-reviews__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.thl-product-reviews__title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--thl-pr-muted);
}

.thl-product-reviews__title h2 {
  margin: 8px 0 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.6;
  font-weight: 700;
  color: var(--thl-pr-text);
}

.thl-product-reviews__summary {
  min-width: 180px;
  padding: 16px 18px;
  border: 1px solid var(--thl-pr-border);
  border-radius: 20px;
  background: var(--thl-pr-bg);
  box-shadow: var(--thl-pr-shadow);
  text-align: right;
}

.thl-product-reviews__rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.thl-product-reviews__rating strong {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.thl-product-reviews__summary p {
  margin: 10px 0 0;
  color: var(--thl-pr-muted);
  font-size: 13px;
}

.thl-product-reviews__stars {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 2px;
  color: #b8b8b8;
}

.thl-product-reviews__star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  line-height: 1;
  color: #b8b8b8;
}

.thl-product-reviews__star.is-filled {
  color: #dffe02;
}

.thl-product-reviews__rating-icon {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.thl-product-reviews__notice {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--thl-pr-border);
  background: #fff;
  box-shadow: var(--thl-pr-shadow);
}

.thl-product-reviews__notice.is-success {
  border-color: rgba(185, 220, 30, 0.45);
  background: rgba(217, 255, 0, 0.18);
}

.thl-product-reviews__notice--success {
  border-color: rgba(185, 220, 30, 0.45);
  background: rgba(217, 255, 0, 0.18);
}

.thl-product-reviews__notice.is-error {
  border-color: rgba(214, 59, 59, 0.28);
  background: rgba(214, 59, 59, 0.08);
}

.thl-product-reviews__notice--error {
  border-color: rgba(214, 59, 59, 0.28);
  background: rgba(214, 59, 59, 0.08);
}

.thl-product-reviews__body {
  display: block;
}

.thl-product-reviews__list {
  min-width: 0;
}

.thl-product-reviews__actionbar {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 14px);
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  margin: 0 0 18px;
  scroll-margin-top: 96px;
  pointer-events: none;
}

.thl-product-reviews__trigger {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--thl-pr-accent);
  color: #111111;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.thl-product-reviews__trigger:hover,
.thl-product-reviews__trigger:focus-visible {
  background: var(--thl-pr-accent-dark);
  transform: translateY(-1px);
}

.thl-product-reviews__trigger.is-blocked {
  background: #202020;
  color: #ffffff;
  opacity: 0.78;
}

.thl-product-reviews__toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  width: auto;
}

.thl-product-reviews__toolbar label {
  color: var(--thl-pr-muted);
  font-size: 13px;
  font-weight: 700;
}

.thl-product-reviews__sort {
  width: auto;
  min-width: 160px;
  max-width: 220px;
  border: 1px solid var(--thl-pr-border);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--thl-pr-text);
  font: inherit;
}

.thl-product-reviews__sort:focus {
  border-color: #111111;
  outline: 2px solid rgba(17, 17, 17, 0.12);
  outline-offset: 2px;
  box-shadow: none;
}

.thl-product-review-card,
.thl-product-reviews__empty,
.thl-product-reviews__form {
  border: 1px solid var(--thl-pr-border);
  border-radius: 24px;
  background: var(--thl-pr-bg);
  box-shadow: var(--thl-pr-shadow);
}

.thl-product-review-thread,
.thl-product-review-card,
.thl-product-reviews__empty {
  margin-bottom: 16px;
}

.thl-product-review-thread {
  background: transparent;
}

.thl-product-review-card {
  position: relative;
  overflow: visible;
  padding: 18px 18px 16px;
  border-color: rgba(255, 255, 255, 0.08);
  background: #1c1c1c;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.thl-product-review-card::after {
  content: "";
  position: absolute;
  top: 24px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: #1c1c1c;
  border-radius: 3px;
  transform: rotate(45deg);
  z-index: 2;
}

.thl-product-review-card__head,
.thl-product-review-reply header,
.thl-product-review-form__rating,
.thl-product-review-form__field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.thl-product-review-card__meta strong,
.thl-product-review-reply strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.thl-product-review-card__meta span,
.thl-product-review-reply span,
.thl-product-review-form__field small,
.thl-product-reviews__admin-note {
  display: block;
  margin-top: 4px;
  color: var(--thl-pr-muted);
  font-size: 12px;
}

.thl-product-review-card__meta span,
.thl-product-review-card .thl-product-review-card__rating {
  color: rgba(255, 255, 255, 0.62);
}

.thl-product-review-card .thl-product-reviews__star.is-filled {
  color: var(--thl-pr-accent);
}

.thl-product-review-card .thl-product-reviews__star {
  color: rgba(255, 255, 255, 0.34);
}

.thl-product-review-card__meta strong {
  color: #ffffff;
}

.thl-product-review-card__rating {
  display: inline-flex;
  gap: 2px;
  color: rgba(255, 255, 255, 0.34);
}

.thl-product-review-card .thl-product-reviews__rating-icon {
  width: 15px;
  height: 15px;
}

.thl-product-review-card__badge,
.thl-product-review-reply__badge {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(217, 255, 0, 0.22);
  color: #111111;
  font-size: 12px;
  font-weight: 700;
}

.thl-product-review-card__badge {
  width: max-content;
  margin-top: 10px;
  background: rgba(217, 255, 0, 0.16);
  color: var(--thl-pr-accent);
}

.thl-product-review-card__content,
.thl-product-review-reply__content {
  font-size: 15px;
  line-height: 2;
  color: #1f1f1f;
}

.thl-product-review-card__content {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.thl-product-review-card__head + .thl-product-review-card__gallery {
  margin-top: 12px;
}

.thl-product-review-card__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 92px));
  gap: 8px;
  align-items: start;
  width: min(100%, 500px);
  margin-top: 12px;
}

.thl-product-review-card__gallery-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.thl-product-review-card__gallery-link img,
.thl-product-review-card__gallery > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thl-product-review-card__gallery > img {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 16px;
}

.thl-product-review-reply-toggle {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.thl-product-review-reply-toggle summary {
  cursor: pointer;
  font-weight: 700;
  color: #ffffff;
}

.thl-product-review-reply-toggle[open] summary {
  margin-bottom: 12px;
}

.thl-product-review-card__replies {
  margin: 16px 0 0;
  padding-inline-start: 30px;
}

.thl-product-review-reply {
  position: relative;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(217, 255, 0, 0.22);
  background: #202020;
  color: #ffffff;
}

.thl-product-review-reply.is-admin-reply {
  background: #202020;
}

.thl-product-review-reply.is-admin-reply::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 36px;
  width: 20px;
  height: 20px;
  background: #1c1c1c;
  border-radius: 3px;
  transform: rotate(45deg);
  z-index: 2;
}

.thl-product-review-reply header {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.thl-product-review-reply__content {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.92);
}

.thl-product-review-reply strong {
  color: var(--thl-pr-accent);
}

.thl-product-review-reply span {
  color: rgba(255, 255, 255, 0.62);
}

.thl-product-reviews__empty {
  padding: 20px;
  text-align: center;
}

.thl-product-reviews__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(217, 255, 0, 0.18);
  color: #111111;
  font-size: 30px;
}

.thl-product-reviews__empty-icon svg {
  display: block;
  width: 34px;
  height: 34px;
}

.thl-product-reviews__empty strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.thl-product-reviews__empty p {
  margin: 0;
  color: var(--thl-pr-muted);
  line-height: 2;
}

.thl-product-reviews__form {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.thl-product-review-form {
  display: grid;
  gap: 12px;
}

.thl-product-review-form__rating {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.thl-product-review-form__rating-options {
  display: inline-flex;
  flex-direction: row;
  direction: ltr;
  gap: 4px;
  width: max-content;
}

.thl-product-review-form__rating-options label {
  position: relative;
  display: inline-flex;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: transparent;
}

.thl-product-review-form__rating-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.thl-product-review-form__rating-options label span {
  color: #b8b8b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.thl-product-review-form__rating-options label span svg {
  width: 30px;
  height: 30px;
  display: block;
  fill: currentColor;
}

.thl-product-review-form__rating-options label.is-active span,
.thl-product-review-form__rating-options label.is-hovered span,
.thl-product-review-form__rating-options input:focus-visible + span {
  color: var(--thl-pr-accent);
}

.thl-product-review-form__rating-options input:focus-visible + span {
  outline: 2px solid #111111;
  outline-offset: 4px;
  border-radius: 6px;
}

.thl-product-review-form__field {
  display: grid;
  gap: 6px;
}

.thl-product-review-form__field span {
  justify-content: flex-start;
  font-size: 14px;
  font-weight: 700;
}

.thl-product-review-form__field textarea {
  width: 100%;
  border: 1px solid var(--thl-pr-border);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  color: var(--thl-pr-text);
  background: #fff;
}

.thl-product-review-form__field textarea:focus {
  border-color: #111111;
  outline: 2px solid rgba(17, 17, 17, 0.12);
  outline-offset: 2px;
  box-shadow: none;
}

.thl-product-review-form__field textarea {
  min-height: 124px;
  resize: vertical;
}

.thl-product-review-form__error {
  display: block;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
}

.thl-product-review-form__error[hidden] {
  display: none;
}

.thl-product-review-form__field--upload {
  gap: 8px;
}

.thl-product-review-form__upload-control {
  position: relative;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
}

.thl-product-review-form__upload-control input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.thl-product-review-form__upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.thl-product-review-form__upload-control:focus-within
  .thl-product-review-form__upload-button {
  outline: 2px solid rgba(17, 17, 17, 0.18);
  outline-offset: 2px;
}

.thl-product-review-form__upload-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.thl-product-review-form__upload-name {
  display: block;
  color: var(--thl-pr-muted);
  font-size: 12px;
  font-style: normal;
}

.thl-product-review-form__upload-meta strong {
  color: var(--thl-pr-muted);
  font-size: 12px;
  font-weight: 700;
}

.thl-product-review-form__preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thl-product-review-form__preview-grid[hidden] {
  display: none;
}

.thl-product-review-form__preview-item {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 14px;
  background: #f2f2f2;
}

.thl-product-review-form__preview-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thl-product-review-form__preview-remove {
  position: absolute;
  top: 4px;
  left: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.86);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.thl-product-review-form__field--upload small {
  margin-top: -2px;
}

.thl-product-reviews__admin-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.03);
}

.thl-product-reviews__submit {
  min-width: 160px;
  min-height: 46px;
  border: 0;
  border-radius: 18px;
  background: var(--thl-pr-accent);
  color: #111111;
  font-weight: 800;
  cursor: pointer;
}

.thl-product-reviews__submit:hover,
.thl-product-reviews__submit:focus,
.thl-product-reviews__submit:focus-visible {
  background: var(--thl-pr-accent-dark);
  color: #111111;
  outline: 2px solid rgba(17, 17, 17, 0.18);
  outline-offset: 2px;
  box-shadow: none;
}

.thl-product-reviews__load {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 18px 0 8px;
}

.thl-product-reviews__load[hidden] {
  display: none;
}

.thl-product-reviews__load-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: #111111;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.thl-product-reviews__load-status {
  min-height: 20px;
  color: var(--thl-pr-muted);
  font-size: 13px;
}

.thl-product-reviews__modal[hidden] {
  display: none;
}

.thl-product-reviews__modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.thl-product-reviews__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}

.thl-product-reviews__dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(680px, calc(100vh - 36px));
  overflow: auto;
  padding: 18px 18px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.28);
}

.thl-product-reviews__dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.thl-product-reviews__dialog-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
}

.thl-product-reviews__dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #1c1c1c;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.thl-product-reviews__dialog-close:hover,
.thl-product-reviews__dialog-close:focus,
.thl-product-reviews__dialog-close:focus-visible {
  background: #1c1c1c;
  color: #ffffff;
  box-shadow: none;
  border: none !important;
  outline-width: 0 !important;
}

.thl-product-reviews__modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.thl-product-reviews__cancel {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  background: #111111;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.thl-product-reviews__cancel:hover,
.thl-product-reviews__cancel:focus,
.thl-product-reviews__cancel:focus-visible {
  background: #202020;
  color: #ffffff;
  outline: 2px solid rgba(217, 255, 0, 0.65);
  outline-offset: 2px;
  box-shadow: none;
}

body.thl-product-review-modal-open {
  overflow: hidden;
}

.thl-product-reviews__toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100001;
  display: grid;
  gap: 10px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 18px;
  background: #1c1c1c;
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  direction: rtl;
  text-align: right;
}

.thl-product-reviews__toast a {
  color: var(--thl-pr-accent);
  font-weight: 800;
  text-decoration: none;
  direction: rtl;
  text-align: right;
}

@media (max-width: 1024px) {
  .thl-product-reviews__summary {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .thl-product-reviews {
    margin: 24px 0;
  }

  .thl-product-reviews__header {
    flex-direction: column;
    align-items: stretch;
  }

  .thl-product-reviews__summary {
    width: 100%;
  }

  .thl-product-reviews__toolbar {
    display: flex;
    width: 100%;
    justify-content: flex-start;
  }

  .thl-product-reviews__sort {
    min-width: 140px;
    max-width: min(100%, 220px);
  }

  .thl-product-reviews__actionbar {
    justify-content: stretch;
  }

  .thl-product-reviews__trigger {
    width: 100%;
  }

  .thl-product-review-card,
  .thl-product-review-reply,
  .thl-product-reviews__empty,
  .thl-product-reviews__form {
    padding: 16px;
  }

  .thl-product-review-card__replies {
    padding-inline-start: 10px;
  }

  .thl-product-reviews__dialog {
    width: min(100%, 560px);
    padding: 16px 16px 14px;
    border-radius: 20px;
  }

  .thl-product-review-form__rating-options label span {
    font-size: 26px;
  }

  .thl-product-review-form__field textarea {
    min-height: 112px;
  }

  .thl-product-reviews__modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .thl-product-reviews__submit,
  .thl-product-reviews__cancel {
    width: 100%;
  }
}
