.codicts-google-reviews {
	/* min-height: 200px; */
	min-height: 30px;
}
.codicts-google-reviews.summary-reviews-template.cdts-reviews-loaded {
	min-height: unset;
}
.codicts-google-reviews .review-avatar {
	float: left;
	transition: filter ease-in-out 0.3s;
	height: 50px;
	margin-right: 10px;
	width: 50px;
	max-width: 50px;
}
.codicts-google-reviews .codicts-reviews-item {
	/* display: flex;
     margin-bottom: 20px; */
}
.codicts-google-reviews .codicts-reviews-item .cdts-rv-hdr {
	display: flex;
	align-items: center;
}
.codicts-google-reviews .codicts-reviews-item .cdts-rv-subtt {
	display: flex;
	flex-wrap: wrap;
}
.codicts-google-reviews .review-content {
	flex: 1;
}
.codicts-google-reviews .review-author {
	font-weight: bold;
}
.codicts-google-reviews .review-stars {
	color: gold; 
	display: flex;
	align-items: center;
}
.codicts-google-reviews .review-stars img {
	width: 14px;
	height: 14px;
}
.codicts-google-reviews:not(.summary-reviews-template) .review-stars {
	float: left;
	/* padding-right: 10px; */
	font-size: 18px;
}
.codicts-google-reviews .codicts-reviews-item {
	padding: 10px 0px 10px 0px;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    /* min-height: 380px; */
}
/* Override min-height and padding for summary and overall display modes */
.codicts-google-reviews.cgrfp-display-summary .codicts-reviews-item.codicts-reviews-summary,
.codicts-google-reviews.cgrfp-display-overall .codicts-reviews-item {
	min-height: auto !important;
	padding: 0 !important;
}
.codicts-google-reviews .review-text-wrapper {
	padding-top: 10px;
	margin-bottom: 10px;
	.review-text {
		font-size: 14px;
		line-height: 1.5;
		/* margin-bottom: 10px; */
	}
	.read-more {
		box-sizing: border-box !important;
		outline: none !important;
		font-size: 14px;
		color: rgb(25, 123, 255);
		display: inline-block;
		cursor: pointer;
	}
	
}
.codicts-google-reviews .review-date {
	font-size: 12px;
	padding: 4px;
	color: grey;
}

.codicts-google-reviews.list-reviews-template {
}

.codicts-google-reviews.grid-reviews-template {
	display: grid;
	gap: 20px;
}

.codicts-google-reviews.grid-reviews-template .codicts-reviews-item {
}

.codicts-google-reviews.carousel-reviews-template.cdts-is-cache-loaded {
	/* display:none; */
}

@media (max-width: 767px) {
	.codicts-google-reviews.grid-reviews-template {
		grid-template-columns: repeat(1, 1fr) !important;
	}
}

.codicts-google-reviews.carousel-reviews-template.owl-carousel .owl-dots {
	display: flex;
	justify-content: center;
}
.codicts-google-reviews.carousel-reviews-template.owl-carousel .owl-dot {
	border: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin: 0 5px;
	padding: 4px;
	cursor: pointer;
}
.codicts-google-reviews.carousel-reviews-template.owl-carousel .owl-dot {
	background: #000;
	opacity: 0.2;
}
.codicts-google-reviews.carousel-reviews-template.owl-carousel .owl-dot.active {
	opacity: 1;
}

.codicts-google-reviews.carousel-reviews-template .owl-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
}
.codicts-google-reviews.carousel-reviews-template .owl-nav > div {
	width: 35px;
	height: 35px;
	color: #555558;
	background: #f4f4f4;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: all 0.15s ease-in-out;
	margin-left: 2px;
	margin-right: 2px;
}
.codicts-google-reviews.carousel-reviews-template .owl-nav > div:hover {
	background: var(--accent);
	color: #fff;
	border-color: #fff;
}

.codicts-google-reviews.carousel-reviews-template[data-navigation="none"]
	.owl-nav,
.codicts-google-reviews.carousel-reviews-template[data-navigation="dots"]
	.owl-nav {
	display: none !important;
}
.codicts-google-reviews.carousel-reviews-template .owl-dots {
	margin-top: 20px;
}

.codicts-google-reviews .review-imgs-collection {
	display: flex;
	flex-wrap: wrap;
	margin-left: -1px;
	margin-right: -1px;
	margin-top: auto;
}

