/* MAZ ERP Pricing — ported from maz-pos-ui pricing-plan styles */

.mazerp-pricing-wrapper .mazerp-pricing-container {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

.mazerp-pricing-wrapper .mazerp-pricing-check {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	border-radius: 50%;
	background: #10b981;
	position: relative;
}
.mazerp-pricing-wrapper .mazerp-pricing-check::after {
	content: "";
	position: absolute;
	left: 0.28rem;
	top: 0.12rem;
	width: 0.28rem;
	height: 0.5rem;
	border: solid #fff;
	border-width: 0 0.12rem 0.12rem 0;
	transform: rotate(45deg);
}

.mazerp-pricing-wrapper .mazerp-pricing-error {
	color: #b91c1c;
	padding: 1rem;
	background: #fef2f2;
	border-radius: 8px;
}

/* Hero */
.mazerp-pricing-wrapper .pricing-hero {
	padding: 44px 0 32px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	position: relative;
	overflow: hidden;
}
.mazerp-pricing-wrapper .pricing-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpolygon fill='rgba(255,255,255,0.06)' points='0,1000 1000,0 1000,1000'/%3E%3C/svg%3E");
	background-size: cover;
	pointer-events: none;
}
.mazerp-pricing-wrapper .pricing-hero__content {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 32px;
	align-items: center;
	position: relative;
	z-index: 1;
}
.mazerp-pricing-wrapper .pricing-hero__title {
	font-size: 2.35rem;
	font-weight: 800;
	line-height: 1.18;
	margin: 0 0 12px;
}
.mazerp-pricing-wrapper .pricing-hero__subtitle {
	font-size: 1rem;
	line-height: 1.65;
	opacity: 0.92;
	margin: 0 0 14px;
	max-width: 680px;
}
.mazerp-pricing-wrapper .pricing-hero__trial {
	margin: 12px 0 14px;
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
}
.mazerp-pricing-wrapper .pricing-hero__trialTitle {
	font-weight: 700;
	margin-bottom: 8px;
}
.mazerp-pricing-wrapper .pricing-hero__trialList {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 14px;
}
.mazerp-pricing-wrapper .pricing-hero__trialList li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.92rem;
}
.mazerp-pricing-wrapper .pricing-hero__actions {
	margin-top: 6px;
}
.mazerp-pricing-wrapper .pricing-hero__cta {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	padding: 12px 18px;
	border-radius: 999px;
	border: 0;
	background: #ffd700;
	color: #222;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.mazerp-pricing-wrapper .pricing-hero__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}
.mazerp-pricing-wrapper .pricing-hero__cta[aria-disabled="true"] {
	opacity: 0.6;
	pointer-events: none;
	cursor: not-allowed;
}
.mazerp-pricing-wrapper .pricing-hero__preview {
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
	max-height: 240px;
	aspect-ratio: 16 / 10;
}
.mazerp-pricing-wrapper .pricing-hero__img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

@media (max-width: 992px) {
	.mazerp-pricing-wrapper .pricing-hero__content {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.mazerp-pricing-wrapper .pricing-hero__title {
		font-size: 1.75rem;
	}
	.mazerp-pricing-wrapper .pricing-hero__trialList {
		grid-template-columns: 1fr;
	}
}

/* Pricing grid */
.mazerp-pricing-wrapper .pricing-plan-container {
	min-height: auto;
	background: #ffffff;
	padding: 3rem 0;
}
.mazerp-pricing-wrapper .pricing-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 3rem;
	flex-wrap: wrap;
	gap: 2rem;
}
.mazerp-pricing-wrapper .pricing-header .header-content {
	flex: 1;
}
.mazerp-pricing-wrapper .pricing-header .main-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #212529;
	margin-bottom: 0.5rem;
}
.mazerp-pricing-wrapper .pricing-header .subtitle {
	font-size: 1rem;
	color: #6c757d;
	margin: 0;
}
.mazerp-pricing-wrapper .billing-toggle-container .billing-toggle {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: transparent;
}
.mazerp-pricing-wrapper .billing-toggle .toggle-label {
	font-size: 0.95rem;
	color: #6c757d;
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: 500;
	font-family: inherit;
	background: none;
	border: none;
	padding: 0.25rem 0;
}
.mazerp-pricing-wrapper .billing-toggle .toggle-label.active {
	color: #212529;
	font-weight: 700;
}
.mazerp-pricing-wrapper .billing-toggle .toggle-label .save-more {
	font-size: 0.75rem;
	color: #0d6efd;
	font-weight: 500;
}
.mazerp-pricing-wrapper .billing-toggle .toggle-switch {
	position: relative;
	width: 56px;
	height: 28px;
	background: #dee2e6;
	border-radius: 28px;
	cursor: pointer;
	transition: background 0.3s ease;
	border: none;
	padding: 0;
	flex-shrink: 0;
}
.mazerp-pricing-wrapper .billing-toggle .toggle-switch:hover {
	background: #ced4da;
}
.mazerp-pricing-wrapper .billing-toggle .toggle-slider {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 24px;
	height: 24px;
	background: #212529;
	border-radius: 50%;
	transition: transform 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.mazerp-pricing-wrapper .billing-toggle .toggle-slider.yearly {
	transform: translateX(28px);
}
.mazerp-pricing-wrapper .pricing-cards-section {
	margin-bottom: 4rem;
}
.mazerp-pricing-wrapper .pricing-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	background: white;
}
.mazerp-pricing-wrapper .pricing-card {
	position: relative;
	background: white;
	padding: 2rem 1.5rem;
	border-right: 1px solid #e2e8f0;
	text-align: center;
	transition: background 0.2s ease;
}
.mazerp-pricing-wrapper .pricing-card:last-child {
	border-right: none;
}
.mazerp-pricing-wrapper .pricing-card.popular {
	border-left: 4px solid #357fee;
	background: #f0f7ff;
}
.mazerp-pricing-wrapper .pricing-card .plan-name {
	font-size: 1.25rem;
	font-weight: 700;
	color: #212529;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.mazerp-pricing-wrapper .pricing-card .plan-description {
	font-size: 0.875rem;
	color: #64748b;
	margin-bottom: 1.5rem;
	line-height: 1.5;
	min-height: 40px;
}
.mazerp-pricing-wrapper .pricing-card .price-section {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e2e8f0;
}
.mazerp-pricing-wrapper .pricing-card .original-price-row {
	margin-bottom: 0.5rem;
}
.mazerp-pricing-wrapper .pricing-card .original-price {
	font-size: 1rem;
	color: #94a3b8;
	text-decoration: line-through;
	font-weight: 500;
}
.mazerp-pricing-wrapper .pricing-card .current-price-row {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.25rem;
	margin-bottom: 0.5rem;
}
.mazerp-pricing-wrapper .pricing-card .currency {
	font-size: 1.25rem;
	font-weight: 700;
	color: #212529;
	vertical-align: baseline;
}
.mazerp-pricing-wrapper .pricing-card .amount {
	font-size: 2.25rem;
	font-weight: 700;
	color: #212529;
	line-height: 1;
}
.mazerp-pricing-wrapper .pricing-card .price-note {
	font-size: 0.75rem;
	color: #94a3b8;
	margin-top: 0.5rem;
}
.mazerp-pricing-wrapper .pricing-card .mazerp-pricing-tax-note {
	font-size: 0.7rem;
	line-height: 1.35;
	color: #64748b;
	margin: 0.65rem 0 0;
	text-align: center;
}
.mazerp-pricing-wrapper .pricing-card .savings-badge {
	display: inline-block;
	background: #10b981;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.375rem 0.75rem;
	border-radius: 6px;
	margin-top: 0.75rem;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
}
.mazerp-pricing-wrapper .pricing-card .cta-section {
	margin-bottom: 0;
}
.mazerp-pricing-wrapper .pricing-card .trial-button {
	display: inline-block;
	width: 100%;
	padding: 0.75rem 1.5rem;
	background: #357fee;
	border: none;
	border-radius: 8px;
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
}
.mazerp-pricing-wrapper .pricing-card .trial-button:hover {
	background: #2563eb;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(53, 127, 238, 0.3);
}

