.magazine-header-profile-wrapper.sgl-profile-wrapper {
	position: absolute;
	top: 10px;
	right: -110px;
	z-index: 1004;
}

html.sgl-profile-ready .magazine-header-profile-wrapper:not(.sgl-profile-wrapper) {
	display: none !important;
}

#login-form.popup-login-wrapper {
	display: none !important;
}

.sgl-profile-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	line-height: 0;
}

.sgl-profile-toggle:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.sgl-profile-avatar {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	background: #e5e7eb;
}

.sgl-profile-caret {
	width: 0;
	height: 0;
	margin-left: 5px;
	border-top: 5px solid #6b7280;
	border-right: 4px solid transparent;
	border-left: 4px solid transparent;
}

.sgl-profile-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 1001;
	min-width: 190px;
	padding: 8px 0;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
	overflow: hidden;
}

.sgl-profile-menu[hidden] {
	display: none;
}

.sgl-profile-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 6px;
	padding: 4px 16px 10px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sgl-profile-name {
	max-width: 220px;
	color: #1f2937;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.sgl-profile-role {
	color: #6b7280;
	font-size: 12px;
	line-height: 1.35;
}

.sgl-profile-link {
	display: block;
	padding: 8px 16px;
	color: #1f2937;
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}

.sgl-profile-link:hover,
.sgl-profile-link:focus {
	background: #f3f4f6;
	color: #111827;
	text-decoration: none;
}

@media (max-width: 767px) {
	.magazine-header-profile-wrapper.sgl-profile-wrapper {
		top: 15px;
		right: 10px;
	}

	.sgl-profile-menu {
		right: 0;
		left: auto;
	}
}
