/**
 * Pricing Table Styles
 */

.stbs-pricing-table-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* Billing Toggle */
.stbs-billing-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 48px;
}

.stbs-toggle-label {
	font-size: 16px;
	font-weight: 500;
	color: #374151;
	display: flex;
	align-items: center;
	gap: 8px;
}

.stbs-discount-badge {
	display: inline-block;
	padding: 4px 8px;
	background-color: #10b981;
	color: white;
	font-size: 12px;
	font-weight: 600;
	border-radius: 12px;
}

/* Toggle Switch */
.stbs-toggle-switch {
	position: relative;
	display: inline-block;
	width: 52px;
	height: 28px;
	cursor: pointer;
}

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

.stbs-toggle-slider {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #d1d5db;
	border-radius: 28px;
	transition: 0.3s;
}

.stbs-toggle-slider:before {
	content: "";
	position: absolute;
	height: 20px;
	width: 20px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	border-radius: 50%;
	transition: 0.3s;
}

.stbs-toggle-switch input:checked+.stbs-toggle-slider {
	background-color: #3b82f6;
}

.stbs-toggle-switch input:checked+.stbs-toggle-slider:before {
	transform: translateX(24px);
}

/* Pricing Cards Container */
.stbs-pricing-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 32px;
	align-items: stretch;
}

/* Individual Pricing Card */
.stbs-pricing-card {
	background: white;
	border: 2px solid #e5e7eb;
	border-radius: 16px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: all 0.3s ease;
}

.stbs-pricing-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	border-color: #3b82f6;
}

/* Featured Card */
.stbs-pricing-card.stbs-featured {
	border-color: #3b82f6;
	border-width: 3px;
	box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.stbs-pricing-card.stbs-featured:hover {
	box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
}

.stbs-featured-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: white;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Card Header */
.stbs-card-header {
	text-align: center;
	margin-bottom: 24px;
	min-height: 140px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.stbs-tier-name {
	font-size: 24px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 24px 0;
}

.stbs-price-container {
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 8px;
}

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

.stbs-currency {
	font-size: 24px;
	font-weight: 600;
	color: #374151;
}

.stbs-amount {
	font-size: 48px;
	font-weight: 800;
	color: #111827;
	line-height: 1;
	transition: color 0.3s ease;
}

.stbs-price-red .stbs-amount,
.stbs-price-red .stbs-currency {
	color: #111827;
	/* Revert to default or just remove if not needed */
}

.stbs-original-price-container {
	margin-top: 4px;
	margin-bottom: 8px;
	height: 24px;
}

.stbs-original-price {
	font-size: 18px;
	color: #e53e3e;
	text-decoration: line-through;
	font-weight: 500;
}

.stbs-period {
	font-size: 16px;
	color: #6b7280;
	font-weight: 500;
}

.stbs-tax-note {
	display: block;
	width: 100%;
	font-size: 13px;
	color: #9ca3af;
	font-weight: 400;
	margin-top: 2px;
	text-align: center;
}

.stbs-campaign-note {
	text-align: center;
	font-size: 13px;
	color: #9ca3af;
	font-weight: 400;
	letter-spacing: 0.3px;
	margin: -28px 0 36px 0;
}

.stbs-yearly-note {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
}

/* Card Body */
.stbs-card-body {
	flex: 1;
	margin-bottom: 32px;
}

.stbs-features-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.stbs-feature-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	font-size: 15px;
	color: #374151;
	line-height: 1.5;
}

.stbs-check-icon {
	flex-shrink: 0;
	margin-top: 2px;
	color: #10b981;
}

/* Card Footer */
.stbs-card-footer {
	text-align: center;
}

.stbs-cta-button {
	width: 100%;
	padding: 14px 28px;
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.stbs-cta-button:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.stbs-cta-button:active:not(:disabled) {
	transform: translateY(0);
}

.stbs-cta-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.stbs-cta-button.stbs-loading {
	background: #9ca3af;
}

/* Featured card CTA */
.stbs-pricing-card.stbs-featured .stbs-cta-button {
	background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.stbs-pricing-card.stbs-featured .stbs-cta-button:hover:not(:disabled) {
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Current plan state */
.stbs-current-plan .stbs-cta-button {
	background: #6b7280;
	cursor: default;
	opacity: 1;
}

.stbs-current-plan .stbs-cta-button:hover {
	transform: none;
	box-shadow: none;
}

/* Blocked tier state (downgrade) */
.stbs-tier-blocked .stbs-cta-button {
	background: #d1d5db;
	color: #9ca3af;
	cursor: not-allowed;
	opacity: 1;
}

.stbs-tier-blocked .stbs-cta-button:hover {
	transform: none;
	box-shadow: none;
}

/* Page Header */
.stbs-page-header {
	text-align: center;
	margin-bottom: 40px;
}

.stbs-page-title {
	font-size: 36px;
	font-weight: 800;
	color: #1e3a5f;
	margin: 0 0 12px 0;
}

.stbs-page-subtitle {
	font-size: 17px;
	color: #6b7280;
	margin: 0 0 24px 0;
}

/* Skip / Just Browsing */
.stbs-skip-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	color: #1e3a5f;
	text-decoration: none;
	background: #f0f4f8;
	border: none;
	border-radius: 50px;
	transition: all 0.25s ease;
}

.stbs-skip-link:hover {
	color: white;
	background: #1e3a5f;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(30, 58, 95, 0.3);
}

.stbs-skip-arrow {
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.stbs-skip-link:hover .stbs-skip-arrow {
	transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
	.stbs-page-title {
		font-size: 26px;
	}

	.stbs-pricing-cards {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.stbs-pricing-card {
		padding: 24px;
	}

	.stbs-amount {
		font-size: 36px;
	}

	.stbs-tier-name {
		font-size: 20px;
	}

	.stbs-billing-toggle {
		flex-wrap: wrap;
		gap: 12px;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.stbs-pricing-cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}

	.stbs-pricing-card {
		padding: 28px;
	}
}

/* Print Styles */
@media print {
	.stbs-billing-toggle {
		display: none;
	}

	.stbs-pricing-card {
		break-inside: avoid;
		border: 1px solid #000;
	}

	.stbs-cta-button {
		display: none;
	}
}