/* ML Billing — Checkout (Apple-like design) */

.mlb-checkout {
	max-width: 500px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #1a1a1a;
	-webkit-font-smoothing: antialiased;
}

/* Sections */
.mlb-section {
	margin-bottom: 24px;
}

.mlb-section__header {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #888;
	margin-bottom: 12px;
}

/* Product card */
.mlb-product {
	text-align: center;
	padding: 24px 20px;
	background: #f8f9fa;
	border-radius: 12px;
}

.mlb-product__name {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 12px;
}

.mlb-product__type {
	font-size: 13px;
	color: #888;
	margin-bottom: 12px;
}

.mlb-price-row {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 6px;
}

.mlb-product__note {
	font-size: 13px;
	color: #888;
	margin-top: 10px;
}

.mlb-price-main {
	font-size: 30px;
	font-weight: 800;
	color: #1a1a1a;
	letter-spacing: -0.02em;
}

.mlb-price-period {
	font-size: 14px;
	color: #888;
	font-weight: 400;
}

.mlb-trial-badge {
	display: inline-block;
	margin-bottom: 16px;
	padding: 4px 12px;
	background: #f0f3e6;
	color: #93a850;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

/* Fields */
.mlb-field {
	margin-bottom: 14px;
}

.mlb-field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 13px;
	color: #555;
}

.mlb-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
	font-family: inherit;
	background: #fff;
}

.mlb-input:focus {
	border-color: #93a850;
	outline: none;
	box-shadow: 0 0 0 3px rgba(147, 168, 80, 0.12);
}

.mlb-input::placeholder {
	color: #bbb;
}

/* Two-column row */
.mlb-row2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

/* B2B toggle */
.mlb-b2b-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #666;
	cursor: pointer;
	margin-top: 4px;
}

.mlb-b2b-toggle input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #93a850;
}

/* B2B fields */
.mlb-b2b-fields {
	margin-top: 12px;
	padding: 14px;
	background: #f8f9fa;
	border-radius: 8px;
}

/* ARES lookup */
.mlb-ico-row {
	display: flex;
	gap: 8px;
}

.mlb-ico-row .mlb-input {
	flex: 1;
}

.mlb-ares-btn {
	padding: 8px 14px;
	background: #f3f4f6;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #93a850;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
	font-family: inherit;
}

.mlb-ares-btn:hover {
	background: #f0f3e6;
}

.mlb-ares-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.mlb-ares-status {
	font-size: 12px;
	margin-top: 4px;
	line-height: 1.4;
}

.mlb-ares-status.success {
	color: #93a850;
}

.mlb-ares-status.error {
	color: #dc2626;
}

/* Email exists notice */
.mlb-email-exists {
	margin-top: 6px;
	padding: 8px 12px;
	background: #fff8e1;
	border-radius: 6px;
	font-size: 13px;
	color: #8d6e00;
	line-height: 1.4;
}

.mlb-email-exists a {
	color: #93a850;
	font-weight: 600;
	text-decoration: underline;
}

/* Payment method tabs */
.mlb-method-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.mlb-method-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 16px 10px;
	border: 2px solid #e5e5e5;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	text-align: center;
	line-height: 1.3;
}

.mlb-method-tab:hover {
	border-color: #ccc;
	background: #fafafa;
}

.mlb-method-tab.active {
	border-color: #93a850;
	background: rgba(147, 168, 80, 0.04);
}

.mlb-method-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #f3f4f6;
	color: #666;
	transition: background 0.2s, color 0.2s;
}

.mlb-method-tab.active .mlb-method-icon {
	background: rgba(147, 168, 80, 0.12);
	color: #93a850;
}

.mlb-method-sub {
	display: block;
	font-size: 11px;
	color: #999;
	font-weight: 400;
	margin-top: 2px;
}

/* Transfer note */
.mlb-transfer-note {
	margin-top: 12px;
	padding: 10px 14px;
	background: #fff8e1;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 400;
	color: #8d6e00;
	line-height: 1.5;
}

/* Stripe Payment Element */
#ml-billing-stripe-element {
	margin-top: 14px;
}

#ml-billing-payment-element {
	padding: 14px;
	border: none;
	border-radius: 10px;
	background: #f8f9fa;
	min-height: 44px;
}

/* Error */
.mlb-error {
	margin-top: 12px;
	padding: 12px 14px;
	background: #fef2f2;
	color: #dc2626;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.4;
}

/* Summary */
.mlb-summary {
	background: #f8f9fa;
	border-radius: 10px;
	padding: 16px;
}

