﻿.rating-mg {
  position: relative;
  width: 100%;
  margin-top:5px;
  text-align: center;
}

.rating-mg .btn-group {
  margin: 3px 0 1px 0px;
}

.btn-group {
  width:100%;
  position: relative;
  display: inline-block;
  font-size: 0;
  white-space: nowrap;
  vertical-align: middle;
}

.rating-mg .btn.like .icon {
  width: 16px;
  height: 16px;
  background: url(../images/icon-like.png);
}

.rating-mg .btn.dislike .icon {
  width: 16px;
  height: 16px;
  background: url(../images/icon-dislike.png);
}

.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  vertical-align: middle;
}

.btn-group > .btn:last-child, .btn-group > .dropdown-toggle {
}

.btn-group > .btn:first-child {
  margin: 0px;
}

.btn {
  font-weight: normal;
  font-family: sans-serif;
  font-size:16px;
}

.rating-mg .btn {
  padding: 0px;
  font-size: 10px;
}

.btn-group > .btn {
  position: relative;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
}

.btn {
  display: inline-block;
  *display: inline;
  padding: 2px 8px;
  margin-bottom: 0;
  *margin-left: .3em;
  font-size: 14px;
  line-height: 20px;
  color: #494949;
  text-align: center;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  vertical-align: middle;
  cursor: pointer;
  background-color: #f5f5f5;
  *background-color: #dddddd;
  background-image: -moz-linear-gradient(top, #f6f6f6, #dddddd);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f6f6f6), to(#dddddd));
  background-image: -webkit-linear-gradient(top, #f6f6f6, #dddddd);
  background-image: -o-linear-gradient(top, #f6f6f6, #dddddd);
  background-image: linear-gradient(to bottom, #f6f6f6, #dddddd);
  background-repeat: repeat-x;
  border: 1px solid #bbbbbb;
  *border: 0;
  border-color: #e6e6e6 #e6e6e6 #bfbfbf;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  border-bottom-color: #a2a2a2;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff6f6f6', endColorstr='#ffdddddd', GradientType=0);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  *zoom: 1;
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
     -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
          box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn:hover,
.btn:active,
.btn.active,
.btn.disabled,
.btn[disabled] {
  color: #333333;
  background-color: #dddddd;
  *background-color: #d9d9d9;
}

.btn:active,
.btn.active {
  background-color: #cccccc \9;
}

.btn:first-child {
  *margin-left: 0;
}

.btn:hover {
  color: #333333;
  text-decoration: none;
  background-position: 0 -15px;
  -webkit-transition: background-position 0.1s linear;
     -moz-transition: background-position 0.1s linear;
       -o-transition: background-position 0.1s linear;
          transition: background-position 0.1s linear;
}

.btn:focus {
  outline: 0;
}

.btn.active,
.btn:active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
     -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
          box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn.disabled,
.btn[disabled] {
  cursor: default;
  background-image: none;
  opacity: 0.65;
  filter: alpha(opacity=65);
  -webkit-box-shadow: none;
     -moz-box-shadow: none;
          box-shadow: none;
}

.btn-group > .btn:hover,
.btn-group > .btn:focus,
.btn-group > .btn:active,
.btn-group > .btn.active {
  z-index: 2;
}

.rating-mg .progress {
  margin:3px 0px 1px 0px;
  padding:0px;
  height: 3px;
  width: 100%;
}

.progress {
  height: 2px;
  margin-bottom: 20px;
  overflow: hidden;
  background-color: #f7f7f7;
  background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9));
  background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9);
  background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9);
  background-image: linear-gradient(to bottom, #f5f5f5, #f9f9f9);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0);
}

.progress-success .bar, .progress .bar-success {
  background-color: #3a8e0b;
  background-image: -moz-linear-gradient(top, #84ce19, #3a8e0b);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#84ce19), to(#3a8e0b));
  background-image: -webkit-linear-gradient(top, #84ce19, #3a8e0b);
  background-image: -o-linear-gradient(top, #84ce19, #3a8e0b);
  background-image: linear-gradient(to bottom, #84ce19, #3a8e0b);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff84ce19', endColorstr='#ff3a8e0b', GradientType=0);
}

.progress-danger .bar, .progress .bar-danger {
  background-color: #d8391e;
  background-image: -moz-linear-gradient(top, #ee8144, #d8391e);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee8144), to(#d8391e));
  background-image: -webkit-linear-gradient(top, #ee8144, #d8391e);
  background-image: -o-linear-gradient(top, #ee8144, #d8391e);
  background-image: linear-gradient(to bottom, #ee8144, #d8391e);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee8144', endColorstr='#ffd8391e', GradientType=0);
}

.progress .bar {
  float: left;
  width: 0;
  height: 2px;
  font-size: 12px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0);
  -webkit-box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.15);
     -moz-box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.15);
          box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.15);
                         -webkit-box-sizing: border-box;
                            -moz-box-sizing: border-box;
                                 box-sizing: border-box;
                    -webkit-transition: width 0.6s ease;
                       -moz-transition: width 0.6s ease;
                         -o-transition: width 0.6s ease;
                            transition: width 0.6s ease;
}

.progress .bar + .bar {
  -webkit-box-shadow: inset 1px 0 0 #d8d8d8, inset 0 1px 0 rgba(0, 0, 0, 0.15);
     -moz-box-shadow: inset 1px 0 0 #d8d8d8, inset 0 1px 0 rgba(0, 0, 0, 0.15);
          box-shadow: inset 1px 0 0 #d8d8d8, inset 0 1px 0 rgba(0, 0, 0, 0.15);
}

.rating-mg .result {
  margin: 5px 0;
  font-family: 'PF DinDisplay','Trebuchet MS',Arial;
  font-size: 12px;
}

.clearfix:before, .clearfix:after {
  content: " ";
  display: table;
}

.rating-mg .result .like {
  display: block;
  float: left;
  width: 50%;
}

.rating-mg .result .dislike {
  display: block;
  float: right;
  width: 50%;
  text-align: right;
}

.rating {
  width: 82px;
  height: 26px;
}

.rating_res {
  background: url('../images/bg_orating.png') no-repeat;
  color: #f5f5f5;
  float: left;
  width: 36px;
  height: 26px;
  margin: 0 4px 0 2px;
  text-align: center;
  text-decoration: none;
  font: bold 12px/26px Arial, Helvetica, sans-serif;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.25),1px 1px #fff;
  overflow: hidden;
  position: relative;
}
.rating_res.ogray{color:#aaa;}
.rating_res:hover{color:#fff;}

.rating_bar {
  width: 208px; /* max! - максимальный размер! */
  margin-top: 6px;
  font: bold 10px/15px Tahoma, Geneva, sans-serif;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
  text-align: center;
  position: relative;
}

.rating_bar, #bar_p, #bar_m {
  background: url('../images/bg_rating.png') no-repeat;
  height: 16px;
  overflow: hidden;
}

#bar_p {
  float: left;
  background-position: 0 -16px;
}

#bar_m {
  float: right;
  background-position: 100% -32px;
}

#bar_s {
  width: 4px;
  height: 15px;
  position: absolute;
  top: 0;
  margin-left: -2px;
  background: url('../images/bg_rating_sep.png') repeat-y;
}