/* ── 50 Over 50 Payments — Frontend Styles ─────────────────────────── */

/* Wrapper */
.fof-p-wrapper {
	max-width: 860px;
	margin: 0 auto;
	font-family: inherit;
	color: inherit;
}

/* Section headings */
.fof-p-section-heading {
	margin: 1em 0;
	padding: 0;
}


/* ── Currency selector ─────────────────────────────────────────────── */

.fof-p-currency-row {
	margin: 1.5rem 0 1rem;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
}

.fof-p-currency-row label {
	font-size: 0.9em;
	font-weight: 600;
	color: #374151;
	white-space: nowrap;
}

#fof-p-currency {
	padding: 0.6rem 1rem;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	font-size: 1em;
	background: #fff;
	cursor: pointer;
	min-width: 200px;
	transition: border-color 0.15s ease;
}

#fof-p-currency:focus {
	outline: none;
	border-color: #2563eb;
}

/* ── Plan cards ────────────────────────────────────────────────────── */

.fof-p-plans {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	margin-top: 1rem;
}

.fof-p-plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 2px solid #fff;
	border-radius: 1em;
	padding: 1.75em;
	text-align: center;
	transition: all 0.3s ease;
}

.fof-p-plan-card:hover {
	border-color: #2563eb;
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
}

.fof-p-plan-card .plan-name {
	font-size: 1.1em;
	font-weight: 700;
	margin: 0.75em 0 0.4em;
	color: #1e293b;
}

.fof-p-plan-card .plan-tagline {
	font-size: 0.88em;
	color: #64748b;
	margin: 0 0 0.5em;
}

.fof-p-plan-card .price-today {
	font-size: 3em;
	font-weight: 100;
	color: #1e293b;
	line-height: 1.2;
	margin: 0.2em 0 0.25em;
}

.fof-p-plan-card .price-future {
	font-size: 0.9em;
	color: #64748b;
	margin: 0 0 0.4em;
}

.fof-p-plan-card .price-total {
	font-size: 0.88em;
	font-weight: 600;
	color: #374151;
	margin: 0 0 0.5em;
}

/* ── Pay Now button ────────────────────────────────────────────────── */

.fof-p-pay-btn {
	display: block;
	width: 100%;
	margin-top: auto;
	padding: 14px 24px;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	letter-spacing: 0.01em;
}

.fof-p-pay-btn:hover {
	background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.fof-p-pay-btn:disabled {
	background: #94a3b8;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* ── Spinner ───────────────────────────────────────────────────────── */

.fof-p-spinner {
	display: none;
	width: 28px;
	height: 28px;
	margin: 1rem auto 0;
	border: 3px solid #e5e7eb;
	border-top-color: #6366f1;
	border-radius: 50%;
	animation: fof-p-spin 0.7s linear infinite;
}

@keyframes fof-p-spin {
	to { transform: rotate( 360deg ); }
}

/* ── Error area ────────────────────────────────────────────────────── */

.fof-p-error {
	display: none;
	margin-top: 0.75rem;
	padding: 0.65rem 1rem;
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 6px;
	color: #991b1b;
	font-size: 0.9em;
}

/* ── Login prompt ──────────────────────────────────────────────────── */

.fof-p-login-prompt {
	padding: 1rem;
	background: #fffbeb;
	border: 1px solid #fcd34d;
	border-radius: 6px;
	color: #92400e;
}

/* ── Responsive ────────────────────────────────────────────────────── */

@media ( max-width: 640px ) {
	.fof-p-plans,
	.fof-p-two-col {
		grid-template-columns: 1fr;
	}

	.fof-p-currency-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.4rem;
	}

	#fof-p-currency {
		min-width: 0;
		width: 100%;
	}

	.fof-p-plan-card .price-today {
		font-size: 2em;
	}
}