@media (max-width: 1200px) {
	.mazerp-pricing-wrapper .pricing-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.mazerp-pricing-wrapper .pricing-card {
		border-right: 1px solid #e2e8f0;
		border-bottom: 1px solid #e2e8f0;
	}
	.mazerp-pricing-wrapper .pricing-card:nth-child(2n) {
		border-right: none;
	}
	.mazerp-pricing-wrapper .pricing-card:nth-last-child(-n + 2) {
		border-bottom: none;
	}
}
@media (max-width: 768px) {
	.mazerp-pricing-wrapper .pricing-plan-container {
		padding: 2rem 0;
	}
	.mazerp-pricing-wrapper .pricing-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.mazerp-pricing-wrapper .pricing-header .main-title {
		font-size: 1.75rem;
	}
	.mazerp-pricing-wrapper .billing-toggle-container {
		width: 100%;
		display: flex;
		justify-content: center;
	}
	.mazerp-pricing-wrapper .billing-toggle-container .billing-toggle {
		flex-direction: column;
		gap: 0.75rem;
		padding: 1rem;
	}
	.mazerp-pricing-wrapper .billing-toggle .toggle-switch {
		width: 48px;
		height: 26px;
	}
	.mazerp-pricing-wrapper .billing-toggle .toggle-slider {
		width: 20px;
		height: 20px;
	}
	.mazerp-pricing-wrapper .billing-toggle .toggle-slider.yearly {
		transform: translateX(24px);
	}
	.mazerp-pricing-wrapper .pricing-grid {
		grid-template-columns: 1fr;
	}
	.mazerp-pricing-wrapper .pricing-card {
		border-right: none;
		border-bottom: 1px solid #e2e8f0;
	}
	.mazerp-pricing-wrapper .pricing-card:last-child {
		border-bottom: none;
	}
	.mazerp-pricing-wrapper .pricing-card .amount {
		font-size: 1.875rem;
	}
}

