/* Review */
#review
{
	margin-top: 15px;
	margin-bottom: 15px;
	padding: 15px;
	background-color: #fff;
	border-radius: 8px;
	-webkit-box-shadow: 0 0 15px rgba(64, 64, 64, .1);
	box-shadow: 0 0 15px rgba(64, 64, 64, .1);
}

/* Title */
#review h3
{
	margin-bottom: 0;
	padding-bottom: 10px;
	font-size: 1.1em;
	color: #535353;
}

#review h3 span
{
	position: relative;
	top: 2px;
	color: var(--theme-light-color);
}

/* Form */
#review .form { margin: 0; }

/* Input */
#review input, #review textarea
{
	padding: 10px;
	line-height: 30px;
	border: 0;
	border-radius: 5px;
	-webkit-transition: all .3s ease;
	transition: all .3s ease;	
}

#review input { margin-bottom: 10px; }

#review-text
{
	border-radius: 5px;
	-webkit-box-shadow: 0 0 6px rgba(143, 143, 143, .17);
	box-shadow: 0 0 6px rgba(143, 143, 143, .17);
}

#review textarea
{
	min-height: 140px;
	max-height: 140px;
	resize: none;
}

[dir="rtl"] #review textarea { font-family: "Shabnam", "Nunito", Helvetica, sans-serif; }
[dir="ltr"] #review textarea { font-family: "Nunito", Helvetica, sans-serif; }

#review input:invalid, #review textarea:invalid
{
	box-shadow: none;
	outline: none;
}

#review input:valid, #review textarea:valid { border-color: var(--green); }

/* Buttons */
#review-buttons { margin-top: 20px; }

#review-buttons .btn
{
	font-weight: normal;
	padding: 10px 25px;
	border-radius: 25px;
}

[dir="rtl"] #review-buttons .btn { margin-left: 10px; }
[dir="ltr"] #review-buttons .btn { margin-right: 10px; }
[dir="rtl"] #review-buttons .btn:last-child { margin-left: 0; }
[dir="ltr"] #review-buttons .btn:last-child { margin-right: 0; }

#review-buttons .btn:not([disabled])
{
	color: #fff;
	background-color: var(--theme-light-color);
}

/* Loading */
#review-buttons .btn .loading
{
	display: inline-block;
	width: 24px;
}

[dir="rtl"] #review-buttons .btn .loading { text-align: left; }
[dir="ltr"] #review-buttons .btn .loading { text-align: right; }

#review-buttons .btn .loading div
{
	display: inline-block;
	position: relative;
	top: 2px;
	-webkit-animation: loading .3s linear 0s infinite;
	animation: loading .3s linear 0s infinite;
}

/* Review */
.review
{
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--light-grey);
	border-radius: 8px;
}

.review:not(.can-reply)
{
	width: calc(100% - 60px);
	padding: 10px;
}

[dir="rtl"] .review:not(.can-reply) { margin-right: 60px; }
[dir="ltr"] .review:not(.can-reply) { margin-left: 60px; }

.review:not(.can-reply), .review.have-children
{
	margin-bottom: 5px;
	border-color: transparent;
}

.review:not(.can-reply):nth-child(even) { background-color: var(--light-grey-c); }
.review:not(.can-reply):nth-child(odd) { background-color: var(--light-grey-d); }

/* Review In */
.review-in {}

/* Icon */
.review-icon { width: 40px; }

.review-icon span
{
	line-height: 40px;
	text-align: center;
	color: #fff;
	background-color: #cfcfcf;
	border-radius: 20px;
}

.review:not(.can-reply) .review-icon {}

/* Information */
.review-icon + .review-information { width: calc(100% - 60px); }
/*.review:not(.can-reply) .review-information { width: 100%; }*/

/* Name */
.review-name
{
	margin-bottom: 8px;
	font-size: 1em;
	line-height: 40px;
	font-weight: bold;
	color: #4c4b4b;
}

/* Stars */
.review-stars
{
	width: 128px;
	height: 24px;
	margin-top: 8px;
	float: none;
	direction: ltr;
	text-align: left;
}

