/**
 * WOM Reviews for WooCommerce - Styles
 * Combined layout: Rating sidebar + Review cards
 *
 * @package WOM_Reviews
 * @version 2.0.0
 */

/* === Font Awesome Global Setup === */
.fas, .far, .fal, .fab, .fa {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	line-height: 1;
}

.fas, .fa-solid {
	font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome";
	font-weight: 900;
}

.far, .fa-regular {
	font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome";
	font-weight: 400;
}

/* === 0) Properly sized container === */
.wom-reviews-outer-container {
	max-width: 100vw !important;
	margin: 48px 0 !important;
	padding: 0 20px !important;
	box-sizing: border-box !important;
	position: relative !important;
}

/* Override Elementor container width for reviews section - FORCE */
.wom-reviews-outer-container .e-con-inner,
#reviews .e-con-inner,
.e-con-inner,
div.e-con-inner,
.elementor-element .e-con-inner,
#comments .e-con-inner {
	max-width: none !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Force review cards to be wider */
.wom-reviews-outer-container,
.wom-reviews-outer-container *,
#reviews,
#reviews * {
	max-width: 100% !important;
}

/* Combined Reviews Layout Styles - FORCE OVERRIDE THEME CONFLICTS */
.reviews-combined-wrapper {
	width: 100% !important;
	max-width: 100%;        /* Match outer container width */
	margin: 0 auto !important;
	padding: 40px 0 !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	display: flex !important;             /* flex row for two columns */
	flex-direction: column !important;       /* VERTICAL - stacked layout */
	align-items: center !important;
	gap: 28px !important;
	writing-mode: horizontal-tb !important;
	background: transparent !important;
	position: relative !important;
	clear: both !important;
	overflow: visible !important;
	flex-wrap: nowrap !important;         /* NO wrap on desktop */
}

/* FIX: Override any theme styles that might break layout */
.reviews-combined-wrapper *,
.reviews-combined-wrapper *::before,
.reviews-combined-wrapper *::after {
	writing-mode: horizontal-tb !important;
	text-orientation: mixed !important;
	box-sizing: border-box !important;
}

/* Text elements - ensure proper display */
.reviews-combined-wrapper h2,
.reviews-combined-wrapper h3,
.reviews-combined-wrapper h4,
.reviews-combined-wrapper h5 {
	writing-mode: horizontal-tb !important;
	text-orientation: mixed !important;
	white-space: normal !important;
	letter-spacing: normal !important;
	word-spacing: normal !important;
	width: 100% !important;
}

.reviews-combined-wrapper p {
	writing-mode: horizontal-tb !important;
	white-space: normal !important;
	width: 100% !important;
}

.reviews-combined-wrapper div {
	writing-mode: horizontal-tb !important;
}

/* Force inline elements to display correctly */
.reviews-combined-wrapper label,
.reviews-combined-wrapper span,
.reviews-combined-wrapper a {
	writing-mode: horizontal-tb !important;
	white-space: normal !important;
	display: inline-block !important;
}

/* === 1) Two-column layout using FLEX === */

/* Reviews Header Section - Hidden on desktop, shown on mobile between columns */
.reviews-header-section {
	display: none !important;             /* HIDDEN on desktop */
	width: 100% !important;
	text-align: center !important;
	margin: 2rem 0 !important;
}

/* Desktop header - Shown on desktop, hidden on mobile */
.reviews-header-desktop {
	display: block !important;            /* SHOWN on desktop */
	text-align: center !important;
	width: 100% !important;
}

.rating-sidebar {
	flex: 0 0 auto !important;
	max-width: 550px !important;
	width: 100% !important;
	float: none !important;
	display: flex !important;
	justify-content: center !important;
	margin-top: 0 !important;
	overflow: visible !important;
	margin-bottom: 2rem !important;
}

.reviews-content-column {
	flex: 1 1 auto !important;            /* take the rest */
	min-width: 0 !important;              /* allow shrinking inside flex */
	float: none !important;
	display: block !important;
	max-width: none !important;           /* Allow full flex width */
	width: 100% !important;              /* Let flex handle width */
	writing-mode: horizontal-tb !important;
}

