@import "_variables.scss";

.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

.betterstudio-review {
  background-color: #ffffff;
  margin-bottom: 20px;
  border: 1px solid #ebebeb;
  clear: left;
  position: relative;

  .page-heading {
	margin: 0 0 10px 0;
	font-size: 24px;

	&:last-child {
	  margin-bottom: 0;
	}
  }

  .verdict > br,
  p:empty {
	display: none;
  }

  .verdict {
	padding: 20px;
	margin: -20px -20px 10px;
  }

  .overall {
	float: right;
	background-color: #0080ce;
	color: #fff;
	padding: 10px;
	width: 160px;
	text-align: center;
	font-family: "Open Sans", sans-serif;
	font-weight: 500;
	border-radius: 3px;
	margin-left: 15px;

	.rate {
	  font-size: 60px;
	  font-weight: 600;
	  line-height: 60px;
	  display: block;

	  .percentage {
		font-size: 24px;
		line-height: 24px;
	  }
	}
  }

  .verdict-summary {
	line-height: 1.45;
  }

  .criteria-list ul {
	list-style: none;
	padding: 0;
	margin: 0;
  }

  .criteria-list li {
	border-bottom: 1px solid #ebebeb;
	padding: 8px 0;

	&:last-child {
	  border-bottom: none;
	}

	.criterion .rate {
	  float: right;
	}

	.rating-stars {
	  float: right;
	  margin-top: -20px;
	}

	.rating-bar {
	  width: 100%;
	  margin: 10px 0 5px 0;
	  height: 15px;

	  span {
		height: 15px;
		background: $primary-color;
	  }
	}

	.review-description {
	  font-size: 14px;
	  border-top: 1px solid #ebebeb;
	}

  }

  @media only screen and (max-width: 480px) {
	.overall {
	  float: none;
	  width: 100%;
	  margin: 0 0 12px;
	}
	.verdict-summary {
	  padding: 0;
	}
  }

}

/**
 * =>Star rating
 **/
.rating-stars {
  float: none;
  max-width: 80px;
  font-size: 15px;
  color: #c3c3c3;
  text-align: left;
  position: relative;
}

.ie .rating-stars {
  max-width: 95px;
  width: 95px;
  height: 20px;
  overflow: hidden;
}

.rating-stars span,
.rating-stars span:before,
.rating-stars:before {
  content: "\f005\f005\f005\f005\f005";
  color: inherit;
  letter-spacing: 2px;
  display: block;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  white-space: nowrap;
}

.rating-stars span {
  color: inherit;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  text-indent: -9999px;
  display: inline-block;
}

.rating-stars span:before {
  color: $primary-color;
  text-indent: 0;
}

.betterstudio-review .criteria-list .rating-stars {
  color: #c3c3c3;
}

.betterstudio-review .overall .rating-stars span:before {
  color: #fff;
}

.betterstudio-review .overall .rating-stars {
  margin: 15px auto 7px;
  color: rgba(0, 0, 0, 0.23);
}

.post-meta .rating-stars span:before,
.post-meta .rating-stars span,
.post-meta .rating-stars:before,
.post-meta .rating-stars {
  display: inline-block;
  font-size: 12px;
  float: right;
  line-height: 19px;
}

/**
 * =>Bar rating
 **/
.rating-bar {
  float: none;
  width: 60px;
  font-size: 15px;
  background-color: #c3c3c3;
  text-align: left;
  position: relative;
  height: 12px;
  display: block;
  margin: auto;

  span {
	height: 12px;
	display: block;
  }

  span.rate-number {
	background-color: transparent !important;
	width: auto;
	height: 12px;
	position: absolute;
	top: 0;
	margin-top: -3px;
	right: -20px;
	font-size: 10px;
  }
}

.betterstudio-review .verdict .rating-bar {
  margin: 15px auto 7px auto;
  background-color: rgba(0, 0, 0, 0.23);
  height: 10px;

  span {
	height: 10px;
	background-color: #fff;
  }

}

.betterstudio-review .criteria-list .rating-bar {
  background-color: #c3c3c3;
}

.post-meta .rating-bar {
  display: inline-block;
  height: 9px;
  float: right;
  margin-top: 6px;
}

.post-meta .rating-bar span {
  height: 9px;
}

