/* CTA Banner — frontend + editor styles (ported from React cta-banner section) */

.cs-cta-banner {
	position: relative;
	overflow-x: clip;
	box-sizing: border-box;
	width: 100%;
}

.cs-cta-banner *,
.cs-cta-banner *::before,
.cs-cta-banner *::after {
	box-sizing: border-box;
}

.cs-cta-banner__container {
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem);
}

.cs-cta-banner.alignwide .cs-cta-banner__container,
.cs-cta-banner.alignfull .cs-cta-banner__container,
.cs-cta-banner.full-width .cs-cta-banner__container {
	max-width: none;
	width: 100%;
}

.cs-cta-banner__inner {
	background: var(--cs-cta-bg, #eaefec);
	border-radius: clamp(19px, 2vw, 28px);
	overflow: hidden;
}

.cs-cta-banner__top-row {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	min-height: clamp(280px, 30vw, 360px);
}

.cs-cta-banner--image-left .cs-cta-banner__top-row {
	flex-direction: row-reverse;
}

.cs-cta-banner__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(40px, 5vw, 64px);
	padding-right: clamp(24px, 3vw, 40px);
}

.cs-cta-banner__heading {
	color: #0e342c;
	margin: 0;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.cs-cta-banner__description {
	color: #314235;
	margin-top: clamp(12px, 1.5vw, 20px);
	margin-bottom: clamp(24px, 2.5vw, 32px);
	font-size: clamp(1rem, 1.25vw, 1.125rem);
	line-height: 1.5;
}

.cs-cta-banner__description p {
	margin: 0 0 0.75rem;
}

.cs-cta-banner__description p:last-child {
	margin-bottom: 0;
}

.cs-cta-banner__buttons {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	flex-wrap: wrap;
}

.cs-cta-banner__button-wrap {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
}

.cs-cta-banner__button {
	cursor: pointer;
	display: inline-flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 13px;
	text-decoration: none;
	border: none;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.cs-cta-banner__button--dark {
	background: #00ab88;
	color: #ffffff;
}

.cs-cta-banner__button--dark:hover {
	background: #009977;
	color: #ffffff;
}

.cs-cta-banner__button--light {
	background: #ffffff;
	color: #2f695d;
}

.cs-cta-banner__button--light:hover {
	background: #f5f5f5;
	color: #2f695d;
}

.cs-cta-banner__button--transparent {
	background: transparent;
	padding-left: 0;
	padding-right: 0;
	color: #1d6f5e;
}

.cs-cta-banner__button--translucent {
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(3.3px);
	color: #1d6f5e;
}

.cs-cta-banner__image-column {
	flex: 1;
	position: relative;
	min-height: clamp(240px, 28vw, 320px);
	overflow: hidden;
}

.cs-cta-banner__image-wrapper {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--cs-cta-image-padding, clamp(16px, 2vw, 24px));
}

.cs-cta-banner__image-wrapper img,
.cs-cta-banner__picture img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: var(--cs-cta-image-position, center bottom);
	display: block;
}

.cs-cta-banner--padding-noPadding .cs-cta-banner__image-wrapper {
	padding: 0;
}

.cs-cta-banner--padding-xs .cs-cta-banner__image-wrapper {
	padding: 8px;
}

.cs-cta-banner--padding-s .cs-cta-banner__image-wrapper {
	padding: clamp(12px, 1.5vw, 16px);
}

.cs-cta-banner--padding-m .cs-cta-banner__image-wrapper {
	padding: clamp(16px, 2vw, 24px);
}

.cs-cta-banner--padding-l .cs-cta-banner__image-wrapper {
	padding: clamp(24px, 3vw, 40px);
}

.cs-cta-banner--position-center .cs-cta-banner__image-wrapper img,
.cs-cta-banner--position-center .cs-cta-banner__picture img {
	object-position: center center;
}

.cs-cta-banner--position-top .cs-cta-banner__image-wrapper img,
.cs-cta-banner--position-top .cs-cta-banner__picture img {
	object-position: center top;
}

.cs-cta-banner--position-bottom .cs-cta-banner__image-wrapper img,
.cs-cta-banner--position-bottom .cs-cta-banner__picture img {
	object-position: center bottom;
}

.cs-cta-banner--position-left .cs-cta-banner__image-wrapper img,
.cs-cta-banner--position-left .cs-cta-banner__picture img {
	object-position: left center;
}

.cs-cta-banner--position-right .cs-cta-banner__image-wrapper img,
.cs-cta-banner--position-right .cs-cta-banner__picture img {
	object-position: right center;
}

