body {
  font-family: base_font;
}
/****************
 Colors
****************/
/****************
 Rating
****************/
.rating {
  background: #F5F5F5;
  border: 1px solid #CDCDCD;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  color: #444;
  margin: 3em 1em;
  overflow: hidden;
  position: relative;
  /* checked style for biggest rate and bullet */
}
.rating input[type="radio"] {
  /* hide all input radios */
  display: none;
}
.rating .bar {
  /* white bar to progress */
  background: #FFF;
  -webkit-border-radius: 1000px;
  -moz-border-radius: 1000px;
  border-radius: 1000px;
  -webkit-box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.2);
  display: block;
  font-size: 21px;
  height: 1em;
  left: 0.7em;
  line-height: 1em;
  margin-top: -0.5em;
  overflow: hidden;
  position: absolute;
  width: -webkit-calc(100% - 1.4em);
  width: -moz-calc(100% - 1.4em);
  width: calc(100% - 1.4em);
  top: 50%;
  z-index: 3;
}
.rating .bar > div {
  /* progress bar */
  background: rgba(37, 127, 204, 0.6);
  flex-wrap: inherit;
  flex-grow: inherit !important;
  height: 100%;
  left: -0.5em;
  position: relative;
  width: 0;
  min-width: inherit !important;
  -webkit-transition: all 0.2s 0.05s ease-in-out;
  -moz-transition: all 0.2s 0.05s ease-in-out;
  -o-transition: all 0.2s 0.05s ease-in-out;
  transition: all 0.2s 0.05s ease-in-out;
}
.rating .bar > div::after {
  background: rgba(37, 127, 204, 0.6);
  -webkit-border-radius: 0 1000px 1000px 0;
  -moz-border-radius: 0 1000px 1000px 0;
  border-radius: 0 1000px 1000px 0;
  content: "";
  display: block;
  height: 1em;
  position: absolute;
  right: -0.5em;
  top: 0;
  width: 0.5em;
}
.rating > div {
  /* rates/stepts container */
  display: flex;
  flex-wrap: nowrap;
  z-index: 10;
}
.rating > div > div,
.rating > div > span {
  /* rates/stepts */
  display: block;
  flex-grow: 1;
  text-align: center;
  /* to the first and last child step it is smaller to reach edges of progressbar */
  /* to the first and last child step it is smaller to reach edges of progressbar */
}
.rating > div > div:first-child,
.rating > div > span:first-child,
.rating > div > div:last-child,
.rating > div > span:last-child {
  min-width: 68px;
  flex-grow: 0;
}
.rating > div > div input[type="radio"] + label,
.rating > div > span input[type="radio"] + label {
  /* labels after input radios with rate, to make a native and natural interaction */
  cursor: pointer;
  display: block;
  font-size: 11px;
  font-weight: normal;
  line-height: 1;
  margin: 0;
  padding: 3.1em 0;
  position: relative;
  text-align: center;
  -webkit-transition: all 0.2s linear;
  -moz-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
  z-index: 20;
}
.rating > div > div input[type="radio"] + label::before,
.rating > div > span input[type="radio"] + label::before {
  /* biggest animated rate */
  color: #888;
  content: attr(data-value);
  display: block;
  font-size: 1.65em;
  font-weight: bold;
  margin-top: -0.3em;
  opacity: 0;
  position: absolute;
  text-align: center;
  transform: scale(0.2);
  -webkit-transition: all 0.2s 0.05s ease-in-out;
  -moz-transition: all 0.2s 0.05s ease-in-out;
  -o-transition: all 0.2s 0.05s ease-in-out;
  transition: all 0.2s 0.05s ease-in-out;
  width: 100%;
}
.rating > div > div input[type="radio"] + label::after,
.rating > div > span input[type="radio"] + label::after {
  /* colored bullet */
  background: #888888;
  border: 1px solid #FFF;
  -webkit-border-radius: 1000px;
  -moz-border-radius: 1000px;
  border-radius: 1000px;
  -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  content: "";
  font-size: 26px;
  height: 1em;
  line-height: 1em;
  left: 50%;
  margin-left: -0.5em;
  opacity: 0;
  position: absolute;
  top: 1em;
  transform: scale(0.3);
  -webkit-transition: all 0.15s ease-in-out;
  -moz-transition: all 0.15s ease-in-out;
  -o-transition: all 0.15s ease-in-out;
  transition: all 0.15s ease-in-out;
  width: 1em;
}
.rating > div > div input[type="radio"] + label:hover,
.rating > div > span input[type="radio"] + label:hover {
  color: rgba(255, 255, 255, 0);
}
.rating > div > div input[type="radio"] + label:hover::before,
.rating > div > span input[type="radio"] + label:hover::before {
  margin-top: -1.6em;
  opacity: 1;
  transform: none;
}
.rating > div > div input[type="radio"] + label:hover::after,
.rating > div > span input[type="radio"] + label:hover::after {
  opacity: 1;
  transform: none;
}
.rating > div > div input[type="radio"]:checked + label,
.rating > div > span input[type="radio"]:checked + label {
  /* when input radio it is checked */
  color: rgba(255, 255, 255, 0);
}
.rating > div > div input[type="radio"]:checked + label::before,
.rating > div > span input[type="radio"]:checked + label::before {
  color: #257FCC;
  margin-top: -1.6em;
  opacity: 1;
  transform: none;
}
.rating > div > div input[type="radio"]:checked + label::after,
.rating > div > span input[type="radio"]:checked + label::after {
  background-color: #257FCC;
  opacity: 1;
  transform: none;
}
.rating > div > div:first-child input + label::after,
.rating > div > span:first-child input + label::after {
  left: 40%;
}
.rating > div > div:last-child input + label::after,
.rating > div > span:last-child input + label::after {
  left: 60%;
}
.rating > div > div.inapto,
.rating > div > span.inapto {
  /* warning rate = inapt */
  background-color: #E4E4E4;
  /* change the color of warning rates when it is checked */
}
.rating > div > div.inapto:last-of-type,
.rating > div > span.inapto:last-of-type {
  /* the last warning rate */
  position: relative;
}
.rating > div > div.inapto:last-of-type::after,
.rating > div > span.inapto:last-of-type::after {
  /* "paints" half the background of the next rate */
  background-color: #E4E4E4;
  content: "";
  display: block;
  height: 100%;
  left: 100%;
  position: absolute;
  top: 0;
  width: 50%;
  z-index: 10;
}
.rating > div > div.inapto:last-of-type > span,
.rating > div > span.inapto:last-of-type > span {
  /* warning indicator */
  font-size: 10px;
  position: absolute;
  left: -webkit-calc(150% - 7px);
  left: -moz-calc(150% - 7px);
  left: calc(150% - 7px);
  bottom: 1em;
  z-index: 14;
}
.rating > div > div.inapto:last-of-type > span i,
.rating > div > span.inapto:last-of-type > span i {
  /* indicator */
  border-style: solid;
  border-width: 0 4px 11px;
  border-color: #F32C40 transparent;
  display: block;
  margin: 0 0.3em;
  width: 0;
}
.rating > div > div.inapto:last-of-type > span > span,
.rating > div > span.inapto:last-of-type > span > span {
  /* warnin labels */
  bottom: -0.05em;
  font-weight: bold;
  line-height: 1;
  position: absolute;
  text-transform: uppercase;
}
.rating > div > div.inapto:last-of-type > span > span:first-child,
.rating > div > span.inapto:last-of-type > span > span:first-child {
  right: 100%;
}
.rating > div > div.inapto:last-of-type > span > span:last-child,
.rating > div > span.inapto:last-of-type > span > span:last-child {
  left: 100%;
}
.rating > div > div.inapto input[type="radio"]:checked + label::before,
.rating > div > span.inapto input[type="radio"]:checked + label::before {
  color: #F32C40;
}
.rating > div > div.inapto input[type="radio"]:checked + label::after,
.rating > div > span.inapto input[type="radio"]:checked + label::after {
  background-color: #F32C40;
}
.rating .stay-value {
  margin-top: -1.6em;
  opacity: 1;
  transform: none;
}
.rating .stay-bullet {
  opacity: 1;
  transform: none;
}
/****************
 Utilities
****************/
