.umm-account-widget {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: inherit;
}

.umm-account-trigger {
	border: none;
	cursor: pointer;
	font-weight: 700;
	font-size: 14px;
}

.umm-login-trigger {
	background: #c6f135;
	color: #16210a;
	padding: 0.75em 2em;
	min-width: 180px;
	text-align: center;
	border-radius: 999px;
}

.umm-login-trigger:hover {
	background: #b3dc2c;
}

/*
 * .umm-login-prompt-trigger only listens for clicks (see account-widget.js) —
 * it has no say over whether the element carrying it should render at all,
 * since that element might be rendered by a completely different plugin that
 * has no idea what membership status means. WordPress already stamps
 * "logged-in" on <body> for every signed-in visitor (any standard theme,
 * including Astra, outputs it via body_class()), so hiding by that class
 * here guarantees the same "invisible once logged in" behavior everywhere
 * this trigger class is used — our own [um_login_prompt] shortcode included.
 */
body.logged-in .umm-login-prompt-trigger {
	display: none !important;
}

.umm-avatar-trigger {
	display: block;
	flex-shrink: 0;
	background: transparent;
	padding: 0;
	border-radius: 50%;
	line-height: 0;
	border: 2px solid rgba(255, 255, 255, 0.12);
}

.umm-avatar-trigger img {
	display: block;
	border-radius: 50%;
	width: 36px;
	height: 36px;
}

.umm-status-pill {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	padding: 0.6em 1.2em;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	border: none;
}

.umm-status-pill-free {
	background: #3a3f4b;
	color: #f3f5f0;
}

.umm-status-pill-basic {
	background: #f5b94d;
	color: #3d2b06;
}

.umm-status-pill-pro {
	background: #c6f135;
	color: #16210a;
}

.umm-status-pill-upgrade {
	background: #c6f135;
	color: #16210a;
}

.umm-status-pill-upgrade:hover {
	background: #b3dc2c;
	color: #16210a;
}

.umm-credit-pill {
	gap: 7px;
	background: #ffffff;
	color: #16171a;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

.umm-credit-icon {
	flex-shrink: 0;
}

.umm-account-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 320px;
	background: #1c1f26;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.umm-account-panel[hidden] {
	display: none;
}

.umm-account-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.umm-account-tab {
	flex: 1;
	background: none;
	border: none;
	color: #6c7280;
	font-size: 13px;
	font-weight: 700;
	padding: 0 0 10px;
	cursor: pointer;
	border-bottom: 2px solid transparent;
}

.umm-account-tab.is-active {
	color: #f3f5f0;
	border-bottom-color: #c6f135;
}

.umm-account-panel .umm-register-form {
	max-width: none;
	padding: 0;
	border: none;
	background: none;
}

.umm-account-menu-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.umm-account-menu-header img {
	border-radius: 50%;
}

.umm-account-name {
	margin: 0;
	color: #f3f5f0;
	font-weight: 700;
	font-size: 14px;
}

.umm-account-email {
	margin: 2px 0 0;
	color: #6c7280;
	font-size: 12px;
}

.umm-account-menu-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	color: #9aa0ac;
	font-size: 13px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.umm-badge {
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}

.umm-badge-free {
	background: rgba(255, 255, 255, 0.08);
	color: #f3f5f0;
}

.umm-badge-basic {
	background: #f5b94d;
	color: #3d2b06;
}

.umm-badge-pro {
	background: #c6f135;
	color: #16210a;
}

.umm-account-upgrade {
	display: block;
	width: 100%;
	text-align: center;
	margin: 10px 0;
	padding: 0.6em 1em;
	border: none;
	border-radius: 999px;
	background: #c6f135;
	color: #16210a;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
}

.umm-account-upgrade:hover {
	background: #b3dc2c;
	color: #16210a;
}

.umm-account-menu-link {
	display: block;
	padding: 10px 0;
	color: #f3f5f0;
	font-size: 13px;
	text-decoration: none;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.umm-account-menu-link:hover {
	color: #c6f135;
}

.umm-account-divider {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	margin: 4px 0;
}

.umm-account-logout {
	color: #f2a3a3;
	border-top: none;
}

.umm-account-logout:hover {
	color: #e57a7a;
}