.cs-cta-banner--position-topLeft .cs-cta-banner__image-wrapper img,
.cs-cta-banner--position-topLeft .cs-cta-banner__picture img {
	object-position: left top;
}

.cs-cta-banner--position-topRight .cs-cta-banner__image-wrapper img,
.cs-cta-banner--position-topRight .cs-cta-banner__picture img {
	object-position: right top;
}

.cs-cta-banner--position-bottomLeft .cs-cta-banner__image-wrapper img,
.cs-cta-banner--position-bottomLeft .cs-cta-banner__picture img {
	object-position: left bottom;
}

.cs-cta-banner--position-bottomRight .cs-cta-banner__image-wrapper img,
.cs-cta-banner--position-bottomRight .cs-cta-banner__picture img {
	object-position: right bottom;
}

.cs-cta-banner__features {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	margin-top: clamp(24px, 2.5vw, 32px);
}

.cs-cta-banner__features--full {
	border-top: 1px solid rgba(14, 52, 44, 0.08);
	padding: clamp(24px, 2.5vw, 32px) clamp(40px, 5vw, 64px);
	margin-top: 0;
}

.cs-cta-banner__features--content {
	padding-top: clamp(8px, 1vw, 12px);
	border-top: 1px solid rgba(14, 52, 44, 0.08);
}

.cs-cta-banner__feature {
	flex: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: clamp(12px, 1.25vw, 16px);
	padding: 0 clamp(16px, 1.5vw, 24px);
}

.cs-cta-banner__feature:first-child {
	padding-left: 0;
}

.cs-cta-banner__feature:last-child {
	padding-right: 0;
}

.cs-cta-banner__feature:not(:last-child) {
	border-right: 1px solid rgba(14, 52, 44, 0.12);
}

.cs-cta-banner__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(44px, 4vw, 52px);
	height: clamp(44px, 4vw, 52px);
	background: rgba(0, 171, 136, 0.12);
}

.cs-cta-banner__icon--circle {
	border-radius: 50%;
}

.cs-cta-banner__icon--roundedSquare {
	border-radius: 12px;
}

.cs-cta-banner__icon--none {
	background: transparent;
}

.cs-cta-banner__icon img {
	width: clamp(22px, 2vw, 28px);
	height: clamp(22px, 2vw, 28px);
	object-fit: contain;
}

.cs-cta-banner__feature-texts {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.cs-cta-banner__feature-heading {
	color: #0e342c;
	margin: 0;
	font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
	font-weight: 600;
	line-height: 1.25;
}

.cs-cta-banner__feature-description {
	color: #314235;
	margin: 0;
	font-size: clamp(0.8125rem, 1vw, 0.875rem);
	line-height: 1.5;
}

.cs-cta-banner__feature-description p {
	margin: 0;
}

/* Editor-only */
.cs-cta-banner__editor-media {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cs-cta-banner__editor-thumb {
	height: 56px;
	object-fit: cover;
	width: 80px;
	border-radius: 4px;
}

.cs-cta-banner__editor-repeatable {
	border: 1px solid #dcdcde;
	margin: 0 0 1rem;
	padding: 0.75rem;
	border-radius: 4px;
}

.cs-cta-banner__editor-icon {
	height: 3rem;
	object-fit: contain;
	width: 3rem;
}

@media (max-width: 767px) {
	.cs-cta-banner__inner {
		border-radius: 20px;
	}

	.cs-cta-banner__top-row {
		flex-direction: column;
		min-height: auto;
	}

	.cs-cta-banner--image-left .cs-cta-banner__top-row {
		flex-direction: column;
	}

	.cs-cta-banner__content {
		padding: 28px;
		order: 1;
	}

	.cs-cta-banner--image-left .cs-cta-banner__content {
		order: 2;
	}

	.cs-cta-banner__image-column {
		min-height: 220px;
		order: 2;
	}

	.cs-cta-banner--image-left .cs-cta-banner__image-column {
		order: 1;
	}

	.cs-cta-banner__heading {
		font-size: clamp(1.75rem, 8vw, 2.25rem);
	}

	.cs-cta-banner__button {
		padding: 14px 24px;
	}

	.cs-cta-banner__features {
		flex-direction: column;
		gap: 0;
	}

	.cs-cta-banner__features--full {
		padding: 24px 28px;
	}

	.cs-cta-banner__feature {
		padding: 0;
	}

	.cs-cta-banner__feature:not(:last-child) {
		border-right: none;
		border-bottom: 1px solid rgba(14, 52, 44, 0.12);
		padding-bottom: 20px;
		margin-bottom: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cs-cta-banner__button {
		transition: none;
	}
}
