/**
 * RestroPress Stripe - Modern public styling
 */

/* Container resets & modern card design */
#rpress_checkout_wrap #rpress_cc_fields {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin: 18px 0 24px !important;
	padding: 24px !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 16px !important;
	background: #ffffff !important;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
	transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}

#rpress_checkout_wrap #rpress_cc_fields:focus-within {
	border-color: #cbd5e1 !important;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03) !important;
}

/* Card Header */
#rpress_checkout_wrap #rpress_cc_fields .rpress-stripe-card-header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	margin-bottom: 20px !important;
	padding-bottom: 14px !important;
	border-bottom: 1px solid #f1f5f9 !important;
}

#rpress_checkout_wrap #rpress_cc_fields .rpress-stripe-card-header .rpress-stripe-legend {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	display: flex !important;
	align-items: center !important;
	width: auto !important;
}

#rpress_checkout_wrap #rpress_cc_fields .rpress-stripe-card-header .rpress-stripe-legend::before {
	display: none !important; /* Hide fontawesome pseudo-icon */
}

#rpress_checkout_wrap #rpress_cc_fields .rpress-stripe-title {
	display: inline-flex !important;
	align-items: center !important;
	gap: 10px !important;
	font-size: 16.5px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	letter-spacing: -0.01em !important;
}

#rpress_checkout_wrap #rpress_cc_fields .rpress-stripe-card-icon {
	color: #ff5a1f !important;
	stroke-width: 2.2 !important;
}

#rpress_checkout_wrap #rpress_cc_fields .rpress-stripe-badge-secure {
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	padding: 4px 10px !important;
	background: #f0fdf4 !important;
	border: 1px solid #bbf7d0 !important;
	border-radius: 9999px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #166534 !important;
	letter-spacing: 0.02em !important;
}

#rpress_checkout_wrap #rpress_cc_fields .rpress-stripe-badge-secure svg {
	color: #16a34a !important;
}

/* Stripe Elements Mount Container */
#rpress_checkout_wrap #stripe-payment-element {
	width: 100% !important;
	min-height: 180px !important;
	margin: 0 0 18px !important;
	box-sizing: border-box !important;
}

/* Smooth Loader State */
#rpress_checkout_wrap #rpress_cc_fields .rpress-stripe-loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
	width: 100%;
	box-sizing: border-box;
}

#rpress_checkout_wrap #rpress_cc_fields .rpress-stripe-loader p {
	margin: 14px 0 0 !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: #64748b !important;
}

#rpress_checkout_wrap #rpress_cc_fields .rpress-stripe-spinner {
	width: 34px;
	height: 34px;
	border: 3px solid #f1f5f9;
	border-top-color: #ff5a1f;
	border-radius: 50%;
	animation: rpress-stripe-spin 0.75s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes rpress-stripe-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Trust / SSL Footer Badge */
#rpress_checkout_wrap #rpress_secure_site_wrapper {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	width: 100% !important;
	margin-top: 6px !important;
	padding: 12px 16px !important;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
	box-sizing: border-box !important;
}

#rpress_checkout_wrap #rpress_secure_site_wrapper .rpress-stripe-trust-left {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
}

#rpress_checkout_wrap #rpress_secure_site_wrapper .rpress-stripe-lock-badge {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 22px !important;
	height: 22px !important;
	background: #ecfdf5 !important;
	border-radius: 6px !important;
	color: #059669 !important;
}

#rpress_checkout_wrap #rpress_secure_site_wrapper .rpress-stripe-trust-text {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #475569 !important;
	letter-spacing: 0.005em !important;
}

#rpress_checkout_wrap #rpress_secure_site_wrapper .rpress-stripe-trust-right {
	display: inline-flex !important;
	align-items: center !important;
}

#rpress_checkout_wrap #rpress_secure_site_wrapper .rpress-stripe-powered-by {
	font-size: 12px !important;
	color: #94a3b8 !important;
	letter-spacing: 0.02em !important;
}

#rpress_checkout_wrap #rpress_secure_site_wrapper .rpress-stripe-powered-by strong {
	color: #6366f1 !important; /* Stripe blurple */
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	font-size: 13.5px !important;
	margin-left: 2px !important;
}

/* Error Notice Styling */
#rpress_checkout_wrap #rpress-stripe-payment-errors {
	margin: 12px 0 !important;
	padding: 12px 16px !important;
	border-radius: 10px !important;
	background: #fff5f5 !important;
	border: 1px solid #fed7d7 !important;
	color: #c53030 !important;
	font-size: 13.5px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	display: none;
}

#rpress_checkout_wrap #rpress-stripe-payment-errors:not(:empty) {
	display: block !important;
}