[dir="rtl"] .review-name .review-stars { margin-right: 10px; }
[dir="ltr"] .review-name .review-stars { margin-left: 10px; }

.review-star
{
	width: 24px;
	height: 24px;
	font-size: 1.2em;
	line-height: 24px;
	text-align: center;
	color: #FFC107;
	background-color: #fff;
	border-radius: 5px;
	-webkit-box-shadow: 0 0 5px rgba(128, 128, 128, .13);
	box-shadow: 0 0 5px rgba(128, 128, 128, .13);
}

[dir="rtl"] .review-star { margin-right: 2px; }
[dir="ltr"] .review-star { margin-left: 2px; }
[dir="rtl"] .review-star:first-child { margin-right: 0; }
[dir="ltr"] .review-star:first-child { margin-left: 0; }

.review-star span
{
	position: relative;
	top: 3px;
}

.review-stars[star="1"] .review-star:nth-child(-n+1) span:before { content: "\e904"; }
.review-stars[star="2"] .review-star:nth-child(-n+2) span:before { content: "\e904"; }
.review-stars[star="3"] .review-star:nth-child(-n+3) span:before { content: "\e904"; }
.review-stars[star="4"] .review-star:nth-child(-n+4) span:before { content: "\e904"; }
.review-stars[star="5"] .review-star:nth-child(-n+5) span:before { content: "\e904"; }
.review-stars[star="1"][half="1"] .review-star:nth-child(2) span:before, 
.review-stars[star="2"][half="1"] .review-star:nth-child(3) span:before, 
.review-stars[star="3"][half="1"] .review-star:nth-child(4) span:before, 
.review-stars[star="4"][half="1"] .review-star:nth-child(5) span:before { content: "\e905"; }

/* Rating */
.review-select-rating
{
	width: auto;
	direction: ltr;
	text-align: left;
}

[dir="rtl"] .review-select-rating { margin-right: 10px; }
[dir="ltr"] .review-select-rating { margin-left: 10px; }

#review .review-star-checkbox
{
	cursor: pointer;
	opacity: 0;
	width: 26px;
	height: 30px;
	margin-bottom: 0;
	position: absolute;
	top: 0;
	z-index: 1;
}

.review-star-checkbox.star-1 { left: -1px; }
.review-star-checkbox.star-2 { left: 25px; }
.review-star-checkbox.star-3 { left: 50px; }
.review-star-checkbox.star-4 { left: 75px; }
.review-star-checkbox.star-5 { left: 100px; }
.review-star-checkbox.star-1:checked ~ .review-stars .review-star:nth-child(-n+1) span:before,
.review-star-checkbox.star-2:checked ~ .review-stars .review-star:nth-child(-n+2) span:before,
.review-star-checkbox.star-3:checked ~ .review-stars .review-star:nth-child(-n+3) span:before,
.review-star-checkbox.star-4:checked ~ .review-stars .review-star:nth-child(-n+4) span:before,
.review-star-checkbox.star-5:checked ~ .review-stars .review-star:nth-child(-n+5) span:before { content: "\e904"; }
.review-select-rating .review-stars { margin-top: 3px; }

/* Date */
.review-date
{
	width: auto;
	position: absolute;
	top: 0;
	font-size: .7em;
	line-height: 18px;
	color: #adacac;
}

[dir="rtl"] .review-date { left: 0; }
[dir="ltr"] .review-date { right: 0; }

/* Buttons */
.review-buttons { margin-top: 10px; }

.review-btn
{
	width: auto;
	min-height: 24px;
	font-size: .8em;
	line-height: 30px;
	background-color: #fff;
	border-radius: 5px;
}

