.mp-seo-text {
	--mp-seo-preview-height: 140px;
	max-width: 1350px;
	margin: 0 auto;
	padding: 0 40px 40px;
	color: var(--color-text, #4c4c4c);
	font-family: Montserrat, sans-serif;
}

.mp-seo-text__content {
	position: relative;
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.mp-seo-text.is-collapsed .mp-seo-text__content {
	max-height: var(--mp-seo-preview-height);
}

.mp-seo-text.is-collapsed .mp-seo-text__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 56px;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(250, 250, 252, 0), var(--color-background, #fafafc) 90%);
}

.mp-section--muted .mp-seo-text.is-collapsed .mp-seo-text__content::after,
.mp-seo-text.mp-seo-text--on-muted.is-collapsed .mp-seo-text__content::after {
	background: linear-gradient(180deg, rgba(250, 250, 250, 0), rgba(250, 250, 250, 0.95) 90%);
}

.mp-seo-text:not(.is-collapsed) .mp-seo-text__content {
	max-height: none;
}

.mp-seo-text:not(.is-collapsed) .mp-seo-text__content::after {
	display: none;
}

.mp-seo-text__content p {
	margin: 0 0 1em;
	line-height: 1.7;
	font-size: 0.95rem;
	color: var(--color-muted, #87949d);
}

.mp-seo-text__content p:last-child {
	margin-bottom: 0;
}

.mp-seo-text__toggle {
	display: inline-flex;
	align-items: center;
	margin-top: 12px;
	padding: 10px 22px;
	border: 2px solid var(--color-primary, #e0197e);
	border-radius: 24px;
	background: transparent;
	color: var(--color-primary, #e0197e);
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.mp-seo-text__toggle:hover,
.mp-seo-text__toggle:focus-visible {
	background: var(--color-primary, #e0197e);
	color: #fff;
	outline: none;
}

.mp-seo-text--editor .mp-seo-text__content {
	max-height: none !important;
	overflow: visible;
}

.mp-seo-text--editor .mp-seo-text__content::after {
	display: none !important;
}

.mp-seo-text__hint {
	margin: 10px 0 0;
	font-size: 12px;
	color: #87949d;
}

@media only screen and (max-width: 767px) {
	.mp-seo-text {
		padding-left: 20px;
		padding-right: 20px;
	}
}
