@charset "UTF-8";

html.yamm-reviews-sheet-open,
body.yamm-reviews-sheet-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.yamm-reviews-sheet {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 0;
  font-family: var(--yamm-font-ui);
}

.yamm-reviews-sheet[hidden] {
  display: none !important;
}

.yamm-reviews-sheet__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .52);
  opacity: 0;
  cursor: default;
  transition: opacity .28s ease;
}

.yamm-reviews-sheet__panel {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: min(92dvh, 920px);
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  outline: 0;
  background: #f5f5f5;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .18);
  transform: translate3d(0, 100%, 0);
  transition: transform .38s cubic-bezier(.22,.8,.24,1);
}

.yamm-reviews-sheet.is-open .yamm-reviews-sheet__backdrop {
  opacity: 1;
}

.yamm-reviews-sheet.is-open .yamm-reviews-sheet__panel {
  transform: translate3d(0, 0, 0);
}

.yamm-reviews-sheet__header {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 100%;
  padding: 28px clamp(24px, 5vw, 76px) 30px;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  background: #f5f5f5;
}

.yamm-reviews-sheet__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.yamm-reviews-sheet__heading {
  min-width: 0;
}

.yamm-reviews-sheet__eyebrow {
  margin-bottom: 8px;
  display: block;
  color: #777;
  font-size: 10px;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}

.yamm-reviews-sheet__heading h2 {
  margin: 0;
  color: #111;
  font-family: var(--yamm-font-ui);
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.12;
}

.yamm-reviews-sheet__heading h2 span {
  font: inherit;
}

.yamm-reviews-sheet__close {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, .18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #111;
  cursor: pointer;
}

.yamm-reviews-sheet__close svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.yamm-reviews-sheet__summary {
  width: min(100%, 1040px);
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(180px, .58fr) minmax(300px, 1.42fr);
  align-items: center;
  gap: clamp(36px, 7vw, 110px);
}

.yamm-reviews-sheet__average {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "number stars"
    "number count";
  align-items: center;
  column-gap: 22px;
}

.yamm-reviews-sheet__average-number {
  grid-area: number;
  color: #111;
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 400;
  line-height: .9;
}

.yamm-reviews-sheet__stars {
  grid-area: stars;
  position: relative;
  width: 6.2em;
  height: 1em;
  display: inline-block;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 2px;
  white-space: nowrap;
}

.yamm-reviews-sheet__stars-base,
.yamm-reviews-sheet__stars-fill {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  white-space: nowrap;
}

.yamm-reviews-sheet__stars-base {
  color: #d0d0d0;
}

.yamm-reviews-sheet__stars-fill {
  width: var(--yamm-rating-fill, 0%);
  overflow: hidden;
  color: #d49a00;
}

.yamm-reviews-sheet__count {
  grid-area: count;
  margin-top: 6px;
  color: #777;
  font-family: var(--yamm-font-body);
  font-size: 12px;
}

.yamm-reviews-sheet__distribution {
  width: 100%;
  display: grid;
  gap: 8px;
}

.yamm-reviews-sheet__rating-row {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(120px, 1fr) 30px;
  align-items: center;
  gap: 12px;
}

.yamm-reviews-sheet__rating-label,
.yamm-reviews-sheet__rating-count {
  color: #555;
  font-family: var(--yamm-font-body);
  font-size: 11px;
  line-height: 1;
}

.yamm-reviews-sheet__rating-count {
  text-align: right;
}

.yamm-reviews-sheet__rating-track {
  position: relative;
  width: 100%;
  height: 3px;
  display: block;
  overflow: hidden;
  background: #d8d8d8;
}

.yamm-reviews-sheet__rating-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  height: 100%;
  display: block;
  background: #111;
  transition: width .22s ease;
}

.yamm-reviews-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 30px clamp(24px, 5vw, 76px) 46px;
  overflow: hidden;
  background: #f5f5f5;
}

.yamm-reviews-sheet__table-wrap {
  width: min(100%, 1400px);
  height: 100%;
  margin: 0 auto;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  scrollbar-width: thin;
}

.yamm-reviews-sheet__table {
  width: 100%;
  min-width: 780px;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  color: #111;
}

.yamm-reviews-sheet__table th,
.yamm-reviews-sheet__table td {
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .09);
  vertical-align: top;
  text-align: left;
}

