/* -----------------------------------------*/
/* REVIEW STARS */

.wp-block-rlg-review-stars {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--wp--preset--color--accent-2);
}
.wp-block-rlg-review-stars .review-star {
  display: inline-flex;
  width: 1.125rem;
  height: 1.125rem;
  line-height: 0;
}
.wp-block-rlg-review-stars svg {
  display: block;
  width: 100%;
  height: 100%;
}
.wp-block-rlg-review-stars .is-filled svg {
  fill: currentColor;
  stroke: currentColor;
}
.wp-block-rlg-review-stars .is-empty svg {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: 0.3;
}

/* -----------------------------------------*/
/* REVIEW CONTENT */

.review-content {
  margin: 0;
  padding: 0;
  border: 0;
  quotes: none;
}

.review-content > :first-child {
  margin-block-start: 0;
}

.review-content > :last-child {
  margin-block-end: 0;
}

/* -----------------------------------------*/
/* REVIEW ICON */

.review-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.review-icon svg {
  width: 1.5em;
  height: 1.5em;
  display: block;
}

/* -----------------------------------------*/
/* REVIEW SOURCE */

.review-source {
  margin: 0;
}

.review-source-name {
  /*font-weight: 600;*/
}

.is-editor-placeholder {
  /*opacity: 0.55;*/
}

/* -----------------------------------------*/
/* REVIEW FILTERS */

.rlg-review-filters {
  overflow-x: auto;
  scrollbar-width: thin;
}

.rlg-review-filters__items {
  display: flex;
  align-items: stretch;
  min-width: max-content;
}

.rlg-review-filters__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 0 28px;

  color: var(--wp--preset--color--custom-gray);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.rlg-review-filters__item::after {
  position: absolute;
  right: 20px;
  bottom: 0;
  left: 20px;

  height: 2px;
  background: transparent;
  content: "";
}

.rlg-review-filters__item:hover {
  color: var(--wp--preset--color--accent-1);
}

.rlg-review-filters__item.is-active {
  color: var(--wp--preset--color--accent-1);
  font-weight: 600;
}

.rlg-review-filters__item.is-active::after {
  background: currentColor;
}

.rlg-review-filters__count {
  color: var(--wp--preset--color--accent-4);
  font-weight: 400;
}

@media (max-width: 781px) {
  .rlg-review-filters__item {
    min-height: 56px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .rlg-review-filters__item::after {
    right: 14px;
    left: 14px;
  }
}