.mlb-summary__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	padding: 6px 0;
	color: #555;
}

.mlb-summary__row + .mlb-summary__row {
	border-top: 1px solid #eee;
}

.mlb-summary__bonus {
	color: #93a850;
}

.mlb-summary__total {
	font-size: 16px;
	color: #1a1a1a;
}

.mlb-summary__label {
	font-weight: 500;
}

/* Terms note (below button) */
.mlb-terms-note {
	text-align: center;
	font-size: 12px !important;
	color: #999;
	margin: 20px auto 0;
	max-width: 60%;
	line-height: 1.4 !important;
}

.mlb-terms-note a {
	color: #93a850;
	text-decoration: underline;
}

/* Submit button */
.mlb-btn {
	width: 100%;
	padding: 14px 24px;
	background: #93a850;
	color: #fff;
	border: 1px solid #93a850;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	font-family: inherit;
	letter-spacing: 0.01em;
}

.mlb-btn:hover {
	background: #f7f7f8;
	color: #93a850;
	transform: translateY(-1px);
}

.mlb-btn:active {
	transform: translateY(0);
}

.mlb-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Secure note */
.mlb-secure {
	text-align: center;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #bbb;
	margin: 20px 0 0;
}

/* Loading overlay */
.mlb-loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mlb-loading-content {
	background: #fff;
	border-radius: 16px;
	padding: 40px 50px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mlb-loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e5e5e5;
	border-top-color: #93a850;
	border-radius: 50%;
	animation: mlb-spin 0.8s linear infinite;
	margin: 0 auto 16px;
}

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

.mlb-loading-text {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 6px;
}

.mlb-loading-sub {
	font-size: 14px;
	color: #888;
}

/* Active subscription notice */
.ml-billing-notice {
	padding: 40px 20px;
	text-align: center;
	font-size: 16px;
}

.ml-billing-notice p {
	margin: 0 0 16px;
}

.ml-billing-notice__btn {
	display: inline-block;
	padding: 14px 32px;
	background: #93a850;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 8px;
	font-weight: 700;
	font-size: 16px;
	transition: background 0.15s;
}

.ml-billing-notice__btn:hover {
	background: #7d9140;
}

/* Transfer notice (above payment info) */
.mlb-transfer-notice {
	background: #f0f3e6;
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 16px;
	text-align: center;
}

.mlb-transfer-notice p {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.5;
}

.mlb-transfer-notice .mlb-transfer-notice-sub {
	font-size: 14px;
	font-weight: 400;
	color: #555;
	margin-top: 8px;
}

/* Transfer result */
.mlb-transfer-info {
	background: #f8f9fa;
	border-radius: 12px;
	padding: 24px;
}

.mlb-transfer-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 14px;
}

.mlb-transfer-label {
	color: #666;
	font-weight: 500;
}

.mlb-transfer-val {
	font-weight: 700;
	color: #1a1a1a;
	font-family: 'SF Mono', 'Fira Code', monospace;
}

.mlb-transfer-qr {
	display: flex;
	justify-content: center;
	margin: 16px 0 0;
}

.mlb-transfer-qr img {
	max-width: 200px;
	height: auto;
	border-radius: 8px;
}

/* Hide page title + add bottom spacing when transfer result shown */
.mlb-checkout-page-hide-title .entry-title,
.mlb-checkout-page-hide-title .page-title,
.mlb-checkout-page-hide-title h1:first-child {
	display: none !important;
}

#ml-billing-transfer-result {
	padding-bottom: 60px;
}

/* Responsive */
@media (max-width: 540px) {
	.mlb-checkout {
		max-width: 100%;
	}

	.mlb-row2 {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.mlb-method-tabs {
		grid-template-columns: 1fr;
	}

	.mlb-price-main {
		font-size: 26px;
	}

	.mlb-price-row {
		margin-top: 8px;
	}

	.mlb-features {
		grid-template-columns: 1fr;
		text-align: left;
	}
	.mlb-features li {
		flex-direction: row;
		font-size: 14px;
		gap: 10px;
	}
}

/* Features list below product card */
.mlb-features {
	list-style: none;
	padding: 0;
	margin: 16px 0 32px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px 12px;
	text-align: center;
}

.mlb-features li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #555;
	line-height: 1.3;
}

.mlb-feature-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(147, 168, 80, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.mlb-feature-icon svg {
	width: 16px;
	height: 16px;
	color: #93a850;
}

/* Turnstile */
.mlb-turnstile {
	display: flex;
	justify-content: center;
	margin-bottom: 8px;
}