/* Ensure content inside reviews column displays properly */
.reviews-content-column * {
	writing-mode: horizontal-tb !important;
	text-orientation: mixed !important;
}

/* === 2) Kill theme floats / grid columns that collapse our row === */
.reviews-combined-wrapper [class*="col-"],
.reviews-combined-wrapper .elementor-column,
.reviews-combined-wrapper .elementor-widget-container {
	max-width: 100% !important;
	width: 100% !important;
}

/* Desktop: Sticky sidebar */
@media (min-width: 900px) {
	.rating-sidebar {
		position: sticky !important;
		top: 100px !important;
	}
}

/* === 3) Mobile stack === */
@media (max-width: 900px) {
	.reviews-combined-wrapper {
		flex-direction: column !important;
		flex-wrap: wrap !important;       /* Allow wrapping on mobile */
	}

	/* Show header FIRST on mobile */
	.reviews-header-section {
		display: block !important;        /* SHOW on mobile */
		order: 1 !important;              /* Header FIRST */
	}

	.rating-sidebar {
		flex-basis: auto !important;
		max-width: 100% !important;
		order: 2 !important;              /* Rating box second */
		margin-top: 0 !important;         /* Remove desktop spacing on mobile */
	}

	/* Hide desktop header on mobile */
	.reviews-header-desktop {
		display: none !important;         /* HIDE on mobile */
	}

	.reviews-content-column {
		order: 3 !important;              /* Review cards last */
	}
}

/* Rating Sidebar Styles */
.rating-summary-box {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	width: 70% !important;
	max-width: none !important;
	margin: 0 auto !important;
	text-align: center;
	box-sizing: border-box !important;
	overflow: visible !important;
}

/* Increase rating summary box width on laptop/desktop - match review cards width */
@media (min-width: 1024px) {
	.rating-summary-box {
		width: 80% !important;
		max-width: none !important;
	}
}

.rating-number-display {
	text-align: center;
	padding: 0;
	background: transparent;
	border-radius: 0;
	border: none;
	margin-bottom: 25px;
	width: 100% !important;
	overflow: visible !important;
	box-sizing: border-box;
}

.rating-number-large {
	font-size: 42px;
	font-weight: 700;
	color: #000000;
	line-height: 1.2;
	margin-bottom: 8px;
}

.rating-stars-display {
	font-size: 20px;
	color: #1B7A68;
	margin-bottom: 8px;
	letter-spacing: 2px;
	display: flex !important;
	justify-content: center;
	gap: 3px;
	flex-wrap: nowrap !important;
	width: 100% !important;
	min-width: auto !important;
	overflow: visible !important;
}

.rating-stars-display i {
	font-style: normal !important;
	font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
	font-weight: 900 !important;
	display: inline-block !important;
	line-height: 1 !important;
	flex-shrink: 0 !important;
	width: auto !important;
	min-width: 20px !important;
	-webkit-font-smoothing: antialiased !important;
	-moz-osx-font-smoothing: grayscale !important;
	font-variant: normal !important;
	text-rendering: auto !important;
}

/* Full star - solid */
.rating-stars-display .fas.fa-star::before,
.rating-stars-display i.fa-star.fas::before {
	content: "\f005" !important;
	font-weight: 900 !important;
	font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
}

/* Half star - using CSS gradient/clip instead of font icon */
.rating-stars-display .fas.fa-star-half-stroke,
.rating-stars-display i.fa-star-half-stroke.fas,
.rating-stars-display .fa-star-half-stroke,
.rating-stars-display .fas.fa-star-half,
.rating-stars-display i.fa-star-half.fas,
.rating-stars-display .fa-star-half,
.rating-stars-display .fas.fa-star-half-alt,
.rating-stars-display i.fa-star-half-alt.fas {
	position: relative !important;
	color: #d1d5db !important; /* Light gray background */
}

