/* OCMOD.NET reviews - v1.1 | Author: mstkalenko | Website: https://ocmod.net */

/* ---------------------------------------------------------------------------
   Tokens
   --------------------------------------------------------------------------- */
.rvw {
  --rvw-accent: #e0a100;
  --rvw-ink: #1c2330;
  --rvw-muted: #687286;
  --rvw-line: #e3e6eb;
  --rvw-surface: #ffffff;
  --rvw-tint: #f5f6f8;
  --rvw-ok: #16784f;
  --rvw-radius: 10px;
  --rvw-gap: 16px;
  --rvw-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M10 .8l2.84 5.75 6.26.91-4.53 4.42 1.07 6.24L10 15.17l-5.64 2.95 1.07-6.24L.9 7.46l6.26-.91z'/%3E%3C/svg%3E");
  container-type: inline-size;
  width: 100%;
  margin: 0 0 32px;
  color: var(--rvw-ink);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.rvw--dark {
  --rvw-ink: #eef1f5;
  --rvw-muted: #9aa3b2;
  --rvw-line: #2d3643;
  --rvw-surface: #1a212b;
  --rvw-tint: #222a36;
  --rvw-ok: #4cc38a;
  padding: 20px;
  background: #121821;
  border-radius: 14px;
}

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

.rvw :focus-visible {
  outline: 2px solid var(--rvw-accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Shared parts
   --------------------------------------------------------------------------- */
.rvw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.rvw-head:empty {
  display: none;
}

.rvw-title {
  margin: 0;
}

.rvw--dark .rvw-title {
  color: var(--rvw-ink);
}

.rvw-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.rvw-nav[hidden] {
  display: none;
}

.rvw-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--rvw-ink);
  background: var(--rvw-surface);
  border: 1px solid var(--rvw-line);
  border-radius: 50%;
  cursor: pointer;
}

.rvw-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rvw-arrow:hover:not(:disabled) {
  border-color: var(--rvw-ink);
}

.rvw-arrow:disabled {
  opacity: .35;
  cursor: default;
}

.rvw-stars {
  display: inline-block;
  flex: none;
  width: 6em;
  height: 1em;
  font-size: 15px;
  vertical-align: -2px;
  background: linear-gradient(90deg, var(--rvw-accent) var(--rvw-fill, 100%), var(--rvw-line) var(--rvw-fill, 100%));
  -webkit-mask: var(--rvw-star) 0 0 / 1.2em 1em repeat-x;
  mask: var(--rvw-star) 0 0 / 1.2em 1em repeat-x;
}

.rvw-stars--one {
  width: 1em;
  --rvw-fill: 100%;
}

.rvw-date {
  color: var(--rvw-muted);
  font-size: 12px;
  white-space: nowrap;
}

.rvw-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 13px;
}

.rvw-who__name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.rvw-avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--rvw-ink);
  font-size: 13px;
  font-weight: 600;
  background: var(--rvw-tint);
  border-radius: 50%;
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
  .rvw-avatar {
    background: color-mix(in srgb, var(--rvw-accent) 22%, var(--rvw-surface));
  }
}

.rvw-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--rvw-ok);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.rvw-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.rvw-foot {
  margin-top: 16px;
}

.rvw-all {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  color: var(--rvw-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--rvw-surface);
  border: 1px solid var(--rvw-line);
  border-radius: 999px;
}

.rvw-all:hover,
.rvw-all:focus {
  color: var(--rvw-ink);
  text-decoration: none;
  border-color: var(--rvw-ink);
}

/* ---------------------------------------------------------------------------
   Card: grid, carousel, wall
   --------------------------------------------------------------------------- */
.rvw-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px 16px 0;
  color: var(--rvw-ink);
  background: var(--rvw-surface);
  border: 1px solid var(--rvw-line);
  border-radius: var(--rvw-radius);
}

.rvw-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rvw-card__text {
  flex: 1 1 auto;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.rvw-product {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px -16px 0;
  padding: 10px 16px;
  color: var(--rvw-ink);
  text-decoration: none;
  border-top: 1px solid var(--rvw-line);
  border-radius: 0 0 var(--rvw-radius) var(--rvw-radius);
}

.rvw-product:hover,
.rvw-product:focus {
  color: var(--rvw-ink);
  text-decoration: none;
  background: var(--rvw-tint);
}

.rvw-product__img {
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.rvw-product__name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rvw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--rvw-gap);
}

