.ritch-mobile-toggle,
.ritch-menu-overlay {
	display: none;
}

.ritch-mobile-toggle {
	z-index: 100002;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: var(--ritch-menu-burger-radius, 4px);
	background: var(--ritch-menu-burger-bg, #fff);
	color: var(--ritch-menu-link-text, #222);
	cursor: pointer;
}

.ritch-mobile-toggle.is-floating {
	position: fixed;
	top: 20px;
	right: 20px;
}

.ritch-mobile-toggle.is-in-header {
	position: relative;
	z-index: auto;
	flex: 0 0 auto;
}

.ritch-mobile-toggle.is-shortcode {
	position: relative;
	z-index: auto;
}

.ritch-menu-panel-close {
	position: absolute;
	top: 20px;
	right: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: var(--ritch-menu-burger-radius, 4px);
	background: var(--ritch-menu-burger-bg, #fff);
	color: var(--ritch-menu-link-text, #222);
	cursor: pointer;
}

.ritch-menu-panel-close.is-transparent {
	background: transparent;
}

.ritch-menu-panel-close .dashicons {
	width: 26px;
	height: 26px;
	font-size: 26px;
	line-height: 1;
}

.ritch-menu-panel-close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.ritch-menu-overlay.ritch-menu-from-left .ritch-menu-panel-close {
	right: auto;
	left: 20px;
}

.ritch-mobile-toggle .dashicons {
	width: 26px;
	height: 26px;
	font-size: 26px;
	line-height: 1;
}

.ritch-mobile-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.ritch-menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.ritch-menu-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.ritch-menu-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(420px, 88vw);
	height: 100%;
	padding: 90px 20px 30px;
	background: var(--ritch-menu-container, #fff);
	overflow-x: hidden;
	overflow-y: auto;
	box-sizing: border-box;
	transform: translateX(100%);
	transition: transform 0.35s ease;
}

.ritch-menu-overlay.ritch-menu-from-left .ritch-menu-panel {
	right: auto;
	left: 0;
	transform: translateX(-100%);
}

.ritch-menu-overlay.is-open .ritch-menu-panel {
	transform: translateX(0);
}

body.ritch-menu-open {
	overflow: hidden;
}

.ritch-mobile-navigation,
.ritch-mobile-list,
.ritch-mobile-list .sub-menu {
	width: 100%;
}

.ritch-mobile-list,
.ritch-mobile-list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ritch-mobile-list li {
	position: relative;
	margin: 0 0 1px;
	padding: 0;
}

.ritch-mobile-list a {
	display: block;
	padding: 10px 48px 10px 16px;
	background: var(--ritch-menu-link-bg, #fff);
	color: var(--ritch-menu-link-text, #222);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ritch-mobile-list a:hover,
.ritch-mobile-list a:focus {
	background: var(--ritch-menu-link-hover, #f5f5f5);
	color: var(--ritch-menu-link-text, #222);
}

.ritch-mobile-list .submenu-open > a {
	background: var(--ritch-menu-link-hover, #f5f5f5);
	color: var(--ritch-menu-link-text, #222);
}

.ritch-submenu-toggle {
	position: absolute;
	top: 0;
	right: 4px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--ritch-menu-link-text, #222);
	cursor: pointer;
}

.ritch-submenu-toggle:hover,
.ritch-submenu-toggle:focus,
.ritch-submenu-toggle:active {
	border: 0 !important;
	background: transparent !important;
	color: var(--ritch-menu-link-text, #222);
}

.ritch-submenu-toggle .dashicons {
	transition: transform 0.25s ease;
}

.ritch-mobile-list .submenu-open > .ritch-submenu-toggle .dashicons {
	transform: rotate(180deg);
}

.ritch-mobile-list .sub-menu {
	max-height: 0;
	background: var(--ritch-menu-link-hover, #f5f5f5);
	opacity: 0;
	overflow: hidden;
	transform: translateY(-8px);
	transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease;
}

.ritch-mobile-list .submenu-open > .sub-menu {
	max-height: 1000px;
	opacity: 1;
	transform: translateY(0);
}

.ritch-mobile-list .sub-menu a {
	padding-left: 32px;
	background: var(--ritch-menu-link-hover, #f5f5f5);
	font-size: 15px;
}

.ritch-mobile-list .sub-menu .sub-menu a {
	padding-left: 48px;
}

.ritch-menu-panel .search-form {
	display: flex;
	margin-top: 24px;
}

.ritch-menu-panel .search-form label {
	flex: 1 1 auto;
	min-width: 0;
}

.ritch-menu-panel .search-field {
	width: 100%;
	height: 44px;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 0;
	box-sizing: border-box;
}

.ritch-menu-panel .search-submit {
	width: auto;
	height: 44px;
	margin: 0 0 0 8px;
	padding: 8px 16px;
	cursor: pointer;
}

.ritch-menu-panel .search-form-without-button label,
.ritch-menu-panel .search-form-without-button .search-field {
	width: 100%;
}

body.admin-bar .ritch-mobile-toggle.is-floating {
	top: 52px;
}

body.admin-bar .ritch-menu-panel {
	padding-top: 122px;
}

body.admin-bar .ritch-menu-panel-close {
	top: 52px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .ritch-mobile-toggle.is-floating {
		top: 66px;
	}

	body.admin-bar .ritch-menu-panel {
		padding-top: 136px;
	}

	body.admin-bar .ritch-menu-panel-close {
		top: 66px;
	}
}
