/**
 * Gloo Mobile Burger Menu Customizer
 * Frontend base CSS.
 */

.gmbc-toggle {
	position: fixed;
	display: none;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
	cursor: pointer;
	padding: 0;
	transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease, visibility 160ms ease;
}

.gmbc-toggle:hover,
.gmbc-toggle:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.gmbc-toggle-inner {
	display: inline-flex;
	width: 22px;
	height: 16px;
	flex-direction: column;
	justify-content: space-between;
	align-items: stretch;
	pointer-events: none;
}

.gmbc-burger-line {
	display: block;
	height: 2px;
	border-radius: 999px;
}

.gmbc-toggle-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gmbc-overlay {
	position: fixed;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--gmbc-duration, 260ms) ease, visibility var(--gmbc-duration, 260ms) ease;
	pointer-events: auto;
}

body.gmbc-open .gmbc-overlay {
	opacity: 1;
	visibility: visible;
}

body.gmbc-scroll-locked {
	overflow: hidden;
	touch-action: none;
}

.gmbc-panel {
	box-sizing: border-box;
}

.gmbc-panel * {
	box-sizing: border-box;
}

.gmbc-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 18px;
	padding: 0 0 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.gmbc-panel-title {
	margin: 0;
	font-size: 0.95em;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.gmbc-panel-title-hidden {
	visibility: hidden;
}

.gmbc-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: currentColor;
	cursor: pointer;
	margin-left: auto;
}

.gmbc-close-icon {
	position: relative;
	display: block;
	width: 20px;
	height: 20px;
}

.gmbc-close-icon::before,
.gmbc-close-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 20px;
	height: 2px;
	border-radius: 999px;
	transform-origin: center;
}

.gmbc-close-icon::before {
	transform: rotate(45deg);
}

.gmbc-close-icon::after {
	transform: rotate(-45deg);
}

.gmbc-submenu-toggle {
	position: absolute;
	top: 8px;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: currentColor;
	cursor: pointer;
}

.gmbc-submenu-toggle::before {
	content: "+";
	font-size: 20px;
	line-height: 1;
}

.gmbc-submenu-open > .gmbc-submenu-toggle::before {
	content: "−";
}

.gmbc-submenu-collapsed > .sub-menu,
.gmbc-submenu-collapsed > .submenu,
.gmbc-submenu-collapsed > .wp-block-navigation__submenu-container {
	display: none !important;
}

.gmbc-extra {
	position: relative;
	z-index: 2;
}

.gmbc-extra-top {
	margin-bottom: 16px;
}

.gmbc-extra-bottom-wrap {
	margin-top: 18px;
}

.gmbc-extra-very-bottom {
	margin-top: auto;
	padding-top: 18px;
}

.gmbc-logo {
	display: flex;
	position: relative;
	z-index: 2;
}

.gmbc-logo a,
.gmbc-logo span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
}

.gmbc-logo img {
	display: block;
	width: auto;
	height: auto;
	max-height: 160px;
}

.gmbc-align-left {
	justify-content: flex-start;
	text-align: left;
}

.gmbc-align-center {
	justify-content: center;
	text-align: center;
}

.gmbc-align-right {
	justify-content: flex-end;
	text-align: right;
}

.gmbc-phone {
	position: relative;
	z-index: 2;
	margin: 16px 0;
}

.gmbc-secondary-link,
.gmbc-social-link {
	text-decoration: none !important;
	line-height: 1.25 !important;
	transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.gmbc-secondary-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

.gmbc-socials {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0;
}

.gmbc-social-link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px;
}

.gmbc-social-link img {
	display: block;
	object-fit: contain;
	flex: 0 0 auto;
}

.gmbc-social-label {
	display: inline-block;
	white-space: nowrap;
}

.gmbc-socials-no-labels .gmbc-social-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.gmbc-menu-hidden {
	display: none !important;
}

/* WordPress Navigation block compatibility */
body.gmbc-enabled .gmbc-panel .wp-block-navigation__responsive-container,
body.gmbc-enabled .gmbc-panel .wp-block-navigation__responsive-dialog,
body.gmbc-enabled .gmbc-panel .wp-block-navigation__responsive-container-content {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	inset: auto !important;
	width: auto !important;
	height: auto !important;
	max-width: none !important;
	max-height: none !important;
	transform: none !important;
	background: transparent !important;
	color: inherit !important;
	padding: 0 !important;
	margin: 0 !important;
	pointer-events: auto !important;
}

body.gmbc-enabled .gmbc-panel .wp-block-navigation__responsive-container-open,
body.gmbc-enabled .gmbc-panel .wp-block-navigation__responsive-container-close {
	display: none !important;
	pointer-events: none !important;
}
