/* assets/css/finachub-mobile-money-frontend-styles.css */

/* === CHECKOUT WRAPPER === */
.payment_method_finachub_mobile_money .finachub-mobile-money-checkout-wrapper {
	width: 100%;
	margin: 18px 0 10px;
	padding: 26px;
	border: 1px solid rgba(196, 208, 222, 0.75);
	border-radius: 24px;
	background:
		radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 20rem),
		linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
	box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
	font-family: 'Jost', sans-serif;
	box-sizing: border-box;
}

.payment_method_finachub_mobile_money .finachub-mobile-money-checkout-wrapper *,
.payment_method_finachub_mobile_money .finachub-mobile-money-checkout-wrapper *::before,
.payment_method_finachub_mobile_money .finachub-mobile-money-checkout-wrapper *::after {
	box-sizing: inherit;
}

/* === SECTION TITLE (kicker pill) === */
.finachub-mobile-money-section-title {
	display: inline-block;
	margin-bottom: 14px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #ccfbf1;
	color: #115e59;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* === PROVIDER GRID === */
.finachub-mobile-money-provider-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

/* === PROVIDER CARD === */
.finachub-provider-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-height: 100px;
	padding: 18px;
	border: 1px solid #dbe4ef;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.88);
	cursor: pointer;
	transition: 180ms ease;
}

.finachub-provider-card:hover {
	border-color: #c4d0de;
	background: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.finachub-provider-card.selected {
	border-color: rgba(15, 118, 110, 0.38);
	background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.09);
}

/* Hide default radio input */
.finachub-provider-card input[type="radio"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Card content layout */
.finachub-provider-card-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
}

/* Provider logo wrapper */
.finachub-provider-logo-wrap {
	display: flex;
	align-items: center;
	height: 24px;
}

/* Provider logo */
.finachub-provider-card img {
	height: 24px !important;
	max-height: 24px !important;
	max-width: 80px !important;
	width: auto !important;
	object-fit: contain !important;
	filter: grayscale(100%);
	opacity: 0.72;
	transition: 180ms ease;
}

.finachub-provider-card.selected img {
	filter: grayscale(0%);
	opacity: 1;
}

/* Provider name (text fallback when no logo) */
.finachub-provider-name {
	color: #0f172a;
	font-size: 15px;
	font-weight: 650;
	letter-spacing: -0.01em;
}

/* Selection indicator dot (top-right) */
.finachub-provider-check-icon {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: #0f766e;
	opacity: 0;
	transform: scale(0.7);
	transition: 180ms ease;
	display: block;
}

.finachub-provider-check-icon svg {
	display: none;
}

.finachub-provider-card.selected .finachub-provider-check-icon {
	opacity: 1;
	transform: scale(1);
}

/* === PHONE INPUT === */
.finachub-mobile-money-phone-group {
	margin-top: 8px;
}

.finachub-mobile-money-input-label {
	display: block;
	margin-bottom: 10px;
	color: #0f172a;
	font-size: 13px;
	font-weight: 650;
}

.finachub-mobile-money-input-wrapper {
	position: relative;
}

.finachub-mobile-money-input-prefix {
	position: absolute;
	top: 50%;
	left: 16px;
	transform: translateY(-50%);
	color: #64748b;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	pointer-events: none;
}

.finachub-mobile-money-input-wrapper input[type="text"] {
	width: 100%;
	max-width: 100%;
	min-height: 58px;
	margin: 0;
	padding: 0 18px 0 88px;
	border: 1px solid #dbe4ef;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.92);
	color: #0f172a;
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: normal;
	transition: 180ms ease;
}

.finachub-mobile-money-input-wrapper input[type="text"]::placeholder {
	color: #94a3b8;
}

.finachub-mobile-money-input-wrapper input[type="text"]:focus {
	border-color: rgba(15, 118, 110, 0.52);
	box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
	outline: none;
	background: #ffffff;
}

/* === HELP TEXT === */
.finachub-mobile-money-description {
	margin: 10px 0 0;
	color: #64748b;
	font-size: 12px;
	line-height: 1.6;
}

/* === PAYMENT ICONS PILL (title row) === */
.finachub-payment-icons {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-left: 10px;
	padding: 5px 10px;
	border: 1px solid #dbe4ef;
	border-radius: 8px;
	background: #f8fafc;
	line-height: 0;
	vertical-align: middle;
}

.finachub-payment-icon {
	display: inline-block !important;
	height: 20px !important;
	max-height: 20px !important;
	width: auto !important;
	max-width: 54px !important;
	object-fit: contain !important;
	vertical-align: middle;
	flex-shrink: 0;
}

/* === RESPONSIVE === */
@media screen and (max-width: 782px) {
	.payment_method_finachub_mobile_money .finachub-mobile-money-checkout-wrapper {
		padding: 22px 18px;
	}

	.finachub-mobile-money-provider-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.finachub-payment-icons {
		margin-left: 0;
		margin-top: 6px;
	}
}
