/**
 * Style menu konta zalogowanego użytkownika (dropdown w nagłówku portalu).
 *
 * Prefiks `gmzl-account-menu`. Komponent jest osadzany w nagłówku motywu przez
 * shortcode i ładowany globalnie, dlatego style są wąsko zakresowane.
 */

.gmzl-account-menu {
	position: relative;
	display: inline-block;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gmzl-account-menu__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: transparent;
	border: 1px solid #e4e6ea;
	border-radius: 999px;
	padding: 0.35rem 0.8rem 0.35rem 0.4rem;
	cursor: pointer;
	font-size: 0.9rem;
	color: #071925;
}

.gmzl-account-menu__trigger:hover {
	background: #f7f8fa;
}

.gmzl-account-menu__avatar {
	font-size: 1.2rem;
	line-height: 1;
}

.gmzl-account-menu__name {
	font-weight: 600;
}

.gmzl-account-menu__login {
	font-weight: 600;
	color: #cc1f2d;
	text-decoration: none;
}

.gmzl-account-menu__login:hover {
	text-decoration: underline;
}

.gmzl-account-menu__dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 0.4rem);
	min-width: 240px;
	background: #fff;
	border: 1px solid #e4e6ea;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(7, 25, 37, 0.12);
	padding: 0.5rem;
	z-index: 1000;
}

.gmzl-account-menu__section {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	padding: 0.4rem 0.6rem 0.2rem;
}

.gmzl-account-menu__current {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.6rem;
	font-weight: 600;
	color: #071925;
	border-bottom: 1px solid #e4e6ea;
	margin-bottom: 0.3rem;
}

.gmzl-account-menu__check {
	color: #1c7c40;
}

.gmzl-account-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gmzl-account-menu__item a {
	display: block;
	padding: 0.55rem 0.6rem;
	color: #16181d;
	text-decoration: none;
	border-radius: 6px;
	font-size: 0.9rem;
}

.gmzl-account-menu__item a:hover {
	background: #f7f8fa;
}

.gmzl-account-menu__item--logout a {
	color: #cc1f2d;
	border-top: 1px solid #e4e6ea;
	margin-top: 0.3rem;
}
