.ecf-comment-form-wrap {
	width: 100%;
	max-width: 100%;
}

.ecf-form-title {
	margin: 0 0 20px;
}

/* Fields grid - width per field is controlled from Elementor Style tab
   (responsive, per device). Using a padding + negative-margin gutter
   technique instead of `gap` so that percentage widths (e.g. 33.33% x 3)
   fit exactly in one row without the gutter pushing the 3rd item to wrap. */
.ecf-comment-form .ecf-fields-grid {
	display: flex;
	flex-wrap: wrap;
	margin-left: -10px;
	margin-right: -10px;
}

.ecf-comment-form .ecf-fields-grid .ecf-field {
	flex: 1 1 33.33%;
	max-width: 33.33%;
	padding-left: 10px;
	padding-right: 10px;
	margin-bottom: 18px;
	min-width: 200px;
	box-sizing: border-box;
}

.ecf-comment-form .ecf-field-full {
	flex: 1 1 100%;
	max-width: 100%;
	margin-bottom: 18px;
	box-sizing: border-box;
}

.ecf-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
}

.ecf-required {
	color: #e53e3e;
}

.ecf-field input[type="text"],
.ecf-field input[type="email"],
.ecf-field input[type="url"],
.ecf-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
	font-family: inherit;
}

.ecf-field textarea {
	resize: vertical;
}

.ecf-hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
}

.ecf-star-rating {
	display: flex;
	gap: 4px;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding-top: 4px;
}

.ecf-star {
	color: #d1d5db;
	transition: color 0.15s ease;
}

.ecf-star.hovered,
.ecf-star.active {
	color: #f5a623;
}

.ecf-submit-wrap {
	margin-top: 4px;
	margin-bottom: 0;
}

.ecf-submit-btn {
	background-color: #2563eb;
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 6px;
	font-size: 15px;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.ecf-submit-btn:hover {
	opacity: 0.9;
}

.ecf-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ecf-response {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}

.ecf-response.ecf-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.ecf-response.ecf-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Fallback stacking on small screens if a custom Elementor width
   wasn't explicitly set for a field. */
@media (max-width: 600px) {
	.ecf-comment-form .ecf-fields-grid .ecf-field {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

/* ---------- Comments List ---------- */
.ecf-comments-list-wrap {
	margin-bottom: 32px;
}

.ecf-comments-heading {
	margin: 0 0 16px;
}

.ecf-comments-count {
	font-weight: 400;
	opacity: 0.7;
}

.ecf-no-comments {
	opacity: 0.7;
	font-size: 14px;
}

.ecf-comments-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ecf-comment-item {
	padding: 18px 0;
	border-bottom: 1px solid #e5e7eb;
}

.ecf-comments-list > .ecf-comment-item:first-child {
	padding-top: 0;
}

.ecf-comment-row {
	display: flex;
	gap: 14px;
}

.ecf-comment-avatar img {
	border-radius: 50%;
	display: block;
}

.ecf-comment-body {
	flex: 1;
	min-width: 0;
}

.ecf-comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}

.ecf-comment-author {
	font-weight: 600;
}

.ecf-comment-author a {
	color: inherit;
	text-decoration: none;
}

.ecf-comment-company {
	font-size: 13px;
	opacity: 0.7;
}

.ecf-comment-date {
	font-size: 13px;
	opacity: 0.6;
}

.ecf-comment-rating {
	margin-bottom: 6px;
	font-size: 15px;
	line-height: 1;
}

.ecf-static-star {
	color: #d1d5db;
}

.ecf-static-star.is-filled {
	color: #f5a623;
}

.ecf-comment-content {
	font-size: 14px;
	line-height: 1.6;
}

.ecf-comment-content p {
	margin: 0 0 8px;
}

.ecf-comment-content p:last-child {
	margin-bottom: 0;
}

/* ---------- Replies ---------- */
.ecf-reply-link {
	background: none;
	border: none;
	padding: 0;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #2563eb;
	cursor: pointer;
}

.ecf-reply-link:hover {
	text-decoration: underline;
}

.ecf-reply-form-slot:empty {
	display: none;
}

.ecf-reply-form-slot .ecf-reply-form {
	margin-top: 14px;
	padding: 14px;
	background: rgba(0, 0, 0, 0.02);
	border-radius: 6px;
}

.ecf-reply-to-label {
	font-size: 13px;
	opacity: 0.7;
	margin: 0 0 10px;
}

.ecf-reply-form .ecf-field {
	margin-bottom: 12px;
}

.ecf-reply-cancel-btn {
	background: none;
	border: none;
	padding: 0;
	margin-left: 14px;
	font-size: 14px;
	color: inherit;
	opacity: 0.65;
	cursor: pointer;
	text-decoration: underline;
}

.ecf-comment-replies {
	list-style: none;
	margin: 14px 0 0 var(--ecf-reply-indent, 40px);
	padding: 0;
}

.ecf-comment-replies .ecf-comment-item {
	border-bottom: none;
	padding: 14px 0 0;
	border-top: 1px solid #e5e7eb;
}

.ecf-comment-replies .ecf-comment-item:first-child {
	border-top: none;
	padding-top: 0;
}
