/* ============================================================
   Webtend Service Builder for Elementor — Frontend CSS v1.0.0
   ============================================================ */

/* ── Grid ────────────────────────────────────────────────── */
.wtsb-pricing-wrapper {
	width: 100%;
}

.wtsb-plans-grid {
	display: grid;
	gap: 24px;
	align-items: start;
}

@media (max-width: 1024px) {
	.wtsb-plans-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 640px) {
	.wtsb-plans-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ── Card ────────────────────────────────────────────────── */
.wtsb-plan-card {
	position: relative;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 40px 36px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	overflow: hidden;
}

.wtsb-plan-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Featured card */
.wtsb-plan-card.wtsb-featured {
	background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
	border-color: transparent;
	box-shadow: 0 20px 60px rgba(59, 130, 246, 0.35);
}

.wtsb-plan-card.wtsb-featured:hover {
	transform: translateY(-6px);
	box-shadow: 0 28px 72px rgba(59, 130, 246, 0.45);
}

/* ── Badge ───────────────────────────────────────────────── */
.wtsb-plan-badge {
	display: inline-block;
	position: absolute;
	top: 20px;
	right: 20px;
	background: #f59e0b;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 4px 12px;
	border-radius: 50px;
	text-transform: uppercase;
}

/* ── Icon ────────────────────────────────────────────────── */
.wtsb-plan-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #eff6ff;
	margin-bottom: 20px;
	flex-shrink: 0;
}

.wtsb-plan-icon i {
	font-size: 32px;
	color: #3b82f6;
}

.wtsb-plan-icon svg {
	width: 32px;
	height: 32px;
	fill: #3b82f6;
}

.wtsb-plan-card.wtsb-featured .wtsb-plan-icon {
	background-color: rgba(255, 255, 255, 0.2);
}

.wtsb-plan-card.wtsb-featured .wtsb-plan-icon i {
	color: #ffffff;
}

.wtsb-plan-card.wtsb-featured .wtsb-plan-icon svg {
	fill: #ffffff;
}

/* ── Title ───────────────────────────────────────────────── */
.wtsb-plan-title {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px;
	line-height: 1.3;
}

.wtsb-plan-card.wtsb-featured .wtsb-plan-title {
	color: #ffffff;
}

/* ── Subtitle ────────────────────────────────────────────── */
.wtsb-plan-subtitle {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 20px;
}

.wtsb-plan-card.wtsb-featured .wtsb-plan-subtitle {
	color: rgba(255, 255, 255, 0.75);
}

/* ── Price ───────────────────────────────────────────────── */
.wtsb-plan-price {
	margin-bottom: 20px;
}

.wtsb-plan-price-row {
	display: flex;
	align-items: baseline;
	gap: 2px;
}

.wtsb-plan-currency {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	align-self: flex-start;
	margin-top: 6px;
}

.wtsb-plan-price-amount {
	font-size: 52px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1;
}

.wtsb-plan-period {
	font-size: 14px;
	color: #94a3b8;
	margin-left: 4px;
}

.wtsb-plan-original-price {
	font-size: 13px;
	color: #94a3b8;
	margin-top: 4px;
}

.wtsb-plan-card.wtsb-featured .wtsb-plan-currency,
.wtsb-plan-card.wtsb-featured .wtsb-plan-price-amount {
	color: #ffffff;
}

.wtsb-plan-card.wtsb-featured .wtsb-plan-period,
.wtsb-plan-card.wtsb-featured .wtsb-plan-original-price {
	color: rgba(255, 255, 255, 0.65);
}

/* ── Description ─────────────────────────────────────────── */
.wtsb-plan-desc {
	font-size: 14px;
	color: #64748b;
	line-height: 1.6;
	margin: 0 0 20px;
}

.wtsb-plan-card.wtsb-featured .wtsb-plan-desc {
	color: rgba(255, 255, 255, 0.8);
}

/* ── Divider ─────────────────────────────────────────────── */
.wtsb-plan-divider {
	height: 1px;
	background: #f1f5f9;
	margin: 0 0 20px;
}

.wtsb-plan-card.wtsb-featured .wtsb-plan-divider {
	background: rgba(255, 255, 255, 0.2);
}

/* ── Features ────────────────────────────────────────────── */
.wtsb-plan-features {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
}

.wtsb-feature-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #374151;
	padding: 7px 0;
	border-bottom: 1px solid #f8fafc;
}

.wtsb-feature-item:last-child {
	border-bottom: none;
}

.wtsb-feature-item.wtsb-unavailable {
	color: #9ca3af;
}

.wtsb-plan-card.wtsb-featured .wtsb-feature-item {
	color: rgba(255, 255, 255, 0.9);
	border-bottom-color: rgba(255, 255, 255, 0.1);
}

.wtsb-plan-card.wtsb-featured .wtsb-feature-item.wtsb-unavailable {
	color: rgba(255, 255, 255, 0.4);
}

.wtsb-feature-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 18px;
}

.wtsb-feature-icon.wtsb-check i,
.wtsb-feature-icon.wtsb-check svg {
	color: #22c55e;
	fill: #22c55e;
}

.wtsb-feature-icon.wtsb-cross i,
.wtsb-feature-icon.wtsb-cross svg {
	color: #e5e7eb;
	fill: #e5e7eb;
}

/* ── CTA Button ──────────────────────────────────────────── */
.wtsb-plan-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 14px 28px;
	background: #3b82f6;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
	letter-spacing: 0.3px;
}

.wtsb-plan-btn:hover {
	background: #2563eb;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
	text-decoration: none;
}

.wtsb-plan-card.wtsb-featured .wtsb-plan-btn {
	background: #ffffff;
	color: #3b82f6;
}

.wtsb-plan-card.wtsb-featured .wtsb-plan-btn:hover {
	background: #f0f9ff;
	color: #1d4ed8;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ── Pro: Toggle (hidden in free — rendered by Pro add-on) ── */
.wtsb-toggle-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 32px;
}

.wtsb-toggle-label {
	font-size: 14px;
	font-weight: 500;
	color: #64748b;
	cursor: pointer;
}

.wtsb-toggle-label.active {
	color: #0f172a;
	font-weight: 600;
}

.wtsb-toggle-switch {
	position: relative;
	width: 44px;
	height: 24px;
}

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

.wtsb-toggle-track {
	position: absolute;
	inset: 0;
	background: #3b82f6;
	border-radius: 24px;
	cursor: pointer;
	transition: background 0.2s;
}

.wtsb-toggle-track::before {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	top: 3px;
	left: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
}

.wtsb-toggle-switch input:checked + .wtsb-toggle-track::before {
	transform: translateX(20px);
}

/* ── Pro: Save badge on toggle ───────────────────────────── */
.wtsb-save-badge {
	display: inline-block;
	background: #22c55e;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 9px;
	border-radius: 50px;
	margin-left: 4px;
	vertical-align: middle;
}
