/*
 * SEO "read more" block — used by the Elementor "SEO Read More" widget and the
 * single product page. Markup contract: templates/woocommerce/seo-readmore.php.
 */

.ueb-seo {
	--ueb-seo-bg: #ffffff;
	--ueb-seo-collapsed: 96px;
	--ueb-seo-expanded: 2000px;
	box-sizing: border-box;
	width: 100%;
	font-family: "Helvetica", Arial, sans-serif;
}

.ueb-seo *,
.ueb-seo *::before,
.ueb-seo *::after {
	box-sizing: border-box;
}

.ueb-seo__heading {
	margin: 0 0 14px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: #1b1c19;
}

.ueb-seo__body {
	position: relative;
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.ueb-seo:not(.is-expanded) .ueb-seo__body {
	max-height: var(--ueb-seo-collapsed);
}

/* Fade the cut-off text into the background while collapsed. */
.ueb-seo:not(.is-expanded):not(.ueb-seo--fits) .ueb-seo__body::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 52px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--ueb-seo-bg));
	pointer-events: none;
}

.ueb-seo.is-expanded .ueb-seo__body {
	max-height: var(--ueb-seo-expanded);
}

.ueb-seo__content {
	font-size: 16px;
	line-height: 1.65;
	color: #6b6b6b;
}

.ueb-seo__content p {
	margin: 0 0 1em;
}

.ueb-seo__content p:last-child {
	margin-bottom: 0;
}

.ueb-seo__content a {
	color: #3a124d;
	text-decoration: underline;
}

.ueb-seo__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 12px 24px;
	border: none;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 4px 18px rgba(26, 28, 25, 0.1);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	color: #1b1c19;
	cursor: pointer;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ueb-seo__toggle:hover {
	box-shadow: 0 6px 22px rgba(26, 28, 25, 0.16);
}

.ueb-seo__toggle:active {
	transform: translateY(1px);
}

.ueb-seo__toggle[hidden] {
	display: none;
}

.ueb-seo__toggle-icon {
	display: inline-flex;
}

.ueb-seo__toggle-icon svg {
	transition: transform 0.3s ease;
}

.ueb-seo.is-expanded .ueb-seo__toggle-icon svg {
	transform: rotate(180deg);
}
