.ptew-wrapper {
	--ptew-radius: 16px;
	font-family: inherit;
}

/* ---------- Toggle ---------- */
.ptew-toggle-row {
	display: flex;
	justify-content: center;
	margin-bottom: 32px;
}

.ptew-toggle {
	display: inline-flex;
	align-items: center;
	padding: 4px;
	border-radius: 999px;
	background-color: #eef0f5;
}

.ptew-toggle-option {
	appearance: none;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 8px 20px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: #4b5165;
	transition: background-color .2s ease, color .2s ease;
	white-space: nowrap;
}

.ptew-toggle-option.is-active {
	background-color: #2f6bff;
	color: #ffffff;
}

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

.ptew-card {
	position: relative;
	flex: 1 1 280px;
	max-width: 360px;
	display: flex;
	flex-direction: column;
	padding: 32px 28px;
	border-radius: var(--ptew-radius);
	background-color: var(--ptew-card-bg, #fff);
	border: 1px solid var(--ptew-card-border, #e6e8ef);
	color: var(--ptew-text-color, #3a3f4b);
	box-sizing: border-box;
	transition: transform .25s ease, box-shadow .25s ease;
}

.ptew-card.is-featured {
	border-width: 2px;
	transform: translateY(-8px);
	box-shadow: 0 20px 40px -12px rgba(47, 107, 255, .35);
	z-index: 1;
}

@media (min-width: 900px) {
	.ptew-card.is-featured {
		transform: translateY(-14px);
	}
}

/* ---------- Badge ---------- */
.ptew-badge {
	position: absolute;
	top: -14px;
	left: 28px;
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	letter-spacing: .02em;
}

/* ---------- Plan name / description ---------- */
.ptew-plan-name {
	margin: 8px 0 20px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ptew-name-color, #12141c);
}

.ptew-description {
	margin: 16px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ptew-desc-color, #6b7280);
}

/* ---------- Price ---------- */
.ptew-price {
	display: none;
	flex-direction: column;
	gap: 2px;
}

.ptew-wrapper:not(.is-annual) .ptew-price-monthly {
	display: flex;
}

.ptew-wrapper.is-annual .ptew-price-annual {
	display: flex;
}

.ptew-price-old {
	font-size: 14px;
	color: var(--ptew-desc-color, #9aa0ae);
	text-decoration: line-through;
}

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

.ptew-price-amount {
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	color: var(--ptew-price-color, #2f6bff);
}

.ptew-price-period {
	font-size: 14px;
	font-weight: 600;
	color: var(--ptew-desc-color, #6b7280);
}

.ptew-price-unit {
	font-size: 13px;
	color: var(--ptew-desc-color, #6b7280);
}

.ptew-price-note {
	font-size: 12px;
	font-style: italic;
	color: var(--ptew-desc-color, #6b7280);
	margin-top: 2px;
}

/* ---------- Button ---------- */
.ptew-button {
	display: block;
	text-align: center;
	margin: 24px 0 8px;
	padding: 12px 20px;
	border-radius: 10px;
	background-color: var(--ptew-btn-bg, #2f6bff);
	color: var(--ptew-btn-color, #fff);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: background-color .2s ease;
}

.ptew-button:hover,
.ptew-button:focus {
	background-color: var(--ptew-btn-bg-hover, #1f52d1);
	color: var(--ptew-btn-color, #fff);
}

/* ---------- Features ---------- */
.ptew-features-heading {
	margin-top: 24px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ptew-text-color, #3a3f4b);
}

.ptew-features {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ptew-feature {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--ptew-text-color, #3a3f4b);
}

.ptew-feature-bullet {
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--ptew-bullet-color, #2f6bff);
}

.ptew-feature-text {
	flex: 1 1 auto;
}

.ptew-feature-info {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 1px solid currentColor;
	font-size: 10px;
	font-style: italic;
	line-height: 13px;
	text-align: center;
	opacity: .55;
	cursor: help;
}

/* ---------- Footer ---------- */
.ptew-footer-text {
	margin: 32px 0 0;
	text-align: center;
	font-size: 13px;
	color: #8a90a2;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.ptew-cards {
		flex-direction: column;
		align-items: stretch;
	}

	.ptew-card,
	.ptew-card.is-featured {
		max-width: 100%;
		transform: none;
	}
}
