/* Pricing Table & Comparison Widget - Frontend CSS */

.pct-wrapper {
	--pct-grad-start: #7b2ff7;
	--pct-grad-end: #c13bd8;
	font-family: inherit;
}

/* ---------- Toggle (segmented pill) ---------- */
.pct-toggle {
	display: inline-flex;
	align-items: center;
	background: #eef0f3;
	border-radius: 999px;
	padding: 4px;
	margin-bottom: 18px;
}

.pct-toggle-btn {
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 16px;
	border-radius: 999px;
	color: #33384a;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.pct-toggle-btn-active {
	background: #161a2e;
	color: #ffffff;
}

/* ---------- Cards ---------- */
.pct-cards {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: center;
}

.pct-card {
	flex: 1 1 280px;
	max-width: 360px;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(20, 25, 50, 0.08);
	position: relative;
	transition: transform 0.25s ease;
}

.pct-card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 14px;
	overflow: hidden;
}

.pct-card-featured {
	z-index: 2;
}

.pct-badge {
	position: absolute;
	top: -12px;
	right: 24px;
	background: #ffd166;
	color: #1a1a1a;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
	white-space: nowrap;
	padding: 6px 16px;
	border-radius: 4px;
	transform: rotate(0deg);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
	z-index: 5;
}

.pct-card-header {
	background: #1c3faa;
	color: #ffffff;
	text-align: center;
	padding: 22px 20px;
}

.pct-card-featured .pct-card-header {
	background: linear-gradient(135deg, var(--pct-grad-start), var(--pct-grad-end));
}

.pct-plan-name {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
}

.pct-card-featured .pct-plan-name {
	font-size: 26px;
}

.pct-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 24px;
	background: #ffffff;
}

.pct-price {
	color: #161a2e;
	font-weight: 800;
	line-height: 1;
	margin: 6px 0 20px;
}

.pct-currency {
	font-size: 20px;
	vertical-align: top;
	position: relative;
	top: 6px;
	margin-right: 2px;
}

.pct-amount {
	font-size: 44px;
}

.pct-card-featured .pct-amount,
.pct-card-featured .pct-currency {
	color: var(--pct-grad-start);
}

.pct-period {
	font-size: 14px;
	font-weight: 500;
	color: #7c8194;
	margin-left: 2px;
}

.pct-features {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	width: 100%;
	text-align: left;
}

.pct-features li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #33384a;
	padding: 7px 0;
}

.pct-features .pct-icon {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}

.pct-features .pct-icon-check {
	color: #1fa34a;
}

.pct-features .pct-icon-cross {
	color: #e33d3d;
}

.pct-btn {
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	background: #1c3faa;
	color: #ffffff;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	border-radius: 8px;
	padding: 12px 20px;
	margin-top: auto;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.pct-btn:hover {
	opacity: 0.92;
	color: #ffffff;
}

.pct-card-featured .pct-btn {
	background: var(--pct-grad-start);
}

/* ---------- Comparison table ---------- */
.pct-compare {
	margin-top: 40px;
}

.pct-compare-title {
	text-align: center;
	font-size: 20px;
	font-weight: 800;
	color: #161a2e;
	margin-bottom: 16px;
}

.pct-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 22px rgba(20, 25, 50, 0.06);
}

.pct-table th,
.pct-table td {
	border: 1px solid #e5e7ef;
	padding: 14px 16px;
	font-size: 14px;
	text-align: center;
}

.pct-table thead th {
	background: #161a2e;
	color: #ffffff;
	font-weight: 700;
}

.pct-th-feature {
	background: #f4f5f9 !important;
}

.pct-th-highlight {
	background: #7b2ff7 !important;
}

.pct-td-highlight {
	background: rgba(123, 47, 247, 0.08);
	font-weight: 600;
}

.pct-row-label {
	text-align: left !important;
	font-weight: 700;
	color: #161a2e;
	background: #f9fafc;
}

.pct-table td span {
	vertical-align: middle;
}

.pct-table td .pct-icon {
	width: 16px;
	height: 16px;
	vertical-align: middle;
	margin-right: 6px;
}

.pct-table td .pct-icon-check {
	color: #1fa34a;
}

.pct-table td .pct-icon-cross {
	color: #e33d3d;
}

/* ---------- Bottom bar ---------- */
.pct-bottom-bar {
	margin-top: 24px;
	background: #eef2f9;
	border-radius: 10px;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.pct-bottom-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pct-bottom-text {
	font-size: 14px;
	font-weight: 600;
	color: #161a2e;
}

.pct-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
	flex: 0 0 auto;
}

.pct-switch-input {
	opacity: 0;
	width: 0;
	height: 0;
}

.pct-switch-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #c7cbd6;
	border-radius: 999px;
	transition: background 0.2s ease;
}

.pct-switch-slider::before {
	content: "";
	position: absolute;
	height: 16px;
	width: 16px;
	left: 3px;
	bottom: 3px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.pct-switch-input:checked + .pct-switch-slider {
	background: #12b886;
}

.pct-switch-input:checked + .pct-switch-slider::before {
	transform: translateX(18px);
}

.pct-bottom-btn {
	display: inline-block;
	background: #1c3faa;
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	padding: 10px 22px;
	border-radius: 8px;
	transition: opacity 0.2s ease;
}

.pct-bottom-btn:hover {
	opacity: 0.9;
	color: #ffffff;
}

/* ---------- Responsive ---------- */
@media ( max-width: 767px ) {
	.pct-card-featured {
		transform: none !important;
	}

	.pct-table {
		font-size: 12px;
	}

	.pct-table th,
	.pct-table td {
		padding: 10px 8px;
	}

	.pct-bottom-bar {
		flex-direction: column;
		align-items: flex-start;
	}
}
