/**
 * 2007-2019 PrestaShop SA and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2019 PrestaShop SA and Contributors
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */

/**
 *  Product comments CSS
 */

.btn-comment{
  height: 36px;
  border-radius: 2px;
  background-color: #6B868F;
  color: #FFFFFF;
  font-size: 14px;
  box-shadow: 2px 2px 4px 0 rgba(0,0,0,0.2);
  padding: 8px;
}
.btn-comment .material-icons,
.btn-comment-inverse .material-icons{
  font-size: 20px;
  margin-right: 7px;
}

.btn-comment:hover {
  background-color: #3C4D52;
}

.btn-comment-inverse:hover {
  background-color: #6B868F;
  border: 1px solid #6B868F;
  color: #FFFFFF;
}

.btn-comment-big {
  padding: 13px 16px;
  height: 45px;
}

.btn-comment-huge {
  padding: 13px 28px;
  height: 45px;
}

.link-comment {
    color: #666;
    font-weight: 600;
}

.link-comment:hover, .link-comment:active {
  color: #232323;
}

/**
 * Additional product infos
 */

.product-comments-additional-info {
    margin:10px 0;
    font-weight: 600;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 14px;
    align-items: center;
    float: left;
    width: 100%;
    color: #666;
}
.product-comments-additional-info .link-comment{
  border-left: 1px solid #979797;
  padding-left: 10px;
  margin-left: 10px;
}

/**
 *  Post comment modal
 */

.product-comment-modal .modal-header h2 {
	font-size: 16px;
	line-height: 20px;
	color: #000000;
	font-weight: 700;
	float: left;
	margin: 0;
}
.product-comment-modal .modal-dialog {
  width: calc(100% - 30px);
  max-width: 774px;
}

.product-comment-modal .modal-dialog h3 {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}
.product-comment-modal .modal-dialog .product-flag {
  display: none;
}
.product-comment-modal label.form-label {
  font-size: 14px;
  margin: 10px 0;
}

.product-comment-modal input {
  width: 100%;
  height: 44px;
  border: 1px solid #e5e5e5;
  padding: 0 10px;
}

.product-comment-modal textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid #e5e5e5;
  margin-bottom: 10px;
  padding: 10px 10px;
}

.product-comment-modal .btn-comment,
.product-comment-modal .btn-comment-inverse {
  font-size: 16px;
  line-height: 16px;
  font-weight: bold;
}

.product-comment-modal .required {
  font-size: 12px;
  margin-left: 5px;
  color:#FF0000;
}

.product-comment-modal .post-comment-buttons {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  margin: 20px 0 0;
}
.product-comment-modal .post-comment-buttons .btn{
	margin:0 5px;
}
.product-comment-modal .post-comment-buttons .btn-comment {
  margin-left: 15px;
}

#product-comment-post-error .post-comment-buttons,
#update-comment-usefulness-post-error .post-comment-buttons {
  margin-top: 30px;
}

.product-comment-modal .modal-header .material-icons {
	color: #40A85F;
	font-size: 22px;
}

.modal-header .material-icons.error {
  color: #a94442;
}
.pb-right-column .product-additional-info .social-sharing ul li {
	box-shadow: none;
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
}
.modal-header .material-icons.feedback {
  color: #F39D72;
}
.product-comment-modal .ttproduct-rating {
	float: left;
	width: 100%;
	padding:0 15px;
	margin: 0 0 10px;
}
.product-comment-modal .ttproduct-rating ul {
	margin: 0;
}
.product-comment-modal .reviewcomment-modal {
	background: #f5f5f5;
	padding: 15px;
}

/**
 *  Star component
 */
.star[style="visibility: hidden;"] {
    display: block;
}
.star[style="visibility: hidden;"]::after {
    display: none;
}
.star-content div.star-on {
    display: inline-block;
	float: none;
	vertical-align: top;
	cursor: pointer;
	margin: 0 0 0 2px;
	font-size: 15px;
}
.star-content div.star:first-child, 
.star-content div.star-on:first-child, 
.star-content div.star-hover:first-child {
	margin:0;
}
.star-content div.star::after {
	content: "\E838";
	font-family: "Material Icons";
	color: #d9d9d9;
}

.star-content div.star-on::after,
.star-content div.star-hover::after {
	content: "\E838";
	font-family: "Material Icons";
	color: #fbaf5d;
}

