.ets-testimonial-form .ets-form-field:last-of-type {
	width: 100%
}

.ets-loading {
	height: 0;
	width: 0;
	padding: 15px;
	border: 6px solid #ccc;
	border-right-color: #888;
	border-radius: 22px;
	animation: 1s linear infinite ets-rotate
}

@keyframes ets-rotate {
	100% {
		-webkit-transform: rotate(360deg)
	}
}

.ets-testimonials-section h3 {
	text-transform: capitalize;
	font-size: 27px
}

#ets-form-messages {
	margin: 0;
	width: 100%
}

.ets-required-legend {
    width: 100%;
}

.ets-leave-a-review {
	direction: rtl
}

.ets-testimonial-rating {
	font-size: 1.5rem;
	text-align: center;
	margin: 0 0 1rem
}

.ets-star-rating input:checked~label,
.ets-star-rating label:hover,
.ets-star-rating label:hover~label,
.ets-star.ets-filled {
	color: gold
}

.ets-star {
	margin-right: 5px;
	text-align: center;
	line-height: 1;
	display: inline-block;
	color: #ccc
}

.ets-error-container {
	color: red;
	font-size: 14px;
	margin: 0
}

.ets-testimonial-form input.ets-error,
.ets-testimonial-form textarea.ets-error {
	border: 2px solid red !important;
	background-color: #fee;
	border-radius: 4px
}

.ets-error-message {
	font-weight: 700;
	color: red
}

.ets-success-message {
	font-weight: 700;
	color: green
}

.ets-star-rating {
	display: inline-flex
}

.ets-star-rating input {
	display: none
}

.ets-star-rating label {
	font-size: 2em;
	color: #ccc;
	cursor: pointer;
    margin: 0 0 10px;
}

.ets-testimonials-filter {
	display: flex;
	justify-content: space-between;
	margin: 0 0 2rem
}

.ets-testimonials-filter .ets-filter-group {
	display: flex;
	flex-direction: column;
	width: 200px;
	position: relative
}

.ets-testimonials-filter .ets-filter-group.ets-sort-group { order: 1; }
.ets-testimonials-filter .ets-filter-group.ets-rating-group {order: 3; }
.ets-testimonials-filter .ets-filter-group.ets-search-group {order: 2; }

.ets-testimonials-filter .ets-filter-group label {
	margin: 0 0 4px 7px;
	font-size: 13px;
	color: rgba(0, 0, 0, .54)
}

.ets-testimonials-filter .ets-filter-group select {
	padding: .5rem 1rem;
	border: none;
	box-shadow: rgba(33, 35, 38, .3) 0 10px 10px -10px;
	border-radius: 0;
	font-size: 16px;
	transition: border .3s, box-shadow .3s;
	background-color: #fff;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg fill='gray' viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .3rem center;
	background-size: 16px
}

.ets-testimonials-filter .ets-filter-group select:focus {
	outline: 0
}

.ets-testimonials-list {
	display: flex;
	flex-flow: row wrap;
	gap: 1rem
}

.ets-testimonials-list .ets-testimonial-item {
	width: calc(33% - 8px);
	padding: 20px 26px 32px;
	border-radius: .5rem;
	display: flex;
	flex-direction: column;
	box-shadow: rgba(0, 0, 0, .12) 0 1px 3px, rgba(0, 0, 0, .24) 0 1px 2px
}

.ets-testimonials-list .ets-testimonial-item:nth-child(odd) {
	color: #1d1d22;
	background-color: #f0f0f0;
}

.ets-testimonials-list .ets-testimonial-item:nth-child(2n) {
	color: #ffffffcc;
	background: #1d1d22
}

.ets-testimonials-list .ets-testimonial-item .ets-testimonial-header {
	display: flex;
	gap: 0 12px;
	align-items: center;
	margin: 20px 0 0
}

.ets-testimonials-list .ets-testimonial-item .ets-testimonial-header h3 {
	font-size: 1.3em;
    line-height: inherit;
	margin: 0
}

