/* Elementor Pricing Packages — frontend styles */

.epp-wrapper {
	width: 100%;
	box-sizing: border-box;
}
.epp-wrapper *,
.epp-wrapper *::before,
.epp-wrapper *::after {
	box-sizing: border-box;
}

.epp-header {
	margin-bottom: 28px;
}

.epp-eyebrow {
	text-transform: uppercase;
}

.epp-subtitle {
	margin-top: 4px;
}

.epp-columns {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	width: 100%;
}

.epp-cards {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	align-items: stretch;
}

.epp-card {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	transition: transform 0.2s ease;
}

.epp-card--highlight {
	z-index: 1;
}

.epp-badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	padding: 6px 16px;
	border-radius: 999px;
	text-transform: uppercase;
	line-height: 1;
}

.epp-pack-title {
	margin: 14px 0 4px;
	line-height: 1.2;
}

.epp-pack-subtitle {
	margin: 0 0 18px;
	line-height: 1.3;
}

.epp-price {
	margin: 0 0 4px;
	line-height: 1.15;
}

.epp-price .woocommerce-Price-amount {
	font-weight: inherit;
	font-size: inherit;
	color: inherit;
}

.epp-per-unit {
	margin: 0 0 22px;
}

.epp-select-btn {
	display: block;
	width: 100%;
	text-align: center;
	border-style: solid;
	border-width: 1px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	margin-top: auto;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.epp-select-btn:hover {
	opacity: 0.9;
	text-decoration: none;
}

.epp-select-btn:visited {
	text-decoration: none;
}

.epp-features {
	flex: 0 0 300px;
	max-width: 300px;
	min-width: 0;
}

.epp-features-list {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
}

.epp-features-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	line-height: 1.3;
}

.epp-check-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #3fc26b;
}

.epp-check-icon svg {
	fill: #ffffff;
	display: block;
}

.epp-tagline {
	font-family: 'Caveat', 'Segoe Script', cursive;
	text-align: right;
	margin-top: 22px;
	line-height: 1.2;
}

/* ==========================================================
 * Responsive
 * Breakpoints mirror Elementor's own device widths so the
 * layout switches in step with the editor's device preview.
 * Below 1024px we switch from flexbox to plain block stacking —
 * block-level children always fill 100% width on their own,
 * so there is no dependency on flex cross-axis sizing, and the
 * natural DOM order (cards, then features) is preserved.
 * ========================================================== */

/* Tablet and mobile: stop the row layout, stack in document order */
@media ( max-width: 1024px ) {
	.epp-columns {
		display: block;
		width: 100%;
	}
	.epp-cards {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		width: 100%;
	}
	.epp-features {
		display: block;
		width: 100%;
		max-width: 100%;
		flex: none;
		margin-top: 28px;
	}
	.epp-features-list {
		display: flex;
		flex-wrap: wrap;
		gap: 8px 24px;
	}
	.epp-features-list li {
		margin-bottom: 8px;
		flex: 1 1 45%;
	}
	.epp-tagline {
		text-align: left;
	}
}

/* Mobile: cards stack full-width, one per row, in original 1-2-3 order */
@media ( max-width: 767px ) {
	.epp-cards {
		display: block;
		width: 100%;
	}
	.epp-card {
		display: flex;
		width: 100%;
		max-width: 100%;
		margin: 0 0 20px;
	}
	.epp-card--highlight {
		transform: none;
	}
	.epp-badge {
		white-space: normal;
		max-width: 90%;
		text-align: center;
	}
	.epp-features-list {
		display: block;
	}
	.epp-features-list li {
		flex: none;
	}
}

/* Small phones: tighten spacing and scale text down */
@media ( max-width: 480px ) {
	.epp-card {
		padding: 22px 16px !important;
	}
	.epp-price {
		font-size: 28px !important;
	}
	.epp-pack-title {
		font-size: 19px !important;
	}
	.epp-select-btn {
		padding: 12px 16px !important;
	}
	.epp-tagline {
		text-align: left;
		font-size: 22px !important;
	}
}
