/* Blocksy offcanvas on branded pages — self-contained panel + menu styles. */

body[data-panel] {
	padding-right: var(--scrollbar-width, 0);
}

body[data-panel] .ct-panel.active {
	display: flex;
}

body[data-panel*='in'] .ct-panel.active {
	opacity: 1;
	pointer-events: auto;
}

.ct-drawer-canvas {
	position: relative;
	z-index: 1000001;
}

.ct-drawer-canvas[data-location='start'] {
	height: 0;
	overflow: visible;
}

.ct-panel {
	flex-direction: column;
	position: fixed;
	z-index: 1000002;
	inset: var(--admin-bar, 0) 0 0 0;
	opacity: 0;
	display: none;
	pointer-events: none;
	transition: opacity 0.25s ease-in-out;
}

body[data-panel*='in'] #offcanvas.active {
	background: rgba(17, 20, 24, 0.45);
}

/* Override Blocksy Customizer dark offcanvas on branded pages. */
body[data-header*='type-1'] #offcanvas .ct-panel-inner,
body[data-header*='type-1'] #offcanvas .ct-panel-content,
body[data-header*='type-1'] #offcanvas .ct-panel-content-inner {
	background: #fff !important;
	background-color: #fff !important;
	color: #242828;
}

body[data-header*='type-1'] #offcanvas [data-id='mobile-menu'] {
	--theme-link-initial-color: #242828;
	--theme-link-hover-color: #111;
	--theme-text-color: #242828;
	--mobile-menu-divider: 1px solid #eef0f1;
}

body[data-panel] #back-to-top,
body[data-panel] .ct-back-to-top,
body[data-panel*='in'] #back-to-top,
body[data-panel*='in'] .ct-back-to-top {
	z-index: 1 !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

#offcanvas {
	--side-panel-width: min(320px, 90vw);
}

#offcanvas .ct-panel-inner {
	position: absolute;
	inset-block: 0;
	align-self: flex-end;
	width: var(--side-panel-width, min(320px, 90vw));
	max-width: calc(100% - 16px);
	height: calc(100% - 16px);
	margin: 8px;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 18px 48px rgba(17, 20, 24, 0.22);
	transform: translate3d(110%, 0, 0);
	transition: transform 0.25s ease-in-out;
	overflow: hidden;
}

body[data-panel*='in'] #offcanvas.active .ct-panel-inner {
	transform: translate3d(0, 0, 0);
}

#offcanvas .ct-panel-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 14px 16px 0;
}

#offcanvas .ct-toggle-close {
	display: inline-flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid #e3e5e6;
	border-radius: 50%;
	background: #fff;
	color: #242828;
	cursor: pointer;
}

#offcanvas .ct-toggle-close .ct-icon {
	fill: currentColor;
}

#offcanvas .ct-panel-content {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

#offcanvas .ct-panel-content-inner {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 8px 0 20px;
}

#offcanvas [data-device='desktop'] {
	display: none;
}

#offcanvas .mobile-menu {
	width: 100%;
}

#offcanvas .mobile-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#offcanvas .mobile-menu li {
	display: flex;
	flex-direction: column;
}

#offcanvas .mobile-menu .ct-sub-menu-parent {
	display: flex;
	align-items: center;
	column-gap: 10px;
}

#offcanvas .mobile-menu .ct-menu-link,
#offcanvas .mobile-menu a {
	display: flex;
	position: relative;
	width: 100%;
	align-items: center;
	min-height: 44px;
	padding: 10px 16px;
	color: #242828 !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

#offcanvas .mobile-menu .ct-menu-link:hover,
#offcanvas .mobile-menu a:hover,
#offcanvas .mobile-menu li.dropdown-active > .ct-sub-menu-parent > .ct-menu-link {
	background: #f7f8f9;
	color: #111 !important;
}

#offcanvas .mobile-menu[data-interaction='click'] [class*='children']:not(.dropdown-active) > ul {
	display: none;
}

#offcanvas .mobile-menu [class*='children'] > ul {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0 0 6px;
	overflow: hidden;
	list-style: none;
	background: #f7f8f9;
}

#offcanvas .mobile-menu [class*='children'] > ul .ct-menu-link {
	padding-left: 28px;
	font-size: 14px;
	font-weight: 600;
	color: #3d4549 !important;
}

#offcanvas .mobile-menu .ct-toggle-dropdown-mobile {
	display: inline-flex;
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	align-items: center;
	justify-content: center;
	margin-right: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

#offcanvas .mobile-menu .ct-toggle-dropdown-mobile svg {
	fill: currentColor;
}

.ntpanel-shared-header .ct-header-trigger {
	display: inline-flex;
	width: 28px;
	height: 48px;
	flex: 0 0 28px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #242828;
	cursor: pointer;
}

.ntpanel-shared-header .ct-header-trigger .ct-label {
	display: none;
}

.ntpanel-shared-header .ct-header-trigger .ct-icon {
	width: 22px;
	height: auto;
	fill: currentColor;
}

.ntpanel-shared-header .ct-header-trigger:hover,
.ntpanel-shared-header .ct-header-trigger:focus-visible {
	color: #d99000;
}

@media (max-width: 991.98px) {
	.ntpanel-shared-header .ct-header-trigger {
		display: none;
	}
}

@media (max-width: 767.98px) {
	.ntpanel-shared-header .ct-header-trigger {
		display: inline-flex;
		width: 28px;
		height: 36px;
		flex: 0 0 28px;
	}

	.ntpanel-shared-header .ct-header-trigger .ct-icon {
		width: 18px;
	}

	#offcanvas {
		--side-panel-width: min(320px, calc(100vw - 16px));
	}
}
