.reviews-container {
  --review-color: #ffb71d;
  --review-bg-color: #143085;
  --review-bg-color-hover: #ffb71d;
  width: 100%;
  margin: 30px 0 50px;
  font-family: inherit;
}

.reviews {
  margin-bottom: 30px;
  position: relative;
}

.reviews__title {
  font-weight: 600;
  font-size: 36px;
  line-height: 120%;
  color: #000000;
  text-align: left;
  margin-bottom: 10px;
}

.reviews__btns {
  position: relative;
  margin: 10px 0 20px 0;
}

.reviews__send-review,
.reviews__show-all {
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  text-transform: uppercase;
  color: #FFFFFF;
  padding: 14px 25px 12px;
  background: var(--review-bg-color);
  border: 0;
  border-radius: 3px;
  outline: 0;
  cursor: pointer;
}

.reviews__send-review:focus,
.reviews__show-all:focus {
  outline: 0;
}

.reviews__send-review:hover,
.reviews__show-all:hover {
  background: var(--review-bg-color-hover);
  color: #FFFFFF;
}

.send-with-auth {
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  text-transform: uppercase;
  color: #FFFFFF;
  padding: 14px 15px 12px;
  background: #CCCCCC;
  border: 0;
  border-radius: 3px;
}

.head-reviews-wrapper {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 30px 0;
}

.head-rating-wrapper {
  margin: 10px 30px 0 0;
  display: flex;
  flex-wrap: wrap;
}

.head-rating-wrapper.hidden {
  display: none;
}

.total-rating {
  font-weight: 600;
  font-size: 48px;
  line-height: 120%;
  color: var(--review-color);
  margin-right: 7px;
}

.rating__body {
  position: relative;
  display: flex;
  font-size: 20px;
  line-height: 1;
  color: #C4C4C4;
  margin-bottom: 2px;
}

.rating__body::before {
  content: "\2605\2605\2605\2605\2605";
  display: block;
}

.rating__active {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  font-size: 20px;
  overflow: hidden;
}

.rating__active::before {
  content: "\2605\2605\2605\2605\2605";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  color: var(--review-color);
}

.rating__items {
  display: flex;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.rating__item {
  flex: 0 0 20%;
  height: 100%;
  opacity: 0;
}

.amount-reviews {
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #8D8D8D;
}

.review-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 12px;
  padding: 29px 30px;
  background: #FFFFFF;
  margin: 0 0 30px;
  box-sizing: border-box;
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, .08); 
}

.review-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 5px;
}

.review-card__author {
  font-weight: bold;
  font-size: 16px;
  line-height: 150%;
  color: #000000;
  text-overflow: ellipsis;
  overflow: hidden;
}

.review-card__date {
  font-size: 14px;
  line-height: 150%;
  color: #616161;
}

.review-card__user-rating {
  display: none;
}

.review-card__rating {
  display: flex;
  margin: 6px 0 15px 0;
}

.review-card__rating-body {
  position: relative;
  display: flex;
  font-size: 20px;
  line-height: 1;
  color: #C4C4C4;
}

.review-card__rating-body::before {
  content: "\2605\2605\2605\2605\2605";
  display: block;
}

.review-card__rating-active {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  font-size: 20px;
  overflow: hidden;
}

.review-card__rating-active::before {
  content: "\2605\2605\2605\2605\2605";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  color: var(--review-color);
}
.review-card__text {
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #000000;
  overflow-wrap: break-word;
}
.review-card__text-next {
  display: none;
}
.review-card__text-more {
  display: block;
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  color: #000;
  margin-top: 5px;
  cursor: pointer;
}

.review-card__img-wrap {
  display: flex;
  flex-wrap: wrap;
  margin-top: auto;
  align-items: flex-start;
  gap: 10px;
}

.review-card__img-container,
.review-card__video-container {
  width: 70px;
  height: 80px;
  cursor: pointer;
  position: relative; 
}

