/*
 * Account button styles.
 * Edit this file to customize the logged-out and logged-in button appearance.
 */

.khb-account-widget {
	position: relative;
	display: inline-block;
	direction: rtl;
	font-family: var(--khb-font-family, inherit);
	color: var(--khb-font-color, inherit);
}

.khb-account-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: var(--khb-button-radius, 8px);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.khb-account-button:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.3);
	outline-offset: 3px;
}

.khb-login-button {
	background-color: var(--khb-login-bg, #2563eb);
	color: var(--khb-login-color, #ffffff);
}

.khb-login-button:hover,
.khb-login-button:focus {
	background-color: var(--khb-login-bg, #2563eb);
	color: var(--khb-login-color, #ffffff);
	filter: brightness(0.94);
}

.khb-user-button {
	background-color: var(--khb-account-bg, #1f2937);
	color: var(--khb-account-color, #ffffff);
}

.khb-user-button:hover,
.khb-user-button:focus {
	background-color: var(--khb-account-bg, #1f2937);
	color: var(--khb-account-color, #ffffff);
	filter: brightness(0.94);
}

.khb-account-button-label {
	display: inline-block;
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
