.yk-fn-reviews[hidden] {
  display: none !important;
}

.yk-fn-reviews {
  position: fixed;
  inset: 0;
  z-index: 100000;
  font-family: "proxima-nova", "Proxima Nova", "Nunito Sans", sans-serif;
  color: #111;
}

.yk-fn-reviews__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
}

.yk-fn-reviews__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  animation: yk-fn-reviews-in 280ms ease forwards;
}

@keyframes yk-fn-reviews-in {
  to {
    transform: translateX(0);
  }
}

.yk-fn-reviews.is-closing .yk-fn-reviews__panel {
  animation: yk-fn-reviews-out 220ms ease forwards;
}

@keyframes yk-fn-reviews-out {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

body.yk-reviews-open {
  overflow: hidden;
}

.yk-fn-reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.yk-fn-reviews__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.yk-fn-reviews__close {
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  font-size: 30px;
  line-height: 1;
  font-weight: 300;
  color: #111;
  cursor: pointer;
}

.yk-fn-reviews__scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.yk-fn-reviews__summary {
  padding: 20px 20px 8px;
}

.yk-fn-reviews__avg {
  text-align: center;
  margin-bottom: 18px;
}

.yk-fn-reviews__score {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.yk-fn-reviews__avg .yk-fn-stars {
  justify-content: center;
  cursor: default;
}

.yk-fn-reviews__avg .yk-fn-star {
  width: 16px;
  height: 16px;
}

.yk-fn-reviews__based {
  margin: 8px 0 0;
  font-size: 13px;
  color: #6b6b6b;
}

.yk-fn-reviews__bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yk-fn-reviews__bar {
  display: grid;
  grid-template-columns: 14px 12px 1fr 28px;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: none;
  padding: 2px 0;
  cursor: pointer;
  color: #111;
  font-size: 13px;
}

.yk-fn-reviews__bar.is-on {
  font-weight: 700;
}

.yk-fn-reviews__mini-star {
  width: 10px;
  height: 10px;
  background: #e5a100;
  clip-path: polygon(50% 4%, 63% 36%, 98% 38%, 70% 61%, 79% 96%, 50% 78%, 21% 96%, 30% 61%, 2% 38%, 37% 36%);
}

.yk-fn-reviews__bar-label {
  text-align: left;
}

.yk-fn-reviews__track {
  display: block;
  height: 6px;
  background: #eee;
  overflow: hidden;
}

.yk-fn-reviews__track span {
  display: block;
  height: 100%;
  background: #e5a100;
}

.yk-fn-reviews__bar-n {
  text-align: right;
  color: #6b6b6b;
}

.yk-fn-reviews__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px 12px;
  border-bottom: 1px solid #eee;
}

.yk-fn-reviews__clear {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  color: #111;
}

.yk-fn-reviews__sort {
  margin-left: auto;
}

.yk-fn-reviews__sort select {
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #111;
  font-family: inherit;
}

.yk-fn-reviews__list {
  padding: 0 20px 24px;
}

.yk-fn-reviews__empty {
  padding: 28px 0;
  text-align: center;
  color: #6b6b6b;
  font-size: 14px;
}

.yk-fn-review {
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.yk-fn-review[hidden] {
  display: none !important;
}

.yk-fn-review__stars .yk-fn-stars {
  cursor: default;
}

.yk-fn-review__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 4px;
  font-size: 13px;
}

.yk-fn-review__meta strong {
  font-weight: 700;
}

.yk-fn-review__meta time {
  color: #6b6b6b;
  white-space: nowrap;
}

.yk-fn-review__verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b6b6b;
  margin-bottom: 8px;
}

.yk-fn-review__body {
  font-size: 14px;
  line-height: 1.45;
}

.yk-fn-review__body p {
  margin: 0 0 8px;
}

.yk-fn-review__helpful {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #6b6b6b;
}

.yk-fn-review__helpful button {
  border: 1px solid #ddd;
  background: #fff;
  padding: 2px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #111;
}

.yk-fn-review__helpful button.is-on {
  border-color: #111;
  font-weight: 700;
}

.yk-fn-reviews__write-wrap {
  flex-shrink: 0;
  padding: 12px 20px 16px;
  border-top: 1px solid #eee;
  background: #fff;
}