.review-card__image,
.review-card__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.review-card__play-btn {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff;
  z-index: 1;
  cursor: pointer;
  transition: .2s ease;
  transition-property: opacity, visibility;
  background-color: #7d7d7d3b;
}

.review-card__play-btn::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  left: 8px;
  width: 0;
  height: 0;
  border: 14px solid transparent;
  border-top-width: 8px;
  border-bottom-width: 8px;
  border-left-color: #fff;
  border-right-width: 0;
  transition: transform .2s ease;
}

.review-card__play-btn:hover::before {
  transform: scale(1.2);
}

.popup-reviews {
  display: none;
  width: 100%;
  height: 100%;
  position: fixed;
  background: #FFFFFF;
  z-index: 1010;
  top: 0;
  left: 0;
  margin: auto;
  padding: 25px;
  box-sizing: border-box;
}

.popup-reviews-img__close {
  position: absolute;
  right: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: url("./images/close.svg") no-repeat;
  background-size: 100% 100%;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 2;
}

.popup-reviews-img__close:hover {
  background-color: #E1E1E1;
}

.popup-reviews-img,
.popup-reviews-video {
  margin: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.popup-reviews-img.resized {
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.popup-reviews-overlay {
  display: none;
  z-index: 500;
  background-color: #000000;
  opacity: 0.7;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.popup-reviews-form {
  display: none;
  width: 100%;
  max-width: 450px;
  position: absolute;
  background: #FFFFFF;
  z-index: 510;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: auto;
}

.rate-form {
  max-width: 450px;
  background: #FFFFFF;
  padding: 50px 30px 45px;
  position: relative;
}

.rate-form__close {
  position: absolute;
  right: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: url("./images/close.svg") no-repeat;
  background-size: 100% 100%;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 2;
}

.rate-form__close:hover {
  background-color: #E1E1E1;
}

.rate-form__title {
  font-weight: 600;
  font-size: 30px;
  line-height: 110%;
  text-align: center;
  color: #000000;
  margin-bottom: 20px;
}

.rate-form__subtitle {
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  color: #000000;
  text-align: center;
  margin-bottom: 5px;
}

.rate-form__input {
  position: relative;
}

.rate-form__name--error, .rate-form__text--error {
  color: red;
  display: none;
  font-weight: 500;
  font-size: 16px;
}

.rate-form__name-input {
  margin: 15px auto 10px;
  width: 100%;
  max-width: 390px;
  background: #FFF;
  border: 1px solid #C7C7C7;
  box-sizing: border-box;
  padding: 18px 50px 6px 15px;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #000000;
}

.rate-form__name-input:focus {
  border: 1px solid var(--review-bg-color);
}

.rate-form__name-input--error {
  border: 1px solid red;
}

.rate-form__name-label {
  position: absolute;
  left: 15px;
  top: 30px;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #8D8D8D;
}

.rate-form__name-reset {
  position: absolute;
  right: 5px;
  top: 20px;
  width: 40px;
  height: 40px;
  background: url("./images/reset.svg") no-repeat;
  background-size: 100% 100%;
  border: none;
  outline: none;
  opacity: 0;
  cursor: pointer;
}

.rate-form__name-input.rate-form__name-input--noempty ~ .rate-form__name-reset {
  opacity: 0.9;
}

.rate-form__name-input.rate-form__name-input--noempty ~ .rate-form__name-reset:hover {
  opacity: 1;
}

.rate-form__name-input:focus ~ .rate-form__name-label, .rate-form__name-input.rate-form__name-input--noempty ~ .rate-form__name-label {
  top: 20px;
  font-size: 10px;
}

.rate-form__text-input {
  margin: 10px auto 10px;
  width: 100%;
  max-width: 390px;
  background: #FFF;
  border: 1px solid #C7C7C7;
  box-sizing: border-box;
  padding: 12px 10px 36px 15px;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #000000;
  resize: none;
  max-height: 144px;
}

.rate-form__text-input:focus {
  border: 1px solid var(--review-bg-color);
}

.rate-form__text-input--error {
  border: 1px solid red;
}

.rate-form__paragraph {
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: #000000;
  margin-top: 8px;
}

.rate-form__file-input {
  display: none !important;
}

.rate-form__file-label {
  border: 1px dashed #C7C7C7;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 14px;
  line-height: 150%;
  text-align: center;
  color: #8D8D8D;
  width: 100%;
  max-width: 390px;
  padding: 47px 49px 14px;
  display: block;
  cursor: pointer;
  background: url("./images/file.svg") center 18px no-repeat;
  background-size: 27px 18px;
  box-sizing: border-box;
}

.rate-form__file-label.highlight {
  border: 1px dashed var(--review-bg-color);
}

.rate-form__submit {
  margin: 0 auto 15px;
  background: var(--review-bg-color);
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  text-transform: uppercase;
  color: #FFFFFF;
  padding: 13px 25px 13px;
  border: 0;
  width: 100%;
  max-width: 390px;
  cursor: pointer;
}

.rate-form__submit:hover {
  background: var(--review-bg-color-hover);
}

.rate-form__agree {
  font-weight: 500;
  font-size: 14px;
  line-height: 150%;
  text-align: center;
  color: #000000;
}

.rate-form__agree-link {
  text-decoration: underline;
  font-weight: 500;
  font-size: 14px;
  line-height: 150%;
  color: #000000;
}

.rate-form__agree-link:hover {
  color: var(--review-bg-color-hover);
  text-decoration: underline;
}

.rate-form__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0 0;
}

.rate-form__gallery-img {
  max-width: 66px;
  align-self: flex-start;
  margin: 0 0 15px;
}

.rate-form__gallery-img-container {
  position: relative;
}

.rate-form__gallery-img-remove {
  position: absolute;
  top: -7px;
  right: -6px;
  width: 16px;
  height: 16px;
  background-image: url("./images/file-close.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  border-radius: 50%;
  background-color: #FFF;
  display: block;
  z-index: 2;
}

.rate-form__gallery-img-remove:hover {
  box-shadow: 0px 0px 7px 0px rgba(120, 120, 120, 0.6);
}

.rating-area {
  overflow: hidden;
  box-sizing: border-box;
  width: 150px;
  margin: 0 auto;
}
.rating-area--error {
  color: red;
  display: none;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
}

.rating-area:not(:checked) > input {
  display: none;
}

.rating-area:not(:checked) > label {
  float: right;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 30px;
  width: 30px;
  line-height: 1;
  color: #C7C7C7;
}

.rating-area:not(:checked) > label:before {
  content: "\2605";
  width: 30px;
  display: block;
}

.rating-area > input:checked ~ label {
  color: var(--review-color);
}

.rating-area:not(:checked) > label:hover,
.rating-area:not(:checked) > label:hover ~ label {
  color: var(--review-color);
}

.rating-area > input:checked + label:hover,
.rating-area > input:checked + label:hover ~ label,
.rating-area > input:checked ~ label:hover,
.rating-area > input:checked ~ label:hover ~ label,
.rating-area > label:hover ~ input:checked ~ label {
  color: var(--review-color);
}

.rate-area > label:active {
  position: relative;
}

.rate-form-success {
  display: none;
  padding: 88px 70px 50px;
  background: url("./images/done.svg") center 50px no-repeat;
  background-size: 28px 28px;
}

.rate-form-success__title {
  font-weight: 600;
  font-size: 30px;
  line-height: 110%;
  text-align: center;
  color: #000000;
  margin-bottom: 15px;
}

.rate-form-success__text {
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: #000000;
}

.swiper-button-disabled {
  opacity: 0.6;
}

.swiper-button-lock {
  display: none;
}

.more-items {
  display: none;
}

@media screen and (max-width: 767px) {
  .popup-reviews-form {
    overflow: scroll;
    max-height: 100%;
  }

  .popup-reviews {
    padding: 10px;
  }
}