.kf-account {
	position: relative;
}

.kf-account .kf-account-trigger {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: #1f1f1f;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.kf-account .kf-account-trigger:hover,
.kf-account .kf-account-trigger:focus {
	color: #1f6c43;
	text-decoration: none;
}

.kf-account .auth-modal.kf-account-panel {
	display: none;
	position: absolute;
	z-index: 650;
	top: 38px;
	right: 0;
	width: 330px;
	max-width: calc(100vw - 24px);
	border: 1px solid #e3e9df;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(31, 48, 38, 0.16);
}

.kf-account .auth-modal.kf-account-panel.open {
	display: block;
}

.kf-account .auth-modal.kf-account-panel::before {
	content: "";
	position: absolute;
	top: -9px;
	right: 28px;
	width: 16px;
	height: 16px;
	border-top: 1px solid #e3e9df;
	border-left: 1px solid #e3e9df;
	background: #fff;
	transform: rotate(45deg);
}

.kf-account .auth-modal.kf-account-panel .box-modal.kf-account-card,
.kf-account .auth-modal.kf-account-panel .box-modal.kf-account-card.profile-modal-inner,
.kf-account .auth-modal.kf-account-panel .box-modal.kf-account-card.auth-modal-inner {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: #1f2b22;
}

.kf-account .kf-account-body {
	padding: 18px;
}

.kf-account .kf-account-head {
	padding: 0 34px 14px 0;
	border-bottom: 1px solid #edf1ea;
}

.kf-account .kf-account-title {
	margin: 0 0 4px;
	color: #1f2b22;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 700;
}

.kf-account .kf-account-email {
	margin: 0;
	color: #7a827a;
	font-size: 13px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.kf-account .kf-account-nav {
	display: grid;
	gap: 6px;
	padding-top: 14px;
}

.kf-account .kf-account-main,
.kf-account .kf-account-link {
	display: flex;
	align-items: center;
	min-height: 42px;
	padding: 0 12px;
	border-radius: 8px;
	color: #3f4a3f;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 600;
	text-decoration: none;
}

.kf-account .kf-account-main {
	justify-content: center;
	background: #3f9a54;
	color: #fff;
	font-weight: 700;
}

.kf-account .kf-account-main:hover,
.kf-account .kf-account-main:focus {
	background: #2f8546;
	color: #fff;
	text-decoration: none;
}

.kf-account .kf-account-link:hover,
.kf-account .kf-account-link:focus {
	background: #f1faf5;
	color: #1f6c43;
	text-decoration: none;
}

.kf-account .kf-account-logout {
	margin-top: 6px;
	border-top: 1px solid #edf1ea;
	border-radius: 0 0 8px 8px;
	color: #6f776f;
}

.kf-account .kf-account-close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: #f7f9f6;
	color: #7a827a;
	font-size: 20px;
	line-height: 1;
	font-weight: 400;
	cursor: pointer;
}

.kf-account .kf-account-close:hover,
.kf-account .kf-account-close:focus {
	background: #eef7f1;
	color: #1f6c43;
	outline: none;
}

body.kf-account-lock {
	overflow: hidden;
}

.kf-account-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 640;
	background: rgba(16, 24, 18, 0.34);
	opacity: 0;
	transition: opacity 0.18s ease;
}

.kf-account-overlay.kf-account-overlay--open {
	display: block;
	opacity: 1;
}

.reg_basket_mob .kf-account.kf-account--mobile {
	display: block;
	position: relative;
	flex-shrink: 0;
	float: left;
	width: 40px;
	height: 36px;
	margin: 0 0 0 18px;
}

.reg_basket_mob .kf-account.kf-account--mobile .openRegForm_mob {
	float: none;
	width: 100%;
	height: 100%;
	margin: 0;
}

@media screen and (max-width: 750px) {
	.kf-account.kf-account--mobile {
		position: static;
	}

	.reg_basket_mob .kf-account.kf-account--mobile {
		position: relative;
		width: 23px;
		height: 23px;
		margin: 0;
	}

	.kf-account.kf-account--mobile .auth-modal.kf-account-panel {
		display: block;
		visibility: hidden;
		position: fixed;
		z-index: 660;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-width: none;
		max-height: 86vh;
		overflow: auto;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -18px 48px rgba(31, 48, 38, 0.18);
		pointer-events: none;
		transform: translateY(100%);
		transition: transform 0.22s ease, visibility 0.22s ease;
	}

	.kf-account.kf-account--mobile .auth-modal.kf-account-panel.open {
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}

	.kf-account.kf-account--mobile .auth-modal.kf-account-panel::before {
		display: none;
	}

	.kf-account.kf-account--mobile .kf-account-body {
		padding: 22px 18px 24px;
	}

	.kf-account.kf-account--mobile .kf-account-head {
		padding-right: 42px;
	}

	.kf-account.kf-account--mobile .kf-account-main,
	.kf-account.kf-account--mobile .kf-account-link {
		min-height: 48px;
		font-size: 15px;
	}

	.kf-account.kf-account--mobile .kf-account-close {
		top: 14px;
		right: 14px;
		width: 34px;
		height: 34px;
	}
}
