/*
	Product reviews styles (shop 790). Loaded inside the product detail body
	alongside the reviews partial. Bootstrap 3 compatible.
	Version: 4 (?v=4 cache-busting on the <link> tag)
*/

/* ---------- static star display (summary + cards) ---------- */
.stars-static {
	position: relative;
	display: inline-block;
	white-space: nowrap;
	font-size: 17px;
	line-height: 1;
	vertical-align: middle;
}
.stars-static .stars-bg {
	color: #d8d8d8;
	letter-spacing: 1px;
}
.stars-static .stars-fill {
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
	color: #f0ad4e;
	letter-spacing: 1px;
	white-space: nowrap;
	pointer-events: none;
}
.stars-static-lg { font-size: 22px; }
.stars-static-sm { font-size: 15px; }

/* ---------- section layout ---------- */
.product-reviews-wrap {
	margin-top: 40px;
	margin-bottom: 30px;
}
.reviews-heading {
	font-size: 24px;
	margin: 0 0 15px 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e5e5;
}
.review-summary-bar {
	margin-bottom: 20px;
}
.review-summary-bar .stars-static {
	margin-right: 8px;
}
.review-summary-text {
	vertical-align: middle;
	color: #777;
}
.review-group {
	margin-bottom: 30px;
}
.review-list {
	margin-bottom: 15px;
}

/* ---------- review card ---------- */
.review-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	padding: 15px 18px;
	margin-bottom: 15px;
}
.review-card-head {
	display: block;
}
.review-card-stars {
	margin-right: 8px;
	vertical-align: middle;
}
.review-card-author {
	font-weight: bold;
	vertical-align: middle;
	margin-right: 8px;
}
.review-card-meta {
	color: #999;
	font-size: 13px;
	margin: 4px 0 8px 0;
}
.review-card-content {
	color: #333;
	line-height: 1.6;
	word-wrap: break-word;
}

/* ---------- verified purchase badge ---------- */
.verified-purchase-badge {
	display: inline-block;
	vertical-align: middle;
	font-size: 12px;
	color: #3c763d;
	background: #f2f8f2;
	border: 1px solid #d6e9c6;
	border-radius: 3px;
	padding: 2px 8px;
	white-space: nowrap;
}
.verified-purchase-badge .verified-icon {
	font-weight: bold;
	margin-right: 3px;
}

/* ---------- review list: 4-column grid, paginated ---------- */
.review-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-gap: 15px;
	align-items: stretch;
	margin-bottom: 15px;
}
.review-list .review-card {
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
}
.review-list .review-card-content {
	flex: 1 1 auto;
}
.review-group.rv-loading .review-list {
	opacity: 0.5;
}

/* ---------- pagination + per-page controls ---------- */
.rv-list-controls {
	display: -webkit-flex;
	display: flex;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
	align-items: center;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 12px;
}
.rv-pagination {
	text-align: center;
	margin: 0;
}
.rv-pagination .pagination {
	margin: 0;
}
.rv-pagination .pagination > li > a,
.rv-pagination .pagination > li > span {
	color: #337ab7;
}
.rv-per-page {
	color: #777;
	font-weight: normal;
	margin: 0;
	white-space: nowrap;
}
.rv-per-page select {
	display: inline-block;
	width: auto;
	margin: 0 4px;
	padding: 4px 6px;
	color: #337ab7;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
}

/* ---------- title summary link (product title area) ---------- */
a.product-review-summary {
	display: inline-block;
	margin: 2px 0 10px 0;
	text-decoration: none;
}
a.product-review-summary:hover,
a.product-review-summary:focus {
	text-decoration: none;
}
a.product-review-summary .review-summary-count {
	margin-left: 6px;
	vertical-align: middle;
}

/* ---------- star rating input ---------- */
.stars-input {
	display: inline-block;
	vertical-align: middle;
}
.stars-input label {
	float: right;
	font-size: 28px;
	line-height: 1;
	color: #d8d8d8;
	padding: 0 3px;
	margin: 0;
	cursor: pointer;
	-webkit-transition: color 0.1s ease;
	-o-transition: color 0.1s ease;
	transition: color 0.1s ease;
}
.stars-input label:hover,
.stars-input label:hover ~ label,
.stars-input label.is-hover,
.stars-input label.is-hover ~ label,
.stars-input label.is-active,
.stars-input label.is-active ~ label {
	color: #f0ad4e;
}
.star-radio {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
}
.star-radio:focus + label {
	outline: 2px solid #66afe9;
	outline-offset: 1px;
	border-radius: 2px;
}

/* ---------- form ---------- */
.review-form {
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	padding: 20px;
	background: #fbfbfb;
	max-width: 720px;
}
.review-form-heading {
	font-size: 18px;
	margin: 0 0 15px 0;
}
.review-form .control-label {
	margin-bottom: 6px;
}
.rv-required {
	color: #a94442;
}
.review-rating-group {
	margin-bottom: 18px;
}
.rv-char-counter {
	text-align: right;
	font-size: 12px;
	color: #999;
}
.rv-char-counter.rv-over-limit {
	color: #a94442;
}
.review-form-msg {
	border-radius: 4px;
	padding: 10px 15px;
	margin-bottom: 15px;
}
.review-form-msg.is-error {
	color: #a94442;
	background: #f2dede;
	border: 1px solid #ebccd1;
}
.review-form-msg.is-success {
	color: #3c763d;
	background: #dff0d8;
	border: 1px solid #d6e9c6;
}
.review-success-panel {
	border-radius: 4px;
	padding: 15px 20px;
}

/* ---------- honeypot (visually + programmatically hidden) ---------- */
.rv-hp-wrap {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ---------- misc states ---------- */
.review-signin-cta {
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	padding: 20px;
	background: #fbfbfb;
}
.review-signin-title {
	font-size: 16px;
	font-weight: bold;
	margin: 0 0 12px 0;
}
.rv-no-reviews {
	font-style: italic;
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
	.review-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.reviews-heading {
		font-size: 20px;
	}
	.review-card {
		padding: 12px 14px;
	}
	.stars-input label {
		font-size: 32px;
		padding: 0 5px;
	}
	.review-list {
		grid-template-columns: 1fr;
	}
	.rv-pagination .pagination > li > a,
	.rv-pagination .pagination > li > span {
		padding: 6px 10px;
	}
}
