/**
 * Rentro Custom Reviews Styles
 */

/* Member Reviews Section */
.rentro-member-reviews-section {
	display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    margin: 10px auto 0;
	gap: 20px;	
}

@media (max-width: 1024px) {
	.rentro-member-reviews-section{
		flex-wrap: wrap;
	}
}

.rentro-member-reviews-section h3 {
	margin: 0 0 15px 0;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.rentro-member-photos-right h3{
	width: 100%;
    text-transform: capitalize !important;
    font-size: 14px !important;
}
.rentro-member-reviews-section .rentro-rating-stars {
	font-size: 18px;
}

.rentro-reviews-link {
	text-decoration: none;
	color: #000;
	font-weight: 500;
	font-size: 14px;
}

.rentro-member-reviews-section .rentro-member-reviews-left {
	display: flex;
    flex-direction: row;
    width: 49.5%;
    justify-content: space-evenly;
    align-items: center;
    background-color: #f9f9f9;
    flex-wrap: wrap;
    padding: 20px 0;
    height: inherit;
}
@media (max-width: 1024px) {
	.rentro-member-reviews-section .rentro-member-reviews-left{
		width: 100%;
		padding: 30px 0;
	}
}

.rentro-member-reviews-left-header{
	width: auto;
    text-align: center;
    height: max-content;
	display: grid;
}

/* Add Review Button */
.rentro-add-review-btn {
	background: var(--e-global-color-accent);
	color: #fff;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	margin-top: 10px;
	transition: background-color 0.3s ease;
	display: inline-block;
	text-transform: capitalize !important;
}

.rentro-add-review-btn:hover {
	background-color: #000;
}

/* Hide review form by default */
#review_form_wrapper {
	display: none;
}

#review_form_wrapper.rentro-review-form-visible {
	display: block;
}

.rentro-review-success-message {
	padding: 1em 1.25em;
	margin: 0 0 1em;
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	border-radius: 4px;
	color: #2e7d32;
	font-weight: 500;
}

.rentro-member-photos-container {
	position: relative;
}
.rentro-member-photos-right{
	height: inherit;
    padding: 20px;
    width: 49.5%;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: row;
    align-items: center;
    /* justify-content: center; */
    flex-wrap: wrap;
}
@media (max-width: 1024px) {
	.rentro-member-photos-right{
		width: 100%;
	}
}

.rentro-member-photos-right p {
	color: #000;
}

/* Member Photos Slider - Swiper */
.rentro-member-photos-slider {
	position: relative;
	width: 100%;
}

.rentro-photos-swiper {
	width: 100%;
	padding: 5px 0;
}

.rentro-photos-swiper .swiper-slide {
	height: auto;
}

.rentro-photos-swiper .rentro-photo-item {
	display: block;
	width: 100%;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.rentro-photos-swiper .rentro-photo-item:hover {
	transform: scale(1.05);
}

.rentro-photos-swiper .rentro-photo-item img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* Swiper Navigation Buttons */
.rentro-photos-swiper .swiper-button-next,
.rentro-photos-swiper .swiper-button-prev {
	background: rgba(0, 0, 0, 0.5);
	color: white;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	transition: background 0.3s ease;
}

.rentro-photos-swiper .swiper-button-next:hover,
.rentro-photos-swiper .swiper-button-prev:hover {
	background: rgba(0, 0, 0, 0.7);
}

.rentro-photos-swiper .swiper-button-next::after,
.rentro-photos-swiper .swiper-button-prev::after {
	font-size: 18px;
	font-weight: bold;
}

.rentro-photos-swiper .swiper-button-prev {
	left: 5px;
}

.rentro-photos-swiper .swiper-button-next {
	right: 5px;
}

.rentro-photos-swiper .swiper-button-next.swiper-button-disabled, .rentro-photos-swiper .swiper-button-prev.swiper-button-disabled{
	opacity: 0;
	cursor: auto;
	pointer-events: none;
}

/* Custom Review Fields Form */
.rentro-review-custom-fields {
	margin: 20px 0;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
}

.rentro-review-custom-fields p {
	margin-bottom: 15px;
}

.rentro-review-custom-fields label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #333;
}

.rentro-review-custom-fields input[type="text"],
.rentro-review-custom-fields input[type="number"],
.rentro-review-custom-fields select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

/* Fit Scale */
.comment-form-fit-scale {
	margin: 20px 0;
}

