/*
 Header account control: Login button and the logged-in name dropdown.
 Navy brand to match the rest of the account area.
*/

.esg-account {
	position: relative;
	display: inline-block;
}

/* Login button (logged out) */
.esg-account-login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #002448;
	color: #ffffff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .5px;
	text-transform: uppercase;
	padding: 12px 32px;
	border-radius: 999px;
	transition: background .15s ease;
}
.esg-account-login:hover {
	background: #003a6e;
	color: #ffffff !important;
}

/* Account icon button (logged in) */
.esg-account-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #002448;
	color: #ffffff;
	border: none;
	cursor: pointer;
	line-height: 1;
	padding: 9px 16px;
	border-radius: 999px;
	transition: background .15s ease;
}
.esg-account-toggle:hover {
	background: #003a6e;
}

.esg-account-icon {
	display: block;
	width: 20px;
	height: 20px;
}

.esg-account-caret {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #ffffff;
	transition: transform .15s ease;
}
.esg-account.is-open .esg-account-caret {
	transform: rotate(180deg);
}

/* Dropdown panel */
.esg-account-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	min-width: 210px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #ffffff;
	border: 1px solid #e1e6ec;
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(0, 36, 72, 0.16);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
	z-index: 999;
}
.esg-account.is-open .esg-account-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.esg-account-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 8px;
	color: #1f2933;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 500;
}
.esg-account-menu a:hover {
	background: #f1f4f7;
	color: #002448;
	text-decoration: none !important;
}

/* Logout confirmation page ([esg_logout_confirm]) */
.esg-logout-confirm {
	text-align: center;
}
.esg-logout-text {
	font-size: 18px;
	color: #1f2933;
	margin: 0 0 26px;
}
.esg-logout-actions {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ---- Community section in the dropdown ---- */
.esg-account-sep {
	display: block;
	height: 1px;
	margin: 8px 6px;
	background: #e1e6ec;
}
.esg-account-label {
	display: block;
	padding: 4px 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #5b6b7a;
}
.esg-account-menu a.esg-account-has-badge {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.esg-account-count {
	background: #e23b3b;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
	padding: 0 7px;
	line-height: 1.6;
}

/* Stacked account buttons in the mobile off-canvas menu */
.esg-account-mobile-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	align-items: stretch;
}
.esg-account-mobile-buttons .mobile-header-button-wrap,
.esg-account-mobile-buttons .mobile-header-button-inner-wrap {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	transform: none !important;
}
.esg-account-mobile-buttons .mobile-header-button {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	text-align: center;
	border-radius: 999px !important;
}
.esg-account-mobile-btn {
	border-radius: 999px !important;
}