.star-content div.star-hover {
  cursor: pointer;
}

.grade-stars {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}
.criterion-rating .grade-stars .star-content {
  top: 0;
}

#post-product-comment-modal .star-content div.star a {
  display: block;
  position: absolute;
  text-indent: -5000px;
}
#post-product-comment-modal .criterion-rating {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

#post-product-comment-modal .criterion-rating label {
  color: #363A41;
  font-size: 14px;
  font-weight: bold;
  margin-right: 5px;
}

#post-product-comment-form input.error,
#post-product-comment-form textarea.error {
  background-color: #f2dede;
  border: solid 1px #ebcccc;
}

#post-product-comment-form input.valid,
#post-product-comment-form textarea.valid {
  border: solid 1px #d0e9c6;
}

/**
 *  Product comments list
 */
.product-comments-additional-info .btn-comment {
    background: none;
    height: auto;
    box-shadow: none;
    color: #666;
    padding: 0;
}
.product-comments-additional-info .btn-comment i{
	font-size:16px;
}
.product-comments-list-main {
    float: left;
    width: 100%;
	display:none;
}
#product-comments-list-header {
    padding: 20px 15px;
    color: #232323;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    background: #f5f5f5;
	cursor:pointer;
	float:left;
	width:100%;
	align-items:center;
	margin-bottom: 10px;
}
#product-comments-list-header .comments-note {
    padding: 0 30px 0 0;
}
#product-comments-list-header::after {
    font-family: 'Material Icons';
    content: '\e5cf';
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 22px;
}
#product-comments-list-header.active::after {
    font-family: 'Material Icons';
    content: '\e5ce';
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
}
#product-comments-list-header .comments-nb {
    padding-left: 0;
    font: 700 16px/22px "Muli", Helvetica, sans-serif;
	display: block;
}

#product-comments-list-header .comments-nb  .material-icons {
  margin-right: 3px;
}

#product-comments-list .btn-comment {
  margin: 0 auto;
  display: block;
}

