/*
 * End-of-article CTA on blog posts: a left-aligned blush card with a question and a
 * dark "Hubungi Kami untuk Maklon Anda" pill → WhatsApp (template-parts/single/01-article.php).
 *
 * Loaded only on single posts (see cedefindo_assets() in functions.php).
 * Plain CSS rather than utilities because the hover moves a child (the arrow).
 */

.cdf-cta-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
	width: fit-content;
	max-width: 100%;
	padding: 1.75rem 2rem;
	background: #f7edeb;
	border-left: 4px solid #e8967d;
	border-radius: 1.25rem;
}
.cdf-cta-card__title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; color: #0e1a2b; text-wrap: balance; }

.cdf-cta {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	max-width: 100%;
	padding: .45rem .45rem .45rem 1.5rem;
	font: 600 15px/1.25 Poppins, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	letter-spacing: .2px;
	text-align: left;
	text-decoration: none;
	color: #f2f4f7;
	background: #173f35;
	border-radius: 999px;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}
.cdf-cta__label { text-wrap: balance; }
.cdf-cta__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: #e8967d;
	color: #0e1a2b;
	font-size: 18px;
	transition: transform .25s ease;
}
.cdf-cta:hover { box-shadow: 0 10px 22px -10px rgba(23, 63, 53, .7); }
.cdf-cta:hover .cdf-cta__icon { transform: translateX(4px); }
.cdf-cta:focus-visible { outline: 3px solid #e8967d; outline-offset: 3px; }
.cdf-cta:active { transform: translateY(1px); }

@media (max-width: 480px) {
	.cdf-cta-card { padding: 1.25rem; }
	.cdf-cta-card__title { font-size: 18px; }
	.cdf-cta { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.cdf-cta, .cdf-cta__icon { transition: none; }
}
