.kahoo-mobile-canvas {
	position: relative;
	display: block;
}

/* پرتال (اورلی + پنل) باید از هر چیز دیگه‌ای، از جمله خود دکمه همبرگر، بالاتر باشه */
.kahoo-canvas-portal.kahoo-mobile-canvas {
	position: relative;
	z-index: 999999;
}

.kahoo-toggle-btn,
.kahoo-toggle-btn:active,
.kahoo-toggle-btn:focus {
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background-color .2s ease, color .2s ease;
	-webkit-tap-highlight-color: transparent;
	outline: none;
	position: relative;
	z-index: 100000;
	box-shadow: none;
}
.kahoo-toggle-btn::-moz-focus-inner {
	border: 0;
}

.kahoo-toggle-btn svg,
.kahoo-toggle-btn i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.kahoo-canvas-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease;
	z-index: 99998;
}

.kahoo-canvas-panel {
	position: fixed;
	top: 0;
	bottom: 0;
	/* عرض پنل از اینجا نمی‌آید؛ به‌صورت داینامیک و ریسپانسیو (بر اساس بریک‌پوینت‌های
	   المنتور) در PHP ویجت (build_dynamic_css) و به‌صورت inline در همان صفحه ساخته و چاپ می‌شود. */
	max-width: 100vw;
	background: #ffffff;
	z-index: 99999;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	visibility: hidden;
	transition: transform .35s ease, opacity .35s ease, visibility .35s ease;
}

/* موقعیت راست / چپ */
.kahoo-side-right .kahoo-canvas-panel { right: 0; transform: translateX(100%); }
.kahoo-side-left  .kahoo-canvas-panel { left: 0;  transform: translateX(-100%); }

/* انیمیشن fade */
.kahoo-anim-fade .kahoo-canvas-panel { transform: none; opacity: 0; }

/* انیمیشن از بالا */
.kahoo-anim-top .kahoo-canvas-panel {
	top: 0; left: 0; right: 0; width: 100% !important;
	transform: translateY(-100%);
}

.kahoo-mobile-canvas.kahoo-open .kahoo-canvas-overlay {
	opacity: 1;
	visibility: visible;
}
.kahoo-mobile-canvas.kahoo-open .kahoo-canvas-panel {
	visibility: visible;
	transform: translate(0, 0);
	opacity: 1;
}

.kahoo-close-btn,
.kahoo-close-btn:active,
.kahoo-close-btn:focus {
	position: absolute;
	top: 16px;
	inset-inline-end: 16px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 10px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s ease, color .2s ease;
	-webkit-tap-highlight-color: transparent;
	outline: none;
	box-shadow: none;
}
.kahoo-close-btn::-moz-focus-inner {
	border: 0;
}

.kahoo-close-btn svg,
.kahoo-close-btn i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.kahoo-canvas-logo {
	margin-top: 30px;
	margin-bottom: 20px;
}
.kahoo-canvas-logo img {
	width: 140px;
	max-width: 100%;
	height: auto;
	display: inline-block;
}

.kahoo-canvas-nav {
	width: 100%;
	flex: 1 0 auto;
}

.kahoo-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.kahoo-menu-item {
	width: 100%;
}

.kahoo-menu-row {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 14px 20px;
	gap: 10px;
}

.kahoo-menu-link {
	text-decoration: none;
	color: #222;
	flex: 1;
}

.kahoo-menu-desc {
	display: block;
	font-size: 12px;
	opacity: .65;
	margin-top: 4px;
}

.kahoo-submenu-toggle {
	background: transparent;
	border: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
}

.kahoo-chevron {
	display: inline-flex;
	transition: transform .25s ease;
}
.kahoo-menu-item.kahoo-expanded > .kahoo-menu-row .kahoo-chevron {
	transform: rotate(180deg);
}

.kahoo-submenu-wrap {
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease;
	width: 100%;
}

.kahoo-canvas-bottom-image {
	margin-top: 30px;
	margin-bottom: 20px;
	width: 100%;
	display: flex;
	justify-content: center;
}
.kahoo-canvas-bottom-image img {
	width: 80%;
	max-width: 100%;
	height: auto;
}

/* قفل اسکرول بدنه صفحه */
body.kahoo-scroll-locked {
	overflow: hidden !important;
}

