.rate {
  font-size: 0.0em;
  text-align: center;
  padding-bottom: 15px;
  &.show {
    border-bottom: 1px dashed #cacaca;
    .item {
      width: 48px;
      margin: 0 5px;
      display: inline-block;
    }
    .rating {
      display: inline-block;
      width: 24px;
      height: 42px;
      background: url('/theme/assets/img/rate_sprite.png') no-repeat -48px 0;
      margin-top: 10px;
      margin-bottom: 15px;
      &.even {
        &.active {
          background-position: 0 0;
        }
      }
      &.odd {
        background-position: -72px 0;
        &.active {
          background-position: -24px 0;
        }
      }
    }
    .total_rates {
      font-size: 14px;
      color: #858585;
      text-align: right;
      clear: both;
    }
  }
  &.input {
    overflow: hidden;
    display: inline-block;
    .rating-input {
      float: right;
      display: none;
    }
    .rating-input:checked ~ .rating {
      background-position: 0 -42px;
    }
    label.rating {
      display: inline-block;
      width: 37px;
      height: 32px;
      background: url('/theme/assets/img/rate_sprite.png') no-repeat -37px -42px;
      float: right;
      cursor: pointer;
      margin: 15px 27px;
      &:hover,
      &:hover ~ .rating {
        background-position: 0 -42px;
      }
    }
  }
}
.rate-progresses {
  padding: 15px 0 0 0;
  margin-bottom: 20px;
  border-bottom: 1px dashed #cacaca;
  .progress-label {
    font-weight: 700;
    span {
      font-weight: normal;
    }
  }
}
.avalie-label {
  margin-top: 2px;
}
.heart-css-icon {
  position: relative;
  width: 10px;
  height: 10px;
  background-color: rgba(255,255,255, 1);
  transform: rotate(45deg);
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
  &:before,
  &:after {
    position: absolute;
    width: 10px;
    height: 10px;
    content: '';
    border-radius: 50%;
    background-color: rgba(255,255,255, 1);
  }
  &:before {
    bottom: 0px;
    left: -5px;
  }
  &:after {
    top: -5px;
    right: 0px;
  }
}
.btn-success.rated {
  background: #fff;
  border-color: #ccc;
  color: #ccc;
  cursor: initial;
  .icon {
    margin-right: 10px;
    opacity: .25;
  }
  .icon16 {
    background-image: url('/theme/assets/img/base_icons_16.png');
    background-repeat: no-repeat;
    background-color: transparent;
    width: 16px;
    height: 16px;
  }
  &:hover {
    color: #ccc;
    background-color: #fff;
    border-color: #ccc;
  }
}
.rate-input-container {
  text-align: center;
}
.rate-more {
  width: 80%;
  margin: auto;
  overflow: hidden;
  > label {
    width: 46%;
    float: left;
    margin: 10px 2%;
    font-weight: bold;
    input:checked + span {
      color: #00a185;
    }
  }
}
.modal-rate {
  .modal-header {
    background: #00a185;
    overflow: hidden;
    border: none;
    position: relative;
    left: 0;
    top: 0;
    right: 0;
    height: auto;
    transition: all 1s ease-out;
    .close {
      color: #fff;
      border: 2px solid #fff;
      border-radius: 50%;
      width: 32px;
      height: 32px;
      vertical-align: middle;
      opacity: 1;
    }
    .modal-header-prerate {
      display: block;
      margin: 30px auto;
    }
    .modal-header-rated {
      position: absolute;
      left: 50%;
      top: 50%;
      margin: -84.5px 0 0 -68.5px;
      display: none;
    }
  }
  .modal-body {
    h1, h2 {
      color: #00a185;
      text-align: center;
    }
    .terms-subtitle {
      margin-top: 0;
    }
  }
  .modal-footer {
    text-align: center;
    border: none;
  }
  &.rated {
    .modal-header {
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      transition: all 1s ease-out;
      height: 100%;
      z-index: 3;
      .modal-header-prerate {
        display: none;
      }
      .modal-header-rated {
        display: block;
      }
    }
    .modal-body,
    .modal-footer {
      opacity: 0;
    }
  }
}