.ets-testimonials-list .ets-testimonial-item:nth-child(odd) .ets-admin-response .ets-icon,
.ets-testimonials-list .ets-testimonial-item:nth-child(odd) .ets-read-more,
.ets-testimonials-list .ets-testimonial-item:nth-child(odd) .ets-testimonial-header h3 {
	color: #121217
}

.ets-testimonials-list .ets-testimonial-item:nth-child(2n) .ets-testimonial-header h3 {
	color: #fff
}

.ets-testimonials-list .ets-testimonial-item .ets-testimonial-header {

}

.ets-testimonial-modal .ets-testimonial-full-content,
.ets-testimonials-list .ets-testimonial-item .ets-testimonial-excerpt {
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto;
	word-wrap: break-word;
	flex: 1
}

.ets-testimonials-list .ets-testimonial-item .ets-testimonial-excerpt {
    text-align: center;
}

.ets-testimonials-list .ets-testimonial-item .ets-testimonial-header img {
	display: block;
	width: 47px;
	border-radius: 50px;
	margin: 0;
	aspect-ratio: 1/1;
	box-shadow: rgba(0, 0, 0, .05) 0 6px 24px 0, rgba(0, 0, 0, .08) 0 0 0 1px;
	transition: .5s ease-in-out
}

.ets-testimonials-list .ets-testimonial-item>.ets-testimonial-header img:hover {
	width: 100px
}

.ets-testimonials-list .ets-testimonial-item .ets-testimonial-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1
}

.ets-testimonials-list .ets-testimonial-item .ets-testimonial-footer {
	display: flex
}

.ets-testimonials-list .ets-testimonial-item .ets-testimonial-date {
	font-style: italic;
	align-self: flex-end;
	text-align: right
}

.ets-testimonials-list .ets-testimonial-item .ets-read-more {
	flex: 1;
	text-align: right;
	font-size: .9em;
	margin-top: 3px;
	cursor: pointer;
	font-style: italic;
	letter-spacing: normal;
	font-family: cursive;
	text-decoration: none;
	transition: .3s;
	color: #fff
}

.ets-testimonials-list .ets-testimonial-item .ets-read-more:hover {
	text-decoration: underline
}

.ets-testimonials-list .ets-testimonial-item .ets-admin-response {
	flex: 1;
	align-self: center;
	cursor: pointer;
}

.ets-testimonials-list .ets-testimonial-item .ets-admin-response .ets-icon {
	color: #fff
}

.ets-testimonials-list .ets-testimonial-company {
    font-weight: 500;
}

.ets-admin-modal,
.ets-testimonial-modal {
	display: none;
    margin: 0 !important;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, .5)
}

.ets-testimonial-modal-content {
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    max-width: 600px;
	margin: auto;
	border: 1px solid #888;
	width: 80%;
	border-radius: 8px
}

.ets-admin-modal-close,
.ets-testimonial-modal-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: 700;
	cursor: pointer
}

.ets-admin-modal-close:focus,
.ets-admin-modal-close:hover,
.ets-testimonial-modal-close:focus,
.ets-testimonial-modal-close:hover {
	color: #000;
	text-decoration: none
}

.ets-testimonial-modal {
	margin-top: 1rem;
	color: #000
}

.ets-testimonial-modal .ets-testimonial-author {
	display: flex;
	align-items: flex-start;
	margin: 0 0 .5rem;
	gap: 0 12px
}

.ets-testimonial-modal .ets-testimonial-author img {
	border-radius: 50px;
	margin: 0;
	aspect-ratio: 1/1;
	width: 60px
}

.ets-testimonial-modal .ets-testimonial-author-info {
	margin-right: 20px
}

.ets-testimonial-modal .ets-testimonial-author-info h3 {
	font-size: 1.3em;
	color: #121217;
	line-height: 1;
	margin-top: .5rem 0 0
}

.ets-testimonial-modal .ets-testimonial-author-info .ets-testimonial-rating {
	margin: .2rem 0 .5rem;
	text-align: left
}

.ets-testimonial-modal .ets-testimonial-full-content {
	margin-bottom: .5rem
}

.ets-testimonial-modal .ets-testimonial-date {
	text-align: right
}

.ets-testimonial-modal .ets-admin-response-content {
	border-top: 2px solid;
	padding-top: .5rem;
	margin-top: 1rem
}