.comment-form-fit-scale label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
}

.comment-form-fit-scale input[type="range"] {
	width: 100%;
	height: 8px;
	border-radius: 4px;
	background: #ddd;
	outline: none;
	margin: 10px 0;
	-webkit-appearance: none;
}

.comment-form-fit-scale input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #333;
	cursor: pointer;
}

.comment-form-fit-scale input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #333;
	cursor: pointer;
	border: none;
}

.fit-scale-value {
	font-weight: bold;
	color: #333;
	margin-left: 10px;
}

.fit-scale-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 5px;
	font-size: 12px;
	color: #666;
}

/* Image Upload */
.rentro-image-upload-container {
	margin-top: 10px;
}

.rentro-image-upload-container input[type="file"] {
	margin-bottom: 15px;
}

.rentro-image-preview-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 10px;
	margin-top: 15px;
}

.rentro-image-preview-item {
	position: relative;
	width: 100%;
	padding-top: 100%;
	border: 2px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	background: #f5f5f5;
}

.rentro-image-preview-item img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rentro-image-preview-item .remove-image {
	position: absolute;
	top: 5px;
	right: 5px;
	background: rgba(255, 0, 0, 0.8);
	color: white;
	border: none;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}

/* Review Display */
.rentro-custom-review {
	margin-bottom: 30px;
	padding: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
}

/* Review content wrapper - 2 column layout */
.rentro-review-content-wrapper {
	display: flex;
	gap: 20px;
	margin: 15px 0;
	justify-content: space-between;
}

.rentro-review-images {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

.rentro-review-image-link {
	display: block;
	position: relative;
	padding-top: 100%;
	border-radius: 4px;
	overflow: hidden;
}

.rentro-review-image-link img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	background-color: var( --e-global-color-accent );
	padding:5px;
}

/* .rentro-review-image-link:hover img {
	transform: scale(1.05);
} */

.rentro-review-meta {
	display: flex;
    flex-direction: column;
    gap: 5px;
	font-size: 12px;
	width:60%;
}

.review-meta-item {
	line-height: 1.6;
    display: flex;
    justify-content: space-between;
}

.review-meta-item strong {
	margin-right: 5px;
}

/* Fit Scale Display */
.fit-scale-display {
	flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    display: flex;
    justify-content: space-between;
}

.fit-scale-bar {
	width: 120px;
    height: 14px;
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.fit-scale-fill {
	height: 100%;
	background: var(--e-global-color-accent);
	border-radius: 10px;
	transition: width 0.3s ease;
}

.fit-scale-number {
	font-weight: bold;
	color: #333;
}

/* Latest Member Photos */
.rentro-latest-member-photos {
	margin: 40px 0;
	padding: 30px;
	background: #f9f9f9;
	border-radius: 8px;
}

.rentro-latest-member-photos h3 {
	margin-bottom: 20px;
	font-size: 24px;
	color: #333;
}

/* Member Photos Grid */
.rentro-member-photos-grid {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.rentro-photos-grid-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

.rentro-photos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 15px;
}

.rentro-photo-item {
	position: relative;
	cursor: pointer;
	transition: transform 0.3s ease;
}

/* .rentro-photo-item:hover {
	transform: scale(1.05);
} */

.rentro-photo-item img {
	object-fit: cover;
	transition: transform 0.3s ease;
    overflow: hidden;
}

/* .rentro-photo-item:hover img {
	transform: scale(1.1);
} */

.photo-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
	padding: 10px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.rentro-photo-item:hover .photo-overlay {
	opacity: 1;
}

.photo-author {
	color: white;
	font-size: 12px;
	font-weight: 600;
}

/* Review Filters */
.rentro-review-filters {
	margin: 30px 0;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
}

.rentro-review-filters h4 {
	margin-bottom: 15px;
	font-size: 18px;
	color: #333;
}

#rentro-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: flex-end;
}

.filter-group {
	flex: 1;
	min-width: 150px;
}

.filter-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

