/* =======================================================================
 * Nextstage Payment Tabs Widget — left vertical tabs + right content panel
 * (h3 + description + check-list + video). Pure-CSS/JS, no Bootstrap.
 * ======================================================================= */
.nspt-tabs { padding: 4rem 0; }
.nspt-tabs .nspt-container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; box-sizing: border-box; }
.nspt-tabs *, .nspt-tabs *::before, .nspt-tabs *::after { box-sizing: border-box; }

.nspt-tabs .nspt-heading { margin-bottom: 3rem; }
.nspt-tabs .nspt-heading h2 {
	font-family: "Inter", sans-serif; font-weight: 700;
	font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); line-height: 1.3;
	color: #1e2022; margin: 0 0 0.75rem;
}
.nspt-tabs .nspt-heading p { color: #677788; font-size: 1rem; line-height: 1.6; margin: 0; }

/* ---- Layout (horizontal tabs on top + full-width panel below) ---- */
.nspt-tabs .nspt-row { display: flex; flex-direction: column; gap: 2rem; }

/* ---- Top nav: horizontal pill row (Pricing-style) ---- */
.nspt-tabs .nspt-nav {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0.35rem;
	margin: 0 auto;
	list-style: none;
	background: #f6f7f9;
	border-radius: 0.75rem;
	justify-content: center;
}
.nspt-tabs .nspt-nav__btn {
	display: inline-flex; align-items: center; gap: 0.625rem;
	padding: 0.65rem 1.25rem;
	background: transparent;
	border: 0;
	border-radius: 0.5rem;
	color: #1e2022;
	font-size: 0.9375rem;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.nspt-tabs .nspt-nav__btn:hover { color: #377eff; }
.nspt-tabs .nspt-nav__btn.is-active {
	background: #377eff;
	color: #fff;
	box-shadow: 0 4px 12px rgba(55, 126, 255, 0.25);
}

.nspt-tabs .nspt-nav__icon {
	flex: 0 0 auto;
	width: 1.5rem; height: 1.5rem;
	display: inline-flex; align-items: center; justify-content: center;
}
.nspt-tabs .nspt-nav__icon img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Mobile: scroll horizontally if too many tabs */
@media (max-width: 640px) {
	.nspt-tabs .nspt-nav {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		max-width: 100%;
		-webkit-overflow-scrolling: touch;
	}
	.nspt-tabs .nspt-nav__btn { white-space: nowrap; flex: 0 0 auto; }
}

/* ---- Panel ---- */
.nspt-tabs .nspt-panels { position: relative; }
.nspt-tabs .nspt-panel { display: none; }
.nspt-tabs .nspt-panel.is-active {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	align-items: start;
	justify-items: center;
	text-align: center;
	max-width: 820px;
	margin: 0 auto;
	animation: nspt-fade 0.4s ease;
}

/* When the panel has media, switch to 2-column side-by-side layout */
@media (min-width: 768px) {
	.nspt-tabs .nspt-panel.is-active:has(.nspt-media) {
		grid-template-columns: 6fr 6fr;
		gap: 3rem;
		align-items: center;
		justify-items: stretch;
		text-align: left;
		max-width: 100%;
	}
	.nspt-tabs .nspt-panel.is-active:has(.nspt-media) > .nspt-media {
		grid-row: 1 / span 5;
		grid-column: 2;
	}
	.nspt-tabs .nspt-panel.is-active:has(.nspt-media) > h3,
	.nspt-tabs .nspt-panel.is-active:has(.nspt-media) > p,
	.nspt-tabs .nspt-panel.is-active:has(.nspt-media) > .nspt-checks,
	.nspt-tabs .nspt-panel.is-active:has(.nspt-media) > .nspt-cta-btn { grid-column: 1; }
}
@keyframes nspt-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.nspt-tabs .nspt-panel h3 {
	font-size: clamp(1.25rem, 0.9rem + 1vw, 1.625rem);
	font-weight: 700; color: #1e2022; margin: 0 0 0.75rem; line-height: 1.3;
}
.nspt-tabs .nspt-panel p { color: #677788; font-size: 1rem; line-height: 1.65; margin: 0 0 1rem; }

.nspt-tabs .nspt-checks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: inline-flex; flex-direction: column; gap: 0.625rem; text-align: left; }
.nspt-tabs .nspt-checks li { display: flex; align-items: flex-start; gap: 0.625rem; color: #1e2022; font-size: 0.9375rem; line-height: 1.5; }
.nspt-tabs .nspt-checks .nspt-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: #377eff;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	flex: 0 0 auto;
	line-height: 1;
}

.nspt-tabs .nspt-media {
	width: 100%;
	border-radius: 0.75rem;
	overflow: hidden;
	background: #f6f7f9;
	box-shadow: 0 0.75rem 2rem rgba(30, 32, 34, 0.08);
}
.nspt-tabs .nspt-media video,
.nspt-tabs .nspt-media img,
.nspt-tabs .nspt-media iframe {
	display: block; width: 100%; height: auto; border: 0;
}

/* ---- Footer CTA ---- */
.nspt-tabs .nspt-footer { text-align: center; margin-top: 2rem; }
.nspt-tabs .nspt-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0.6rem 1.25rem; font-size: 0.9375rem; font-weight: 600;
	border-radius: 0.5rem; border: 1px solid #377eff; color: #377eff;
	background: transparent; text-decoration: none; cursor: pointer;
	transition: all 0.2s ease; font-family: inherit;
}
.nspt-tabs .nspt-btn:hover { background: #377eff; color: #fff; }
.nspt-tabs .nspt-btn i { margin-right: 0.4rem; }

/* ---- Per-panel CTA button ---- */
.nspt-tabs .nspt-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
	padding: 0.75rem 1.5rem;
	background: #377eff;
	color: #fff;
	border-radius: 0.625rem;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(55, 126, 255, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	width: auto;
	max-width: max-content;
	white-space: nowrap;
	justify-self: center;
}
.nspt-tabs .nspt-cta-btn:hover {
	background: #1f66e6;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(55, 126, 255, 0.35);
	color: #fff;
}
.nspt-tabs .nspt-cta-btn svg { transition: transform 0.2s ease; }
.nspt-tabs .nspt-cta-btn:hover svg { transform: translate(2px, -2px); }

/* =======================================================================
 * Cards layout — 4 service cards grid (alternative to tabs)
 * ======================================================================= */
.nspt-tabs--cards .nspt-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
@media (min-width: 640px) { .nspt-tabs--cards .nspt-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .nspt-tabs--cards .nspt-cards { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.nspt-tabs--cards .nspt-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.75rem 1.5rem 1.5rem;
	background: linear-gradient(160deg, #ffffff 0%, rgba(55, 126, 255, 0.06) 60%, rgba(55, 126, 255, 0.10) 100%);
	border: 1px solid rgba(55, 126, 255, 0.18);
	border-radius: 1rem;
	box-shadow: 0 6px 18px rgba(55, 126, 255, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.nspt-tabs--cards .nspt-card:hover {
	transform: translateY(-4px);
	border-color: rgba(55, 126, 255, 0.45);
	box-shadow: 0 1.25rem 2.25rem rgba(55, 126, 255, 0.18);
	background: linear-gradient(160deg, #ffffff 0%, rgba(55, 126, 255, 0.12) 60%, rgba(55, 126, 255, 0.18) 100%);
}

.nspt-tabs--cards .nspt-card__icon {
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: rgba(55, 126, 255, 0.08);
	padding: 10px;
}
.nspt-tabs--cards .nspt-card__icon img {
	max-width: 100%; max-height: 100%; object-fit: contain;
}

.nspt-tabs--cards .nspt-card__title {
	font-size: 1.125rem; font-weight: 700; color: #1e2022;
	line-height: 1.35; margin: 0;
}
.nspt-tabs--cards .nspt-card__desc { color: #677788; font-size: 0.9375rem; line-height: 1.6; }
.nspt-tabs--cards .nspt-card__desc p { margin: 0; }

.nspt-tabs--cards .nspt-card .nspt-checks {
	display: flex;
	margin: 0.25rem 0 1rem;
	flex: 1 1 auto;
	text-align: left;
}
.nspt-tabs--cards .nspt-card .nspt-checks li { font-size: 0.875rem; }

.nspt-tabs--cards .nspt-card .nspt-cta-btn {
	margin-top: auto;
	align-self: center;
}
