/* Hide overflow immediately (prevents flash) — Elementor listing description only */
.elementor-widget-motors-single-listing-description .post-content {
	max-height: 120px;
	overflow: hidden;
	position: relative;
}

.acfcu-seller-notes {
	position: relative;
}

/* Inner fills wrapper once JS has wrapped; uncollapsed = full height */
.acfcu-seller-notes .acfcu-seller-notes-content {
	max-height: none;
}

/* Controlled collapse AFTER JS wraps */
.acfcu-seller-notes.collapsed .acfcu-seller-notes-content {
	max-height: 140px;
	overflow: hidden;
}

.acfcu-seller-notes-content {
	transition: max-height 0.3s ease;
	will-change: max-height;
}

.acfcu-seller-notes.collapsed::after {
	content: "";
	position: absolute;
	bottom: 25px;
	left: 0;
	right: 0;
	height: 40px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}

.acfcu-seller-toggle {
	display: inline-block;
	font-weight: 700;
	color: #0073aa;
	cursor: pointer;
	margin-top: 5px;
}

.acfcu-seller-toggle:hover {
	color: #005177;
	text-decoration: underline;
}

/* After init, allow wrapper + toggle to layout (overrides pre-JS clamp) */
.elementor-widget-motors-single-listing-description .post-content.acfcu-init {
	max-height: none;
	overflow: visible;
}
