/**
 * Product Reviews Widget Styles
 */

.singlegrid-pdp-product-reviews-wrapper {
	width: 100%;
	display: block;
	box-sizing: border-box;
}

.singlegrid-pdp-reviews-heading {
	margin-top: 0;
	margin-bottom: 1.25rem;
	font-weight: 600;
}

/* Hide default WooCommerce subheadings inside comments_template if we render custom heading */
.singlegrid-pdp-product-reviews-wrapper #reviews #comments h2.woocommerce-Reviews-title {
	margin-bottom: 1.25em;
}

/* Review List Container */
.singlegrid-pdp-product-reviews-wrapper .commentlist {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 2em 0 !important;
}

.singlegrid-pdp-product-reviews-wrapper .commentlist li.review {
	position: relative;
	list-style: none !important;
	margin-bottom: 20px;
	padding: 20px;
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-sizing: border-box;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.singlegrid-pdp-product-reviews-wrapper .commentlist li.review:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Avatar */
.singlegrid-pdp-product-reviews-wrapper .commentlist li.review img.avatar {
	float: left;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	margin-right: 15px;
	object-fit: cover;
}

/* Comment Text & Content */
.singlegrid-pdp-product-reviews-wrapper .commentlist li.review .comment-text {
	margin-left: 65px;
}

.singlegrid-pdp-product-reviews-wrapper .commentlist li.review .meta {
	font-size: 0.9em;
	color: #666666;
	margin-bottom: 8px;
}

.singlegrid-pdp-product-reviews-wrapper .commentlist li.review .meta strong {
	color: #222222;
	font-size: 1.05em;
}

.singlegrid-pdp-product-reviews-wrapper .commentlist li.review .description {
	color: #444444;
	line-height: 1.6;
	margin-top: 8px;
}

.singlegrid-pdp-product-reviews-wrapper .commentlist li.review .description p {
	margin: 0 0 10px 0;
}

.singlegrid-pdp-product-reviews-wrapper .commentlist li.review .description p:last-child {
	margin-bottom: 0;
}

/* Star Rating */
.singlegrid-pdp-product-reviews-wrapper .star-rating {
	float: right;
	overflow: hidden;
	position: relative;
	height: 1em;
	line-height: 1;
	font-size: 1em;
	width: 5.4em;
	font-family: WooCommerce;
}

.singlegrid-pdp-product-reviews-wrapper .star-rating::before {
	content: "\73\73\73\73\73";
	color: #e0e0e0;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
}

.singlegrid-pdp-product-reviews-wrapper .star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1.5em;
}

.singlegrid-pdp-product-reviews-wrapper .star-rating span::before {
	content: "\53\53\53\53\53";
	top: 0;
	position: absolute;
	left: 0;
	color: #ffb600;
}

/* Review Submission Form */
.singlegrid-pdp-product-reviews-wrapper #review_form_wrapper {
	margin-top: 2.5em;
	padding-top: 1.5em;
	border-top: 1px solid #eeeeee;
}

.singlegrid-pdp-product-reviews-wrapper #reply-title {
	font-size: 1.35em;
	font-weight: 600;
	margin-bottom: 1em;
	display: block;
}

.singlegrid-pdp-product-reviews-wrapper #commentform p {
	margin-bottom: 15px;
}

.singlegrid-pdp-product-reviews-wrapper #commentform label {
	display: block;
	font-weight: 500;
	margin-bottom: 6px;
	color: #333333;
}

.singlegrid-pdp-product-reviews-wrapper #commentform input[type="text"],
.singlegrid-pdp-product-reviews-wrapper #commentform input[type="email"],
.singlegrid-pdp-product-reviews-wrapper #commentform textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #cccccc;
	border-radius: 6px;
	background-color: #ffffff;
	box-sizing: border-box;
	font-size: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.singlegrid-pdp-product-reviews-wrapper #commentform input[type="text"]:focus,
.singlegrid-pdp-product-reviews-wrapper #commentform input[type="email"]:focus,
.singlegrid-pdp-product-reviews-wrapper #commentform textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.singlegrid-pdp-product-reviews-wrapper #commentform textarea {
	min-height: 120px;
	resize: vertical;
}

/* Submit Button */
.singlegrid-pdp-product-reviews-wrapper #commentform #submit,
.singlegrid-pdp-product-reviews-wrapper #commentform input[type="submit"] {
	display: inline-block;
	background-color: #333333;
	color: #ffffff;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.singlegrid-pdp-product-reviews-wrapper #commentform #submit:hover,
.singlegrid-pdp-product-reviews-wrapper #commentform input[type="submit"]:hover {
	background-color: #111111;
}

/* Star Rating Input Selector in Form */
.singlegrid-pdp-product-reviews-wrapper .comment-form-rating .stars a {
	display: inline-block;
	font-family: WooCommerce;
	margin-right: 4px;
	text-decoration: none;
	color: #e0e0e0;
	font-size: 1.2em;
}

.singlegrid-pdp-product-reviews-wrapper .comment-form-rating .stars a:hover,
.singlegrid-pdp-product-reviews-wrapper .comment-form-rating .stars a.active {
	color: #ffb600;
}
