/* CreativeKatta - App CTA Banner Widget — base structural styles.
   Colors, spacing, and typography are controlled from the Elementor
   Style tab; this file only handles layout structure and the
   decorative pattern mechanism so the widget works responsively
   out of the box. */

.ck-cta-wrap {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
}

.ck-cta-wrap * {
	box-sizing: border-box;
}

/* Decorative geometric pattern, tinted via the "color" property so the
   Elementor color control can recolor it (uses a CSS mask, not an <img>). */
.ck-cta-pattern {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-color: currentColor;
	-webkit-mask-repeat: repeat;
	mask-repeat: repeat;
	-webkit-mask-size: 90px 90px;
	mask-size: 90px 90px;
	-webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23000' stroke-width='4'%3E%3Crect x='10' y='10' width='30' height='30'/%3E%3Crect x='50' y='50' width='30' height='30'/%3E%3Cpath d='M10 50h20v20h-10v-10h-10z'/%3E%3Cpath d='M50 10h20v20h-10v-10h-10z'/%3E%3C/g%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23000' stroke-width='4'%3E%3Crect x='10' y='10' width='30' height='30'/%3E%3Crect x='50' y='50' width='30' height='30'/%3E%3Cpath d='M10 50h20v20h-10v-10h-10z'/%3E%3Cpath d='M50 10h20v20h-10v-10h-10z'/%3E%3C/g%3E%3C/svg%3E");
	z-index: 0;
}

.ck-cta-content,
.ck-cta-media {
	position: relative;
	z-index: 1;
}

.ck-cta-content {
	flex: 0 0 50%;
	max-width: 50%;
	min-width: 0;
}

.ck-cta-heading {
	margin: 0;
}

.ck-cta-subheading {
	margin: 0;
}

.ck-cta-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.ck-cta-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	line-height: 1.1;
}

.ck-cta-badge-icon {
	display: inline-flex;
	flex: 0 0 auto;
}

.ck-cta-badge-text {
	display: flex;
	flex-direction: column;
}

.ck-cta-badge-text .ck-top {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.ck-cta-badge-text .ck-bottom {
	display: block;
	font-weight: 700;
	line-height: 1.2;
}

.ck-cta-media {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.ck-cta-media img {
	display: block;
	height: auto;
}

.ck-cta-media.ck-float img {
	animation: ck-cta-float 4s ease-in-out infinite;
}

@keyframes ck-cta-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}

/* Tablet */
@media (max-width: 1024px) {
	.ck-cta-wrap {
		gap: 32px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.ck-cta-wrap {
		flex-direction: column;
		text-align: center;
	}

	.ck-cta-content,
	.ck-cta-media {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.ck-cta-badges {
		justify-content: center;
	}

	.ck-cta-media {
		margin-top: 24px;
	}
}