.ets-testimonial-modal .ets-admin-response-content .ets-admin-response-text {
	font-style: italic;
	font-weight: 300
}

.ets-admin-modal-content {
	margin: 15% auto;
	border: 1px solid #ddd;
	border-radius: 8px;
	width: 50%;
    background: #fff;
    padding: 0 20px 20px;
}

.ets-admin-modal-content .ets-admin-response-text {
	line-height: 1.5
}

.ets-admin-response-content {
	margin-top: 20px;
	font-size: 16px;
	line-height: 1.6;
	color: #000 !important
}

.ets-admin-response-content small {
	font-size: 1rem
}

.ets-testimonial-form {
	position: relative;
	z-index: 1;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	margin: 0 auto;
	padding: 1.5rem 2.5rem 2rem;
	background: #f9f9f9;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, .1)
}

.ets-testimonial-form .ets-form-field:not(:last-of-type) {
	display: inline-block;
	width: calc(50% - 10px)
}

.ets-testimonial-form .ets-form-field.ets-review-field {
    width: 100%;
}

.ets-testimonial-form label:not(.ets-star-shape) {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
	position: relative
}

.ets-testimonial-form label.ets-consent-label {
    display: block;
    position: relative;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-left: 10px;
    color: #2c3e50;
}

.ets-testimonial-form label.ets-consent-label input {
    width: auto;
    margin: 2px 10px 0 0;
}

.ets-testimonial-form label.ets-consent-label a {
    font-weight: 500;
    font-style: italic;
    font-size: inherit;
    color: #a156cc;
}

/* v3.4.0 — required/optional fields are marked with explicit <span class="ets-required">/<span class="ets-optional"> elements in the template, so the old blanket asterisk pseudo-element is disabled (it would otherwise double-mark required fields and falsely mark optional ones). */
.ets-testimonial-form label::before {
	content: none
}

.ets-testimonial-form .ets-star-shape::before {
	content: none
}

.ets-testimonial-form input:not([type=file]),
.ets-testimonial-form textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px
}

.ets-testimonial-form button {
	width: 100%;
    font-weight: 600 !important;
    line-height: 27px !important;
	border: none;
	transition: background-color .3s
}

.ets-testimonial-form input[type=file] {
	width: 100%;
	margin: 10px 0
}

.ets-testimonial-form button:hover {
	background-color: #000
}

.ets-no-reviews-message {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	margin: 3.5rem 0 2rem
}

.ets-no-reviews-message h4 {
	font-size: 1.2825rem !important;
	font-weight: 400 !important;
	color: #121217;
	text-shadow: 1px 2px 4px rgba(0, 0, 0, .1)
}

.ets-no-reviews-message button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #f0f0f0 !important;
	padding: .75rem 1.25rem !important;
	border-radius: 8px !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	text-decoration: none;
	color: #333 !important;
	background-image: none !important;
	transition: .3s;
	border: none;
	cursor: pointer
}

.ets-no-reviews-message button:hover {
	background-color: #333 !important;
	color: #fff !important
}

.ets-pagination-wrapper {
	margin: 2rem 0;
	text-align: center
}

.ets-page-numbers {
	display: inline-flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: .5rem
}

.ets-page-numbers li {
	display: inline
}

.ets-page-numbers a,
.ets-page-numbers span {
	display: inline-block;
	padding: .5rem 1rem;
	text-decoration: none;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: .3s
}

.ets-page-numbers a:hover {
	background-color: #f0f0f0
}

.ets-page-numbers .ets-current {
	background-color: #007cba;
	color: #fff;
	border-color: #007cba;
}

.ets-page-numbers {
    font-size: 15px !important;
    line-height: inherit !important;
}

@media (max-width:768px) {

	.ets-testimonial-form .ets-form-field:not(:last-of-type),
	.ets-testimonials-filter .ets-filter-group,
	.ets-testimonials-list .ets-testimonial-item {
		width: 100%
	}

	.ets-testimonials-filter {
		flex-direction: column;
		gap: 1rem
	}

	.ets-testimonial-modal-content {
		width: 95%;
		margin: 5vh auto
	}
}