.rvw-track {
  display: grid;
  grid-auto-columns: minmax(240px, calc((100% - 3 * var(--rvw-gap)) / 4));
  grid-auto-flow: column;
  gap: var(--rvw-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rvw-track::-webkit-scrollbar {
  display: none;
}

.rvw-track > .rvw-card {
  scroll-snap-align: start;
}

@container (max-width: 760px) {
  .rvw-track {
    grid-auto-columns: calc((100% - var(--rvw-gap)) / 2);
  }
}

@container (max-width: 480px) {
  .rvw-track {
    grid-auto-columns: 86%;
  }
}

.rvw-wall {
  column-gap: var(--rvw-gap);
  columns: 3 240px;
}

.rvw-wall > .rvw-card {
  display: inline-flex;
  width: 100%;
  margin: 0 0 var(--rvw-gap);
  -webkit-column-break-inside: avoid;
  break-inside: avoid;
}

/* ---------------------------------------------------------------------------
   List and summary
   --------------------------------------------------------------------------- */
.rvw-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rvw-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rvw-line);
}

.rvw-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.rvw-row:last-child {
  padding-bottom: 0;
}

.rvw-row__img {
  flex: none;
}

.rvw-row__img img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--rvw-line);
  border-radius: 8px;
}

.rvw-row__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rvw-row__name {
  color: var(--rvw-ink);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.rvw-row__name:hover,
.rvw-row__name:focus {
  color: var(--rvw-ink);
  text-decoration: underline;
}

.rvw-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13px;
}

.rvw-row__text {
  margin: 0;
  overflow-wrap: anywhere;
}

.rvw-list--compact .rvw-row__name {
  color: var(--rvw-muted);
  font-size: 13px;
  font-weight: 400;
}

.rvw-summary {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@container (max-width: 640px) {
  .rvw-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

.rvw-score {
  padding: 20px;
  background: var(--rvw-tint);
  border-radius: 14px;
}

.rvw-score__value {
  font-size: 46px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.02em;
}

.rvw-score .rvw-stars {
  margin: 10px 0 4px;
  font-size: 20px;
}

.rvw-score__count {
  color: var(--rvw-muted);
  font-size: 13px;
}

.rvw-dist {
  display: grid;
  gap: 4px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.rvw-dist__row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
  color: var(--rvw-ink);
  font-size: 13px;
  text-decoration: none;
}

.rvw-dist__label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rvw-dist__label::after {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--rvw-accent);
  -webkit-mask: var(--rvw-star) 0 0 / 13.2px 11px no-repeat;
  mask: var(--rvw-star) 0 0 / 13.2px 11px no-repeat;
}

.rvw-dist__bar {
  height: 8px;
  overflow: hidden;
  background: var(--rvw-line);
  border-radius: 4px;
}

.rvw-dist__bar > span {
  display: block;
  height: 100%;
  background: var(--rvw-accent);
  border-radius: inherit;
}

.rvw-dist__count {
  color: var(--rvw-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---------------------------------------------------------------------------
   Quote
   --------------------------------------------------------------------------- */
.rvw-quote {
  position: relative;
  padding: 30px 32px 22px 100px;
  background: var(--rvw-tint);
  border-radius: 16px;
}

.rvw-quote__mark {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 44px;
  height: 37px;
  fill: var(--rvw-accent);
}

.rvw-quote__slides {
  display: grid;
}

.rvw-quote__slide {
  grid-area: 1 / 1;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s ease, visibility 0s linear .35s;
}

.rvw-quote__slide.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity .35s ease;
}

.rvw-quote__text {
  max-width: 60ch;
  margin: 0;
  padding: 0;
  color: var(--rvw-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.55;
  border: 0;
}

.rvw-quote__text p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  overflow-wrap: anywhere;
}

.rvw-quote__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 18px;
  font-size: 14px;
}

.rvw-product--inline {
  margin: 0;
  padding: 3px 12px 3px 3px;
  background: var(--rvw-surface);
  border: 1px solid var(--rvw-line);
  border-radius: 999px;
}

.rvw-product--inline:hover,
.rvw-product--inline:focus {
  background: var(--rvw-surface);
  border-color: var(--rvw-ink);
}

.rvw-product--inline .rvw-product__img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.rvw-product--inline .rvw-product__name {
  max-width: 260px;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
}

.rvw-dots {
  display: flex;
  gap: 2px;
  margin: 14px 0 0 -8px;
}

.rvw-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.rvw-dot::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 8px auto;
  background: var(--rvw-line);
  border-radius: 4px;
}

.rvw-dot.is-active::before {
  width: 20px;
  background: var(--rvw-accent);
}

