/*
 * Header account chip.
 *
 * Opens on hover and on focus-within, with no JavaScript. focus-within is what
 * makes it work on a phone and on a keyboard: tapping or tabbing to the avatar
 * opens the menu, and the avatar is itself a link to the most useful
 * destination, so a tap that navigates instead of opening is still correct.
 */

.gw-account {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.gw-account__toggle {
	display: block;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	overflow: hidden;
	line-height: 0;
	box-shadow: 0 0 0 1px #33244A;
	transition: box-shadow 140ms ease;
}

.gw-account__toggle:hover,
.gw-account__toggle:focus-visible {
	box-shadow: 0 0 0 2px #A22BD5;
}

.gw-account__avatar {
	display: block;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
}

.gw-account__avatar--letter {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #7A1FD0;
	color: #FFFFFF;
	font-family: Archivo, Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

.gw-account__menu {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 60;
	min-width: 208px;
	padding: 14px 0 6px;
	background: #161020;
	border: 1px solid #33244A;
	border-radius: 4px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}

.gw-account:hover .gw-account__menu,
.gw-account:focus-within .gw-account__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Keeps the pointer inside the element while it crosses the gap to the menu. */
.gw-account__menu::before {
	content: "";
	position: absolute;
	inset: -12px 0 100% 0;
}

.gw-account__name,
.gw-account__note {
	margin: 0;
	padding: 0 18px;
}

.gw-account__name {
	font-family: Archivo, Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #F2ECF5;
	line-height: 1.3;
}

.gw-account__note {
	margin-bottom: 12px;
	font-size: 12px;
	color: #8C8098;
	line-height: 1.4;
}

.gw-account__item {
	display: block;
	padding: 9px 18px;
	font-size: 14px;
	color: #B9AEC4;
	text-decoration: none;
	transition: background-color 120ms ease, color 120ms ease;
}

.gw-account__item:hover,
.gw-account__item:focus-visible {
	background: #221733;
	color: #F2ECF5;
}

/*
 * The header keeps one native Apply button and shows it only to signed-out
 * visitors. Hiding it here rather than rendering a second button means the
 * button stays a normal Elementor widget that can be restyled in the panel.
 */
.gw-signed-in .gw-signed-out-only {
	display: none;
}

.gw-signed-out .gw-signed-in-only {
	display: none;
}