/* ---------------------------------------------------------- Single ----------------------------------------------------------- */
/* Single Testimonial Styles */
.ets-single-testimonial {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: #1d1d22;
    border-radius: .5rem;
    box-shadow: rgba(0, 0, 0, .12) 0 1px 3px, rgba(0, 0, 0, .24) 0 1px 2px;
}

.ets-single-testimonial .ets-testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 40px 8px 8px 40px;
}

.ets-single-testimonial .ets-testimonial-image {
    margin-right: 20px;
}

.ets-single-testimonial .ets-testimonial-image img {
	display: block;
}

.ets-single-testimonial .ets-testimonial-image img,
.ets-single-testimonial .ets-testimonial-image .ets-default-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.ets-single-testimonial .ets-testimonial-image .ets-default-avatar {
    background: #2271b1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.ets-single-testimonial .ets-testimonial-title {
    margin: 12px 0 10px;
    font-size: 28px;
    color: #333;
}

.ets-single-testimonial .ets-testimonial-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.ets-single-testimonial .ets-rating-text {
    margin: 2px 0 0 10px;
    color: #666;
    font-size: 14px;
    font-weight: 700;
}

.ets-single-testimonial .ets-testimonial-content {
	margin-bottom: 40px;
    border-radius: 8px;
    padding: 0 30px 10px 0;
	box-shadow: rgba(27, 31, 35, 0.04) 0px 1px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px inset;
    border-left: 4px solid #1d1d22;
    background: #fff;
}

.ets-single-testimonial .ets-testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    padding: 10px 40px 0 20px;
    margin: 0 0 20px 0;
    font-style: italic;
	position: relative;
}

.ets-single-testimonial .ets-testimonial-text .ets-testimonial-emoji {
    font-style: normal;
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);	
}

.ets-single-testimonial .ets-testimonial-meta {
    text-align: right;
    color: #666;
    font-size: 14px;
}

.ets-single-testimonial .ets-admin-response-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    border-left: 4px solid #A156CC;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
}

