/* ============================================
   Pricing Table Block — Frontend Styles
   ============================================ */

.taskipfb-pt {
	width: 100%;
	background-color: #ffffff;
	background-image: url( '../../../assets/icons/pricing-bg.jpg' );
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	font-family: var( --taskipfb-offer-font );
}

/* Shortcode containers */
.taskipfb-pt-shortcode-wrap {
	margin-top: auto;
}

.taskipfb-pt-shortcode-yearly,
.taskipfb-pt-shortcode-lifetime {
	width: 100%;
}

/* Installment dropdown */
li.taskipfb-pt-installment-area,
.taskipfb-pt-installment-area {
	list-style: none;
	margin-bottom: 8px;
}

.taskipfb-pt-installment-select-wrap {
	position: relative;
	margin-bottom: 6px;
}

.taskipfb-pt-installment-select {
	width: 100%;
	padding: 5px 36px 5px 14px;
	border: 1px solid #667085;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 400;
	color: #182230;
	background: #ffffff;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	font-family: var( --taskipfb-offer-font );
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23475467' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

.taskipfb-pt-installment-select:focus {
	outline: none;
	border-color: #10b981;
}

.taskipfb-pt-installment-desc {
	font-size: 12px;
	color: #475467;
	font-weight: 400;
	margin: 4px 0 0;
	padding: 0 4px;
}

.taskipfb-pt-sc {
	width: 100%;
}

.taskipfb-pt-bar-sc-wrap {
	width: 100%;
	max-width: 180px;
}

.taskipfb-pt-bar-sc {
	width: 100%;
}

.taskipfb-pt-container {
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
	box-sizing: border-box;
}

/* ── Header ── */
.taskipfb-pt-header {
	text-align: center;
	margin-bottom: 32px;
}

.taskipfb-pt-badge {
	display: inline-block;
	padding: 5px 16px;
	border: 1.5px solid #10b981;
	border-radius: 100px;
	font-size: 13px;
	font-weight: 500;
	color: #10b981;
	background-color: #ffffff;
	margin-bottom: 16px;
}

.taskipfb-pt-heading {
	font-size: clamp( 26px, 4vw, 44px );
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #111827;
	margin: 0 auto 12px;
}

.taskipfb-pt-description {
	font-size: 16px;
	line-height: 1.65;
	color: #2F3847;
	max-width: 520px;
	margin: 0 auto;
	font-weight: 400;
}

/* ── Tab Switcher ── */
.taskipfb-pt-tabs-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-bottom: 36px;
}

.taskipfb-pt-tabs {
	display: inline-flex;
	background: #f3f4f6;
	border-radius: 100px;
	padding: 4px;
	gap: 2px;
}

.taskipfb-pt-tab {
	padding: 8px 24px;
	border-radius: 100px;
	border: none;
	background: transparent;
	font-size: 14px;
	font-weight: 400;
	color: #182230;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	line-height: 1;
}

.taskipfb-pt-tab--active {
	background-color: #10b981;
	color: #ffffff;
}

.taskipfb-pt-save-note {
	font-size: 14px;
	color: #374253;
	font-weight: 400;
	margin: 0;
}

.taskipfb-pt-save-note strong {
	font-weight: 700;
	color: #10b981;
}

/* ── Plan Cards Grid ── */
.taskipfb-pt-plans {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 16px;
	margin-bottom: 72px;
	align-items: start;
}

/* ── Individual Card ── */
.taskipfb-pt-card {
	position: relative;
	border: 1.5px solid #e5e7eb;
	border-radius: 14px;
	padding: 24px 20px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-sizing: border-box;
}

.taskipfb-pt-card--highlighted {
	border-color: #10b981;
	border-width: 2px;
}

/* Best Value badge */
.taskipfb-pt-best-value {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX( -50% );
	background-color: #10b981;
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 4px 12px;
	border-radius: 100px;
	white-space: nowrap;
	text-transform: uppercase;
}

.taskipfb-pt-plan-name {
	font-size: 18px;
	font-weight: 700;
	color: #182230;
	margin: 0;
}

.taskipfb-pt-plan-desc {
	font-size: 13px;
	color: #475467;
	font-weight: 400;
	line-height: 1.55;
	margin: 0;
}

/* Original price */
.taskipfb-pt-original-price {
	font-size: 14px;
	color: #9ca3af;
	text-decoration: line-through;
	margin: 0;
}

/* Price row */
.taskipfb-pt-price-row {
	display: flex;
	align-items: baseline;
	gap: 2px;
	flex-wrap: wrap;
}

.taskipfb-pt-currency {
	font-size: 22px;
	font-weight: 700;
	color: #111827;
	line-height: 1;
	margin-top: 4px;
}

.taskipfb-pt-price-num {
	font-size: 52px;
	font-weight: 800;
	color: #111827;
	line-height: 1;
	letter-spacing: -0.03em;
}

.taskipfb-pt-price-unit {
	font-size: 14px;
	color: #6b7280;
	margin-left: 2px;
	align-self: flex-end;
	padding-bottom: 6px;
}

/* Save badge */
.taskipfb-pt-save-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 400;
	background-color: #DCFCE7;
	color: #122E2B;
	text-align: center;
}

