/**
 * Celero payment form styles (iframe embed only).
 */

html,
body {
	margin: 0;
	padding: 0;
	background: #f4f7fb;
	font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #1e293b;
	line-height: 1.5;
}

.celero-checkout-main {
	max-width: 900px;
	margin: 0 auto;
	padding: 1.5rem;
}

.celero-payment-form-wrap {
	max-width: 900px;
	margin: 0 auto;
}

.celero-payment-errors {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 10px;
	color: #b91c1c;
	padding: 1rem 1.25rem;
	margin-bottom: 1.25rem;
}

.celero-payment-errors p {
	margin: 0;
}

.celero-payment-errors p + p {
	margin-top: 0.5rem;
}

.content-payment {
	min-height: auto;
}

.celero-payment-form {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 1.75rem;
	box-shadow: 0 4px 20px rgba(15, 43, 91, 0.08);
}

.form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1rem;
}

.form-group {
	margin: 0;
}

.form-control {
	width: 100%;
	padding: 0.85rem 1rem;
	font-size: 0.9375rem;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	color: #1e293b;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.form-control:focus {
	outline: none;
	border-color: #00a3e0;
	box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.15);
}

.form-control[readonly] {
	background: #f8fafc;
	color: #64748b;
}

.help-note {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.8125rem;
	color: #64748b;
}

.currency-group {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.currency-label {
	font-weight: 600;
	color: #0f2b5b;
	font-size: 0.9375rem;
}

.currency-options {
	display: flex;
	gap: 1.25rem;
}

.currency-control {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 500;
	color: #1e293b;
	cursor: pointer;
}

.form-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 1.5rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
}

.btn-primary {
	background: linear-gradient(135deg, #00a3e0 0%, #0077b6 100%);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 163, 224, 0.35);
}

.btn-primary:hover {
	background: linear-gradient(135deg, #0088bd 0%, #005f8a 100%);
}

.submit-pay {
	min-width: 180px;
}

.error-message {
	text-align: center;
	font-weight: 700;
	color: #dc2626;
}

.celero-payment-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(15, 43, 91, 0.55);
}

.celero-payment-modal[hidden] {
	display: none;
}

.celero-payment-modal__dialog {
	width: min(100%, 500px);
	background: #fff;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.celero-payment-modal__dialog strong {
	display: block;
	text-transform: uppercase;
	margin-top: 0.5rem;
}

.celero-payment-modal__dialog ol {
	margin: 1rem 0 0;
	padding-left: 1.25rem;
	font-size: 0.9rem;
	line-height: 1.6;
}

.celero-payment-modal__actions {
	text-align: center;
	margin-top: 1rem;
}

@media (max-width: 768px) {
	.celero-payment-form {
		padding: 1.25rem;
		border-radius: 12px;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.form-actions {
		justify-content: stretch;
	}

	.submit-pay {
		width: 100%;
	}
}