.codicts-google-reviews .layout-1-image > span {
	height: 200px !important;
	max-height: 200px !important;
	width: 100% !important;
	max-width: 750px !important;
}
.codicts-google-reviews .layout-2-image {
	flex-direction: column;
}
.codicts-google-reviews .layout-2-image > span {
	width: 100% !important;
	max-width: 750px !important;
}
.codicts-google-reviews .layout-3-image {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	grid-column-gap: 0px;
	grid-row-gap: 0px;
}
.codicts-google-reviews .layout-3-image > span {
	width: 100% !important;
	max-width: 300px !important;
}
.codicts-google-reviews .layout-3-image > span:nth-child(1) {
	grid-area: 1 / 1 / 3 / 2;
	height: auto;
	max-height: 200px;
}
.codicts-google-reviews .layout-3-image > span:nth-child(2) {
	grid-area: 1 / 2 / 2 / 3;
}
.codicts-google-reviews .layout-3-image > span:nth-child(3) {
	grid-area: 2 / 2 / 3 / 3;
}
.codicts-google-reviews .layout-4-image {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}
.codicts-google-reviews .review-imgs-collection > span {
	padding: 1px;
	max-height: 95px;
	height: 95px;
	display: flex;
	flex-grow: 1;
	position: relative;
	width: 100%;
	max-width: 300px;
}

@media (max-width: 1200px) {
    .codicts-google-reviews .review-imgs-collection > span {
        max-width: 140px;
    }
}

@media (max-width: 992px) {
    .codicts-google-reviews .review-imgs-collection > span {
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .codicts-google-reviews .review-imgs-collection > span {
        max-width: 100px;
    }
}

@media (max-width: 576px) {
    .codicts-google-reviews .review-imgs-collection > span {
        max-width: 80px;
    }
}
.codicts-google-reviews .review-imgs-collection > span img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: center center;
	transition: 0.2s ease;
}
.codicts-google-reviews .review-imgs-collection > span > a {
	height: 100%;
	width: 100%;
	border-radius: 6px;
	overflow: hidden;
	background: #242429;
	position: relative;
}
.codicts-google-reviews .review-imgs-collection > span > a i {
	width: 100%;
	position: absolute;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 20px;
	transition: 0.2s ease;
	overflow: hidden;
	opacity: 0;
	top: 0;
}

.codicts-google-reviews .review-imgs-collection > span > a:hover img {
	opacity: 0.4;
	transform: scale(1.1);
}
.codicts-google-reviews .review-imgs-collection > span > a:hover i {
	opacity: 1;
}

.codicts-google-reviews .review-imgs-collection .expander-reviews-img-cdts {
	position: absolute;
	width: calc(100% - 2px);
	height: calc(100% - 2px);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	color: #fff;
	font-weight: bold;
	background: #0000008f;
	border-radius: 6px;
	cursor: pointer;
	z-index: 2;
}
.codicts-google-reviews
	.review-imgs-collection
	.expander-reviews-img-cdts
	span {
	transition: 0.2s ease;
}
.codicts-google-reviews
	.review-imgs-collection
	.expander-reviews-img-cdts:hover
	span {
	transform: scale(1.1);
}
.codicts-google-reviews .review-imgs-collection .cdts-hdn-rv-img {
	display: none;
}

.codicts-google-reviews[data-columns="1"] .review-imgs-collection > span,
.codicts-google-reviews.list-reviews-template .review-imgs-collection > span {
	flex-grow: 0 !important;
}

.codicts-google-reviews .no-results-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.codicts-google-reviews .no-results-wrapper .no-results-icon {
	left: unset !important;
	transform: unset !important;
}

.codicts-google-reviews.cdts_revs_is_empty {
	grid-template-columns: unset !important;
	display: flex;
	justify-content: center;
}


.codicts-google-reviews li {
	list-style: none;
}
.codicts-google-reviews.summary-reviews-template .codicts-reviews-summary {
	display: flex;
	gap: 5px;
	align-items: center;
	padding: 0;
	min-height: 0;
}
.codicts-google-reviews.summary-reviews-template
	.codicts-reviews-summary
	.review-stars {
	font-size: 24px;
}
.codicts-google-reviews.summary-reviews-template
	.codicts-reviews-summary
	span:not(.review-stars) {
	font-size: 13px;
	color: grey;
}