.ets-single-testimonial .ets-response-title {
    margin: 0 0 15px 0;
    color: #A156CC;
    font-size: 19px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ets-single-testimonial .ets-response-title i,
.ets-single-testimonial .ets-response-title span {
	color: #1d1d22;
}

.ets-single-testimonial .ets-admin-response {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.ets-single-testimonial .ets-admin-response .ets-admin-response-text {
	display: none;
}

.ets-single-testimonial .ets-response-meta {
    text-align: right;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

.ets-single-testimonial .ets-testimonial-navigation {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.ets-single-testimonial .ets-navigation button.ets-back-to-grid-btn,
.ets-single-testimonial .ets-back-button {
    display: block;
    margin: 0 auto;
}

/* v4.0.0 — [single_testimonial] embed; wrapper also carries .ets-single-testimonial to reuse its styling. */
.ets-single-embed { margin: 1.5em auto; }
.ets-single-embed.ets-single-testimonial { padding: 30px; }
.ets-single-embed--card.ets-single-testimonial { max-width: 480px; padding: 24px; }
.ets-single-embed--card .ets-testimonial-header { margin-bottom: 18px; }

/* ---------------------------------------------------------- None ----------------------------------------------------------- */
.ets-no-testimonial {
    background: #fff;
	padding: 40px 20px;
}

.ets-no-testimonial .ets-no-testimonial-content {
    padding: 60px 0;
	font-style: italic;
    text-align: center;
    color: #666;
	font-size: 20px;
}

/* ---------------------------------------------------------- Top Reviews ----------------------------------------------------------- */
.ets-top-testimonials {
    display: flex;
    flex-flow: row wrap;
    gap: 20px;
}

.ets-top-testimonials .ets-top-testimonials-item {
    min-width: 20rem;
    flex: 1;
    display: flex;
    background-color: #F7F7F8;
    border-radius: 8px;
    padding: 24px 32px;
}

.ets-top-testimonials .ets-testimonial-card {
    display: flex;
    flex-direction: column;
	gap: .75rem;
    width: 100%;
}

.ets-top-testimonials h4.ets-author-name {
    font-size: 1.2825rem;
    font-weight: 700;
    line-height: 32.832px;
    color: #1D1D22;
}

.ets-top-testimonials h4.ets-author-name,
.ets-top-testimonials .ets-testimonial-text,
.ets-top-testimonials .ets-testimonial-company {
    margin: .4rem;
}

.ets-top-testimonials .ets-testimonial-rating {
    text-align: left;
    margin: 0;
}

.ets-top-testimonials .ets-testimonial-rating .ets-star-filled {
	color: gold;
}

.ets-top-testimonials .ets-testimonial-author,
.ets-top-testimonials .ets-testimonial-content,
.ets-top-testimonials .ets-testimonial-rating,
.ets-top-testimonials .ets-testimonial-date {
    flex: 0 0 auto;
}

.ets-top-testimonials .ets-testimonial-content {
    flex: 1 0 auto;
}

.ets-top-testimonials .ets-testimonial-date {
    font-size: 14px;
    font-style: italic;
    opacity: .7;
}

/* ---------------------------------------------------------- Carousel ----------------------------------------------------------- */
/* Enhanced Testimonials Carousel */
.ets-testimonials-carousel {
    position: relative;
    padding: 40px 25px;
    margin: 0 auto;
    max-width: 1200px;
}

.ets-testimonials-carousel .swiper-wrapper {
    padding: 20px 0;
}

/* Testimonial Card */
.ets-testimonials-carousel .ets-testimonial-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid #e8edff;
    border-radius: 20px;
    padding: 40px 30px 30px;
    box-shadow: 
        0 4px 20px rgba(154, 159, 246, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ets-testimonials-carousel .ets-testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9a9ff6, #7a7ec3, #9a9ff6);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

.ets-testimonials-carousel .swiper-slide-active .ets-testimonial-card {
    transform: translateY(-5px);
    box-shadow: 
        0 8px 40px rgba(154, 159, 246, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Quote Icon */
.ets-testimonials-carousel .ets-quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f0f2ff;
    opacity: 0.7;
    transform: scale(1.2);
}

/* Content */
.ets-testimonials-carousel .ets-testimonial-content {
    flex: 1;
}

.ets-testimonials-carousel .ets-testimonial-text {
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    font-style: italic;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Smooth transitions for height changes */
.ets-testimonials-carousel .ets-testimonial-content,
.ets-testimonials-carousel .ets-testimonial-text {
    transition: min-height 0.3s ease;
}

/* Rating */
.ets-testimonials-carousel .ets-testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 20px 0 0;
}

.ets-testimonials-carousel .ets-star {
    font-size: 20px;
    transition: all 0.3s ease;
}

.ets-testimonials-carousel .ets-star-filled {
    color: #ffc107;
    text-shadow: 0 1px 2px rgba(255, 193, 7, 0.3);
}

.ets-testimonials-carousel .ets-star-empty {
    color: #e2e8f0;
}

/* Author Section */
.ets-testimonials-carousel .ets-testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #f1f5f9;
}

.ets-testimonials-carousel .ets-author-image {
    flex-shrink: 0;
}

.ets-testimonials-carousel .ets-author-image img {
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.ets-testimonials-carousel .ets-author-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9a9ff6, #7a7ec3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ets-testimonials-carousel .ets-author-info {
    text-align: left;
    flex: 1;
}

.ets-testimonials-carousel .ets-author-name {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.ets-testimonials-carousel .ets-testimonial-company {
    font-weight: 600;
}

.ets-testimonials-carousel .ets-testimonial-date {
    font-size: 13px;
    color: #718096;
}

/* View Review Button */
.ets-testimonials-carousel .ets-view-review {
    margin: auto;
}

.ets-testimonials-carousel .ets-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #9a9ff6, #7a7ec3);
    color: white !important;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px !important;
	line-height: inherit !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(154, 159, 246, 0.3) !important;
}

.ets-testimonials-carousel .ets-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(154, 159, 246, 0.4) !important;
    color: white;
}

.ets-testimonials-carousel .ets-btn svg {
    transition: transform 0.3s ease;
}

.ets-testimonials-carousel .ets-btn:hover svg {
    transform: translateX(3px);
}

/* Enhanced Navigation */
.ets-testimonials-carousel .ets-swiper-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.ets-testimonials-carousel .ets-swiper-button-prev,
.ets-testimonials-carousel .ets-swiper-button-next {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    color: #4a5568;
}

.ets-testimonials-carousel .ets-swiper-button-prev:hover,
.ets-testimonials-carousel .ets-swiper-button-next:hover {
    background: #9a9ff6;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(154, 159, 246, 0.3);
}

.ets-testimonials-carousel .ets-swiper-button-prev {
    margin-left: 5px;
}

.ets-testimonials-carousel .ets-swiper-button-next {
    margin-right: 5px;
}

/* Enhanced Pagination */
.ets-testimonials-carousel .ets-swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.ets-testimonials-carousel .ets-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e0;
    border-radius: 4px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.ets-testimonials-carousel .ets-swiper-pagination .swiper-pagination-bullet-active {
    width: 24px;
    background: #9a9ff6;
    opacity: 1;
}

/* Scroll Progress */
.ets-testimonials-carousel .ets-scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #9a9ff6, #7a7ec3);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ets-testimonials-filter .ets-filter-group.ets-sort-group { order: 2; }
    .ets-testimonials-filter .ets-filter-group.ets-rating-group {order: 3; }
    .ets-testimonials-filter .ets-filter-group.ets-search-group {order: 1; }

    .ets-testimonial-form {
        padding: .5rem 1rem 1rem;
    }

    .ets-testimonials-carousel {
        padding: 20px 0 40px;
    }
    
    .ets-testimonials-carousel .ets-testimonial-card {
        padding: 30px 20px 20px;
    }
    
    .ets-testimonials-carousel .ets-swiper-navigation {
        display: none;
    }
    
    .ets-testimonials-carousel .ets-swiper-button-prev,
    .ets-testimonials-carousel .ets-swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .ets-testimonials-carousel .ets-swiper-button-prev {
        margin-left: 10px;
    }
    
    .ets-testimonials-carousel .ets-swiper-button-next {
        margin-right: 10px;
    }

    .ets-testimonial-form input[type=file] {
        font-size: 14px;
    }

    .ets-testimonial-form input:not([type=file]), .ets-testimonial-form textarea {
        padding: 6px 10px;
        color: #565453;
        font-style: oblique;
    }


    .ets-testimonial-form label:not(.ets-star-shape) {
        font-size: 15px;
    }

    .ets-testimonial-form button {
        padding: 6px 16px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 576px) {
    .ets-top-testimonials .ets-top-testimonials-item {
        padding: 1rem;
    }
}

/* Loading Animation */
.ets-testimonials-carousel {
    opacity: 0;
	overflow: hidden;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.ets-testimonials-carousel .ets-testimonial-card:hover {
    transform: translateY(-8px);
}

/* Accessible star-rating fieldset reset (v3.1.0) */
fieldset.ets-star-rating {
    border: 0;
    margin: 0;
    padding: 0;
    min-inline-size: auto;
}
.ets-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Initial-letter fallback avatar (v3.2.0) */
.ets-initial-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 1.4em;
    line-height: 1;
    text-transform: uppercase;
}
/* Company line under reviewer name (v3.2.0) */
.ets-testimonial-company {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 2px;
}

/* v3.4.0 — required/optional markers */
.ets-required { color: #e02b2b; font-weight: 700; }
.ets-optional { color: #777; font-weight: 400; font-size: 0.85em; }
.ets-required-legend { font-size: 0.85em; color: #555; margin: 0 0 14px; }

/* v3.4.0 — review group (star rating + review text in one container, feature #7) */
.ets-review-group {
    border: 1px solid #e3e3e8;
    border-radius: 8px;
    padding: 16px 16px 4px;
    margin-bottom: 18px;
    background: #fff;
}
.ets-review-group .ets-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

/* v3.4.0 — submit "Sending…" state */
.ets-submit-button.ets-submitting {
    opacity: 0.85;
    cursor: progress;
}
.ets-submit-button .ets-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ets-btn-spin 0.6s linear infinite;
}
@keyframes ets-btn-spin {
    to { transform: rotate(360deg); }
}