.product-comment-list-item {
	padding: 20px 0;
	margin: 0;
	background-color: #FFFFFF;
	text-align: left;
	border-bottom: 1px solid #e5e5e5;
}
.product-comment-list-item:last-child {
	border: none;
}
#product-comments-list-header .comments-note {
	display: none;
}
#empty-product-comment {
  text-align: center;
}
.product-comment-list-item .comment-infos {
	color: #666666;
	font-size: 14px;
	float: left;
	width: 100%;
}
.product-comment-list-item .comment-infos .grade-stars {
	margin-bottom: 10px;
}
.post-product-comment i {
    font-size: 16px;
    vertical-align: top;
}
.product-comment-list-item .comment-content h4 {
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.product-comment-list-item .comment-content p {
	word-break: break-word;
}
.product-comment-list-item .comment-content .comment-buttons a {
  color: #666666;
  font-size: 14px;
  letter-spacing: -0.28px;
  line-height: 19px;
  margin-right: 8px;
}
.product-comment-list-item .comment-content .comment-buttons a.useful-review:hover {
	color:#008000;
}
.product-comment-list-item .comment-content .comment-buttons a.not-useful-review:hover {
	color:#ff0000;
}
.product-comment-list-item .comment-content .comment-buttons a.report-abuse:hover {
	color:#F39D72;
}

.product-comment-list-item .comment-content .comment-buttons a .material-icons {
  font-size: 18px;
  cursor: pointer;
}
.product-comment-list-item .comment-infos .tt-author-date {
	float: left;
	width: 100%;
	margin: 0 0 10px;
}
.product-comment-list-item .comment-infos .tt-author-date > div {
	display: inline-block;
	vertical-align:top;
}
.product-comment-list-item .comment-infos .tt-author-date .comment-author {
	font-weight: 800;
}
.product-comment-list-item .comment-content {
	color: #666666;
	font-size: 14px;
	float: left;
	width: 100%;
}
.product-comment-list-item .comment-content .comment-buttons.btn-group {
	float: right;
}
/*
** Quickview style
*/

.product-quickview-review {
	display: flex;
	flex-direction: row;
	float: left;
	width: 100%;
	margin: 0 0 20px;
}

/*
** Product list override
*/
#products .thumbnail-container.has-reviews:hover .highlighted-informations.no-variants,
#products .thumbnail-container.has-reviews:focus .highlighted-informations.no-variants,
.featured-products .thumbnail-container.has-reviews:hover .highlighted-informations.no-variants,
.featured-products .thumbnail-container.has-reviews:focus .highlighted-informations.no-variants,
.product-accessories .thumbnail-container.has-reviews:hover .highlighted-informations.no-variants,
.featured-products .thumbnail-container.has-reviews:focus .highlighted-informations.no-variants,
.product-miniature .thumbnail-container.has-reviews:hover .highlighted-informations.no-variants,
.product-miniature .thumbnail-container.has-reviews:focus .highlighted-informations.no-variants {
  height: 4.125rem;
}

#products .product-miniature .thumbnail-container.has-reviews .discount-amount.online-only,
#products .product-miniature .thumbnail-container.has-reviews .discount-percentage.online-only,
#products .product-miniature .thumbnail-container.has-reviews .on-sale.online-only,
#products .product-miniature .thumbnail-container.has-reviews .online-only.online-only,
#products .product-miniature .thumbnail-container.has-reviews .pack.online-only,
#products .product-miniature .thumbnail-container.has-reviews .product-flags .new.online-only,
.featured-products .product-miniature .thumbnail-container.has-reviews .discount-amount.online-only,
.featured-products .product-miniature .thumbnail-container.has-reviews .discount-percentage.online-only,
.featured-products .product-miniature .thumbnail-container.has-reviews .on-sale.online-only,
.featured-products .product-miniature .thumbnail-container.has-reviews .online-only.online-only,
.featured-products .product-miniature .thumbnail-container.has-reviews .pack.online-only,
.featured-products .product-miniature .thumbnail-container.has-reviews .product-flags .new.online-only,
.product-accessories .product-miniature .thumbnail-container.has-reviews .discount-amount.online-only,
.product-accessories .product-miniature .thumbnail-container.has-reviews .discount-percentage.online-only,
.product-accessories .product-miniature .thumbnail-container.has-reviews .on-sale.online-only,
.product-accessories .product-miniature .thumbnail-container.has-reviews .online-only.online-only,
.product-accessories .product-miniature .thumbnail-container.has-reviews .pack.online-only,
.product-accessories .product-miniature .thumbnail-container.has-reviews .product-flags .new.online-only {
  top: 11.5rem;
}
#products .thumbnail-container .product-list-reviews, 
.featured-products .thumbnail-container .product-list-reviews, 
.product-accessories .thumbnail-container .product-list-reviews, 
.ttfeatured-products .thumbnail-container .product-list-reviews, 
.crossselling-product .thumbnail-container .product-list-reviews, 
.ttbestseller-products .thumbnail-container .product-list-reviews, 
.ttnew-products .thumbnail-container .product-list-reviews, 
.ttspecial-products .thumbnail-container .product-list-reviews, 
.category-products .thumbnail-container .product-list-reviews, 
.view-product .thumbnail-container .product-list-reviews {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	top: auto;
	transition: all 400ms ease-in-out;
	-webkit-transition: all 400ms ease-in-out;
	-moz-transition: all 400ms ease-in-out;
	-o-transition: all 400ms ease-in-out;
	-ms-transition: all 400ms ease-in-out;
	opacity: 1;
	-moz-opacity: 1;
	-khtml-opacity: 1;
	-webkit-opacity: 1;
}
#products .thumbnail-container:hover .product-list-reviews, 
.featured-products .thumbnail-container:hover .product-list-reviews, 
.product-accessories .thumbnail-container:hover .product-list-reviews, 
.ttfeatured-products .thumbnail-container:hover .product-list-reviews, 
.crossselling-product .thumbnail-container:hover .product-list-reviews, 
.ttbestseller-products .thumbnail-container:hover .product-list-reviews, 
.ttnew-products .thumbnail-container:hover .product-list-reviews, 
.ttspecial-products .thumbnail-container:hover .product-list-reviews, 
.category-products .thumbnail-container:hover .product-list-reviews, 
.view-product .thumbnail-container:hover .product-list-reviews {
    opacity: 0;
    -moz-opacity: 0;
    -khtml-opacity: 0;
    -webkit-opacity: 0;
    visibility: hidden;
}
.comments-note span {
    display: none;
}
.grade-stars .star-content {
    float: none;
    display: inline-block;
}
.grade-stars .star-content.star-full{
	float:left;
}
.star {
    display: inline-block;
    float: none;
    vertical-align: top;
    cursor: pointer;
    margin: 0 0 0 2px;
    font-size: 15px;
}
#products .product-list .thumbnail-container .product-list-reviews, 
.featured-products .product-list .thumbnail-container .product-list-reviews, 
.product-accessories .product-list .thumbnail-container .product-list-reviews, 
.ttfeatured-products .product-list .thumbnail-container .product-list-reviews, 
.crossselling-product .product-list .thumbnail-container .product-list-reviews, 
.ttbestseller-products .product-list .thumbnail-container .product-list-reviews, 
.ttnew-products .product-list .thumbnail-container .product-list-reviews, 
.ttspecial-products .product-list .thumbnail-container .product-list-reviews, 
.category-products .product-list .thumbnail-container .product-list-reviews, 
.view-product .product-list .thumbnail-container .product-list-reviews,
#products .product-sort .thumbnail-container .product-list-reviews, 
.featured-products .product-sort .thumbnail-container .product-list-reviews, 
.product-accessories .product-sort .thumbnail-container .product-list-reviews, 
.ttfeatured-products .product-sort .thumbnail-container .product-list-reviews, 
.crossselling-product .product-sort .thumbnail-container .product-list-reviews, 
.ttbestseller-products .product-sort .thumbnail-container .product-list-reviews, 
.ttnew-products .product-sort .thumbnail-container .product-list-reviews, 
.ttspecial-products .product-sort .thumbnail-container .product-list-reviews, 
.category-products .product-sort .thumbnail-container .product-list-reviews, 
.view-product .product-sort .thumbnail-container .product-list-reviews {
    position: static;
    display: block;
    padding: 0 0 5px;
    visibility: visible;
    opacity: 1;
    -moz-opacity: 1;
    -khtml-opacity: 1;
    -webkit-opacity: 1;
	transition: none;
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    -ms-transition: none;
	float: left;
	width: 100%;
}
.product-list .has-reviews .product-list-reviews {
    position: static;
    display: block;
    padding: 0 0 10px;
}
.comments-nb {
  margin-left: 5px;
  font-size: 13px;
  display:none;
}
@media (min-width: 768px) {
	#product-comments-list-footer {
		position: relative;
		text-align: center;
		border-top: 1px solid #e5e5e5;
		padding: 20px 0 0;
	}
	#product-comments-list-footer .post-product-comment {
		margin: 0 auto;
		display: block;
		float: left;
	}
	#product-comments-list-pagination {
		float: right;
		width: auto;
	}
}
@media (max-width: 767px) {
	#products .thumbnail-container .product-list-reviews, 
	.featured-products .thumbnail-container .product-list-reviews, 
	.product-accessories .thumbnail-container .product-list-reviews, 
	.ttfeatured-products .thumbnail-container .product-list-reviews, 
	.crossselling-product .thumbnail-container .product-list-reviews, 
	.ttbestseller-products .thumbnail-container .product-list-reviews, 
	.ttnew-products .thumbnail-container .product-list-reviews, 
	.ttspecial-products .thumbnail-container .product-list-reviews, 
	.category-products .thumbnail-container .product-list-reviews, 
	.view-product .thumbnail-container .product-list-reviews {
		bottom: 60px;
		transition: none;
		-webkit-transition: none;
		-moz-transition: none;
		-o-transition: none;
		-ms-transition: none;
		visibility: visible;
	}
	#products .thumbnail-container:hover .product-list-reviews, 
	.featured-products .thumbnail-container:hover .product-list-reviews, 
	.product-accessories .thumbnail-container:hover .product-list-reviews, 
	.ttfeatured-products .thumbnail-container:hover .product-list-reviews, 
	.crossselling-product .thumbnail-container:hover .product-list-reviews, 
	.ttbestseller-products .thumbnail-container:hover .product-list-reviews, 
	.ttnew-products .thumbnail-container:hover .product-list-reviews, 
	.ttspecial-products .thumbnail-container:hover .product-list-reviews, 
	.category-products .thumbnail-container:hover .product-list-reviews, 
	.view-product .thumbnail-container:hover .product-list-reviews {
		opacity: 1;
		-moz-opacity: 1;
		-khtml-opacity: 1;
		-webkit-opacity: 1;
		visibility: visible;
	}
}
@media (max-width: 730px) {
.ttproduct-img,.ttproduct-content,.ttproduct-rating{
	float:left;
	width:100%;
}
#post-product-comment-modal .criterion-rating{
justify-content: flex-start;
}
}
@media (max-width: 768px) {
  #product-comments-list-footer {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
}

