.ptm-pricing-table {
	--pricing-primary: #5227c7;
	--pricing-primary-dark: #421f9f;
	--pricing-border-color: #e5e0f5;
	--pricing-radius: 14px;
	--pricing-tab-radius: 6px;
	--pricing-text: #1f1b2e;
	--pricing-muted: #6b7280;
	--pricing-check: #22c55e;
	--pricing-font: inherit;

	padding: 32px 16px;
	border-radius: var( --pricing-radius );
	box-sizing: border-box;
	max-width: 100%;
	overflow-x: hidden;
	font-family: var( --pricing-font );
}

.ptm-pricing-table *,
.ptm-pricing-table *::before,
.ptm-pricing-table *::after {
	box-sizing: border-box;
}

/* Tabs: a pill container with only the active tab filled */
.ptm-tabs {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	background: #fff;
	border-radius: var( --pricing-tab-radius );
	padding: 6px;
	box-shadow: 0 4px 14px rgba( 31, 27, 46, .06 );
	margin: 0 auto 32px;
	max-width: 100%;
	flex-wrap: wrap;
}

.ptm-pricing-table > .ptm-tabs {
	display: flex;
	width: fit-content;
}

.ptm-tab-btn {
	background: transparent;
	border: none;
	color: var( --pricing-primary );
	padding: 10px 22px;
	border-radius: var( --pricing-tab-radius );
	font-size: 16px;
	font-weight: 400;
	cursor: pointer;
}

.ptm-tab-btn.is-active {
	background: var( --pricing-primary );
	color: #fff;
}

.ptm-tab-btn:focus-visible {
	outline: 2px solid var( --pricing-primary );
	outline-offset: 2px;
}

.ptm-panel[hidden] {
	display: none;
}

.ptm-plans-grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	column-gap: 24px;
	row-gap: 35px;
	margin: 0 auto;
}

.ptm-plan-card {
	background: #fff;
	border: 2px solid #e7e7e7;
	border-radius: var( --pricing-radius );
	text-align: center;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.ptm-plan-card.is-featured {
	border: 2px solid var( --pricing-primary );
	box-shadow: 0px 0px 10px 5px rgba( 112.875, 112.875, 112.875, 0.3 );
}

.ptm-plan-header {
	padding: 28px 24px 18px;
	border-bottom: 1px solid var( --pricing-border-color );
}

.ptm-plan-card.is-featured .ptm-plan-header {
	border-bottom: 2px solid #421f9f;
}

.ptm-plan-name {
	font-size: 30px;
	font-weight: 600;
	margin: 0;
	color: var( --pricing-text );
}

.ptm-plan-body {
	padding: 24px 24px 28px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.ptm-plan-price {
	font-size: 44px;
	font-weight: bold;
	color: var( --pricing-primary );
	line-height: 1;
}

.ptm-plan-billing {
	color: #475569;
	font-size: 18px;
	font-weight: bold;
	margin: 8px 0 8px;
}

.ptm-plan-features {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
}

.ptm-plan-features li {
	padding: 10px 0;
	border-top: 1px solid var( --pricing-border-color );
	font-size: 16px;
	font-weight: 400;
	color: var( --pricing-text );
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.ptm-plan-features li:first-child {
	border-top: none;
}

.ptm-plan-features li svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	fill: var( --pricing-primary );
	margin-top: 3px;
}

.ptm-plan-button,
.ptm-plan-button:hover,
.ptm-plan-button:focus,
.ptm-plan-button:visited,
.ptm-plan-button:active {
	display: block;
	width: 100%;
	background: #5227c7;
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	font-weight: 400;
	padding: 13px 24px;
	margin: 30px 0 30px 0;
	border-radius: 20px;
	text-align: center;
	cursor: pointer;
}

/* Combo Offer */
.ptm-combo-title {
	text-align: center;
	font-size: 35px;
	font-weight: 700;
	margin: 0 0 28px;
	color: var( --pricing-primary );
}

.ptm-combo-bundles {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 24px;
	margin: 0 auto;
	align-items: stretch;
}

.ptm-combo-box {
	background: #fff;
	border: 1px solid var( --pricing-border-color );
	border-radius: var( --pricing-radius );
	padding: 28px;
}

.ptm-combo-box--lifetime {
	border: 2px solid var( --pricing-primary );
	box-shadow: 0px 0px 10px 5px rgba( 112.875, 112.875, 112.875, 0.3 );
}

.ptm-combo-box-title {
	font-size: 35px;
	font-weight: 700;
	text-align: center;
	margin: 0 0 20px;
	color: var( --pricing-primary );
}

.ptm-combo-included {
	margin-bottom: 20px;
}

.ptm-combo-included-label {
	font-size: 20px;
	font-weight: normal;
	color: var( --pricing-muted );
	margin: 0 0 14px;
}

.ptm-combo-included-product {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}

.ptm-combo-included-product:last-child {
	margin-bottom: 0;
}

.ptm-combo-included-product-icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	border: 1px solid var( --pricing-border-color );
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ptm-combo-included-product-icon img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.ptm-combo-included-product-body {
	flex: 1 1 auto;
	min-width: 0;
}

.ptm-combo-included-product-name {
	font-size: 25px;
	font-weight: 700;
	color: #201c2d;
}

.ptm-combo-included-product-name span {
	display: block;
}

.ptm-combo-included-product-former {
	font-weight: 600;
	color: #201c2d;
	font-size: 13px;
}

.ptm-combo-included-product-desc {
	display: block;
	width: 100%;
	color: #201c2d;
	font-size: 13px;
	margin: 4px 0 0;
}

.ptm-combo-features {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.ptm-combo-features li {
	font-size: 16px;
	padding: 2px 0;
	color: var( --pricing-text );
	display: flex;
	align-items: center;
	gap: 8px;
}

.ptm-combo-features li::before {
	content: '\2713';
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	background: var( --pricing-check );
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

/* Freemius-integrated markup — visual styling only, never touches the
   classes/names/attributes the checkout JS relies on. */
.ptm-combo-box ul.bundle-plans-annual,
.ptm-combo-box ul.bundle-plans-life {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.ptm-combo-box ul.bundle-plans-annual li,
.ptm-combo-box ul.bundle-plans-life li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ptm-combo-box ul.bundle-plans-annual li {
	padding: 2px 0;
	font-size: 15px;
	font-weight: bold;
}

.ptm-combo-box ul.bundle-plans-life li {
	padding: 2px 0;
}

.ptm-combo-box ul.bundle-plans-annual label,
.ptm-combo-box ul.bundle-plans-life label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-grow: 1;
	color: var( --pricing-text );
	cursor: pointer;
	gap: 10px;
}

.ptm-combo-box ul.bundle-plans-annual label {
	font-size: 15px;
	font-weight: bold;
}

.ptm-combo-box ul.bundle-plans-life label {
	font-size: 15px;
	font-weight: bold;
}

.bundle-price {
	font-weight: 700;
	color: var( --pricing-text );
	white-space: nowrap;
}

.buy-bundle-annual,
.buy-bundle-life {
	display: block;
	background: var( --pricing-primary );
	color: #fff;
	border: none;
	font-weight: 700;
	font-size: 15px;
	padding: 8px 24px;
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s ease;
}

.buy-bundle-annual:hover,
.buy-bundle-life:hover {
	background: var( --pricing-primary-dark );
}

/* Responsive */
@media ( max-width: 1024px ) {
	.ptm-plans-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 640px ) {
	.ptm-plans-grid,
	.ptm-combo-bundles {
		grid-template-columns: 1fr;
	}
}
