.ert-widget {
	position: relative;
}

/* ---------- Header ---------- */
.ert-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}


.ert-arrows {
	display: flex;
	gap: 10px;
	flex: 0 0 auto;
	margin-top: 4px;
}

.elementor .ert-arrow.efps-arrow-prev, .elementor .ert-arrow.efps-arrow-next {
	margin: 0;
}


/* ---------- Track ---------- */
.ert-track-wrap {
	overflow: hidden;
}

.ert-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
	padding: 4px 0px 6px;
}

.ert-track::-webkit-scrollbar {
	display: none;
}

/* ---------- Card ---------- */
.ert-card {
	position: relative;
	flex: 0 0 calc((100% - (var(--ert-visible, 2) - 1) * 24px) / var(--ert-visible, 2));
	scroll-snap-align: start;
	background: #ffffff;
	border: 3px solid #c9a25c;
	border-radius: 20px;
	padding: 20px 22px 40px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	overflow: hidden;
}

.ert-card-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ert-avatar {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #a5271f;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	overflow: hidden;
}

.ert-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ert-name-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ert-name {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ert-meta {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-family:"Lato", Sans-serif;
}

.ert-meta-sep {
	opacity: 0.5;
}

.ert-star {
	color: #e0a721;
	flex: 0 0 auto;
}

.ert-platform {
	margin-left: auto;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}

.ert-platform-word {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.ert-platform-word .ert-g0 { color: #4285F4; }
.ert-platform-word .ert-g1 { color: #EA4335; }
.ert-platform-word .ert-g2 { color: #FBBC05; }
.ert-platform-word .ert-g3 { color: #34A853; }

.ert-platform-stars {
	display: flex;
	gap: 1px;
}
.ert-platform-stars .ert-star {
	width: 9px;
	height: 9px;
}

.ert-review-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	position: relative;
	z-index: 1;
	max-width:70%;
}

.ert-quote {
	position: absolute;
	right: 20px;
	bottom: 16px;
	color: #e5e0d4;
	z-index: 0;
}

/* ---------- Summary ---------- */
.ert-summary {
	margin-top: 10px;
	text-align: right;
	font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ert-card {
		flex-basis: calc((100% - (var(--ert-visible-tablet, 1) - 1) * 24px) / var(--ert-visible-tablet, 1));
	}
}

@media (max-width: 640px) {
	.ert-card {
		flex-basis: calc((100% - (var(--ert-visible-mobile, 1) - 1) * 16px) / var(--ert-visible-mobile, 1));
		gap:12px;
		padding:15px;
	}
	.ert-track {
		gap: 16px;
	}
	
	.ert-arrows {
        align-self: center;
    }
	.ert-header-left {
    text-align: center;
}
	.ert-header {
        flex-direction: column;
        gap: 0;
        margin-bottom: 10px;
    }
}