.yk-fn-reviews__write-btn,
.yk-fn-reviews__submit {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.yk-fn-reviews__form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yk-fn-reviews__form-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.yk-fn-reviews__rate {
  display: flex;
  gap: 4px;
}

.yk-fn-reviews__rate button {
  width: 22px;
  height: 22px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #c4c4c4;
  clip-path: polygon(50% 4%, 63% 36%, 98% 38%, 70% 61%, 79% 96%, 50% 78%, 21% 96%, 30% 61%, 2% 38%, 37% 36%);
}

.yk-fn-reviews__rate button.is-on {
  background: #e5a100;
}

.yk-fn-reviews__form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #6b6b6b;
}

.yk-fn-reviews__form input,
.yk-fn-reviews__form textarea {
  border: 1px solid #ddd;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  color: #111;
}

.yk-fn-stars--static {
  pointer-events: none;
}

.yk-nova-pdp .woocommerce-tabs,
.yk-nova-pdp #reviews,
.yk-nova-pdp .woocommerce-Reviews {
  display: none !important;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.yk-fn-reviews-teaser,
.yk-fn-reviews-teaser.is-placed {
  position: relative !important;
  z-index: 1 !important;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 12px 12px 8px;
  padding: 14px 14px 10px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  overflow: visible;
  font-family: "proxima-nova", "Proxima Nova", "Nunito Sans", sans-serif;
  color: #111;
  transform: none !important;
}

@media (min-width: 768px) {
  .yk-fn-reviews-teaser,
  .yk-fn-reviews-teaser.is-placed {
    margin-left: 24px;
    margin-right: 24px;
  }
}

@media (min-width: 1024px) {
  .yk-fn-reviews-teaser,
  .yk-fn-reviews-teaser.is-placed {
    margin-left: 0;
    margin-right: 24px;
    max-width: none;
  }
}

.yk-fn-reviews-teaser__open,
.yk-fn-reviews-teaser__open:hover,
.yk-fn-reviews-teaser__open:focus,
.yk-fn-reviews-teaser__item,
.yk-fn-reviews-teaser__item:hover,
.yk-fn-reviews-teaser__item:focus,
.yk-fn-reviews__bar:hover,
.yk-fn-reviews__bar:focus,
.yk-fn-reviews__clear:hover,
.yk-fn-reviews__helpful button:hover {
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.yk-fn-reviews-teaser__open::before,
.yk-fn-reviews-teaser__open::after,
.yk-fn-reviews-teaser__item::before,
.yk-fn-reviews-teaser__item::after,
.yk-fn-pay4::before,
.yk-fn-pay4::after {
  content: none !important;
  display: none !important;
}

.yk-fn-reviews-teaser__open {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  text-align: left;
}

.yk-fn-reviews-teaser__score {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
}

.yk-fn-reviews-teaser__score strong {
  font-size: 20px;
  font-weight: 700;
}

.yk-fn-reviews-teaser__score span {
  font-size: 14px;
  text-decoration: underline;
}

.yk-fn-reviews-teaser__cta {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.yk-fn-reviews-teaser__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.yk-fn-reviews-teaser__item {
  padding: 12px 0 0;
  border-top: 1px solid #f0f0f0;
  cursor: pointer;
}

.yk-fn-reviews-teaser__item p {
  margin: 8px 0 4px;
  font-size: 14px;
  line-height: 1.45;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.yk-fn-reviews-teaser__item span {
  font-size: 12px;
  color: #6b6b6b;
}

@media (min-width: 768px) {
  .yk-fn-reviews-teaser__list {
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
  }

  .yk-fn-reviews-teaser__item {
    border-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .yk-fn-reviews__panel {
    width: 100%;
    max-width: 100%;
    height: min(92vh, 100%);
    top: auto;
    bottom: 0;
    right: 0;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    animation: yk-fn-reviews-up 280ms ease forwards;
  }

  @keyframes yk-fn-reviews-up {
    to {
      transform: translateY(0);
    }
  }

  .yk-fn-reviews.is-closing .yk-fn-reviews__panel {
    animation: yk-fn-reviews-down 220ms ease forwards;
  }

  @keyframes yk-fn-reviews-down {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(100%);
    }
  }

  .yk-fn-reviews__write-wrap {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px) + 56px);
  }

  .yk-fn-reviews__summary {
    padding: 16px 16px 8px;
  }

  .yk-fn-reviews__list,
  .yk-fn-reviews__toolbar {
    padding-left: 16px;
    padding-right: 16px;
  }
}
