/* Toggle Pricing Table - Frontend Styles */

.tpt-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 16px;
	text-align: center;
	box-sizing: border-box;
}

.tpt-wrapper *,
.tpt-wrapper *::before,
.tpt-wrapper *::after {
	box-sizing: border-box;
}

.tpt-section-title {
	font-size: 30px;
	font-weight: 700;
	margin: 0 0 8px;
}

.tpt-section-subtitle {
	font-size: 16px;
	color: #6b7280;
	margin: 0 0 28px;
}

/* Toggle switch */
.tpt-toggle-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 36px;
	flex-wrap: wrap;
}

.tpt-toggle-label {
	font-size: 15px;
	font-weight: 600;
	color: #9ca3af;
	cursor: pointer;
	transition: color 0.2s ease;
}

.tpt-toggle-label.is-active {
	color: #111827;
}

.tpt-switch {
	position: relative;
	width: 52px;
	height: 28px;
	border-radius: 999px;
	border: none;
	background: var( --tpt-toggle-bg, #f1f1f1 );
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	transition: background-color 0.25s ease;
}

.tpt-switch-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.25 );
	transition: transform 0.25s ease;
}

.tpt-switch.is-yearly {
	background: var( --tpt-toggle-active, #25D366 );
}

.tpt-switch.is-yearly .tpt-switch-knob {
	transform: translateX( 24px );
}

.tpt-discount-badge {
	background: #fee2e2;
	color: #dc2626;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
}

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

.tpt-columns-1 { grid-template-columns: repeat( 1, 1fr ); }
.tpt-columns-2 { grid-template-columns: repeat( 2, 1fr ); }
.tpt-columns-3 { grid-template-columns: repeat( 3, 1fr ); }
.tpt-columns-4 { grid-template-columns: repeat( 4, 1fr ); }
.tpt-columns-5 { grid-template-columns: repeat( 5, 1fr ); }
.tpt-columns-6 { grid-template-columns: repeat( 6, 1fr ); }

@media ( max-width: 900px ) {
	.tpt-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

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

/* Card */
.tpt-card {
	position: relative;
	border: 1px solid #e5e5e5;
	border-radius: 16px;
	padding: 32px 24px;
	text-align: left;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tpt-card:hover {
	transform: translateY( -4px );
	box-shadow: 0 12px 28px rgba( 0, 0, 0, 0.08 );
}

.tpt-card-featured {
	border-width: 2px;
	border-color: var( --tpt-accent, #25D366 );
	box-shadow: 0 16px 32px rgba( 0, 0, 0, 0.10 );
	transform: scale( 1.04 );
	z-index: 1;
}

.tpt-card-featured:hover {
	transform: scale( 1.04 ) translateY( -4px );
}

.tpt-badge {
	position: absolute;
	top: -14px;
	right: 20px;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 999px;
	box-shadow: 0 3px 8px rgba( 0, 0, 0, 0.15 );
	white-space: nowrap;
}

.tpt-card-title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.tpt-card-subtitle {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 600;
	opacity: 0.7;
}

.tpt-price-block {
	margin-bottom: 18px;
}

.tpt-price-strike {
	font-size: 14px;
	text-decoration: line-through;
	opacity: 0.5;
	margin-bottom: 2px;
}

.tpt-price {
	display: flex;
	align-items: baseline;
	gap: 4px;
	flex-wrap: wrap;
}

.tpt-price-currency {
	font-size: 18px;
	font-weight: 700;
	color: var( --tpt-accent, #25D366 );
}

.tpt-price-amount {
	font-size: 36px;
	font-weight: 800;
	line-height: 1;
	color: var( --tpt-accent, #25D366 );
}

.tpt-price-period {
	font-size: 14px;
	opacity: 0.65;
}

.tpt-price-note {
	font-size: 12px;
	opacity: 0.6;
	margin-top: 4px;
}

.tpt-card-desc {
	font-size: 13px;
	opacity: 0.75;
	margin: 0 0 18px;
}

.tpt-button {
	display: block;
	text-align: center;
	background: var( --tpt-accent, #25D366 );
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	padding: 12px 20px;
	border-radius: 10px;
	text-decoration: none;
	margin-bottom: 22px;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.tpt-button:hover {
	opacity: 0.9;
	transform: translateY( -1px );
	color: #fff;
}

.tpt-feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tpt-feature-list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 1.4;
}

.tpt-feature-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	margin-top: 1px;
}

.tpt-feature-included .tpt-feature-icon {
	background: #eef2f0;
	color: var( --tpt-accent, #25D366 );
	border: 1px solid currentColor;
}

.tpt-feature-excluded {
	opacity: 0.45;
}

.tpt-feature-excluded .tpt-feature-text {
	text-decoration: line-through;
}

.tpt-feature-excluded .tpt-feature-icon {
	background: #f3f4f6;
	color: #9ca3af;
}

/* Countdown */
.tpt-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
	padding: 10px 12px;
	border: 1px solid #fecaca;
	border-radius: 10px;
	margin: -8px 0 20px;
	font-weight: 600;
}

.tpt-countdown-label {
	font-size: 12px;
	opacity: 0.9;
}

.tpt-countdown-timer {
	font-size: 20px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

.tpt-countdown-sep {
	margin: 0 1px;
	animation: tpt-countdown-blink 1s steps( 1 ) infinite;
}

@keyframes tpt-countdown-blink {
	50% { opacity: 0.25; }
}

.tpt-countdown.is-expired .tpt-countdown-timer,
.tpt-countdown.is-expired .tpt-countdown-sep {
	animation: none;
}