/* Create full star as background, then clip it */
.rating-stars-display .fas.fa-star-half-stroke::before,
.rating-stars-display i.fa-star-half-stroke.fas::before,
.rating-stars-display .fa-star-half-stroke::before,
.rating-stars-display .fas.fa-star-half::before,
.rating-stars-display i.fa-star-half.fas::before,
.rating-stars-display .fa-star-half::before,
.rating-stars-display .fas.fa-star-half-alt::before,
.rating-stars-display i.fa-star-half-alt.fas::before {
	content: "\f005" !important; /* Use full star */
	font-weight: 900 !important;
	font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
	font-style: normal !important;
	background: linear-gradient(90deg, #1B7A68 0%, #1B7A68 50%, transparent 50%, transparent 100%) !important;
	-webkit-background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
	background-clip: text !important;
}

/* Fallback for browsers that don't support background-clip */
@supports not (background-clip: text) {
	.rating-stars-display .fas.fa-star-half-stroke::before,
	.rating-stars-display i.fa-star-half-stroke.fas::before,
	.rating-stars-display .fa-star-half-stroke::before {
		content: "★" !important; /* Unicode star as absolute fallback */
		color: #1B7A68 !important;
		opacity: 0.5 !important;
	}
}

/* Empty star - regular */
.rating-stars-display .far.fa-star::before,
.rating-stars-display i.fa-star.far::before {
	content: "\f005" !important;
	font-weight: 400 !important;
	font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
}

.rating-value-text {
	font-size: 20px;
	color: #333;
	font-weight: 600;
	margin-bottom: 2px;
}

/* Make rating value text bolder and 3px bigger on laptop */
@media (min-width: 1024px) {
	.rating-value-text {
		font-size: 23px;
		font-weight: 700;
	}
}

.rating-count-text {
	font-size: 12px;
	color: #1b7a68;
	font-weight: 400;
	margin-top: 4px;
}

.rating-bar-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 5px; /* More gap on laptop/desktop */
	height: 30px;
}

/* Laptop view - adjust rating bar row - AGGRESSIVE WIDTH */
@media (min-width: 1024px) {
	.rating-bar-row {
		width: 110% !important;
		max-width: 110% !important;
		margin-left: auto !important;
		margin-right: auto !important;
		transform: translateX(-5%) !important;
	}

	.rating-bar-container {
		height: 18px !important;
		min-height: 18px !important;
	}

	.rating-bar-fill {
		height: 18px !important;
		min-height: 18px !important;
	}
}

.rating-star-label {
	font-size: 14px;
	color: #333333;
	width: 55px;
	display: flex;
	align-items: center;
	gap: 5px;
	font-weight: 400;
	flex-direction: row-reverse;
}

.rating-star-label i {
	font-style: normal;
	font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
	font-weight: 900 !important;
	display: inline-block;
	line-height: 1;
	color: #1B7A68;
}

.rating-star-label .fa-star::before {
	content: "\f005" !important;
	font-weight: 900 !important;
}

.rating-star-label span {
	font-size: 16px;
}

.rating-bar-container {
	flex: 1;
	height: 10px;
	background: #f0f0f0;
	border-radius: 4px;
	overflow: hidden;
	border: none;
	position: relative;
}

.rating-bar-fill {
	height: 10px;
	width: 0%;
	background: linear-gradient(90deg, #25C9B6 0%, #1B7A68 100%);
	border-radius: 4px;
	transition: width 1.5s ease-out;
	display: block;
	min-height: 8px;
}

.rating-percentage-text {
	width: 40px;
	text-align: right;
	font-size: 13px;
	font-weight: 400;
	color: #1b7a68 !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Review Cards Styles */
.reviews-content-column {
	min-width: 0;
	width: 100%;
	max-width: 1600px;
	margin: 0 ;
	box-sizing: border-box;
}

/* Laptop view - decrease review card width by 20% TOTAL */
@media (min-width: 1024px) {
	.reviews-content-column {
		width: 80% !important;
		max-width: 80% !important;
		margin: 0 auto !important;
	}

	#wom-reviews-container {
		width: 80% !important;
		max-width: 80% !important;
		margin: 0 auto !important;
	}

	#reviews-list {
		width: 100% !important;
	}

	.review-card {
		width: 100% !important;
		max-width: 100% !important;
	}
}

#wom-reviews-container {
	width: 100%;
	max-width: 1600px !important;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

#reviews-list {
	width: 100%;
	max-width: 1600px;
	box-sizing: border-box;
}