[dir="rtl"] .review-btn { margin-left: 10px; }
[dir="ltr"] .review-btn { margin-right: 10px; }
[dir="rtl"] .review-btn:first-child { margin-left: 0; }
[dir="ltr"] .review-btn:first-child { margin-right: 0; }
.review-btn[type="reply"] { color: var(--theme-light-color); }
.review-btn[type="like"] { color: #8e8e8e; }

.review-btn[type="like"].active, #review .review-btn[type="like"].active:hover
{
	color: var(--white);
	background-color: var(--theme-light-color);
	border-color: var(--theme-light-color);
}

.review-btn[type="like"][number]:after { content: attr(number); }
.review-btn[type="like"][number="0"]:after { display: none; }
[dir="rtl"] .review-btn[type="like"][number]:after { padding-right: 5px; }
[dir="ltr"] .review-btn[type="like"][number]:after { padding-left: 5px; }

.review-btn span
{
	position: relative;
	top: 3px;
	color: var(--theme-light-color);
}

.review-btn[type="like"].active span { color: #fff; }

/* Text */
.review-content p
{
	margin: 0;
	font-size: .9em;
	line-height: 24px;
	color: #4c4b4b;
}

/* Box */
.review-box
{
	margin-top: 20px;
	margin-bottom: 10px;
	padding: 0 10px;
	font-size: .9em;
	color: var(--theme-light-color);
	border: 1px solid var(--theme-light-color);
	border-radius: 4px;
}

.review-box > span
{
	min-width: 30px;
	position: relative;
	top: 7px;
}

.review-box .review-name
{
	width: auto;
	float: none;
	margin-bottom: 0;
	line-height: 30px;
}

[dir="rtl"] .review-box .review-name { margin-right: 10px; }
[dir="ltr"] .review-box .review-name { margin-left: 10px; }

.review-box .review-close
{
	width: 24px;
	min-height: 24px;
	padding: 0;
	position: absolute;
	top: 3px;
	font-size: .8em;
	line-height: 22px;
	text-align: center;
	color: var(--red);
	-webkit-transition: all .3s ease;
	transition: all .3s ease;
}

[dir="rtl"] .review-box .review-close { left: 3px; }
[dir="ltr"] .review-box .review-close { right: 3px; }

.review-box .review-close:hover
{
	cursor: pointer;
	color: #f44336;
}

.review-box .review-close span
{
	float: none;
	margin: 0;
	position: relative;
	top: 2px;
	line-height: 20px;
}

/* Notification */
.review-notification
{
	width: auto;
	max-width: 70%;
	position: fixed;
	padding: 5px;
	top: 20px;
	left: 20px;
	-webkit-box-shadow: 0 2px 3px var(--transparent-black-2);
	box-shadow: 0 2px 3px var(--transparent-black-2);
	border-radius: 5px;
	-webkit-animation: notification .3s ease 0s 1;
	animation: notification .3s ease 0s 1;
	z-index: 5000;
}

[dir="rtl"] .review-notification { padding-left: 40px; }
[dir="ltr"] .review-notification { padding-right: 40px; }

/* Notification State */
.review-notification-state
{
	position: relative;
	top: 2px;
}

/* Notification Button */
.review-notification .btn
{
	display: inline-block;
	width: 30px;
	padding: 0;
	position: absolute;
	top: 5px;
	line-height: 27px;
	text-align: center;
	-webkit-transition: all .3s ease;
	transition: all .3s ease;
}

[dir="rtl"] .review-notification .btn { left: 5px; }
[dir="ltr"] .review-notification .btn { right: 5px; }

.review-notification .btn span
{
	float: none;
	margin: 0;
}

/* Notification Success */
.review-notification-success
{
	color: var(--white);
	background-color: var(--green);
}

.review-notification-error .btn { color: var(--white); }

/* Notification Error */
.review-notification-error
{
	color: var(--white);
	background-color: var(--red);
}

.review-notification-error .btn { color: var(--white); }

@media (min-width: 35.5em)
{
	.review-buttons
	{
		width: auto;
		position: absolute;
		top: 18px;
		margin-top: 0;
	}

	[dir="rtl"] .review-buttons { left: 0; }
	[dir="ltr"] .review-buttons { right: 0; }
}

@media (min-width: 48em) { #review { padding: 30px; } }
@-webkit-keyframes loading { from { -webkit-transform: rotate(0deg); transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
@keyframes loading { from { -webkit-transform: rotate(0deg); transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }