/*
* Refactored Review section  styles originally from style.css – moved here for better organization 
*/
/*Product Reviews Section Css Start */
 .product-reviews-summary {
	 display: flex;
	 align-items: center;
	 gap: 0px;
	 min-height: 34px;
}
.product-reviews-summary .star-rating-wrap {
	font-size: 18px; /* Customize star size */
	color: #6c44f0; /* Customize star color */
	font-size: .9rem;
}
.product-reviews-summary .review-count,
.product-reviews-summary .average-rating{
	font-weight: normal;
	font-size: .9rem;
}
.d8-reviews-wrapper{
    background-color: #F3F4F6;	
	width: 100%;
    padding: 40px 30px;
	margin-bottom: 40px;
}
.d8-average-rating{
	display: flex;
	align-items: flex-start;
	gap: 50px;
	justify-content: space-around;
	margin-bottom: 20px;
}
.d8-average-rating .avg-rating{
	font-size: 45px;
	line-height: 30px;
	margin-right: 10px;
}
.total-rating{
	display: block;
	font-size: 13px;
	font-weight: 400;
	line-height: 15.99px;
	color: rgba(2, 2, 2, 0.66);
	padding-top: 20px;
}
.d8-reviews-wrapper .woocommerce-Reviews,
.d8-custom-reviews-wrapper .woocommerce-Reviews{
	display: flex;
    flex-direction: column-reverse;
}
.write-review-btn a{
	color: rgba(2, 2, 2, 0.56);
    font-size: 15px;
    font-weight: normal;
    border: 1px solid rgba(2, 2, 2, 0.36);
    padding: 5px 30px;
    margin: 0px 10px;
    display: inline-block;
	cursor: pointer;
	text-decoration: none;
}
.d8-custom-reviews-wrapper {
	max-width: 600px;
    padding: 30px;
    margin: 0 auto;
    box-shadow: 0px 0px 10px 5px #efefef;
}
 .d8-custom-reviews-wrapper #reviews #review_form_wrapper{
	width: 100% !important;
}
.d8-custom-reviews-wrapper h2{
	text-align: center;
}
.d8-custom-reviews-wrapper .logo-image{
	max-width: 120px;
	margin: 0 auto;
}
.d8-custom-reviews-wrapper .review-info{
	text-align: center;
	display: block;
}
.d8-custom-reviews-wrapper  h2{
	font-size: 20px;
}
.write-review-btn a:hover{
	border-color: #5936C7;
}
.d8-reviews-wrapper #review_form_wrapper{
	display: none;
}
.custom-review-form .product-reviews-summary {
	display:block;
}
.custom-review-form .product-reviews-summary .star-rating-wrap {
    margin: 0;
}
#review_form_wrapper label,
#qa-form label{
	font-size: 15px;
	display: block;
	padding-bottom:0.4em;
}
#qa-form buttom {
	margin-top:10px;
}

#qa-form  .required {
    color: #d54e21;
}
.woocommerce #review_form_wrapper p.stars a {
    height: 2em;
    width: 2em;
}

.woocommerce #review_form_wrapper p.stars{
	margin: 0;
}
.woocommerce #review_form_wrapper p.stars a::before{
	font-size: 33px;
}
#review_form_wrapper input[type="text"], #review_form_wrapper textarea, #review_form_wrapper select,
#customer-questions input[type="text"], #customer-questions textarea{
    background-color: transparent;
    border-color: #aaa;
    border-radius: 0;
    font-size: 15px;
    line-height: 18px;
    padding: 10px 10px;
}
#review_form_wrapper select{
	padding-right: 30px;
}

#review_form_wrapper #title-length{
    display: inline-block;
    font-size: 12px;
    margin-top: 5px;
    position: absolute;
    bottom: -20px;
    right: 0;
}
#review_form_wrapper  #comment-length,
#review_form_wrapper #comment-message{
	display: inline-block;
    font-size: 12px;
    margin-top: 0px;
}
#review_form_wrapper  .review-custom-field div label{
	min-width: 97px;
    padding: 0;
	transform: none;
    margin-left: 10px;
    font-size: 13px;
}
.review-photos{
	display: flex;
}
.review-photos img{
	max-height: 100px;
	object-fit: contain;
	max-width: 100px; 
	margin: 5px;
}
span#review-success {
    background-color: rgb(188 168 255 / 66%);
	color: var(--global-palette-highlight);
	border-color: var(--global-palette-highlight);
	padding: 10px 20px;    
	font-size: 15px;
	margin-bottom: 20px;
}
.slbCloseBtn:active, .slbArrow:active, .slbArrow:focus, .slbCloseBtn:focus {
    box-shadow: none;
    background-color: transparent;
}
.d8-reviews-wrapper #comments .woocommerce-Reviews-title{
	display: none;
}
.d8-reviews-wrapper .review-avatar,
.d8review-reviews-user-infobox .review-avatar  {
    background: rgba(108, 68, 240, 0.66);
    display: inline-block;
    border-radius: 100%;
    color: #fff;
    font-size: 20px;
    height: 45px;
    width: 45px;
    text-align: center;
    padding-top: 0.9rem;
	margin-right: 10px;
	position: relative;
}
.d8-reviews-wrapper .review-avatar svg {
	position: absolute;
    bottom: 0;
    background: #fff;
    border-radius: 100%;
    border: 1px solid #fff;
}
.custom-reviews-wrapper li,
.custom-review-list,
.custom-question-list{
	list-style: none;
	padding: 0;
	margin: 0;
}
.review-author-details{
	display: flex;
}
.review-author{
	color: #163317;
	font-size: 12px;
	font-weight: 400;
	line-height: 25px;
}
.review-author span{
	color: #6A6C77;
	margin-left: 10px;
	display: inline-block;
}
.custom-reviews-wrapper .review-content p{
	color: #6B6D76;
	font-size: 14px;
	line-height: 22px;
}
.review-content .product-quality-eh,
.review-content .product-quality-eh p{
	font-size: 13px;
	margin: 10px 0;
}
.cust-review-title{
	margin-top: 10px;
}
.custom-reviews-wrapper li .star-rating{
	float: none;
}
.custom-reviews-wrapper li.custom-review-item{
	border-bottom: 1px solid rgba(2, 2, 2, 0.15);
	padding: 20px 0;
}
li.custom-review-item:last-child {
    border: 0;
}
.qa-message {
	font-size: 14px;
    color: var(--global-palette-highlight);
}
.custom-reviews-wrapper li .review-date{
	font-size: 13px;
	color: #6A6C77;
	margin-top: 20px;
    display: block;
}

.d8-reviews-wrapper #reviews #comments {
	display: none;
}

.custom-reviews-wrapper .pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}
.custom-reviews-wrapper .pagination-controls button {
    background-color: transparent;
    cursor: pointer;
    color: #000;
    padding: 0 10px;
    border: 0;
}
.custom-reviews-wrapper .pagination-controls button:disabled {
    cursor: not-allowed;
}
.custom-reviews-wrapper .page-numbers .page-number {
     background-color: transparent;
    cursor: pointer;
    color: #000;
    padding: 0 10px;
    border: 0;
    transition: background-color 0.3s, color 0.3s;
}

.custom-reviews-wrapper .page-numbers .page-number:hover {
    opacity: 0.9;
}

.d8-review-breakdown {
	font-family: Arial, sans-serif;
	color: #333;
	border-left: 1px solid #ddd;
    padding: 0px 20px;
    margin-left: 17px;
	flex: 1; 
    margin-right: 20px;
}
.d8-review-breakdown .review-bar {
	display: flex;
	align-items: center;
	margin-bottom: 0px;
}
.d8-review-breakdown .review-bar a {
	display: flex;
    text-decoration: none;
    align-items: center;
    margin-bottom: 0px;
}
.d8-review-breakdown .stars {
	font-size:18px;
	line-height:21px;
}
.d8-review-breakdown .bar {
	flex: 1;
	height: 10px;
	background-color: #eee;
	margin: 0 10px;
	position: relative;
	width: 100px;
}
.d8-review-breakdown .bar .fill {
	height: 100%;
	background-color: var(--global-palette-highlight);
}
.d8-review-breakdown .count {
	width: 30px;
	text-align: left;
	font-size:11px;
}

.wr-available-rewards .item .reward-atts .att .value{
	gap: 10px;
}
img.lws-woorewards-point-symbol{
	margin-bottom: 0;
}
.reward-descr {
    text-align: center;
}

.product-reviews-summary .star-rating-wrap{
	display: inline-block;
	margin: 0 3px;
	position: relative;
/* 	top: 2px; */
}
.avg-star-rating-wrapper{
	display: flex;
}

.rating-bar {
    display: flex;
    gap: 2px; 
    height: 6px;
    width: 100px; 
}

.product-quality{
	display: flex;
	align-items: center;
	margin-top:20px;
	font-size: 13px;
	font-weight: 40px;
}

.rating-bar .segment {
    flex: 1; 
    background-color: #ddd; 
    border-radius: 0;
}

.rating-bar .segment.filled {
    background-color: #6B6D76; 
}
.review-custom-field > div {
	display: flex;
    justify-content: flex-start;
    align-items: center;
	padding-bottom: 4px;
    padding-top: 4px;
}
.comment-form-quality > div span {
	width: 100px;
    font-size: 13px;
    vertical-align: middle;
    display: block;
    padding: 0px 6px;
	line-height: 14px;
}
.review-custom-field {
	padding-bottom:20px;
	float: left;
    width: 100%;
}
.comment-form-high > div span {
	width: 150px;
    font-size: 13px;
    vertical-align: middle;
    display: block;
    padding: 0px 6px;
	line-height: 14px;
}
.review-content div > p { 
	margin-bottom:0; 
}
.review-content div {
	color: #6B6D76;
	font-size: 14px;
	line-height: 22px;
}

.review-voting {
    margin-top: -30px;
    display: flex;
    align-items: center;
    gap: 0px;
    font-size: 14px;
	justify-content: end;
}

.review-voting .review-helpful-text {
    margin-right: 0;
    color: #6A6C77;
    font-size: 13px;
}

.vote-button {
    display: flex;
    align-items: center;
    background: none !important;
    border: none;
    cursor: pointer;
    color: #555;
	padding-right: 0;
}

.vote-button i {
    margin-right: 5px;
}

.vote-button:hover,
.vote-button:focus,
.vote-button:active{
    color: #000;
	background:none;
}

.vote-button .upvote-count,
.vote-button .downvote-count {
    margin-left: 5px;
    font-weight: bold;
}
ul.review-tabs{
	border-bottom: 1px solid #eee;
	margin-left: 0;
}
ul.review-tabs li {
    display: inline-block;
    height: 100%;
    width: auto !important;
    margin-right: 15px;
    padding: 6px 10px 10px;
    color: #000;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
	 list-style: none;
}
ul.review-tabs li.t-active {
    border-bottom : 3px solid #7700ff;
    color: #7700ff;
}
li#tab-reviews[data-count]:after,
li#tab-questions[data-count]:after{
    content: '' attr(data-count);
    background: #f8f9fa;
    padding: 2px 5px;
    margin-left: 10px;
}
#customer-questions,
#product-qa{
	display: none;
}
#product-qa h3{
	display: block;
    font-size: 24px;
    line-height: 1.5;
    font-weight: bold;
}
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	padding: 0px;
}

.page-link {
	display: inline-block;
	padding: 6px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	background-color: #f9f9f9;
	transition: background-color 0.3s, color 0.3s;
	font-size: 12px;
}

.page-link:hover {
	background-color: #5936C7;
	color: #fff;
}

.page-link.active {
	background-color: #5936C7;
	color: #fff;
	pointer-events: none;
}

.page-link.prev,
.page-link.next {
	font-weight: bold;
}

.page-link.prev:hover,
.page-link.next:hover {
	background-color: #5936C7;
}

#review-search{
	width: 288px;
    height: 40px;
    padding: 0 20px;
    border-radius: 20px;
    background: transparent;
    font-size: 15px;
	color: #6B6D76;
}

#review-sort{
	background-color: transparent;
    border: 0;
    border-radius: 0;
    padding: 2px 10px;
    font-size: 12px;
    color: #6B6D76;
	box-shadow: none;
	min-width: 120px;
}

.review-filters{
	position: relative;
}

.review-filters .field-wrap{
	position: absolute;
    right: 20px;
    top: 0;
	font-size: 12px;
    color: #6B6D76;
}

.woocommerce p.stars a::before{
	color: #7700ff;
    font-size: 22px;
}

h4.cust-question{
	font-size: 16px;
}
.icon-comment{
	margin-top: 10px;
    margin-left: 10px;
}
.answers-list{
	margin: 0;
}
.answers-list li{
	margin: 15px 0 0 35px;
    padding: 2px 0 0 15px;
    border-left: 5px solid #e0e0e0;
	color: #6B6D76;
	font-size: 14px;
    line-height: 22px;
}
.review-header-byline{
	font-weight: 600;
	font-size: 15px;
	color: #444;
}
.custom-reviews-wrapper li .review-date.created{
	display: inline-block;
    font-weight: normal;
	margin-top: 0;
	margin-left: 0;
}
.comment-form ::-webkit-input-placeholder,
.comment-form ::-moz-placeholder,
.comment-form ::placeholder {
    opacity: 1 !important; /* Ensure the placeholder is visible */
}

.comment-form input:focus::-webkit-input-placeholder,
.comment-form textarea:focus::-webkit-input-placeholder,
.comment-form input:focus::-moz-placeholder,
.comment-form textarea:focus::-moz-placeholder,
.comment-form input:focus::placeholder,
.comment-form textarea:focus::placeholder {
    opacity: 1 !important; /* Ensure visibility on focus */
}
.comment-form ::-webkit-input-placeholder {
    -webkit-transition: inherit;
    transition: inherit;
    opacity: 1 !important;
}

.comment-form ::-moz-placeholder {
    -moz-transition: inherit;
    transition: inherit;
    opacity: 1 !important;
}

.comment-form ::placeholder {
    transition: inherit;
    opacity: 1 !important;
}
#review_form_wrapper button.delete-image {
    background: transparent;
    color: red;
    font-size: 12px;
    padding: 0;
    text-decoration: underline;
}
#review_form_wrapper #image-preview-container{
	display: flex;
    text-align: center;
    justify-content: start;
    gap: 10px
}
#review_form_wrapper .image-preview {
    max-width: 70px;
    display: inline-block;
    max-height: 70px;
    text-align: center;
    margin: 0 3px;
}
#review_form_wrapper .image-preview img {
    max-height: 70px;
}
.image-preview-wrapper {
    position: relative;
}
button.remove-preview {
    position: absolute;
    top: 0;
    font-size: 19px;
    line-height: 12px;
    right: -10px;
    height: 20px;
    max-width: 20px;
    padding: 5px 4px;
    display: block;
}

#review_form_wrapper .error-message {
    font-size: 12px;
}

#review_form_wrapper .comment-form-photos{
	margin-bottom: 0;
}

#review_form_wrapper p.form-submit{
	margin-top: 10px;	
}

#review_form_wrapper .comment-form-photos span{
	font-size: 12px;
    font-style: italic;
}
.review-custom-field input[type="radio"],
.review-custom-field label{
    cursor: pointer;
}
#review_form_wrapper #review_photos {
    background: white;
    border-radius: 5px;
    border: 2px dashed rgb(0, 135, 247);
    border-image: none;
    max-width: 500px;
    height: 68px;
    margin-left: 0;
    margin-right: auto;
    padding: 24px 12px;
	cursor: pointer;
	font-size: 14px;
}

#review_form_wrapper #error-upload-errors {
    color: red;
    margin-top: 10px;
}

#review_form_wrapper .file-preview {
    width: 100px;
    height: 100px;
    margin: 5px;
    border: 1px solid #ddd;
    padding: 5px;
	object-fit: contain;
}
.woocommerce-verification-required{
	display: none;
}
.d8-loader {
  border: 5px solid #ffffff; /* Light grey */
  border-top: 5px solid #6c44f0; /* Blue */
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 2s linear infinite;
}
#customer-reviews {
	position: relative; 
	min-height: 200px;
}
.product-title-var,
.product-title-var h6{
	color: #660df6;
    font-weight: bold;
    font-size: 14px;
	text-align: center;
	text-transform: capitalize;
}
#loading-reviews {
	position: absolute;
    background: #8d8d8d52;
    top: 0;
    width: 100%;
    height: 100%;
    left: 0;

}

#loading-reviews .d8-loader{
	margin: 40px auto;
}
.d8-email-review .product-info{
	display: flex;
	align-items: center;
	flex-direction: column;
}
.d8-email-review  .comment-notes{
	display: none;
}
#review_form_wrapper #commentform p{
	float: left;
	width: 100%;
	margin-top: 0;
	position: relative;
}
.order-leave-review-link{
	display: inline-block;
	margin-top: 0px;
	font-weight: bold;
	text-decoration: underline;
	background-color: #f3f3f3;
	border-radius: 25px;
	font-size: 13px;
	line-height: 14px;
	padding: 11px 8px;
	font-weight: 600;
	text-align: center;
	font-family: 'Onest';
	min-width: 130px;
}
.woocommerce-order-details .wc-item-meta{
	margin-bottom: 0;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.comment-form-variation {
	display: flex;
	flex-direction: column-reverse;
}

#review-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	z-index: 9999;
}

#review-modal-inner {
	display: flex;
	flex-direction: row;
	max-width: 900px;
	margin: 5% auto;
	background: #F3F4F6;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
}

#review-modal-overlay #modal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	background: none;
	border: none;
	font-size: 30px;
	color: #000;
	padding: 0px 6px;
	line-height: 30px;
	cursor: pointer;
}

#review-modal-overlay #modal-left {
	flex: 1;
	max-width: 50%;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

#review-thumbs-wrapper img {
	cursor: pointer;
	object-fit: cover;
	height: 200px;
	width: 200px;
}

#review-thumbs {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	margin-left: -10px;
}

#review-thumbs li {
	position: relative;
	flex: 0 0 16.6666%; /* Logic: 100% / 6 */
	min-width: 0;
  	padding-left: 10px; /* The gap */
  	box-sizing: border-box;
}

@media (max-width: 768px) {
  	#review-thumbs li {
  	  	flex: 0 0 33.3333%; /* Logic: 100% / 3 */
  	}
}

.reviews-container {
    position: relative;
    padding: 0px 2em;
}

.reviews-container #prev-tslide, 
.reviews-container #next-tslide {
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    height: 3em;
    justify-content: center;
    opacity: 0.75;
    padding: 0;
    color: #fff;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 1.5em;
    z-index: 1;
    transition: opacity .4s ease-in-out;
    right: 0;
}

.reviews-container #prev-tslide {
    left: 0;
}

.reviews-container #prev-tslide svg {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

.reviews-container #prev-tslide svg, 
.reviews-container #next-tslide svg {
    fill: currentColor;
    height: 1em;
    width: 1em;
}

#review-thumbs-wrapper {
	margin-bottom: 30px
}

#review-modal-overlay #modal-img {
	max-width: 100%;
	max-height: 90vh;
}

#review-modal-overlay #prev-slide,
#review-modal-overlay #next-slide {
	align-items: center;
	background: rgba(0, 0, 0, 0.8);
	border: 2px solid transparent;
	border-radius: 3px;
	cursor: pointer;
	display: flex;
	height: 3em;
	justify-content: center;
	opacity: 0.75;
	padding: 0;
	color: #fff;
	position: absolute;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	width: 2em;
	z-index: 1;
	transition: opacity .4s ease-in-out;
}

#review-modal-overlay #prev-slide:hover,
#review-modal-overlay #next-slide:hover,
#review-modal-overlay #prev-slide:focus,
#review-modal-overlay #next-slide:focus {
	opacity: 1;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
}

#review-modal-overlay #prev-slide:disabled,
#review-modal-overlay #next-slide:disabled {
	opacity: 0.1;
	cursor: not-allowed;
}

#review-modal-overlay #prev-slide svg,
#review-modal-overlay #next-slide svg {
	fill: currentColor;
	height: 1em;
	width: 1em;
}

#review-modal-overlay #prev-slide {
	left: 1em;
}

#review-modal-overlay #prev-slide svg {
	-webkit-transform: scaleX(-1);
	transform: scaleX(-1);
}

#review-modal-overlay #next-slide {
	right: 1em;
}

#review-modal-overlay #modal-right {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	max-height: 90vh;
}

#review-modal-overlay .review-content {
	margin-bottom: 20px;
}

#review-modal-overlay #review-modal-content {
	padding: 10px;
}

#review-modal-overlay #review-modal-content .review-avatar span {
	display: block;
}

#review-modal-overlay .review-voting {
    margin-top: 0px;
}

.d8-review-summary {
	margin: 20px 0;
	font-size: 16px;
	font-weight: 500;
}

.customer-images {
	display: none;
}

.customer-images h4 {
	margin: 20px;
	text-align: center;
}v
@media (min-width: 1280px) {
	
	.write-review-btn {
		position: absolute;
		right: 10px;
	}
}
@media(max-width: 767px){
	.product-reviews-summary .review-count,
	.product-reviews-summary .average-rating{
		font-size: 12px;
	}
	.d8-average-rating{
		flex-direction: column;
		gap: 20px;
	}
	.d8-review-breakdown{
		margin: 0;
		border: 0;
		padding: 0;
	}
	.write-review-btn a{
		padding: 5px 17px;
    	margin: 0px 3px;
	}
	.review-filters .field-wrap{
		position: relative;
		right: 0;
		text-align: right;
		margin-top: 10px;
	}
	.d8-reviews-wrapper {
		background-color: #F3F4F6;
		margin: 0 -20px 40px;
		width: 110%;
	}
	.review-voting .review-helpful-text{
		display: none;
	}

	#review-modal-inner {
		flex-direction: column;
		width: 100%;
		height: 100%;
		margin: 0;
		border-radius: 0;
	}

	#review-modal-overlay #modal-left {
		max-width: 100%;
		flex: none;
		height: 50%;
	}

	#review-modal-overlay #modal-img {
		max-height: 100%;
		object-fit: contain;
	}

	#review-modal-overlay #modal-right {
		max-height: 50%;
		padding: 15px;
	}

	#review-modal-overlay #modal-left {
		flex-direction: column;
		position: relative;
	}

	#review-modal-overlay #modal-left {
		display: flex;
		justify-content: center;
		align-items: center;
		background: #000;
	}

	#review-modal-overlay .d8-reviews-wrapper {
        	width: 100%;
       		margin: 0;
    	}

    	#review-modal-overlay #modal-close {
        	color: #fff;
        	z-index: 9;
    	}
}
.question-ans li.custom-review-item{
    padding-bottom: 0px;
}
.questions-list .custom_comment p.author_comment{
    font-size: 16px;
    line-height: 26px;
}
.questions-list .custom_comment p.author_name{
    margin-bottom: 0px;
    font-size: 14px;
    color: #6A6C77;
    font-weight: 700;
    margin-top: 0px;
}

#qa-form .qa-message p{
    background-color: rgb(188 168 255 / 66%);
    color: #6c44f0;
    border-color: #6c44f0;
    padding: 10px 20px;
    font-size: 15px;
    margin-bottom: 20px;
    margin-top: 10px;
} 
/*Product Reviews Section Css End */
