/* ===================================================================
   ACCOUNT REGISTRATION CHOOSER + DEALER STATUS
   Loaded only on the My Account page (inc/enqueue.php, after
   woocommerce.css). Two surfaces:
     1. The two-path "Create Account" column on the logged-out login
        screen (woocommerce/myaccount/form-login.php override).
     2. The dealer status card / badge on the account dashboard
        (inc/dealer-accounts.php).
=================================================================== */

/* ── 1. Register paths (Customer / Dealer chooser) ─────────────── */

/* Layout: login stays the narrower left column; the two create-account
   cards sit SIDE BY SIDE in the wider right column (operator spec).
   Overrides WC core's floated col2-set with a grid at desktop widths. */
@media (min-width: 1024px) {
	.woocommerce-account #customer_login.u-columns {
		display: grid;
		/* Login stays compact; the two create-account cards get the room. */
		grid-template-columns: minmax(300px, 0.7fr) 2.3fr;
		gap: 2.5rem;
	}
	.woocommerce-account #customer_login .u-column1,
	.woocommerce-account #customer_login .u-column2 {
		float: none;
		width: 100%;
		max-width: none;
	}
}

.mxo-register-paths {
	display: grid;
	gap: 1rem;
}

@media (min-width: 1024px) {
	.mxo-register-paths {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
	/* The "or" divider is a mobile/stacked affordance; side-by-side cards
	   don't need it and it would otherwise claim a grid cell. Child
	   combinator outranks the base display:flex rule later in this file
	   (media queries add no specificity). */
	.mxo-register-paths > .mxo-register-paths__divider {
		display: none;
	}
}

.mxo-register-path {
	padding: 1.5rem;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	display: grid;
	gap: 1.25rem;
}

/* The WC register form nests inside the customer path card — strip its
   own card chrome. The form.register selector matches WC core's
   `.woocommerce form.register` (padding/margin/border) so this reset
   outranks it in the cascade; the theme's woocommerce.css card rule
   (border !important) is beaten on specificity. */
.mxo-register-path form.woocommerce-form-register {
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0 !important;
	border-radius: 0;
}

.mxo-register-path__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.mxo-register-path__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
	border-radius: 999px;
	background: var(--primary);
	color: var(--primary-foreground);
}

.mxo-register-path__label {
	display: grid;
	gap: 0.125rem;
}

.mxo-register-path__title {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.mxo-register-path__sub {
	font-size: 0.8125rem;
	color: var(--muted-foreground);
}

.mxo-register-paths__divider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted-foreground);
}

.mxo-register-paths__divider::before,
.mxo-register-paths__divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--border);
}

.mxo-register-path__benefits {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.5;
}

.mxo-register-path__benefits li {
	position: relative;
	padding-left: 1.375rem;
}

.mxo-register-path__benefits li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3125rem;
	width: 0.75rem;
	height: 0.375rem;
	border-left: 2px solid var(--primary);
	border-bottom: 2px solid var(--primary);
	transform: rotate(-45deg);
}

.mxo-register-path__note {
	margin: 0;
	padding: 0.75rem 1rem;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--muted-foreground);
	background: var(--muted);
	border-radius: var(--radius);
}

.mxo-register-path__cta {
	justify-self: start;
}

/* ── 2. Dealer status on the account dashboard ─────────────────── */

.mxo-dealer-status--pending {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
	background: var(--muted);
	border: 1px solid var(--border);
	border-left: 4px solid var(--primary);
	border-radius: var(--radius-md);
}

.mxo-dealer-status__icon {
	flex-shrink: 0;
	color: var(--primary);
	margin-top: 0.125rem;
}

.mxo-dealer-status__title {
	margin: 0 0 0.25rem;
	font-family: var(--font-display);
	font-size: 0.9375rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.mxo-dealer-status__text {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--muted-foreground);
}

.mxo-dealer-status--approved {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem;
	margin: 0 0 1.5rem;
	font-size: 0.875rem;
	color: var(--muted-foreground);
}

.mxo-dealer-status__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.75rem;
	font-family: var(--font-display);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--primary-foreground);
	background: var(--primary);
	border-radius: 999px;
}