/* Review Card Styles - Elegant Premium Design */
.review-card {
	margin-bottom: 1.5rem;
	padding: 2rem;
	padding-bottom: 2.25rem;
	background: #FFFFFF;
	border-radius: 12px;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 100% !important;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	border: 1px solid rgba(197, 232, 224, 0.3);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
	            0 1px 3px rgba(27, 122, 104, 0.05);
	overflow: hidden;
}

/* Elegant gradient overlay - hidden by default */
.review-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(237, 248, 246, 0.4) 0%, rgba(248, 253, 252, 0.2) 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
	z-index: 0;
}

/* Accent line on left */
.review-card::after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
	background: linear-gradient(180deg, #1B7A68 0%, #25C9B6 100%);
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1;
}

/* Ensure all content is above pseudo-elements */
.review-card > * {
	position: relative;
	z-index: 2;
}

/* Header section with profile */
.review-card-header {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	justify-content: space-between;
	position: relative;
	z-index: 2;
}

/* Profile image placeholder (using first letter of name) - Square & Elegant */
.review-card-header::before {
	content: attr(data-initial);
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: 8px;
	background: linear-gradient(135deg, #D4F1ED 0%, #E8F8F4 100%);
	color: #1B7A68;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
	font-family: 'Montserrat', sans-serif;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	box-shadow: 0 2px 8px rgba(27, 122, 104, 0.08);
	border: 2px solid rgba(27, 122, 104, 0.08);
}

/* Left side: Name and stars */
.review-header-left {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* Reviewer name */
.reviewer-name {
	margin: 0 !important;
	font-size: 1.125rem;
	font-weight: 600;
	color: #070707;
	line-height: 1.3;
	font-family: 'Montserrat', sans-serif;
}

/* Right side: Verified badge */
.review-header-right {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
}

/* Star ratings with gradient */
.review-stars {
	display: inline-flex;
	gap: calc(0.5rem - 1px);
	align-items: center;
}

/* Filled stars - with gradient */
.review-stars .fas.fa-star {
	font-size: 15px;
	color: #25C9B6; /* Fallback color */
	background: linear-gradient(70deg, #228E82 0%, #25C9B6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-fill-color: transparent;
}

/* Empty stars - gray color */
.review-stars .far.fa-star {
	font-size: 15px;
	color: #d1d5db !important; /* Gray color for empty stars */
}

/* Fallback for browsers that don't support background-clip */
@supports not (background-clip: text) {
	.review-stars .fas.fa-star {
		color: #25C9B6 !important;
	}
}

/* Stars glow effect on card hover */
.review-card:hover .review-stars .fas.fa-star {
	color: #F0AD4E !important;
	background: linear-gradient(70deg, #F0AD4E 0%, #FFD700 100%) !important;
	-webkit-background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
	background-clip: text !important;
	filter: drop-shadow(0 2px 4px rgba(240, 173, 78, 0.3));
	transform: scale(1.05);
}

.meta-location {
	font-size: 0.875rem;
	color: #1B7A68;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	margin-bottom: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	background: rgba(212, 241, 237, 0.3);
	padding: 0.25rem 0.625rem;
	border-radius: 12px;
	transition: all 0.3s ease;
}

.meta-location i {
	font-size: 0.875rem;
	color: #1B7A68;
	font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
	font-weight: 900 !important;
	font-style: normal !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	display: inline-block !important;
}

.meta-location .fa-location-dot::before {
	content: "\f3c5" !important;
	font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
	font-weight: 900 !important;
	font-style: normal !important;
}

.review-card:hover .meta-location {
	background: rgba(27, 122, 104, 0.12);
}

.meta-date {
	font-size: 0.75rem;
	color: #6B7280;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	display: inline-block;
	background: rgba(243, 244, 246, 0.8);
	padding: 0.25rem 0.625rem;
	border-radius: 12px;
	transition: all 0.3s ease;
}

.review-card:hover .meta-date {
	background: rgba(229, 231, 235, 0.9);
	color: #4B5563;
}

/* Review title */
.review-title {
	margin: 0 !important;
	font-size: 1rem;
	font-weight: 500;
	color: #000000;
	line-height: 1.4;
	font-family: 'Inter', sans-serif;
}

/* Review text - More elegant */
.review-text {
	margin: 0 !important;
	line-height: 1.75;
	color: #374151;
	font-size: 1rem;
	font-family: 'Inter', sans-serif;
	letter-spacing: 0.01em;
}

/* Verified Customer badge - Simple Tag Style */
.verified-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: #10B981;
	font-size: 0.6875rem;
	font-weight: 500;
	font-family: 'Montserrat', sans-serif;
	background: transparent;
	padding: 0;
	border: none;
	transition: all 0.3s ease;
}

.verified-badge svg {
	width: 11px;
	height: 11px;
	color: #10B981;
}

.review-card:hover .verified-badge {
	color: #059669;
}

.review-card:hover .verified-badge svg {
	color: #059669;
}

/* Location and date at bottom right */
.review-meta-bottom {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}

.review-card.bg-gray {
	background: #FFFFFF;
}

/* First card - subtle highlight by default */
#reviews-list .review-card:first-child::before {
	opacity: 0.5;
}

#reviews-list .review-card:first-child::after {
	width: 4px;
}

#reviews-list .review-card:first-child {
	border-color: rgba(197, 232, 224, 0.5);
	box-shadow: 0 4px 12px rgba(27, 122, 104, 0.08),
	            0 2px 6px rgba(37, 201, 182, 0.06);
}