.betterstudio-review .review-description,
.betterstudio-review .readers-ratings,
.betterstudio-review .review-cons-pros > aside,
.betterstudio-review .criteria-list,
.betterstudio-review .affiliate,
.betterstudio-review .verdict {
  padding: 20px;
  margin: 0;
  position: relative;
}

.betterstudio-review .criteria-list {
  padding: 15px 20px;
  border-top: 1px solid #ebebeb;
}

.betterstudio-review .review-cons-pros > aside {
  padding: 20px;
  line-height: 22px;
}

.betterstudio-review .readers-ratings {
  padding-top: 15px;
  padding-bottom: 15px;
  z-index: 2;
}

.review-pros-section,
.review-cons-section {
  float: left;
  width: 50%;
  border-top: 1px solid #ebebeb;
}

.review-pros-section:first-child:last-child,
.review-cons-section:first-child:last-child {
  float: none;
  width: 100%;
}

.review-pros-section .fa,
.review-cons-section .fa {
  width: 26px;
  height: 26px;
  line-height: 27px;
  border-radius: 30px;
  font-size: 16px;

  text-align: center;
  color: #fff;
  background: #02c03c;
}

.review-cons-section .fa {
  background-color: #e60000;
}

.review-pros-section ul,
.review-cons-section ul {
  list-style: none;
  padding-left: 13px;
  overflow: hidden;
}

.review-pros-section li,
.review-cons-section li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 25px;
}

.review-pros-section li:last-child,
.review-cons-section li:last-child {
  margin-bottom: 0;
}

.review-pros-section li:before,
.review-cons-section li:before {
  width: 25px;
  content: "\f00c";
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: absolute;
  left: 0;
  top: 6px;

  color: #1ec64c;
}

.review-cons-section li:before {
  content: "\f00d";
  color: #e50000;
}

.readers-ratings {
  background: #f9f9f9;
  border-top: 1px solid #ebebeb;
}

.readers-ratings .rating-stars {
  display: inline-block;
  margin: 0 10px;

  max-width: 94px;
  cursor: pointer;
}

.readers-ratings .rating-stars.disable {
  cursor: default;
}

.readers-ratings .rating-stars:before,
.readers-ratings .rating-stars span:before {
  font-size: 19px;
}

.readers-ratings .rating-stars span:before {
  color: #f5be00;
}

.betterstudio-review .affiliate {
  background: #f9f9f9;
  border-top: 1px solid #ebebeb;
  line-height: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.betterstudio-review .affiliate-btn {
  padding: 5px 15px;
  border-radius: 3px;
  float: right;
}

.betterstudio-review .heading {
  font-size: 15px;
  color: #282828;
  font-weight: bolder;
}

.betterstudio-review .heading .fa {
  margin-right: 7px;
}

.betterstudio-review .review-cons-pros .heading {
  padding: 0;
  margin: 0 0 10px;
}

.betterstudio-review .btn .fa {
  margin-right: 5px;
}

.betterstudio-review .btn {
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  text-transform: none !important;
  background: $primary-color !important;
}

.betterstudio-review .btn:hover {
  text-decoration: none !important;
  color: #fff;
}

.betterstudio-review .error-message {
  margin: 0 15px;
  color: #e50000;
}

.betterstudio-review .verdict .page-heading {
  color: $primary-color;
}

.betterstudio-review .review-cons-pros ul {
  margin: 0;
  padding: 0 0 0 7px;
}

.betterstudio-review .readers-ratings .rating,
.betterstudio-review .readers-ratings .total-votes {
  text-align: right;
  margin-right: 0;
  vertical-align: top;
  font-size: 14px;
  height: 24px;
  line-height: 24px;
  display: inline-block;
}

.betterstudio-review .readers-ratings > aside.rating {
  float: right;
}

.betterstudio-review .readers-ratings > aside.heading {
  float: left;
}

.betterstudio-review .readers-ratings > .rating .rating {
  height: 22px;
  line-height: 22px;
  margin-top: 2px;
}

.betterstudio-review .readers-ratings .total-votes {
  color: #848484;
}

.betterstudio-review .rating-stars span {
  width: 0;
}

.betterstudio-review .review-first-col {
  float: left;
  width: 67%;
}

.betterstudio-review .review-second-col {
  float: right;
  width: 33%;
}
