/*
 * Colors/fonts reference Elementor's own global CSS variables first
 * (matching the same approach used for the chat widget), so this
 * automatically follows whatever brand colors/fonts are set in
 * Elementor Site Settings.
 */
.acm-account-nav-guest {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.acm-account-nav-guest a {
	text-decoration: none;
	font-weight: 600;
	color: var(--e-global-color-text, inherit);
}

.acm-account-nav-user {
	position: relative;
	display: inline-block;
}

.acm-account-nav-trigger {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	font: inherit;
	color: var(--e-global-color-text, inherit);
}

.acm-account-nav-trigger img {
	border-radius: 50%;
	object-fit: cover;
}

.acm-account-nav-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 200px;
	background: var(--e-global-color-bg, #fff);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
	z-index: 9999;
	padding: 0.5rem 0;
	margin-top: 0.5rem;
}

.acm-account-nav.is-open .acm-account-nav-dropdown {
	display: block;
}

.acm-account-nav-item {
	display: block;
	padding: 0.5rem 1rem;
	text-decoration: none;
	color: var(--e-global-color-text, inherit);
	font-size: 0.9rem;
}

a.acm-account-nav-item:hover {
	background: rgba(0, 0, 0, 0.04);
}

.acm-account-nav-item-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.acm-account-nav-logout {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	margin-top: 0.3rem;
	padding-top: 0.6rem;
}

/* Mobile: dropdown becomes full width beneath the trigger, per the
   standing responsive requirement (min 44px touch targets). */
@media (max-width: 480px) {
	.acm-account-nav-item {
		padding: 0.75rem 1rem;
		min-height: 44px;
		box-sizing: border-box;
		display: flex;
		align-items: center;
	}

	.acm-account-nav-dropdown {
		right: 0;
		left: auto;
		min-width: 220px;
	}
}
