/* Mobile / tablet menu drawer. See inc/mobile-menu.php */

/* Hamburger (replaces the old Elementor off-canvas button) */
.cs-mm-toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #f1f1f1 !important;
	color: #161616 !important;
	cursor: pointer;
}
.cs-mm-toggle__bars { display: grid; gap: 5px; width: 20px; }
.cs-mm-toggle__bars span { display: block; height: 1.5px; background: currentColor; }
.cs-mm-toggle__bars span:nth-child(2) { width: 70%; justify-self: end; }
.cs-mm-toggle:focus-visible { outline: 2px solid #161616; outline-offset: 2px; }

/* Drawer */
.cs-mm {
	--cs-ink: #161616;
	--cs-text: #4a4a4a;
	--cs-muted: #8a8a8a;
	--cs-line: #ececec;
	--cs-accent: #bdd530;
	--cs-field: #f1f1f1;

	position: fixed;
	inset: 0;
	z-index: 100000;
	font-family: "PT Sans", sans-serif;
	text-align: left;
}
.cs-mm[hidden] { display: block; visibility: hidden; pointer-events: none; }

.cs-mm__scrim {
	position: absolute;
	inset: 0;
	background: rgba(22, 22, 22, .4);
	opacity: 0;
	transition: opacity .25s ease;
}

.cs-mm__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, 100%);
	background: #fff;
	box-shadow: -24px 0 48px -16px rgba(22, 22, 22, .25);
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.cs-mm.is-open .cs-mm__scrim { opacity: 1; }
.cs-mm.is-open .cs-mm__panel { transform: none; }

.cs-mm a { text-decoration: none; box-shadow: none; color: var(--cs-text); }
.cs-mm a:focus-visible,
.cs-mm button:focus-visible { outline: 2px solid var(--cs-ink); outline-offset: -2px; }

.cs-mm button {
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	color: var(--cs-ink) !important;
	box-shadow: none;
	cursor: pointer;
	font: inherit;
	text-align: left;
}

/* Head */
.cs-mm__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: none;
	min-height: 80px;
	padding: 12px 8px 12px 20px;
	border-bottom: 1px solid var(--cs-ink);
}
.cs-mm__logo { display: block; line-height: 0; }
.cs-mm__logo img {
	display: block;
	width: 170px;
	max-width: 60vw;
	height: auto;
}
.cs-mm .cs-mm__close {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
}

/* Search */
.cs-mm__search {
	display: flex;
	flex: none;
	height: 46px;
	margin: 16px 20px 4px;
	background: var(--cs-field);
	border: 1px solid transparent;
}
.cs-mm__search:focus-within { background: #fff; border-color: var(--cs-ink); }
.cs-mm .cs-mm__search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 100%;
	min-height: 0; /* theme sets 45px on inputs, which pushed the text below centre */
	line-height: normal;
	margin: 0;
	padding: 0 14px 1px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-family: "PT Sans", sans-serif;
	font-size: 16px; /* 16px stops iOS zooming in */
	color: var(--cs-ink);
}
.cs-mm .cs-mm__search button {
	display: grid;
	place-items: center;
	width: 48px;
	height: 100%;
	padding: 0;
	border-left: 1px solid #e2e2e2;
}

/* Body */
.cs-mm__body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 8px 0 32px;
}

.cs-mm ul { list-style: none; margin: 0; padding: 0; }
.cs-mm li { margin: 0; padding: 0; }

/* Primary rows */
.cs-mm__primary > li { border-bottom: 1px solid var(--cs-line); }
.cs-mm .cs-mm__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 56px;
	padding: 0 20px;
	font-family: Inter, sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .08em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--cs-ink);
}

.cs-mm__chev {
	width: 8px;
	height: 8px;
	margin: -4px 4px 0 0;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease, margin .2s ease;
}
.cs-mm__acc[aria-expanded="true"] > .cs-mm__chev { margin-top: 4px; transform: rotate(-135deg); }

/* All Products contents */
.cs-mm__products { padding: 0 20px 20px; }
.cs-mm__products[hidden] { display: none; }

.cs-mm__section { border-top: 1px solid var(--cs-line); }
.cs-mm__section:first-child { border-top: 0; }

.cs-mm .cs-mm__sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 48px;
	padding: 0;
	font-family: Inter, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.cs-mm__plus { position: relative; width: 12px; height: 12px; margin-right: 4px; }
.cs-mm__plus::before,
.cs-mm__plus::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 12px;
	height: 1.5px;
	background: currentColor;
	transform: translateY(-50%);
	transition: transform .2s ease;
}
.cs-mm__plus::after { transform: translateY(-50%) rotate(90deg); }
.cs-mm__acc[aria-expanded="true"] > .cs-mm__plus::after { transform: translateY(-50%) rotate(0deg); }

.cs-mm__list {
	padding: 0 0 14px 12px !important;
	border-left: 2px solid var(--cs-accent);
	margin-bottom: 8px !important;
}
.cs-mm__list[hidden] { display: none; }

.cs-mm__section--color .cs-mm__list,
.cs-mm__section--finish .cs-mm__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 12px;
}
.cs-mm__section--color .cs-mm__list[hidden],
.cs-mm__section--finish .cs-mm__list[hidden] { display: none; }

.cs-mm__item > a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	font-size: 16px;
	line-height: 1.3;
}
.cs-mm__item > a:active { color: var(--cs-ink); }

.cs-mm__item.has-sub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}
.cs-mm .cs-mm__toggle {
	position: relative;
	width: 40px;
	height: 40px;
	padding: 0;
}
.cs-mm .cs-mm__toggle::before,
.cs-mm .cs-mm__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 1.5px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform .2s ease;
}
.cs-mm .cs-mm__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.cs-mm .cs-mm__toggle[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(0deg); }

.cs-mm__sub { flex-basis: 100%; padding: 0 0 6px 14px !important; }
.cs-mm__sub[hidden] { display: none; }
.cs-mm__sub a { display: inline-block; padding: 7px 0; font-size: 15px; color: var(--cs-muted); }

.cs-mm__swatch {
	flex: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(22, 22, 22, .14);
}

.cs-mm__more > a {
	font-family: Inter, sans-serif;
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--cs-ink) !important;
}

.cs-mm__featured {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 16px 0 14px !important;
	border-top: 1px solid var(--cs-line);
}
.cs-mm__featured a {
	display: inline-block;
	padding: 9px 14px;
	border: 1px solid var(--cs-line);
	border-radius: 999px;
	font-family: Inter, sans-serif;
	font-size: 13px;
	color: var(--cs-ink);
}

.cs-mm__all {
	display: inline-block;
	padding: 6px 0;
	font-family: Inter, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cs-ink) !important;
}

/* Secondary (small) links, like the desktop's second row */
.cs-mm__secondary {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 26px;
	margin: 24px 20px 0 !important;
	padding-top: 16px !important;
	border-top: 1px solid var(--cs-ink);
}
.cs-mm__secondary a {
	display: inline-block;
	padding: 8px 0;
	font-family: Inter, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--cs-ink);
}

/* Lock page scroll while the drawer is open */
html.cs-mm-lock,
html.cs-mm-lock body { overflow: hidden; }

/* Desktop uses the header nav + mega menu instead */
@media (min-width: 1025px) {
	.cs-mm { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.cs-mm__scrim, .cs-mm__panel, .cs-mm__chev, .cs-mm__plus::after, .cs-mm .cs-mm__toggle::after { transition: none; }
}
