.mam-account-menu {
	position: fixed;
	right: 22px;
	top: 50%;
	z-index: 99999;
	transform: translateY(-50%);
	font-family: inherit;
}

.mam-account-menu__toggle {
	position: relative;
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #172033;
	color: #ffffff;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
	transition: background-color 160ms ease, transform 160ms ease;
}

.mam-account-menu__toggle:hover,
.mam-account-menu__toggle:focus-visible {
	background: #284260;
	transform: scale(1.05);
}

.mam-account-menu__toggle:focus-visible,
.mam-account-menu__links a:focus-visible {
	outline: 3px solid #f0b429;
	outline-offset: 3px;
}

.mam-account-menu__icon {
	width: 25px;
	height: 25px;
	fill: currentColor;
}

.mam-account-menu__toggle::after {
	position: absolute;
	right: 64px;
	padding: 7px 10px;
	border-radius: 6px;
	background: #172033;
	color: #ffffff;
	content: "Oma alue";
	font-size: 14px;
	line-height: 1.2;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 160ms ease;
}

.mam-account-menu__toggle:hover::after,
.mam-account-menu__toggle:focus-visible::after {
	opacity: 1;
}

.mam-account-menu__links {
	position: absolute;
	right: 66px;
	top: 50%;
	min-width: 190px;
	padding: 8px;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
	transform: translateY(-50%);
}

/*
 * Some themes override the browser's default [hidden] rule for navigation
 * elements. Keep the menu closed until the visitor deliberately opens it.
 */
.mam-account-menu__links[hidden] {
	display: none !important;
}

.mam-account-menu__links a {
	display: block;
	padding: 11px 12px;
	border-radius: 6px;
	color: #172033;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.mam-account-menu__links a:hover {
	background: #edf2f7;
	color: #172033;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 600px) {
	.mam-account-menu {
		right: 14px;
	}

	.mam-account-menu__links {
		right: 62px;
		min-width: 175px;
	}
}
