/**
 * CTA Block
 */

:root {
	--knd-block-cta-background: transparent;
	--knd-block-cta-title-color: var(--knd-color-main);
	--knd-block-cta-text-color: var(--knd-color-headings);
	--knd-button-color: #fff;
	--knd-button-color-hover: #fff;
	--knd-button-background: var(--knd-color-main);
	--knd-button-background-hover: var(--knd-color-main-active);
}
.knd-block-cta {
	padding-top: 50px;
	padding-bottom: 50px;
	margin-top: 25px;
	margin-bottom: 25px;
	background-color: var(--knd-block-cta-background);

	&.has-background {
		&.alignfull {
			padding-top: 50px;
			padding-bottom: 50px;
			margin-top: 0;
			margin-bottom: 0;
		}
		&:not(.alignfull) {
			border-radius: var(--knd-image-border-radius);
		}
	}

	&__inner {
		display: flex;
		align-items: center;
		justify-content: center;
		margin-left: 15px;
		margin-right: 15px;

		@media (max-width: 767px) {
			flex-direction: column;
		}
	}

	&__content {
		flex: 1;
		min-height: 120px;

		&:first-child {
			text-align: center;
		}

		&:not(:first-child) {
			display: flex;
			flex-direction: column;
			align-items: flex-start;
			justify-content: space-between;
		}
	}

	&__figure {
		display: flex;
		justify-content: center;
		align-items: center;

		@media (min-width: 768px) {
			flex: 0 0 auto;
			width: 40%;
			margin-right: 40px;
		}

		@media (max-width: 767px) {
			margin-bottom: 30px;
		}

		img {
			display: block;
			margin: 0 auto;
			max-width: 100%;
			max-height: 350px;
			width: auto;
			height: auto;
		}
	}

	.knd-block &__title {
		color: var(--knd-block-cta-title-color);
		font-size: 14px;
		font-weight: 600;
		line-height: 1.3;
		text-transform: uppercase;
		margin-bottom: 15px;
	}

	&__text {
		margin-bottom: 30px;
		margin-left: auto;
		margin-right: auto;
		padding: 0;
		max-width: 700px;

		.knd-block & {
			margin-top: 0;
			color: var(--knd-block-cta-text-color);
			font-size: 28px;
			line-height: 1.3;
			font-weight: 800;
			font-family: var(--knd-font-family-headings);
		}

		.knd-block-cta__content:not(:first-child) & {
			margin-left: initial;
		}
	}

	&__action .knd-button {
		text-decoration: none;
		color: var(--knd-button-color);
		background-color: var(--knd-button-background);
		border-color: var(--knd-button-background);
		min-width: 180px;
		text-align: center;

		&:focus {
			color: var(--knd-button-color);
		}

		&:hover {
			text-decoration: none;
			color: var(--knd-button-color-hover);
			background-color: var(--knd-button-background-hover);
			border-color: var(--knd-button-background-hover);
		}
	}
}
