/**
 * Mobile menu drawer — drill-down navigation.
 * Values taken from Figma "Menu" (229:7529) and "Submenu – *" (351:970 et al).
 */

.gw-drawer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	overflow: hidden;
	background: #fff;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.gw-drawer.is-open {
	display: block;
}

html.gw-drawer-is-open,
body.gw-drawer-is-open {
	overflow: hidden;
}

/* Buttons do not inherit the font family on their own. */
.gw-drawer button,
.gw-drawer a {
	font-family: inherit;
}

/* Panels ------------------------------------------------------------------ */

.gw-drawer__panel {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background: #fff;
}

.gw-drawer__panel[hidden] {
	display: none;
}

/* Top bar ----------------------------------------------------------------- */

.gw-drawer__bar {
	display: flex;
	align-items: flex-start;
	flex: 0 0 auto;
	padding: 22px 24px 0;
}

.gw-drawer__close {
	margin: 0 0 0 auto;
	padding: 0;
	width: 50px;
	height: 53px;
	border: 0;
	background: none;
	color: #000;
	font-size: 32px;
	font-weight: 300;
	line-height: 0.86;
	text-align: center;
	cursor: pointer;
}

.gw-drawer__back {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 8px 0 0;
	padding: 6px 8px 6px 0;
	border: 0;
	background: none;
	color: #1d1d1f;
	font-size: 16px;
	font-weight: 500;
	line-height: 22px;
	cursor: pointer;
}

.gw-drawer__chevron {
	display: block;
	flex: 0 0 auto;
}

/* Root panel -------------------------------------------------------------- */

.gw-drawer__root {
	padding: 0 32px;
}

.gw-drawer__root-list {
	margin: 0;
	padding: 44px 0 48px;
	max-width: 292px;
	list-style: none;
}

.gw-drawer__root-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gw-drawer__root-link {
	display: block;
	margin: 0;
	padding: 0;
	width: 100%;
	border: 0;
	background: none;
	color: #000;
	font-size: 24px;
	font-weight: 600;
	line-height: 57.6px;
	text-align: left;
	text-decoration: none;
	text-transform: uppercase;
	word-break: break-word;
	cursor: pointer;
}

/* Submenu panels ---------------------------------------------------------- */

.gw-drawer__groups {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 17px 32px 48px;
}

.gw-drawer__group-title {
	margin: 0;
	color: #86868b;
	font-size: 14px;
	font-weight: 500;
	line-height: 28px;
}

.gw-drawer__group-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gw-drawer__group-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gw-drawer__link {
	display: block;
	color: #1d1d1f;
	font-size: 15px;
	font-weight: 600;
	line-height: 30px;
	text-decoration: none;
	word-break: break-word;
}

.gw-drawer__group--primary .gw-drawer__link {
	color: #000;
	font-size: 22px;
	line-height: 42px;
	text-transform: uppercase;
}

/* Interaction -------------------------------------------------------------- */

.gw-drawer__root-link:focus-visible,
.gw-drawer__link:focus-visible,
.gw-drawer__back:focus-visible,
.gw-drawer__close:focus-visible {
	outline: 2px solid #1d1d1f;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
	.gw-drawer__root-link,
	.gw-drawer__link {
		transition: opacity 0.15s ease;
	}

	.gw-drawer__root-link:active,
	.gw-drawer__link:active {
		opacity: 0.55;
	}
}