@container (max-width: 560px) {
  .rvw-quote {
    padding: 22px 18px 16px;
  }

  .rvw-quote__mark {
    position: static;
    display: block;
    width: 32px;
    height: 27px;
    margin-bottom: 10px;
  }

  .rvw-quote__text {
    font-size: 18px;
  }
}

/* ---------------------------------------------------------------------------
   Toast
   --------------------------------------------------------------------------- */
.rvw--toast {
  container-type: normal;
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
}

.rvw-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9990;
  width: 360px;
  max-width: calc(100vw - 32px);
  color: var(--rvw-ink);
  background: var(--rvw-surface);
  border: 1px solid var(--rvw-line);
  border-radius: 12px;
  box-shadow: 0 16px 36px -14px rgba(16, 24, 40, .35);
}

.rvw-toast[hidden],
.rvw-toast__item[hidden] {
  display: none;
}

.rvw-toast.is-visible {
  animation: rvw-rise .3s ease-out both;
}

.rvw-toast__item {
  display: flex;
  gap: 12px;
  padding: 14px 42px 14px 14px;
  color: inherit;
  text-decoration: none;
}

.rvw-toast__item:hover,
.rvw-toast__item:focus {
  color: inherit;
  text-decoration: none;
}

.rvw-toast__img {
  flex: none;
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--rvw-line);
  border-radius: 8px;
}

.rvw-toast__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
}

.rvw-toast__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rvw-toast__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rvw-toast__who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}

.rvw-toast__product {
  overflow: hidden;
  color: var(--rvw-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rvw-toast__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--rvw-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.rvw-toast__close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.rvw-toast__close:hover {
  color: var(--rvw-ink);
  background: var(--rvw-tint);
}

.rvw[data-rvw-preview] .rvw-toast {
  position: relative;
  bottom: auto;
  left: auto;
  margin: 4px 0 24px;
}

@media (max-width: 767px) {
  .rvw-toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
}

@keyframes rvw-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   Reviews page
   --------------------------------------------------------------------------- */
.rvw--page {
  margin-top: 6px;
}

.rvw-page-head {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 440px);
  gap: 32px;
  align-items: center;
  margin-bottom: 20px;
}

@container (max-width: 600px) {
  .rvw-page-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

.rvw-dist--links {
  margin: 0;
}

.rvw-dist--links .rvw-dist__row {
  margin: 0 -8px;
  padding: 4px 8px;
  border-radius: 6px;
}

.rvw-dist--links a.rvw-dist__row:hover,
.rvw-dist--links a.rvw-dist__row:focus,
.rvw-dist--links .rvw-dist__row.is-active {
  color: var(--rvw-ink);
  text-decoration: none;
  background: var(--rvw-tint);
}

.rvw-dist__row.is-empty {
  opacity: .45;
}

.rvw-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--rvw-line);
  border-bottom: 1px solid var(--rvw-line);
}

.rvw-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.rvw-toolbar__label {
  margin-right: 4px;
  color: var(--rvw-muted);
  font-size: 13px;
}

.rvw-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  color: var(--rvw-ink);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  background: var(--rvw-surface);
  border: 1px solid var(--rvw-line);
  border-radius: 999px;
}

a.rvw-chip:hover,
a.rvw-chip:focus {
  color: var(--rvw-ink);
  text-decoration: none;
  border-color: var(--rvw-ink);
}

.rvw-chip.is-active {
  color: var(--rvw-surface);
  background: var(--rvw-ink);
  border-color: var(--rvw-ink);
}

.rvw-chip .rvw-stars--one {
  --rvw-line: var(--rvw-accent);
  font-size: 12px;
}

.rvw-feed {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.rvw-post {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rvw-line);
}

.rvw-post__product {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--rvw-ink);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.rvw-post__product img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--rvw-line);
  border-radius: 8px;
}

.rvw-post__product:hover,
.rvw-post__product:focus {
  color: var(--rvw-ink);
}

.rvw-post__product:hover span {
  text-decoration: underline;
}

.rvw-post__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 8px;
}

.rvw-post__top .rvw-date {
  margin-left: auto;
}

.rvw-post__text {
  max-width: 72ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

@container (max-width: 600px) {
  .rvw-post {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .rvw-post__product {
    flex-direction: row;
    align-items: center;
  }

  .rvw-post__product img {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rvw-quote__slide,
  .rvw-quote__slide.is-active {
    transition: none;
  }

  .rvw-toast.is-visible {
    animation: none;
  }

  .rvw-track {
    scroll-behavior: auto;
  }
}
