/* =========================================================
 * User Account Element
 * ========================================================= */

.wpthemify-user-account {
	position: relative;
	display: inline-flex;
}

/* --- Trigger --- */
.wpthemify-ua-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 6px 12px;
	border-radius: 8px;
	transition: background 0.2s;
	user-select: none;
}

.wpthemify-ua-trigger:hover {
	background: rgba(255, 255, 255, 0.12);
}

/* Icon / Avatar */
.wpthemify-ua-icon svg {
	display: block;
	color: var(--txtHeader, #fff);
}

.wpthemify-ua-avatar img {
	border-radius: 50%;
	display: block;
	object-fit: cover;
}

/* Info text */
.wpthemify-ua-info {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.wpthemify-ua-label {
	font-size: 12px;
	color: var(--txtHeader, #fff);
	opacity: 0.85;
}

.wpthemify-ua-sublabel {
	font-size: 13px;
	font-weight: 600;
	color: var(--txtHeader, #fff);
}

.wpthemify-ua-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--txtHeader, #fff);
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Arrow */
.wpthemify-ua-arrow {
	color: var(--txtHeader, #fff);
	transition: transform 0.2s;
	flex-shrink: 0;
}

.wpthemify-user-account:hover .wpthemify-ua-arrow {
	transform: rotate(180deg);
}

/* --- Dropdown --- */
.wpthemify-ua-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 180px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	z-index: 9999;
}

.wpthemify-user-account:hover .wpthemify-ua-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Dropdown items */
.wpthemify-ua-dropdown-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	color: #333 !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.15s;
}

.wpthemify-ua-dropdown-item:hover {
	background: #f5f5f5;
	color: var(--mainColor, #1a51a2) !important;
}

.wpthemify-ua-dropdown-item svg {
	flex-shrink: 0;
	color: #666;
	transition: color 0.15s;
}

.wpthemify-ua-dropdown-item:hover svg {
	color: var(--mainColor, #1a51a2);
}


@media (max-width: 767px) {
	.wpthemify-ua-info {
		display: none;
	}

	.wpthemify-ua-trigger {
		padding: 6px;
	}
}

/* Logout item */
.wpthemify-ua-logout:hover {
	color: #d31100 !important;
}

.wpthemify-ua-logout:hover svg {
	color: #d31100;
}
