.tokki-header-menu,
.tokki-header-login {
	font-family: "Zen Maru Gothic", sans-serif;
}

.tokki-header-menu {
	position: relative;
	display: inline-flex;
	align-items: center;
	z-index: 10001;
}

.tokki-header-login {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid #424045;
	border-radius: 999px;
	color: #d2d1d5 !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.tokki-header-login:hover,
.tokki-header-login:focus-visible {
	border-color: #b778e6;
	background: #242228;
	color: #c98cf3 !important;
}

.tokki-header-menu-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 68px;
	height: 48px;
	padding: 4px 11px 4px 5px;
	border: 1px solid #424045;
	border-radius: 999px;
	background: #242328;
	color: #bfbec1;
	cursor: pointer;
	box-shadow: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tokki-header-menu-trigger:hover,
.tokki-header-menu-trigger:focus-visible,
.tokki-header-menu.is-open .tokki-header-menu-trigger {
	border-color: #b778e6;
	background: #2a292c;
}

.tokki-header-menu-trigger:focus-visible,
.tokki-header-login:focus-visible,
.tokki-header-menu-link:focus-visible,
.tokki-header-menu-profile:focus-visible {
	outline: 2px solid #b778e6;
	outline-offset: 2px;
}

.tokki-header-menu-avatar {
	display: block;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
}

.tokki-header-menu-arrow {
	font-size: 12px;
	transition: transform 0.2s ease;
}

.tokki-header-menu.is-open .tokki-header-menu-arrow {
	transform: rotate(180deg);
}

.tokki-header-menu-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 320px;
	max-width: calc(100vw - 24px);
	padding: 8px 0;
	border: 1px solid #424045;
	border-radius: 16px;
	background: #1a191d;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
	color: #d2d1d5;
	overflow: hidden;
}

.tokki-header-menu-dropdown[hidden] {
	display: none !important;
}

.tokki-header-menu-profile {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 8px;
	padding: 11px 12px;
	border-radius: 11px;
	color: #f2f1f4 !important;
	text-decoration: none !important;
}

.tokki-header-menu-profile:hover {
	background: #2a292c;
}

.tokki-header-menu-profile:hover strong,
.tokki-header-menu-profile:focus-visible strong {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.tokki-header-menu-profile img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
}

.tokki-header-menu-profile span {
	display: flex;
	min-width: 0;
	flex-direction: column;
	line-height: 1.25;
}

.tokki-header-menu-profile strong {
	max-width: 220px;
	overflow: hidden;
	font-size: 15px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tokki-header-menu-profile small {
	margin-top: 3px;
	color: #a9a7ad;
	font-size: 13px;
}

.tokki-header-menu-login {
	min-height: 42px;
	padding-top: 9px;
	padding-bottom: 9px;
}

.tokki-header-menu-links,
.tokki-header-menu-footer {
	padding: 7px 8px;
	border-top: 1px solid #343238;
}

.tokki-header-menu-link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 42px;
	padding: 9px 12px;
	border-radius: 10px;
	color: #d2d1d5 !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none !important;
}

.tokki-header-menu-link:hover {
	background: #2a292c;
	color: #c98cf3 !important;
}

.tokki-header-menu-link i {
	width: 18px;
	color: #99979f;
	font-size: 15px;
	text-align: center;
}

.tokki-header-menu-link:hover i {
	color: #b778e6;
}

.tokki-header-menu-footer {
	padding-bottom: 1px;
}

.tokki-header-menu-logout {
	color: #c8c6cc !important;
}

@media (max-width: 544px) {
	.tokki-header-menu-trigger {
		min-width: 62px;
		height: 46px;
		padding-right: 9px;
	}

	.tokki-header-menu-avatar {
		width: 36px;
		height: 36px;
	}

	.tokki-header-menu-dropdown {
		position: fixed;
		top: var(--tokki-header-menu-top, 72px);
		right: 12px;
		left: auto;
		width: min(320px, calc(100vw - 24px));
		max-height: calc(100vh - var(--tokki-header-menu-top, 72px) - 12px);
		max-height: calc(100dvh - var(--tokki-header-menu-top, 72px) - 12px);
		overflow-y: auto;
	}

	.tokki-header-login {
		min-height: 42px;
		padding: 0 13px;
		font-size: 14px;
	}
}

/* Ajustes visuales aprobados después de la versión 1.4.6. */
.tokki-header-login {
	transform: translateY(4px);
}

.tokki-header-menu-links {
	padding-top: 4px;
	padding-bottom: 4px;
}

.tokki-header-menu-links .tokki-header-menu-link {
	min-height: 36px;
	padding-top: 5px;
	padding-bottom: 5px;
}
