.rating-list__container {
  position: relative;
  display: block;
}
.rating-list__bar-wrapper {
  display: flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 40px;
  font-weight: 700;
  justify-content: flex-end;
}
.rating-list__bar-wrapper:hover {
  background-color: #fffae4;
}
.rating-list__progressbar {
  width: 86px;
  height: 10px;
  display: inline-block;
  border-radius: 6px;
  background-color: #ececef;
  margin: 0 8px 0 0;
  position: relative;
  vertical-align: middle;
  overflow: hidden;
  cursor: pointer;
  text-align: right;
  font-size: 17px;
  letter-spacing: .08px;
}
.rating-list__bar {
  display: inline-block;
  position: absolute;
  left: 0;
  bottom: 0;
  top: 0;
  width: auto;
  border-radius: 6px 0 0 6px;
}

.rating-list__popup .rating-list__bar-wrapper {
  padding: 0;
  border-radius: 0;
  background-color: transparent !important;
}
.rating-list__bar-wrapper.small .rating-list__progressbar {
  width: 28px;
  height: 8px;
  border-radius: 5px;
  margin: 0 8px 0 0;
  font-size: 17px;
}
.rating-list__bar-wrapper.small .rating-list__bar {
  border-radius: 5px 0 0 5px;
}
.rating-list__bar[data-value^="1"] {
  width: 10%;
}
.rating-list__bar[data-value^="2"] {
  width: 20%;
}
.rating-list__bar[data-value^="3"] {
  width: 30%;
}
.rating-list__bar[data-value^="4"] {
  width: 40%;
}
.rating-list__bar[data-value^="5"] {
  width: 50%;
}
.rating-list__bar[data-value^="6"] {
  width: 60%;
}
.rating-list__bar[data-value^="7"] {
  width: 70%;
}

.rating-list__bar[data-value^="8"] {
  width: 80%;
}
.rating-list__bar[data-value^="9"] {
  width: 90%;
}
.rating-list__bar[data-value^="10"] {
  width: 100%;
}

.rating-list__bar[data-value^="1"],
.rating-list__bar[data-value^="2"],
.rating-list__bar[data-value^="3"] {
  background: #e43f2b;
}
.rating-list__bar[data-value^="4"],
.rating-list__bar[data-value^="5"],
.rating-list__bar[data-value^="6"] {
  background: #ffaf00;
}
.rating-list__bar[data-value^="6."],
.rating-list__bar[data-value^="7"] {
  background: #8eca18;
}
.rating-list__bar[data-value^="8"],
.rating-list__bar[data-value^="9"],
.rating-list__bar[data-value^="10"] {
  background: #2cca77;
}
.rating-list__popup {
  position: absolute;
  border-radius: 5px;
  box-shadow: 0 4px 40px 0 rgba(0,0,0,.15);
  background-color: #fff;
  bottom: 100%;
  /*bottom: 0;*/
  left: 40px;
  width: 276px;
  z-index: 5;
  display: none;
  pointer-events: none;
}
.z-indexed ~ * .rating-list__popup {
  z-index: 9999;
}
.rating-list__popup.toBottom {
  bottom: auto;
  top: 100%;
  border-radius: 0 0 5px 5px;
}
.rating-list__popup.toBottom .rating-list__popup-footer {
  border-radius: 0 0 5px 5px;
}
.rating-list__popup.toLeft {
  left: auto;
  right: -44px;
}
.rating-list__popup:hover {
  cursor: default;
}
.hot-list__item:nth-child(4n) .rating-list__popup,
.tour-list__item:nth-child(4n) .rating-list__popup,
.swiper-slide-active + * + * + * .rating-list__popup {
  left: auto;
  right: 40px !important;
}
.rating-list__container:hover .rating-list__popup {
  display: block;
}
.rating-list__popup-item,
.rating-list__popup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 67px;
  padding: 0 16px 0 20px;
}
.rating-list__popup-footer {
  font-weight: 700;
  font-size: 16px;
  color: #474f55;
  position: relative;
  padding-top: 18px;
  align-items: baseline;
  background-color: #fffae4;
}
.rating-list__popup-item {
  border-bottom: 1px solid #f8f8f9;
}
.rating-list__popup-item-rating-container {
  display: inline-flex;
  flex-direction: column;
  text-align: right;
}
.rating-list__popup-item-logo {
  display: block;
}
.rating-list__popup-item-logo-tripadvisor {
   min-width: 132px;
   height: 28px;
   background: url(../img/rating-logos/tripadvisor.svg) no-repeat center / contain;
}
.rating-list__popup-item-logo-booking {
   min-width: 127px;
   height: 21px;
   background: url(../img/rating-logos/booking.svg) no-repeat center / 160px auto;
}
.rating-list__popup-item-logo-turpravda {
   min-width: 108px;
   height: 18px;
   background: url(../img/rating-logos/turpravda.svg) no-repeat center / contain;
}
.rating-list__popup-item-logo-tophotels {
   min-width: 87px;
   height: 32px;
   background: url(../img/rating-logos/top-hotels.png) no-repeat center / contain;
}
.rating-list__popup-item-grades {
  margin: 3px 0 0;
  line-height: 1;
  color: #8f9397;
  font-size: 12px;
  font-weight: 500;
}

/*tablet*/
@media (max-width: 1176px) and (min-width: 768px) {
  .tour-list__item:nth-child(even) .rating-list__popup {
    left: auto;
    right: -104px;
  }
  .hot-list__item:nth-child(even) .rating-list__popup {
    left: auto;
    right: -104px;
  }
}

/*mobile*/
@media (max-width: 767px) {
  .tour-list__item .rating-list__popup,
  .hot-list__item .rating-list__popup {
    left: auto;
    right: 0 !important;
  }
}

/*MEDIA DONE*/