/* Elegant hover behavior for all cards */
.review-card:hover {
	border-color: rgba(37, 201, 182, 0.4);
	box-shadow: 0 8px 24px rgba(27, 122, 104, 0.12),
	            0 4px 12px rgba(37, 201, 182, 0.08);
	transform: translateY(-4px);
}

.review-card:hover::before {
	opacity: 1;
}

.review-card:hover::after {
	width: 4px;
}

/* Profile square hover effect - Lighter */
.review-card:hover .review-card-header::before {
	background: linear-gradient(135deg, #B8E6DE 0%, #C7EDE7 100%);
	color: #1B7A68;
	transform: scale(1.03);
	box-shadow: 0 4px 12px rgba(27, 122, 104, 0.15);
	border-color: rgba(27, 122, 104, 0.15);
}

#reviews-list {
	display: block;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
}

#reviews-pagination {
	position: relative;
	margin-top: 2rem;
	padding-top: 1rem;
	clear: both;
}

#reviews-pagination button {
	padding: 0.5rem 1rem;
	margin: 0 0.25rem;
	border: 1px solid #e5e7eb;
	border-radius: 0.375rem;
	background: white;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
}

#reviews-pagination button:hover {
	background: #f3f4f6;
}

#reviews-pagination button.active {
	background: #1B7A68;
	color: white;
	border-color: #1B7A68;
}

