.kr-summary,
.kr-reviews {
  --kr-accent: #600a0a;
  --kr-text: #262626;
  --kr-muted: #707070;
  --kr-rule: #e2dfdc;
  --kr-star-empty: #ded9d5;
  font-family: inherit;
}

.kr-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 100%;
  margin: 4px 0 20px;
  color: var(--kr-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 3px;
}

.kr-summary:hover,
.kr-summary:focus-visible {
  color: var(--kr-accent);
  text-decoration: none;
}

.kr-summary:hover .kr-summary__count {
  text-decoration: underline;
}

.kr-summary .kr-stars,
.kr-reviews .kr-stars {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  overflow: hidden;
  vertical-align: middle;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 3px;
  white-space: nowrap;
}

.kr-summary .kr-stars__empty,
.kr-reviews .kr-stars__empty {
  display: block;
  color: var(--kr-star-empty);
}

.kr-summary .kr-stars__fill,
.kr-reviews .kr-stars__fill {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  overflow: hidden;
  max-width: 100%;
  height: 100%;
  color: var(--kr-accent);
  white-space: nowrap;
}

.kr-summary__count {
  overflow-wrap: anywhere;
}

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

.kr-reviews {
  width: 100%;
  margin: 48px 0;
  color: var(--kr-text);
  background: #fff;
  font-size: 14px;
  line-height: 1.65;
  scroll-margin-top: 100px;
}

.kr-reviews:focus {
  outline: none;
}

.kr-reviews--all {
  padding-inline: 20px;
}

.kr-reviews__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--kr-rule);
}

.kr-reviews .kr-reviews__header h2 {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

.kr-reviews .kr-write-link,
.kr-reviews .kr-review-form input[type="submit"],
.kr-reviews .kr-review-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  margin: 0;
  padding: 10px 19px;
  border: 1px solid var(--kr-accent);
  border-radius: 0;
  color: var(--kr-accent);
  background: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}

.kr-reviews .kr-write-link:hover,
.kr-reviews .kr-review-form input[type="submit"]:hover,
.kr-reviews .kr-review-form button[type="submit"]:hover {
  color: #fff;
  background: var(--kr-accent);
}

.kr-reviews__overview {
  margin: 21px 0 4px;
  color: var(--kr-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.kr-reviews__rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--kr-muted);
  font-size: 13px;
  white-space: nowrap;
}

.kr-review {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  column-gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid var(--kr-rule);
}

.kr-review__author,
.kr-review__body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kr-review__name {
  display: block;
  margin: 0 0 13px;
  color: var(--kr-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.kr-review__product-label {
  display: block;
  margin-bottom: 3px;
  color: var(--kr-muted);
  font-size: 11px;
  line-height: 1.5;
}

.kr-reviews .kr-review__product {
  display: inline;
  color: var(--kr-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  text-underline-offset: 3px;
}

.kr-reviews a.kr-review__product:hover {
  color: var(--kr-accent);
  text-decoration: underline;
}

.kr-review__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  min-height: 21px;
  margin: 0 0 14px;
}

.kr-review__date {
  color: var(--kr-muted);
  font-size: 12px;
  line-height: 1.5;
}

.kr-review__text {
  color: #565656;
  font-size: 14px;
  line-height: 1.8;
}

.kr-review__text > :first-child {
  margin-top: 0;
}

.kr-review__text > :last-child {
  margin-bottom: 0;
}

.kr-review__text p {
  margin: 0 0 12px;
}

.kr-reviews__empty {
  margin: 0;
  padding: 30px 0;
  border-bottom: 1px solid var(--kr-rule);
  color: var(--kr-muted);
}

.kr-reviews__notice {
  margin: 20px 0;
  padding: 13px 16px;
  border: 1px solid #dce4dc;
  border-left: 3px solid #7b947a;
  color: #3c563c;
  background: #f6f8f4;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.kr-reviews .kr-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 26px 0;
}

.kr-reviews .kr-pagination ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kr-reviews .kr-pagination li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kr-reviews .kr-pagination a,
.kr-reviews .kr-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--kr-rule);
  color: var(--kr-text);
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}