@media (max-width: 576px) {
  #product-comments-list-footer {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
  }

  #product-comments-list-pagination {
    margin-bottom: 10px;
  }
}
@media (max-width: 543px) {
.additional-links.comments_advices {
    padding: 10px 0 0;
	float:left;
	width:100%;
}
.product-comments-additional-info .link-comment {
	padding-left: 0;
	margin-left: 0;
	border: none;
	float: left;
	width: 100%;
	margin-bottom: 10px;
}
#product-comments-list-header{
	display:block;
}
#post-product-comment-modal .criterion-rating{
	display:block;
}
}

#product-comments-list-pagination ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

#product-comments-list-pagination ul li span {
	height: 30px;
	width: 30px;
	margin: 0 3px;
	cursor: pointer;
	display: block;
	text-align: center;
	font-size: 12px;
	line-height: 18px;
	color: #000000;
	border: 1px solid #e5e5e5;
	border-radius: 50%;
	padding: 5px;
}
#product-comments-list-pagination ul li span.next i, 
#product-comments-list-pagination ul li span.prev i {
	line-height: 18px;
	font-size: 20px;
}
#product-comments-list-pagination ul li.active span,
#product-comments-list-pagination ul li span.next i,
#product-comments-list-pagination ul li span.prev i {
  font-weight: normal;
}