.codicts-cgrf-toggle-paragraph-outer.cgrf-rm-active .codicts-cgrf-toggle-paragraph {
    --max-lines:5;
    --line-height: 1.6;
    line-height: var(--line-height);
    overflow: hidden;
    position: relative;
    /* padding-bottom: 1em; */
    display: none;
}

.codicts-cgrf-toggle-paragraph-outer.cgrf-rm-active:not(.cgrf-toggle-paragraph-expanded) .codicts-cgrf-toggle-paragraph::before {
    content: "";
    position: absolute;
    height: calc(1em * var(--line-height));
    width: 100%;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, #FFFFFF);
}

.codicts-cgrf-toggle-paragraph-btn {
    /* font-size: 16px; */
    color:  rgb(25, 123, 255);
    font-weight: 600;
    background:none;
    cursor: pointer;
	font-size: 14px;
	display: none;
}
.codicts-cgrf-toggle-paragraph-outer.cgrf-rm-active .codicts-cgrf-toggle-paragraph-btn {
	display: block;
}

.codicts-cgrf-toggle-paragraph-outer.cgrf-rm-active.cgrf-toggle-paragraph-expanded .codicts-cgrf-toggle-paragraph {
    max-height: none !important;
}

.codicts-cgrf-toggle-paragraph-outer.cgrf-rm-active .cgrf-mr,
.codicts-cgrf-toggle-paragraph-outer.cgrf-rm-active.cgrf-toggle-paragraph-expanded .cgrf-ls
{
    display: block;
}
.codicts-cgrf-toggle-paragraph-outer.cgrf-rm-active .cgrf-ls,
.codicts-cgrf-toggle-paragraph-outer.cgrf-rm-active.cgrf-toggle-paragraph-expanded .cgrf-mr
{
    display: none;
}


.codicts-google-reviews .codicts-loader-wrapper {
	width: 100%;
	height: 100%;
	position: absolute;
	flex-grow: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}
.codicts-loader-spinner {
	border: 2.5px solid var(--ts-shade-6);
    border-bottom-color: var(--ts-shade-2);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: codicts_loader_spinner .75s linear infinite;

	border-color: #c7c7c7;
    border-bottom-color: hsla(0, 0%, 100%, .2784313725);
    width: 30px;
    height: 30px;
    border-width: 2px;
} 
@keyframes codicts_loader_spinner {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(1turn);
	}
}
/* ========================================
   PAGINATION STYLES
   ======================================== */