.yamm-reviews-sheet__table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #f5f5f5;
  color: rgba(0, 0, 0, .58);
  font-family: var(--yamm-font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.yamm-reviews-sheet__table th:nth-child(1),
.yamm-reviews-sheet__table td:nth-child(1) {
  width: 140px;
}

.yamm-reviews-sheet__table th:nth-child(2),
.yamm-reviews-sheet__table td:nth-child(2) {
  width: 205px;
}

.yamm-reviews-sheet__table th:nth-child(4),
.yamm-reviews-sheet__table td:nth-child(4) {
  width: 145px;
}

.yamm-reviews-sheet__table tbody tr:last-child td {
  border-bottom: 0;
}

.yamm-reviews-sheet__review-stars {
  color: #d49a00;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.yamm-reviews-sheet__client strong {
  margin-bottom: 7px;
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.yamm-reviews-sheet__badge {
  width: max-content;
  min-height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-family: var(--yamm-font-body);
  font-size: 10px;
  line-height: 1;
}

.yamm-reviews-sheet__badge.is-verified {
  background: #e8f7e9;
  color: #208634;
}

.yamm-reviews-sheet__badge.is-client {
  background: #f7f1df;
  color: #9c7821;
}

.yamm-reviews-sheet__content {
  color: #222;
  font-family: var(--yamm-font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.58;
  white-space: normal;
  overflow-wrap: anywhere;
}

.yamm-reviews-sheet__date {
  color: rgba(0, 0, 0, .54);
  font-family: var(--yamm-font-body);
  font-size: 11px;
  white-space: nowrap;
}

.yamm-reviews-sheet__state td {
  height: 170px;
  color: #777;
  font-family: var(--yamm-font-body);
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
}

.yamm-reviews-sheet__state.is-error td {
  color: #a82424;
}

body.yamm-reviews-sheet-open .yamm-product-sticky {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 980px) {
  .yamm-reviews-sheet__panel {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
  }

  .yamm-reviews-sheet__header {
    padding:
      max(20px, env(safe-area-inset-top))
      20px
      24px;
  }

  .yamm-reviews-sheet__summary {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 22px;
  }

  .yamm-reviews-sheet__body {
    padding:
      22px
      20px
      max(30px, calc(20px + env(safe-area-inset-bottom)));
  }

  .yamm-reviews-sheet__table {
    min-width: 700px;
  }
}

@media (max-width: 560px) {
  .yamm-reviews-sheet__top {
    gap: 16px;
  }

  .yamm-reviews-sheet__heading h2 {
    font-size: 24px;
  }

  .yamm-reviews-sheet__close {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .yamm-reviews-sheet__average-number {
    font-size: 56px;
  }

  .yamm-reviews-sheet__table th,
  .yamm-reviews-sheet__table td {
    padding: 15px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yamm-reviews-sheet__backdrop,
  .yamm-reviews-sheet__panel,
  .yamm-reviews-sheet__rating-fill {
    transition: none !important;
  }
}

/* YAMM mobile reviews sheet containment */
@media (max-width: 980px) {
  .yamm-reviews-sheet {
    overflow: hidden;
  }

  /*
   * The storefront header stays visible.
   * The review sheet starts immediately below it.
   */
  .yamm-reviews-sheet__panel {
    inset: var(--yamm-header-height, 76px) 0 0;
    width: 100%;
    max-width: 100vw;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  .yamm-reviews-sheet__header,
  .yamm-reviews-sheet__summary,
  .yamm-reviews-sheet__body,
  .yamm-reviews-sheet__table-wrap {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  /*
   * Only the sheet body scrolls.
   * Horizontal scrolling is never allowed on mobile.
   */
  .yamm-reviews-sheet__body {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .yamm-reviews-sheet__table-wrap {
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .yamm-reviews-sheet__table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
  }

  .yamm-reviews-sheet__table th,
  .yamm-reviews-sheet__table td {
    min-width: 0;
    padding: 15px 10px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /*
   * Mobile keeps the three useful columns.
   * The date is secondary information and is removed to preserve readability.
   */
  .yamm-reviews-sheet__table th:nth-child(1),
  .yamm-reviews-sheet__table td:nth-child(1) {
    width: 23%;
  }

  .yamm-reviews-sheet__table th:nth-child(2),
  .yamm-reviews-sheet__table td:nth-child(2) {
    width: 31%;
  }

  .yamm-reviews-sheet__table th:nth-child(3),
  .yamm-reviews-sheet__table td:nth-child(3) {
    width: 46%;
  }

  .yamm-reviews-sheet__table th:nth-child(4),
  .yamm-reviews-sheet__table td:nth-child(4) {
    display: none;
  }

  .yamm-reviews-sheet__review-stars {
    font-size: 13px;
    letter-spacing: .4px;
    white-space: nowrap;
  }

  .yamm-reviews-sheet__client strong {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .yamm-reviews-sheet__content {
    font-size: 12px;
    line-height: 1.5;
  }
}