#product-comments-list-pagination ul li.disabled span {
  opacity: 0.3;
  cursor: not-allowed;
}

#product-comments-list-pagination ul li.active span {
    cursor: not-allowed;
    background: #000;
    color: #fff;
    border-color: #000;
}
#product-comments-list-pagination ul li span:hover{
    background: #fec500;
    color: #111;
    border-color: #fec500;
}
#product-comments-list-pagination ul li.disabled span:hover{
	background:none;
	border-color:#e5e5e5;
	color:#000000;
}
.product-comment-modal .post-comment-buttons .btn.btn-secondary {
	background: #fec500;
	color: #111;
}
.product-comment-modal .post-comment-buttons .btn.btn-secondary:hover,
.product-comment-modal .post-comment-buttons .btn.btn-secondary:focus {
	color: #fff;
}
.product-comment-modal .post-comment-buttons .btn.btn-secondary::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #000;
	-webkit-transform: scaleX(0);
	transform: scaleX(0);
	-webkit-transform-origin: 0 50%;
	transform-origin: 0 50%;
	-webkit-transition-property: transform;
	transition-property: transform;
	-webkit-transition-duration: 0.3s;
	transition-duration: 0.3s;
	-webkit-transition-timing-function: ease-out;
	transition-timing-function: ease-out;
}
.product-comment-modal .post-comment-buttons .btn.btn-secondary:hover::before, 
.product-comment-modal .post-comment-buttons .btn.btn-secondary:focus::before, 
.product-comment-modal .post-comment-buttons .btn.btn-secondary:active::before {
	-webkit-transform: scaleX(1);
	transform: scaleX(1);
}

/*--------------- FOR PRODUCT PAGE --------------*/
.pb-right-column .product-additional-info {
	float: left;
	width: 100%;
	margin: 0 0 10px;
}
.pb-right-column .social-sharing {
	float: right;
	width: auto;
	margin:0;
}
.pb-right-column .social-sharing span {
	display: none;
}
.pb-right-column .product-comments-additional-info {
	width: auto;
	margin:5px 0;
}
.pb-right-column .product-comments-additional-info .link-comment .review-comment {
	display: none;
}
.pb-right-column .social-sharing li:first-child {
    margin-left: 0;
}
@media (max-width: 991px) {
	.pb-right-column .product-comments-additional-info {
		width: 100%;
		margin: 5px 0 15px;
		float: left;
	}
	.pb-right-column .social-sharing {
		float: left;
		width: 100%;
		margin: 0;
	}
}
@media (max-width: 543px) {
	.pb-right-column .social-sharing {
		float: left;
		width: 100%;
	}
	.pb-right-column .product-comments-additional-info {
		margin: 5px 0;
	}

}