.cgrfp-pagination {
	margin-top: 30px;
	padding: 20px 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.cgrfp-pagination-numbered {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.cgrfp-page-btn {
	min-width: 40px;
	height: 40px;
	padding: 8px 12px;
	border: 1px solid #ddd;
	background: #fff;
	color: #333;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.cgrfp-page-btn:hover {
	background: #f5f5f5;
	border-color: #999;
}

.cgrfp-page-btn.active {
	background: #007bff;
	color: #fff;
	border-color: #007bff;
	cursor: default;
}

.cgrfp-page-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.cgrfp-prev-btn,
.cgrfp-next-btn {
	font-weight: 600;
}

.cgrfp-pagination-loadmore {
	text-align: center;
}

.cgrfp-load-more-btn {
	padding: 12px 30px;
	background: #007bff;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 180px;
}

.cgrfp-load-more-btn:hover {
	background: #0056b3;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.cgrfp-load-more-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.cgrfp-pagination-infinite {
	text-align: center;
	padding: 20px;
}

/* ========================================
   SWIPER CAROUSEL INTEGRATION
   ======================================== */

.codicts-google-reviews.swiper-container {
	padding-bottom: 50px;
}

.codicts-google-reviews.swiper-container .swiper-wrapper {
	align-items: stretch;
}

.codicts-google-reviews.swiper-container .swiper-slide {
	height: auto;
	display: flex;
}

.codicts-google-reviews.swiper-container .codicts-reviews-item {
	width: 100%;
	display: flex;
	flex-direction: column;
}

.codicts-google-reviews .swiper-button-next,
.codicts-google-reviews .swiper-button-prev {
	background: rgba(255, 255, 255, 0.9);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.codicts-google-reviews .swiper-button-next:after,
.codicts-google-reviews .swiper-button-prev:after {
	font-size: 20px;
	color: #333;
	font-weight: bold;
}

.codicts-google-reviews .swiper-pagination-bullet {
	background: #ddd;
	opacity: 1;
}

.codicts-google-reviews .swiper-pagination-bullet-active {
	background: #007bff;
}

/* ========================================
   SCHEMA MARKUP & SEO IMPROVEMENTS
   ======================================== */

.codicts-reviews-item[itemscope] {
	position: relative;
}

/* ========================================
   RESPONSIVE IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
	.cgrfp-pagination-numbered {
		justify-content: center;
	}
	
	.cgrfp-page-btn {
		min-width: 35px;
		height: 35px;
		font-size: 13px;
		padding: 6px 10px;
	}
	
	.cgrfp-prev-btn,
	.cgrfp-next-btn {
		padding: 6px 12px;
	}
	
	.cgrfp-load-more-btn {
		width: 100%;
		max-width: 300px;
	}
	
	.codicts-google-reviews .swiper-button-next,
	.codicts-google-reviews .swiper-button-prev {
		width: 35px;
		height: 35px;
	}
	
	.codicts-google-reviews .swiper-button-next:after,
	.codicts-google-reviews .swiper-button-prev:after {
		font-size: 18px;
	}
}

/* ========================================
   LOADING SKELETON (FUTURE ENHANCEMENT)
   ======================================== */

.cgrfp-skeleton {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: skeleton-loading 1.5s infinite;
	border-radius: 4px;
}

@keyframes skeleton-loading {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

/* ========================================
   RTL SUPPORT
   ======================================== */

[dir="rtl"] .codicts-google-reviews .review-avatar {
	float: right;
	margin-right: 0;
	margin-left: 10px;
}

[dir="rtl"] .codicts-google-reviews .review-stars {
	float: right;
	padding-right: 0;
	padding-left: 10px;
}

[dir="rtl"] .cgrfp-pagination-numbered {
	direction: rtl;
}

/* ========================================
   TRANSITIONS & ANIMATIONS
   ======================================== */

.codicts-reviews-item {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.codicts-reviews-item:hover {
	/* transform: translateY(-2px); */
}

.review-text-wrapper {
	transition: max-height 0.3s ease;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

.cgrfp-page-btn:focus,
.cgrfp-load-more-btn:focus {
	outline: 2px solid #007bff;
	outline-offset: 2px;
}

.review-stars [itemprop] {
	display: inline;
}

/* ========================================
   ELEMENTOR WIDGET SPECIFIC STYLES
   ======================================== */

.cgrfp-elementor-widget {
	position: relative;
}

.cgrfp-elementor-widget.grid-reviews-template {
	display: grid;
	gap: 20px;
}

.elementor-alert {
	padding: 15px;
	border-radius: 4px;
	margin: 10px 0;
}

.elementor-alert-warning {
	background: #fff3cd;
	border: 1px solid #ffc107;
	color: #856404;
}
/* ========================================
   LOADING STATES & OVERALL RATING
   ======================================== */

/* Loading state for widgets */
.cgrfp-loading {
opacity: 0.6;
pointer-events: none;
}

.cgrfp-loaded {
opacity: 1;
pointer-events: auto;
transition: opacity 0.3s ease;
}

/* Overall rating display */
.cgrfp-overall-rating {
text-align: center;
padding: 20px;
}

.cgrfp-overall-rating .cgrfp-rating-value {
font-size: 48px;
font-weight: bold;
color: #ffa500;
line-height: 1;
display: inline-block;
}

.cgrfp-display-overall .cgrfp-rating-value {
font-size: 64px;
}

.cgrfp-loading-placeholder {
opacity: 0.3;
animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
0%, 100% {
opacity: 0.3;
}
50% {
opacity: 0.6;
}
}

/* Instance-specific styling to prevent conflicts */
.codicts-google-reviews[data-instance-id] {
position: relative;
}

/* Summary display styling */
.cgrfp-display-summary .codicts-reviews-summary {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 20px;
font-size: 18px;
}

.cgrfp-display-summary .codicts-reviews-summary span {
display: inline-flex;
align-items: center;
}

/* Processing message styling */
.cgrfp-processing-message {
text-align: center;
padding: 20px;
color: #666;
}

.cgrfp-processing-message .codicts-loader-spinner {
margin: 0 auto 10px;
}

.cgrfp-processing-message p {
margin: 10px 0 0;
font-size: 14px;
font-style: italic;
}