/* ─── Compare all plans (detail table) ─── */
/* .mazerp-pricing-wrapper .mazerp-pricing-compare {
	padding: 3rem 0 4rem;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
} */

.mazerp-pricing-wrapper .mazerp-pricing-compare__title {
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 0.5rem;
	text-align: center;
	letter-spacing: -0.02em;
}

.mazerp-pricing-wrapper .mazerp-pricing-compare__lead {
	text-align: center;
	color: #64748b;
	font-size: 0.9375rem;
	margin: 0 auto 1.75rem;
	max-width: 36rem;
	line-height: 1.55;
}

.mazerp-pricing-wrapper .mazerp-pricing-compare__scroll {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	margin: 0 -15px;
	padding: 0 15px 8px;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

.mazerp-pricing-wrapper .mazerp-pricing-compare__table {
	width: 100%;
	min-width: 720px;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 10px 20px -10px rgba(15, 23, 42, 0.06);
}

.mazerp-pricing-wrapper .mazerp-pricing-compare__table thead th {
	background: #f1f5f9;
	color: #0f172a;
	font-weight: 700;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 1rem 0.85rem;
	text-align: center;
	border-bottom: 1px solid #e2e8f0;
	vertical-align: middle;
}

.mazerp-pricing-wrapper .mazerp-pricing-compare__th-feature {
	text-align: left !important;
	min-width: 200px;
	position: sticky;
	left: 0;
	z-index: 2;
	box-shadow: 4px 0 8px -4px rgba(15, 23, 42, 0.12);
}

.mazerp-pricing-wrapper .mazerp-pricing-compare__th-plan {
	white-space: nowrap;
}

.mazerp-pricing-wrapper .mazerp-pricing-compare__cat-row .mazerp-pricing-compare__cat {
	background: #e2e8f0;
	color: #334155;
	font-weight: 800;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.55rem 1rem;
	text-align: left;
	border-bottom: 1px solid #cbd5e1;
}

.mazerp-pricing-wrapper .mazerp-pricing-compare__feature-row:hover .mazerp-pricing-compare__feature-name,
.mazerp-pricing-wrapper .mazerp-pricing-compare__feature-row:hover .mazerp-pricing-compare__cell {
	background: #f1f5f9;
}

.mazerp-pricing-wrapper .mazerp-pricing-compare__feature-name {
	text-align: left;
	font-weight: 600;
	font-size: 0.8125rem;
	color: #1e293b;
	padding: 0.65rem 1rem;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
	position: sticky;
	left: 0;
	z-index: 1;
	background: #fff;
	box-shadow: 4px 0 8px -4px rgba(15, 23, 42, 0.08);
	min-width: 200px;
}

.mazerp-pricing-wrapper .mazerp-pricing-compare__cell {
	text-align: center;
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
	font-size: 0.8125rem;
}

.mazerp-pricing-wrapper .mazerp-compare-cell--yes {
	color: #059669;
	font-weight: 800;
	font-size: 1rem;
}

.mazerp-pricing-wrapper .mazerp-compare-cell--no {
	color: #94a3b8;
	font-weight: 500;
}

.mazerp-pricing-wrapper .mazerp-compare-cell--value {
	color: #0f172a;
	font-weight: 600;
}

@media (max-width: 768px) {
	.mazerp-pricing-wrapper .mazerp-pricing-compare {
		padding: 2rem 0 3rem;
	}
}