/* Installment note */
.taskipfb-pt-installment-note {
	font-size: 12px;
	color: #6b7280;
	margin: 0;
	line-height: 1.4;
}

/* Features list */
.taskipfb-pt-features {
	list-style: none;
	margin: 10px 0 0;
	padding: 15px 0 0;
	border-top: 1px solid #D0D5DD;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.taskipfb-pt-feature {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: #374151;
	line-height: 1.4;
}

.taskipfb-pt-feature--excluded {
	color: #9ca3af;
}

.taskipfb-pt-feat-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.taskipfb-pt-feat-icon svg {
	display: block;
}

/* Buy Now button */
.taskipfb-pt-buy-btn {
	display: block;
	text-align: center;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	background-color: #10b981;
	color: #ffffff;
	text-decoration: none;
	margin-top: auto;
	transition: opacity 0.2s ease, transform 0.15s ease;
	cursor: pointer;
}

.taskipfb-pt-buy-btn:hover {
	opacity: 0.88;
	transform: translateY( -1px );
}

/* ── Comparison Table ── */
.taskipfb-pt-comparison {
	text-align: center;
}

/* Button bar above table */
.taskipfb-pt-btn-bar {
	display: flex;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	background: #ffffff;
	padding: 16px 0;
	margin-bottom: 16px;
	overflow: hidden;
}

.taskipfb-pt-btn-bar-cell {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 8px 12px;
	text-align: center;
	border-left: 1px solid #e5e7eb;
}

.taskipfb-pt-btn-bar-cell:first-child {
	border-left: none;
}

.taskipfb-pt-btn-bar-label {
	font-size: 16px;
	font-weight: 600;
	color: #182230;
	align-items: flex-start;
	justify-content: center;
}

.taskipfb-pt-btn-bar-name {
	font-size: 15px;
	font-weight: 600;
	color: #182230;
}

.taskipfb-pt-comp-heading {
	font-size: clamp( 24px, 3.5vw, 40px );
	font-weight: 800;
	color: #111827;
	margin: 0 auto 12px;
	letter-spacing: -0.02em;
}

.taskipfb-pt-comp-desc {
	font-size: 15px;
	color: #6b7280;
	max-width: 480px;
	margin: 0 auto 32px;
}

.taskipfb-pt-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
}

.taskipfb-pt-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 560px;
}

.taskipfb-pt-table th {
	padding: 14px 16px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	background-color: #10b981;
	color: #ffffff;
	border-right: 1px solid rgba( 255, 255, 255, 0.15 );
}

.taskipfb-pt-table thead tr th:first-child {
	border-radius: 10px 0 0 0;
}

.taskipfb-pt-table thead tr th:last-child {
	border-radius: 0 10px 0 0;
	border-right: none;
}

.taskipfb-pt-table th:last-child {
	border-right: none;
}

.taskipfb-pt-th-label {
	text-align: left !important;
}

.taskipfb-pt-th-btn {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	background-color: #ffffff;
	color: #10b981;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.taskipfb-pt-th-btn:hover {
	opacity: 0.85;
}

.taskipfb-pt-table td {
	padding: 12px 16px;
	font-size: 13px;
	text-align: center;
	border-right: 1px solid #f3f4f6;
	border-bottom: 1px solid #f3f4f6;
	vertical-align: middle;
	background-color: #ffffff;
}

.taskipfb-pt-table td:last-child {
	border-right: none;
}

.taskipfb-pt-td-label {
	text-align: left !important;
	font-weight: 500;
	color: #374151;
}

.taskipfb-pt-td-value {
	color: #374151;
}

.taskipfb-pt-tr-even td {
	background-color: #ffffff;
}

/* Best value column highlight */
.taskipfb-pt-td-best {
	background-color: #EEF6F8 !important;
}

.taskipfb-pt-tr-even .taskipfb-pt-td-best {
	background-color: #EEF6F8 !important;
}

.taskipfb-pt-btn-bar-best {
	background-color: #ffffff;
}

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

	.taskipfb-pt-btn-bar {
		flex-wrap: wrap;
	}

	.taskipfb-pt-btn-bar-cell {
		flex: 1 1 calc( 50% - 1px );
		min-width: 0;
	}

	.taskipfb-pt-btn-bar-label {
		flex: 1 1 100%;
		border-left: none;
		border-bottom: 1px solid #e5e7eb;
		padding-bottom: 12px;
	}
}

@media ( max-width: 640px ) {
	.taskipfb-pt-container {
		padding: 0 16px;
	}

	.taskipfb-pt-plans {
		grid-template-columns: 1fr;
	}

	.taskipfb-pt-price-num {
		font-size: 44px;
	}

	.taskipfb-pt-btn-bar {
		flex-direction: column;
		gap: 0;
	}

	.taskipfb-pt-btn-bar-cell {
		flex: 1 1 100%;
		flex-direction: row;
		justify-content: space-between;
		border-left: none;
		border-bottom: 1px solid #e5e7eb;
		padding: 12px 16px;
	}

	.taskipfb-pt-btn-bar-cell:last-child {
		border-bottom: none;
	}

	.taskipfb-pt-btn-bar-label {
		border-bottom: 1px solid #e5e7eb;
		padding: 12px 16px;
	}

	.taskipfb-pt-bar-sc-wrap {
		max-width: none;
	}
}
