@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

body {
  margin: 0;
  padding: 0;
}

.customer-reviews {
  padding: 45px 0;
  font-family: 'Poppins';
}

.customer-reviews * {
  box-sizing: border-box;
}

.customer-reviews__content {
  max-width: 1440px;

  display: flex;
  flex-direction: column;
  grid-row-gap: 24px;
}

.customer-reviews__header-content {
  display: flex;
  flex-direction: column;
  grid-row-gap: 16px;
}

.customer-reviews__rating-info {
  display: flex;
  align-items: center;
  grid-column-gap: 11px;
}

.customer-reviews__average-rating {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-size: 32px;
  line-height: 36px;

  /* identical to box height, or 112% */

  /* Base/gray */
  color: #70757a;
}

.customer-reviews__total-ratings {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;

  /* identical to box height, or 160% */

  /* Base/gray */
  color: #70757a;
}

.customer-reviews__average-stars {
  display: flex;
  grid-column-gap: 1px;
}

.customer-reviews__average-star {
  width: 24px;
  height: 24px;
}

.customer-reviews__rating-text {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;

  color: #70757a;
}

.customer-reviews__filter {
  width: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  grid-gap: 8px 16px;
}

.customer-reviews__filter-info {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;

  /* identical to box height, or 160% */

  /* Base/black */
  color: #000000;
}

.customer-reviews__filter-button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  gap: 10px;

  height: 36px;

  background-color: #e8f0fe;
  border: 1px solid #d2e3fc;
  border-radius: 18px;

  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  line-height: 16px;

  color: #1967d2;

  cursor: not-allowed;
}

.customer-reviews__line {
  width: 100%;
  height: 0;
  border: 1px solid #ecedef;
}

.customer-reviews__reviews-list {
  width: 100%;
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: 1fr;
  place-content: space-between;

  list-style: none;
}

.customer-reviews__review {
  padding-bottom: 24px;
  margin-bottom: 24px;

  position: relative;
}

.customer-reviews__review:last-of-type {
  margin-bottom: unset;
}

.customer-reviews__review::after {
  position: absolute;
  content: '';
  left: 0;
  right: 0;
  bottom: 0;

  width: 100%;
  height: 0;
  border: 1px solid #ecedef;
}

.customer-reviews__review:nth-child(1) .customer-reviews__user-icon {
  background-color: #21a7b0;
}
.customer-reviews__review:nth-child(2) .customer-reviews__user-icon {
  background-color: #b04021;
}
.customer-reviews__review:nth-child(3) .customer-reviews__user-icon {
  background-color: #212fb0;
}
.customer-reviews__review:nth-child(4) .customer-reviews__user-icon {
  background-color: #21b027;
}

.customer-reviews__review-content {
  display: flex;
  flex-direction: column;
  grid-row-gap: 8px;
}

.customer-reviews__review-header {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-column-gap: 8px;
}

.customer-reviews__review-body {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-column-gap: 8px;
}

.customer-reviews__review-footer {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-column-gap: 8px;
}

.customer-reviews__user-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;

  color: #ffffff;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 20px;
}

.customer-reviews__user-info {
  display: flex;
  flex-direction: column;
}

.customer-reviews__user-name {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
}

.customer-reviews__user-amount {
  margin-top: 2px;

  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
}

.customer-reviews__user-rating {
  margin-top: 8px;

  display: flex;
  grid-column-gap: 10px;
  align-items: center;
}

.customer-reviews__user-stars {
  display: flex;
}

.customer-reviews__user-stars > svg {
  width: 13px;
  height: 13px;
}

.customer-reviews__user-time {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;

  color: #70757a;
}

.customer-reviews__review-text {
  width: 100%;
  max-width: 390px;

  grid-column: 1 / -1;

  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
}

.customer-reviews__like {
  grid-column: 1 / -1;
}

.customer-reviews__like-checkbox {
  display: none;
}

.customer-reviews__like-label {
  display: flex;
  align-items: center;
  grid-column-gap: 8px;
}

.customer-reviews__like-label > svg {
  width: 22px;
  height: 20px;
}

.customer-reviews__like-count {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;

  color: #70757a;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.col-lg-12 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 576px) {
  .customer-reviews__header {
    grid-row-gap: 24px;
  }
  .customer-reviews__user-icon {
    width: 44px;
    height: 44px;
  }
  .customer-reviews__filter {
    flex-direction: row;
    align-items: center;
  }
  .customer-reviews__review-text {
    grid-column: 2 / -1;
  }
  .customer-reviews__like {
    grid-column: 2 / -1;
  }

  .customer-reviews__review-content {
    grid-row-gap: 16px;
  }

  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .customer-reviews {
    padding: 26px 0;
  }
  .customer-reviews__content {
    grid-row-gap: 55px;
  }
  .customer-reviews__body {
    padding: 0 75px;
  }
  .customer-reviews__reviews-list {
    grid-template-columns: max-content max-content;
    place-content: space-between;
    grid-row-gap: 55px;
  }

  .customer-reviews__review {
    margin: unset;
    padding: unset;
  }
  .customer-reviews__review::after {
    position: relative;
    border: none;
  }
  .container {
    max-width: 960px;
  }
  .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}
