/* ==========================================================
   Sifalo Pay - Checkout Styles
   Brand: green #7AC143, dark #2F3A3C
   ========================================================== */

:root {
	--sifalo-green: #7ac143;
	--sifalo-green-dark: #5f9a34;
	--sifalo-ink: #2f3a3c;
	--sifalo-muted: #667085;
	--sifalo-border: #e4e7ec;
	--sifalo-soft: #f4faf0;
}

/* Method labels */
#payment .payment_methods > .sifalo-pay-method > label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	color: var(--sifalo-ink);
	padding: 4px 0;
}

#payment .payment_methods > .wc_payment_method > label img {
	max-height: 24px;
	width: auto;
	float: none !important;
	margin: 0 !important;
}

/* Shared logo above Sifalo methods */
#payment .payment_methods > .sifalo-pay-shared-logo {
	list-style: none;
	margin: 4px 0 14px;
	padding: 0 0 12px;
	border: none;
	border-bottom: 1px solid var(--sifalo-border);
	background: transparent;
}

#payment .payment_methods > .sifalo-pay-shared-logo img {
	display: block;
	max-height: 36px;
	width: auto;
	margin: 0;
}

/* Selected payment panel */
#payment .payment_methods > .sifalo-pay-method .payment_box {
	background: var(--sifalo-soft) !important;
	border: 1px solid rgba(122, 193, 67, 0.45) !important;
	border-radius: 10px !important;
	padding: 14px 16px !important;
	margin: 10px 0 6px !important;
	box-shadow: none !important;
}

#payment .payment_methods > .sifalo-pay-method .payment_box::before {
	border-bottom-color: rgba(122, 193, 67, 0.45) !important;
}

#payment .payment_methods > .sifalo-pay-method .payment_box::after {
	border-bottom-color: var(--sifalo-soft) !important;
}

/* Description */
.sifalo-pay-description {
	color: var(--sifalo-muted);
	font-size: 13px;
	margin: 0 0 12px;
	line-height: 1.45;
}

/* Account number input */
.sifalo-pay-account-field {
	margin: 0 0 6px !important;
}

.sifalo-pay-account-field input[type="tel"],
.sifalo-pay-account-field input[type="text"] {
	border: 1.5px solid var(--sifalo-border);
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 15px;
	color: var(--sifalo-ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
	box-sizing: border-box;
	background: #fff;
}

.sifalo-pay-account-field input:focus {
	border-color: var(--sifalo-green);
	box-shadow: 0 0 0 3px rgba(122, 193, 67, 0.2);
	outline: none;
}

.sifalo-pay-account-field input::placeholder {
	color: #98a2b3;
}

.sifalo-pay-account-hint {
	margin: 2px 0 10px !important;
	color: var(--sifalo-muted);
	line-height: 1.45;
}

.sifalo-pay-account-hint small {
	font-size: 12px;
}

/* Card redirect info */
.sifalo-pay-card-info {
	background: #fff;
	border: 1px solid var(--sifalo-border);
	border-radius: 8px;
	padding: 12px 14px;
	margin: 0 0 10px;
}

.sifalo-pay-card-info small {
	color: var(--sifalo-ink);
	font-size: 13px;
	line-height: 1.5;
}

/* Secured badge */
.sifalo-pay-secured-badge {
	text-align: right;
	margin: 0;
}

.sifalo-pay-secured-badge small {
	font-size: 11px;
	color: var(--sifalo-muted);
	letter-spacing: 0.2px;
}

/* Processing overlay */
.sifalo-pay-processing-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.94);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sifalo-pay-processing-content {
	text-align: center;
	padding: 40px;
}

.sifalo-pay-processing-content p {
	font-size: 16px;
	color: var(--sifalo-ink);
	margin-top: 20px;
	font-weight: 500;
}

.sifalo-pay-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e0e0e0;
	border-top-color: var(--sifalo-green);
	border-radius: 50%;
	animation: sifalo-spin 0.8s linear infinite;
	margin: 0 auto;
}

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

@media (max-width: 768px) {
	.sifalo-pay-account-field input[type="tel"],
	.sifalo-pay-account-field input[type="text"] {
		font-size: 16px;
		padding: 12px 14px;
	}

	.sifalo-pay-processing-content {
		padding: 30px 20px;
	}

	.sifalo-pay-processing-content p {
		font-size: 14px;
	}
}
