.animation-text-hover {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.animation-text-hover__placeholder {
	margin: 0;
	color: var(--wp--preset--color--grey-500);
	font-style: italic;
}

.animation-text-hover__item {
	cursor: default;
}

.animation-text-hover__title {
	margin: 0;
	transition: color 0.25s ease;
	font-weight: 400;
	cursor: pointer;
	color: var(--wp--preset--color--grey-400);
}

.animation-text-hover__text {
	display: none;
	overflow: hidden;
	margin-top: 0;
	transition: opacity 0.25s ease, margin-top 0.25s ease;
}

.animation-text-hover__text > :first-child {
	margin-top: 0;
}

.animation-text-hover__text > :last-child {
	margin-bottom: 0;
}

.animation-text-hover__item.is-active .animation-text-hover__title,
.animation-text-hover__item:hover .animation-text-hover__title {
	color: var(--wp--preset--color--primary);
}

.animation-text-hover__item.is-active .animation-text-hover__text,
.animation-text-hover__item:hover .animation-text-hover__text {
	display: block;
	margin-top: 0.5rem;
}

.animation-text-hover:has(.animation-text-hover__item:hover) .animation-text-hover__item:not(:hover) .animation-text-hover__title {
	color: var(--wp--preset--color--grey-400);
}

.animation-text-hover:has(.animation-text-hover__item:hover) .animation-text-hover__item:not(:hover) .animation-text-hover__text {
	display: none;
	margin-top: 0;
}

.animation-text-hover--editor .animation-text-hover__title {
	color: var(--wp--preset--color--primary);
}

.animation-text-hover--editor .animation-text-hover__text {
	display: block;
	margin-top: 0.5rem;
}
