.wp-block-heading {
	&.is-style-green-line,
	&.is-style-beige-line,
	&.is-style-cream-line {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
		align-items: center;
		gap: var(--wp--preset--spacing--20);

		&:after {
			content: '';
			border-top-width: 1px;
			border-top-style: solid;
			flex: 1 0 20px;
		}

		&.has-text-align-center,
		&.has-text-align-right {
			&:before {
				content: '';
				border-top-width: 1px;
				border-top-style: solid;
				flex: 1 0 20px;
			}
		}

		&.has-text-align-center {
			justify-content: center;
		}

		&.has-text-align-right {
			justify-content: flex-end;

			&:after {
				display: none
			}
		}
	}

	&.is-style-green-line {
		&:before,
		&:after {
			border-top-color: var(--wp--preset--color--primary);
		}
	}

	&.is-style-beige-line {
		&:before,
		&:after {
			border-top-color: var(--wp--preset--color--tertiary);
		}
	}

	&.is-style-cream-line {
		&:before,
		&:after {
			border-top-color: var(--wp--preset--color--quaternary);
		}
	}
}
