.p-detail-inner-header .stars-wrapper.xz-product-rating-summary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  width: auto;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 10px 12px;
  gap: 8px 11px;
  color: #27231e;
  background: #f7f6f3;
  border: 1px solid #e7e3dc;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.xz-product-rating-summary .stars--productDetail {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.p-detail-inner-header
  .stars-wrapper.xz-product-rating-summary
  .stars--productDetail
  .star.star-on,
.p-detail-inner-header
  .stars-wrapper.xz-product-rating-summary
  .stars--productDetail
  .star.star-on::before {
  color: #d99a18 !important;
}

.xz-product-rating-summary__score {
  padding-left: 11px;
  color: #5b554d;
  border-left: 1px solid #d9d3ca;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.xz-product-rating-summary .xz-product-rating-summary__count {
  margin: 0;
  padding: 4px 9px;
  color: #37322c;
  background: #ebe7df;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.xz-product-rating-summary__top {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  color: #674a05;
  background: #f7e4b5;
  border: 1px solid #ecd18d;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.xz-product-rating-summary .stars-link {
  margin: 0;
  color: #171717;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.xz-product-rating-summary .stars-link:hover,
.xz-product-rating-summary .stars-link:focus {
  color: #e31e24;
}

.xz-review-highlight {
  box-sizing: border-box;
  width: 100%;
  margin: 26px 0 0;
  padding: 22px 24px;
  color: #171717;
  background: #f7f6f3;
  border: 1px solid #e7e3dc;
  border-left: 4px solid #e31e24;
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.xz-review-highlight__heading {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xz-review-highlight__stars {
  margin-bottom: 13px;
  color: #e6a300;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 2px;
}

.xz-review-highlight__quote {
  margin: 0;
  padding: 0;
  color: #292929;
  font-size: 16px;
  font-style: normal;
  line-height: 1.55;
  border: 0;
}

.xz-review-highlight__slides {
  position: relative;
  display: block;
  touch-action: pan-y;
}

.xz-review-highlight__source {
  display: inline-flex;
  align-items: center;
  margin: 0 0 9px;
  padding: 3px 8px;
  color: #57534d;
  background: #ebe8e2;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.xz-review-highlight__source--store {
  color: #735409;
  background: #fff0c7;
}

.xz-review-highlight__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 420ms ease,
    visibility 420ms ease;
}

.xz-review-highlight__slide.is-active {
  position: relative;
  inset: auto;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd8cf;
}

.xz-review-highlight__customer {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-top: 18px;
  gap: 10px;
}

.xz-review-highlight__initials {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #111;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.xz-review-highlight__name,
.xz-review-highlight__meta {
  display: block;
}

.xz-review-highlight__name {
  overflow: hidden;
  max-width: 190px;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xz-review-highlight__meta {
  margin-top: 2px;
  color: #777;
  font-size: 12px;
  line-height: 1.3;
}

.xz-review-highlight__proof {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  justify-content: end;
  width: max-content;
  max-width: 100%;
  margin: 15px 0 0 auto;
  gap: 2px 8px;
  text-align: right;
}

.xz-review-highlight__proof-eyebrow,
.xz-review-highlight__proof-label {
  grid-column: 1 / -1;
}

.xz-review-highlight__proof-eyebrow {
  color: #6f6b64;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xz-review-highlight__proof-number {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.025em;
}

.xz-review-highlight__proof-stars {
  align-self: center;
  color: #e6a300;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -2px;
  white-space: nowrap;
}

.xz-review-highlight__proof-label {
  color: #55514b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.xz-review-highlight__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #ddd8cf;
  flex-wrap: wrap;
}

.xz-review-highlight__navigation,
.xz-review-highlight__dots {
  display: flex;
  align-items: center;
}

.xz-review-highlight__navigation {
  gap: 3px;
}

.xz-review-highlight__dots {
  gap: 8px;
}

.xz-review-highlight__arrow {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0 0 3px;
  color: #35322e;
  background: #fff;
  border: 1px solid #d5d0c7;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.xz-review-highlight__arrow:hover,
.xz-review-highlight__arrow:focus-visible {
  color: #fff;
  background: #e31e24;
  border-color: #e31e24;
  box-shadow: 0 3px 8px rgba(227, 30, 36, 0.22);
}

.xz-review-highlight__arrow:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.xz-review-highlight__dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 38px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.xz-review-highlight__dot::before {
  display: block;
  width: 9px;
  height: 9px;
  background: #c9c4bb;
  border-radius: 50%;
  content: "";
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.xz-review-highlight__dot:hover::before,
.xz-review-highlight__dot:focus-visible::before,
.xz-review-highlight__dot.is-active::before {
  background: #e31e24;
  transform: scale(1.25);
}

.xz-review-highlight__dot:focus-visible {
  outline: 2px solid #111;
  outline-offset: -3px;
  border-radius: 12px;
}

.xz-review-highlight__link {
  flex: 0 0 auto;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.xz-review-highlight__link:hover,
.xz-review-highlight__link:focus {
  color: #e31e24;
}

@media (min-width: 768px) {
  .xz-review-highlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "heading proof"
      "stars proof"
      "slides slides"
      "controls controls";
    align-items: start;
    column-gap: 24px;
  }

  .xz-review-highlight__heading {
    grid-area: heading;
  }

  .xz-review-highlight__stars {
    grid-area: stars;
  }

  .xz-review-highlight__slides {
    grid-area: slides;
    min-width: 0;
    padding-top: 10px;
  }

  .xz-review-highlight__slide.is-active {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .xz-review-highlight__proof {
    grid-area: proof;
    grid-template-columns: auto auto auto;
    align-self: start;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding-left: 24px;
    border-left: 1px solid #e1ddd6;
  }

  .xz-review-highlight__proof-eyebrow {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    white-space: nowrap;
  }

  .xz-review-highlight__proof-number {
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
  }

  .xz-review-highlight__proof-stars {
    grid-column: 3;
    grid-row: 1;
  }

  .xz-review-highlight__proof-label {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: right;
  }

  .xz-review-highlight__controls {
    grid-area: controls;
    width: 100%;
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .p-detail-inner-header .stars-wrapper.xz-product-rating-summary {
    margin-bottom: 16px;
    padding: 9px 10px;
    gap: 7px 9px;
  }

  .xz-product-rating-summary__score {
    padding-left: 9px;
  }

  .xz-product-rating-summary__top {
    white-space: normal;
  }

  .xz-review-highlight--mobile {
    margin: 22px 0;
  }

  .xz-review-highlight {
    padding: 19px 18px;
  }

  .xz-review-highlight__quote {
    font-size: 15px;
  }

  .xz-review-highlight__controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .xz-review-highlight__proof {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    width: 100%;
    margin: 12px 0 0;
    gap: 2px 10px;
    text-align: left;
  }

  .xz-review-highlight__proof-eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  .xz-review-highlight__proof-number {
    grid-column: 1;
    grid-row: 2;
    font-size: 24px;
  }

  .xz-review-highlight__proof-stars {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .xz-review-highlight__proof-label {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xz-review-highlight__slide,
  .xz-review-highlight__arrow,
  .xz-review-highlight__dot::before {
    transition: none;
  }
}