.kr-reviews .kr-pagination .current,
.kr-reviews .kr-pagination a:hover {
  border-color: var(--kr-accent);
  color: #fff;
  background: var(--kr-accent);
}

.kr-reviews .kr-pagination .dots {
  border-color: transparent;
}

.kr-review-form {
  margin-top: 28px;
  border-top: 1px solid var(--kr-rule);
  border-bottom: 1px solid var(--kr-rule);
  scroll-margin-top: 100px;
}

.kr-review-form > summary {
  padding: 18px 0;
  color: var(--kr-accent);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.kr-review-form[open] > summary {
  margin-bottom: 8px;
}

.kr-review-form #respond {
  margin: 0;
  padding: 0 0 26px;
  scroll-margin-top: 100px;
}

.kr-review-form #respond p {
  margin: 0 0 16px;
}

.kr-review-form #respond .comment-reply-title {
  display: block;
  margin: 0 0 16px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.kr-review-form #respond label {
  display: block;
  margin-bottom: 6px;
  color: var(--kr-text);
  font-size: 13px;
}

.kr-review-form #respond input[type="text"],
.kr-review-form #respond input[type="email"],
.kr-review-form #respond input[type="url"],
.kr-review-form #respond textarea,
.kr-review-form #respond select {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #c9c4bf;
  border-radius: 0;
  color: var(--kr-text);
  background: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.kr-review-form #respond textarea {
  min-height: 150px;
  resize: vertical;
}

.kr-review-form #respond select {
  width: auto;
}

/* WooCommerce and Rey generate these controls from the native rating select. */
.kr-review-form #review_form #respond p.stars {
  margin: 0 0 12px;
  line-height: 1;
}

.kr-review-form #review_form #respond p.stars > span {
  display: inline-flex;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 2px;
}

.kr-review-form #review_form #respond p.stars a {
  position: relative;
  display: inline-block;
  flex: 0 0 40px;
  width: 40px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--kr-accent);
  background: transparent;
  box-shadow: none;
  text-indent: -9999px;
  text-decoration: none;
  cursor: pointer;
}

.kr-review-form #review_form #respond p.stars a::before {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: inherit;
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-indent: 0;
  content: "☆";
}

.kr-review-form #review_form #respond p.stars.selected > span:not(:hover):not(:focus-within) a::before,
.kr-review-form #review_form #respond p.stars > span:hover a::before,
.kr-review-form #review_form #respond p.stars > span:focus-within:not(:hover) a::before {
  content: "★";
}

.kr-review-form #review_form #respond p.stars.selected > span:not(:hover):not(:focus-within) a.active ~ a::before,
.kr-review-form #review_form #respond p.stars > span:hover a:hover ~ a::before,
.kr-review-form #review_form #respond p.stars > span:focus-within:not(:hover) a:focus ~ a::before {
  content: "☆";
}

.kr-review-form #review_form #respond p.stars a:focus-visible {
  outline: 2px solid var(--kr-accent);
  outline-offset: -2px;
}

.kr-review-form #respond .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.kr-review-form #respond .comment-form-cookies-consent input {
  flex: 0 0 auto;
  margin-top: 5px;
  accent-color: var(--kr-accent);
}

.kr-review-form #respond .comment-form-cookies-consent label {
  margin: 0;
  color: var(--kr-muted);
  font-size: 12px;
}

.kr-summary:focus-visible,
.kr-reviews a:focus-visible,
.kr-reviews button:focus-visible,
.kr-reviews input:focus-visible,
.kr-reviews textarea:focus-visible,
.kr-reviews select:focus-visible,
.kr-reviews summary:focus-visible {
  outline: 2px solid var(--kr-accent);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .kr-reviews {
    margin: 32px 0;
  }

  .kr-reviews .kr-reviews__header h2 {
    font-size: 20px;
  }

  .kr-review {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 25px 0;
  }

  .kr-review__name {
    margin-bottom: 5px;
  }

  .kr-review__product-label {
    display: inline;
    margin: 0 5px 0 0;
  }

  .kr-review__meta {
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kr-reviews .kr-write-link,
  .kr-reviews .kr-review-form input[type="submit"],
  .kr-reviews .kr-review-form button[type="submit"] {
    transition: none;
  }
}
