/*
 * Checklist and "What's included" cards (Service template), rendered by includes/service-parts.php
 * into the empty `ac-dyn-checklist` and `ac-dyn-included` Div Blocks.
 * Elementor prints a global class's CSS only when an element uses it, so `ac-check-item` is mirrored here
 * (live definition: label "ac-check-item" in custom/elementor-global-settings.json) with .elementor-prefixed selectors.
 * Breakpoint: mobile = 767px.
 */

/* Checklist */
.elementor .ac-checklist {
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 100%;
}

.elementor .ac-check-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	box-sizing: border-box;
	color: var(--c-slate);
	font-family: var(--f-primary);
	font-size: 16px;
	line-height: 26px;
}

.elementor .ac-check-item strong {
	font-size: 18px;
	font-weight: 700;
}

.elementor .ac-check-item__icon {
	display: block;
	flex: none;
	width: 29px;
	height: 29px;
}

.elementor .ac-check-item__body {
	min-width: 0;
}

/* Included cards */
.elementor .ac-included {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 21px;
	row-gap: 15px; /* Figma 15 for cards 1 and 2, 18 for card 3: 15 used */
	width: 100%;
}

.elementor .ac-included .ac-card--included {
	box-sizing: border-box;
	width: 100%;
	min-height: 337px;
	padding: 32px 23px 23px; /* Figma: plate at x23 / y32, bottom about 23 */
	border-radius: var(--radius-card);
	background-color: var(--c-white);
	color: var(--c-slate);
	font-family: var(--f-primary);
}

.elementor .ac-included .ac-card--included__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 85px;
	height: 85px;
	border-radius: var(--radius-pill); /* Figma: radius 40 on an 85 plate */
	background-color: var(--c-mist);
}

.elementor .ac-included .ac-card--included__icon img {
	display: block;
	width: 76px; /* Figma art is 68 to 86 px inside the 85 plate */
	height: 76px;
	object-fit: contain;
}

.elementor .ac-included .ac-card--included__title {
	margin: 36px 0 0; /* plate bottom to title top: 36 to 43 in Figma */
	/* no reserved second line (Figma card 3 has one title line and the row is 337 tall) */
	text-wrap: balance; /* desktop: Figma breaks "Bookkeeping / for non-profits" by hand */
	font-size: 26px;
	font-weight: 500;
	line-height: 34px;
	color: var(--c-slate);
}

.elementor .ac-included .ac-card--included__text {
	margin: 8px 0 0;
	font-size: 16px;
	line-height: 26px;
	color: var(--c-slate);
}

/* 2 columns between 768 and 1023: not designed in Figma */
@media (max-width: 1023px) {
	.elementor .ac-included {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.elementor .ac-checklist {
		gap: 14px;
	}

	.elementor .ac-check-item {
		gap: 12px;
	}

	.elementor .ac-included {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.elementor .ac-included .ac-card--included {
		display: grid;
		grid-template-columns: 64px minmax(0, 1fr);
		align-items: start; /* Figma top-aligns the title with the icon */
		column-gap: 16px;
		row-gap: 16px;
		min-height: 0;
		padding: 24px;
	}

	.elementor .ac-included .ac-card--included__icon {
		width: 64px;
		height: 64px;
	}

	.elementor .ac-included .ac-card--included__icon img {
		width: 46px;
		height: 46px;
	}

	.elementor .ac-included .ac-card--included__title {
		margin: 0;
		min-height: 0;
		text-wrap: wrap;
		font-weight: 500;
		font-size: 22px;
		line-height: 29px;
	}

	.elementor .ac-included .ac-card--included__text {
		grid-column: 1 / -1;
		margin: 0;
	}
}