.filter-group select {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.rentro-filter-button {
	padding: 10px 20px;
	background: #333;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.3s ease;
}

.rentro-filter-button:hover {
	background: #555;
}

.rentro-reset-filters {
	background: #999;
}

.rentro-reset-filters:hover {
	background: #777;
}

.rentro-filtered-reviews {
	margin-top: 20px;
}

/* Hide comment form elements when subscription notice is shown */
.rentro-subscription-required-notice ~ *,
.rentro-subscription-required-notice + form,
.comment-form:empty {
	display: none !important;
}

/* Subscription Required Notice */
.rentro-subscription-required-notice {
	margin: 20px 0;
	padding: 15px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	color: #856404;
}

.rentro-subscription-required-notice p {
	margin: 0;
}

/* Shortcode Styles */
.rentro-reviews-shortcode {
	margin: 20px 0;
}

.rentro-review-item {
	padding: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
}

.review-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.review-author {
	font-size: 16px;
	color: #333;
}

.review-date {
	font-size: 14px;
	color: #666;
}

.review-content {
	margin-top: 15px;
	line-height: 1.6;
	color: #555;
}

/* Responsive */
@media (max-width: 768px) {
	.rentro-review-content-wrapper {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.rentro-review-meta {
		flex-direction: column;
		gap: 10px;
	}
	
	.rentro-photos-grid,
	.rentro-photos-grid-wrapper {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		gap: 10px;
	}
	
	#rentro-filter-form {
		flex-direction: column;
	}
	
	.filter-group {
		width: 100%;
	}
	
	.rentro-filter-button {
		width: 100%;
	}

	
	.rentro-member-reviews-left,
	.rentro-member-photos-right {
		min-width: 100%;
	}
	
	/* Full width popup on mobile */
	.rentro-reviews-popup-content {
		padding: 20px !important;
	}
	
	/* Single column reviews list on mobile */
	.rentro-reviews-popup-list .commentlist {
		grid-template-columns: 1fr !important;
	}
}

/* Reviews Popup Styles */
.rentro-reviews-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9997;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0s linear 0.3s, opacity 0.3s ease-out;
}

.rentro-reviews-popup.active {
	visibility: visible;
	opacity: 1;
	transition: visibility 0s linear 0s, opacity 0.3s ease-out;
}

.rentro-reviews-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 9998;
	opacity: 0;
	transition: opacity 0.3s ease-out;
}

.rentro-reviews-popup.active .rentro-reviews-popup-overlay {
	opacity: 1;
}