#reviews-pagination button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Write Review Button */
.write-review-btn {
	background: #1B7A68 !important;
	color: white;
	padding: 0.75rem 2rem;
	border-radius: 0.5rem;
	border: none;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.write-review-btn:hover {
	transform: translateY(-2px);
  background-color: #1B7A68;
  color:white;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Modal */
.wom-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.wom-modal.active {
	display: flex;
}

.wom-modal-content {
	background: white;
	border-radius: 1rem;
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
}

.wom-modal-header {
	padding: 1.5rem;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.wom-modal-body {
	padding: 1.5rem;
}

.wom-form-group {
	margin-bottom: 1.5rem;
}

.wom-form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: #374151;
}

.wom-form-input,
.wom-form-textarea {
	width: 100%;
	padding: 0.75rem;
	border: 2px solid #e5e7eb;
	border-radius: 0.5rem;
	font-size: 1rem;
	transition: border-color 0.2s;
}

.wom-form-input:focus,
.wom-form-textarea:focus {
	outline: none;
	border-color: #000000;
}

.rating-stars-input {
	display: flex;
	gap: 0.5rem;
	font-size: 2rem;
}

.rating-star {
	color: #d1d5db;
	cursor: pointer;
	transition: color 0.2s;
}

.rating-star:hover,
.rating-star.active {
	color: #fbbf24;
}

/* Loading spinner animation */
@keyframes spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
	/* Outer container - reduce spacing on mobile */
	.wom-reviews-outer-container {
		margin: 20px auto !important;
		padding: 0 15px !important;
		max-width: 100vw !important;
		overflow-x: hidden !important;
	}

	/* Combined wrapper - reduce padding */
	.reviews-combined-wrapper {
		padding: 20px 0 !important;
		gap: 20px !important;
		width: 100% !important;
		max-width: 100% !important;
		overflow-x: hidden !important;
	}

	/* Rating sidebar - smaller padding */
	.rating-summary-box {
		padding: 15px;
		border-radius: 8px;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.rating-number-display {
		padding: 12px;
		margin-bottom: 15px;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	.rating-number-large {
		font-size: 40px;
		color: #1B7A68;
		margin-bottom: 8px;
	}

	.rating-stars-display {
		font-size: 16px;
		letter-spacing: 1px;
		gap: 1px;
		width: 100% !important;
		justify-content: center !important;
	}

	.rating-count-text {
		font-size: 12px;
	}

	.rating-bar-row {
		gap: 6px !important;
		margin-bottom: 8px !important; /* Less gap on tablet/phone */
		color: #1b7a68 !important;
		height: 13px !important;
		width: 80% !important;
		max-width: 80% !important;
		min-width: 80% !important;
		box-sizing: border-box !important;
		margin-left: auto !important;
		margin-right: auto !important;
		display: flex !important;
	}

	.rating-star-label {
		font-size: 11px !important;
		width: 35px !important;
		gap: 3px !important;
		flex-shrink: 0 !important;
	}

	.rating-star-label span {
		font-size: 13px !important;
	}

	.rating-bar-container {
		height: 8px !important;
		min-height: 8px !important;
		border-radius: 5px !important;
		flex: 1 !important;
		max-width: 100% !important;
	}

	.rating-bar-fill {
		height: 8px !important;
		min-height: 8px !important;
		border-radius: 5px !important;
		color: #1b7a68 !important;
		max-width: 100% !important;
	}

	.rating-percentage-text {
		width: 35px !important;
		font-size: 13px !important;
		color: #1b7a68 !important;
		flex-shrink: 0 !important;
	}

	/* Review cards - responsive on mobile */
	.review-card {
		padding: 1.25rem;
		margin-bottom: 0;
	}

	/* Remove left border on mobile */
	.review-card::after {
		width: 0 !important;
	}

	.review-card:hover::after {
		width: 0 !important;
	}

	.review-card-header::before {
		width: 38px;
		height: 38px;
		min-width: 38px;
		font-size: 16px;
		border-radius: 0;
	}

	.review-card-header::after {
		font-size: 16px;
	}

	.reviewer-name {
		font-size: 1rem;
	}

	.review-stars .fa-star {
		font-size: 13px;
	}

	.meta-location {
		font-size: 0.75rem;
	}

	.meta-location i {
		font-size: 0.75rem;
		font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
		font-weight: 900 !important;
	}

	.meta-date {
		font-size: 0.688rem;
	}

	.review-title {
		font-size: 0.938rem;
	}

	.review-text {
		font-size: 0.938rem;
		line-height: 1.4;
	}

	.verified-badge {
		font-size: 0.688rem;
	}

	.verified-badge svg {
		width: 12px;
		height: 12px;
	}

	/* Ensure reviews column doesn't overflow */
	.reviews-content-column {
		width: 100% !important;
		max-width: 100% !important;
		overflow: visible !important;
	}

	#wom-reviews-container,
	#reviews-list {
		width: 100% !important;
		max-width: 100% !important;
		overflow: visible !important;
	}

	/* Write Review Button - smaller on mobile */
	.write-review-btn {
		padding: 0.6rem 1.5rem;
		font-size: 0.9rem;
		width: 100%;
		max-width: 300px;
		margin: 0 auto;
		display: block;
	}

	/* Pagination - better mobile layout */
	#reviews-pagination {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.5rem;
		margin-top: 1.5rem;
	}

	#reviews-pagination button {
		padding: 0.4rem 0.75rem;
		margin: 0;
		font-size: 0.85rem;
		min-width: 36px;
	}

	/* Modal - better mobile view */
	.wom-modal {
		padding: 10px;
	}

	.wom-modal-content {
		border-radius: 0.75rem;
		max-width: 100%;
	}

	.wom-modal-header {
		padding: 1rem;
	}

	.wom-modal-body {
		padding: 1rem;
	}

	.wom-form-group {
		margin-bottom: 1rem;
	}

	.wom-form-input,
	.wom-form-textarea {
		padding: 0.6rem;
		font-size: 0.95rem;
	}

	.rating-stars-input {
		font-size: 1.75rem;
		gap: 0.4rem;
	}

	/* Reviews header section on mobile */
	.reviews-header-section {
		margin: 1.5rem 0 !important;
	}

	.reviews-header-section h2 {
		font-size: 1.25rem;
	}
}

