.wsh-shop-drawer-trigger,
.wsh-shop-drawer:not([open]) {
	display: none;
}

@media (max-width: 980px) {
	html.wsh-shop-drawer-open,
	html.wsh-shop-drawer-open body {
		overflow: hidden;
	}

	#primary.shop-main .shop-layout > .wsh-shop-drawer-trigger {
		display: inline-flex;
		align-items: center;
		justify-self: start;
		gap: .55rem;
		padding: .62rem .9rem;
		min-height: 44px;
		border: 1px solid var(--brand, #6823d7);
		border-radius: 9px;
		background: #fff;
		color: var(--brand-dark, #42149d);
		font: inherit;
		font-weight: 800;
		cursor: pointer;
	}

	dialog.wsh-shop-drawer[open] {
		display: flex;
		position: fixed;
		inset: 0 auto 0 0;
		flex-direction: column;
		margin: 0;
		padding: 0;
		width: min(88vw, 360px);
		max-width: 100%;
		height: 100vh;
		height: 100dvh;
		max-height: none;
		border: 0;
		border-radius: 0 16px 16px 0;
		background: #fff;
		color: #18233a;
		box-shadow: 12px 0 34px rgba(23, 19, 41, .2);
		overflow: hidden;
	}

	dialog.wsh-shop-drawer::backdrop {
		background: rgba(19, 20, 36, .55);
	}

	.wsh-shop-drawer-top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: .5rem;
		flex: none;
		padding: max(.65rem, env(safe-area-inset-top)) .75rem .65rem max(.85rem, env(safe-area-inset-left));
		border-bottom: 1px solid #e6dff3;
	}
	.wsh-shop-drawer-top h2 {
		margin: 0;
		color: #231747;
		font-size: 1.15rem;
	}
	.wsh-shop-drawer-close {
		min-width: 44px;
		min-height: 44px;
		border: 1px solid #e6dff3;
		border-radius: 8px;
		background: #fff;
		color: #231747;
		font-size: 1.5rem;
		line-height: 1;
		cursor: pointer;
	}

	dialog.wsh-shop-drawer > .category-sidebar--shop {
		position: static;
		flex: 1;
		min-height: 0;
		margin: 0;
		padding: 0 max(.5rem, env(safe-area-inset-left)) max(.5rem, env(safe-area-inset-bottom));
		border: 0;
		border-radius: 0;
		box-shadow: none;
		overflow: auto;
		overscroll-behavior: contain;
	}
	dialog.wsh-shop-drawer > .category-sidebar--shop h2 {
		display: none;
	}
	dialog.wsh-shop-drawer > .category-sidebar--shop > ul,
	dialog.wsh-shop-drawer > .category-sidebar--shop li ul {
		display: block !important;
		max-height: none;
		overflow: visible;
	}
	dialog.wsh-shop-drawer > .category-sidebar--shop li ul {
		position: static;
		margin: 0 0 .25rem;
		padding: 0 0 0 .75rem;
		min-width: 0;
		width: auto;
		border: 0;
		box-shadow: none;
	}
	dialog.wsh-shop-drawer > .category-sidebar--shop li > a {
		min-height: 44px;
		gap: .45rem;
		white-space: normal;
		overflow-wrap: anywhere;
	}
	.wsh-shop-drawer-trigger:focus-visible,
	.wsh-shop-drawer-close:focus-visible,
	dialog.wsh-shop-drawer a:focus-visible {
		outline: 3px solid #2254bf;
		outline-offset: -3px;
	}
}