.rentro-reviews-popup-content {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	z-index: 9999;
	background: #f9f9f9;
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rentro-reviews-popup.active .rentro-reviews-popup-content {
	transform: translateY(0);
}

/* Swiper slide photo item styling */
/* .rentro-photos-swiper .swiper-slide .rentro-photo-item {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
} */

/* Fit Scale Summary */
.rentro-fit-scale-summary{
	margin-top: 10px;
}
.rentro-fit-scale-summary p {
	text-align: center;
}

.rentro-fit-scale-summary > p {
	margin: 0 0 10px 0;
    color: var(--text-color-body);
    font-style: italic;
}

.rentro-fit-scale-summary > div {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rentro-fit-scale-summary > div > div {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rentro-fit-scale-summary span {
	min-width: 100px;
	font-size: 0.9em;
}

.rentro-fit-scale-summary span:last-child {
	min-width: 40px;
	text-align: right;
}

.rentro-fit-scale-bar-wrapper {
	flex: 1;
	height: 10px;
	background: #fff;
	overflow: hidden;
	position: relative;
}

.rentro-fit-scale-bar-fill {
	height: 100%;
}

.rentro-fit-scale-bar-fill.runs-large {
	background: var( --e-global-color-accent );
}

.rentro-fit-scale-bar-fill.true-to-size {
	background: var( --e-global-color-accent );
}

.rentro-fit-scale-bar-fill.runs-small {
	background: var( --e-global-color-accent );
}

/* Popup Header */
.rentro-reviews-popup-header {
	border-bottom: 1px solid #e0e0e0;
    background: #fff;
    padding: 15px;
    position: relative;
}

.rentro-reviews-popup-header h2 {
	margin: 0;
    font-size: 18px !important;
	text-align: center;
}

.rentro-reviews-popup-close {
    background: none;
    border: none;
    font-size: 30px !important;
    cursor: pointer;
    color: var(--e-global-color-accent);
    padding: 0;
    width: 30px;
    height: 30px;
    position: absolute;
    right: 15px;
    top: 12px;
}

/* Popup Filters */
.rentro-reviews-popup-filters {
	margin: 20px 0;
	padding: 15px;
	background: #fff;
}

.rentro-popup-filter-form {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	align-items: flex-end;
}

.rentro-popup-filter-form .filter-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	font-size: 14px;
}

.rentro-popup-filter-form select {
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.rentro-popup-filter-button,
.rentro-popup-filter-reset {
	padding: 10px 20px;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}

.rentro-popup-filter-button {
	background: var(--e-global-color-accent);
}
.rentro-popup-filter-button:hover{
	background-color: #000;
}

.rentro-popup-filter-reset {
	background: #999;
}

/* Popup Body */
.rentro-reviews-popup-body {
	/* Content area - styles applied via other classes */
}

.rentro-reviews-loading {
	text-align: center;
	padding: 40px;
}

.rentro-reviews-popup-body .commentlist {
	list-style: none;
	padding: 0;
}

.rentro-reviews-popup-filters-container{
	max-width: 1440px;
    margin: 0 auto;
    padding: 20px 0;
}

@media (max-width: 1440px) {
	.rentro-reviews-popup-filters-container{
		padding:0 95px;
	}
}
@media (max-width: 1024px) {
	.rentro-reviews-popup-filters-container{
		padding-left: var(--tab-col-outisde-padding);
        padding-right: var(--tab-col-outisde-padding);
	}
}

.rentro-reviews-popup-list .commentlist{	
	margin-bottom: 20px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}
.rentro-reviews-popup-list .commentlist li{
	padding:15px;
	background: #fff;
}


.rentro-reviews-popup-list .comment_container{
	padding:0 !important;
}
.rentro-reviews-popup-list .commentlist .avatar{
	display: none;
}

/* View More Link for Review Comments */
.rentro-review-view-more {
	margin-top: 10px;
	margin-bottom: 15px;
}

.rentro-view-more-btn {
	background: none;
	border: none;
	color: var(--e-global-color-accent) !important;
	cursor: pointer;
	font-size: 13px !important;
	font-weight: 400 !important;
	padding: 0;
	text-decoration: underline;
	transition: color 0.3s ease;
	text-transform: capitalize !important;
	letter-spacing: 0px !important;
}

.rentro-view-more-btn:hover {
	color: var(--e-global-color-accent, #555);
	text-decoration: none;
}

.comment-text .description,
.comment-text p {
	transition: max-height 0.3s ease, overflow 0.3s ease;
	word-wrap: break-word;
}

/* Truncate comment text when view more button is present - applied via JS class */
.comment-text.rentro-has-view-more .description p {
	max-height: 4.5em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-height: 1.5em;
}

.comment-text.rentro-has-view-more .description p.rentro-comment-expanded {
	max-height: none !important;
	overflow: visible !important;
	display: block !important;
	-webkit-line-clamp: none !important;
	-webkit-box-orient: initial !important;
}

/* Image Gallery Modal */
.rentro-image-gallery-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rentro-image-gallery-modal.active {
	opacity: 1;
	visibility: visible;
}

.rentro-gallery-content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: default;
}

.rentro-gallery-image {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	display: block;
}

.rentro-gallery-close,
.rentro-gallery-prev,
.rentro-gallery-next {
	position: absolute;
	background: var( --e-global-color-accent );
	border: none;
	color: #fff;
	font-size: 32px !important;
	font-weight: 300 !important;
	width: 50px;
	height: 50px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease, transform 0.2s ease;
	z-index: 100000;
	line-height: 1;
	padding: 0;
}

.rentro-gallery-close:hover,
.rentro-gallery-prev:hover,
.rentro-gallery-next:hover {
	background: #fff;
	color: var( --e-global-color-accent );
}

.rentro-gallery-close {
	top: 20px;
	right: 20px;
	font-size: 40px;
	font-weight: 300;
}

.rentro-gallery-prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.rentro-gallery-next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.rentro-gallery-counter {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	z-index: 100000;
}

@media (max-width: 768px) {
	.rentro-gallery-close,
	.rentro-gallery-prev,
	.rentro-gallery-next {
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
	
	.rentro-gallery-close {
		top: 10px;
		right: 10px;
		font-size: 32px;
	}
	
	.rentro-gallery-prev {
		left: 10px;
	}
	
	.rentro-gallery-next {
		right: 10px;
	}
	
	.rentro-gallery-counter {
		bottom: 20px;
		font-size: 12px;
		padding: 6px 12px;
	}
}