/* ==========================================================
   Custom Pricing Table Widget — Styles
   Matches: 3-tier pricing card layout with elevated premium tier
   ========================================================== */

.cptw-wrapper {
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Heading ---------- */
.cptw-heading {
	text-align: center;
	margin-bottom: 56px;
}

.cptw-heading-title {
	font-size: 40px;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0 0 12px;
	letter-spacing: -0.5px;
}

.cptw-heading-subtitle {
	font-size: 17px;
	color: #6b7280;
	margin: 0;
}

/* ---------- Grid ---------- */
.cptw-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: center;
	gap: 24px;
}

@media (max-width: 900px) {
	.cptw-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Card (base / standard & wholesale) ---------- */
.cptw-card {
	position: relative;
	background-color: #f4f5fa;
	border-radius: 24px;
	padding: 40px 32px;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

.cptw-card-header {
	margin-bottom: 24px;
}

.cptw-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 8px;
}

.cptw-subtitle {
	font-size: 14px;
	color: #6b7280;
	margin: 0 0 20px;
	line-height: 1.5;
}

.cptw-price {
	font-size: 26px;
	font-weight: 800;
	color: #173a68;
	margin: 0;
	line-height: 1.25;
}

/* ---------- Features list ---------- */
.cptw-features {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	flex-grow: 1;
}

.cptw-features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 16px;
	font-size: 14px;
	line-height: 1.5;
}

.cptw-features li:last-child {
	margin-bottom: 0;
}

.cptw-feature-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: #173a68;
}

.cptw-feature-icon svg {
	display: block;
}

.cptw-feature-text {
	color: #374151;
}

/* ---------- Footer / Buttons ---------- */
.cptw-card-footer {
	margin-top: auto;
}

.cptw-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 14px 20px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	box-sizing: border-box;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.cptw-btn:hover {
	opacity: 0.88;
	transform: translateY(-1px);
}

.cptw-btn-outline {
	background-color: #ffffff;
	color: #1a1a1a;
	border: 1px solid #d1d5db;
}

.cptw-btn-premium {
	background-color: #c8283f;
	color: #ffffff;
	border: none;
}

/* ---------- Premium / Highlighted Card ---------- */
.cptw-premium {
	background-color: #0e1e3d;
	padding: 48px 36px 40px;
	box-shadow: 0 25px 50px -12px rgba(14, 30, 61, 0.45);
	transform: scale(1.06);
	z-index: 2;
}

.cptw-premium .cptw-title {
	color: #ffffff;
}

.cptw-premium .cptw-subtitle {
	color: #7fa8e0;
}

.cptw-premium .cptw-price {
	color: #ffffff;
	font-size: 30px;
}

.cptw-premium .cptw-feature-text {
	color: #e5e9f0;
	font-weight: 600;
}

.cptw-premium .cptw-feature-icon {
	color: #ffffff;
}

@media (max-width: 900px) {
	.cptw-premium {
		transform: none;
		order: -1;
	}
}

/* ---------- Badge ---------- */
.cptw-badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #c8283f;
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	padding: 6px 18px;
	border-radius: 999px;
	text-transform: uppercase;
	white-space: nowrap;
}