/* Extra small mobile devices */
@media (max-width: 480px) {
	.wom-reviews-outer-container {
		margin: 15px 0 !important;
		padding: 0 10px !important;
		max-width: 100vw !important;
		overflow-x: hidden !important;
	}

	.reviews-combined-wrapper {
		padding: 15px 0 !important;
		gap: 15px !important;
		width: 100% !important;
		max-width: 100% !important;
		overflow-x: hidden !important;
	}

	.rating-summary-box {
		padding: 12px;
		margin: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.rating-number-display {
		padding: 10px;
		margin-bottom: 12px;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	.rating-number-large {
		font-size: 36px;
	}

	.rating-stars-display {
		font-size: 14px;
		gap: 1px;
		width: 100% !important;
		justify-content: center !important;
	}

	.rating-bar-row {
		gap: 6px;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		margin-bottom: 4px; /* Even less gap on small phones */
		box-sizing: border-box !important;
	}

	.rating-star-label {
		font-size: 11px;
		width: 30px;
		flex-shrink: 0 !important;
	}

	.rating-bar-container {
		flex: 1 !important;
		max-width: 100% !important;
	}

	.rating-percentage-text {
		width: 32px;
		font-size: 11px;
		color: #1B7A68;
		flex-shrink: 0 !important;
	}

	.review-card {
		padding: 1rem;
		margin-bottom: 0;
	}

	/* Remove left border on small mobile */
	.review-card::after {
		width: 0 !important;
	}

	.review-card:hover::after {
		width: 0 !important;
	}

	.review-card-header::before {
		width: 36px;
		height: 36px;
		min-width: 36px;
		font-size: 14px;
		border-radius: 0;
	}

	.review-card-header::after {
		font-size: 14px;
	}

	.reviewer-name {
		font-size: 0.938rem;
	}
.review-stars{
	gap:1px !important;
}
	.review-stars .fa-star {
		font-size: 12px !important;
		
	}

	.meta-location {
		font-size: 0.688rem;
	}

	.meta-location i {
		font-size: 0.688rem;
	}

	.meta-date {
		font-size: 0.625rem;
	}

	.review-title {
		font-size: 0.875rem;
	}

	.review-text {
		font-size: 0.875rem;
	}

	.verified-badge {
		font-size: 0.625rem;
	}

	.verified-badge svg {
		width: 11px;
		height: 11px;
	}

	.write-review-btn {
		padding: 0.55rem 1.25rem;
		font-size: 0.85rem;
	}

	#reviews-pagination button {
		padding: 0.35rem 0.6rem;
		font-size: 0.8rem;
		min-width: 32px;
	}

	.reviews-header-section h2 {
		font-size: 1.1rem;
	}
}

/* Image Upload and Preview Styles */
#review-images {
	border: 2px dashed #e5e7eb;
	background: #f9fafb;
	cursor: pointer;
	transition: all 0.2s;
}

#review-images:hover {
	border-color: #1B7A68;
	background: #f3f4f6;
}

#image-preview-container {
	min-height: 0;
	transition: all 0.3s ease;
}

#image-preview-container:empty {
	display: none !important;
}

/* Image preview item styles */
.image-preview-item {
	position: relative;
	width: 80px;
	height: 80px;
	border-radius: 0.5rem;
	overflow: hidden;
	border: 2px solid #e5e7eb;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: all 0.2s;
}

.image-preview-item:hover {
	border-color: #1B7A68;
	box-shadow: 0 4px 8px rgba(27, 122, 104, 0.2);
}

.image-preview-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.image-preview-item button {
	position: absolute;
	top: 2px;
	right: 2px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	border: none;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.image-preview-item button:hover {
	background: rgba(220, 38, 38, 0.9);
}

@media (max-width: 768px) {
	.image-preview-item {
		width: 70px;
		height: 70px;
	}
}
