/* Stripe Embedded Checkout - frontend */

.secm-checkout-container {
	max-width: 600px;
	margin: 1.5rem auto;
	padding: 1.5rem;
	box-sizing: border-box;
}

.secm-checkout-loading {
	text-align: center;
	padding: 2rem 1rem;
}

.secm-spinner {
	display: inline-block;
	width: 40px;
	height: 40px;
	border: 3px solid rgba(0, 0, 0, 0.1);
	border-top-color: #635bff;
	border-radius: 50%;
	animation: secm-spin 0.8s linear infinite;
}

.secm-checkout-loading p {
	margin-top: 1rem;
	color: #6b7280;
	font-size: 0.9375rem;
}

.secm-checkout-error {
	padding: 1rem;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 6px;
	color: #b91c1c;
	font-size: 0.9375rem;
}

.secm-checkout-error-msg {
	max-width: 600px;
	margin: 1.5rem auto;
	padding: 1rem;
	background: #fef2f2;
	border-radius: 6px;
	color: #b91c1c;
}

.secm-checkout-mount {
	min-height: 300px;
}

.secm-checkout-success {
	text-align: center;
	padding: 2rem 1rem;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
}

.secm-success-title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: #166534;
}

.secm-success-text {
	margin: 0;
	font-size: 0.9375rem;
	color: #15803d;
}

@keyframes secm-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 640px) {
	.secm-checkout-container {
		margin: 1rem;
		padding: 1rem;
	}
}
