/**
 * ASOS-style mobile menu (v1.6.165) — drawer visible ≤767px only.
 * Default hidden (desktop + document flow) — mobile-first.
 */

#rw-mobile-nav,
#rw-nav-overlay {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	height: 0 !important;
	max-height: 0 !important;
	overflow: hidden !important;
	position: absolute !important;
	left: -9999px !important;
	width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	opacity: 0 !important;
}

/* Option A: hide React/Vaul + Blocksy offcanvas — ASOS tabs are primary (mobile) */
@media (max-width: 767px) {
	.regal-drawer-overlay,
	#regal-mobile-nav.regal-drawer-content,
	[data-vaul-drawer] {
		display: none !important;
		pointer-events: none !important;
		visibility: hidden !important;
	}

	body.regal-mega-mobile-open {
		overflow: auto !important;
	}

	body.regal-has-mega-menu .ct-drawer-canvas[data-location='start'] #offcanvas {
		visibility: hidden !important;
		pointer-events: none !important;
	}

	body.rw-mobile-nav-open .ct-drawer-canvas[data-location='start'] #offcanvas {
		transform: translate3d(100%, 0, 0) !important;
	}

	#rw-mobile-nav,
	.rw-mobile-nav {
		display: flex !important;
		visibility: visible !important;
		pointer-events: auto !important;
		position: fixed !important;
		left: 0 !important;
		top: 0 !important;
		width: 85vw !important;
		max-width: 360px !important;
		height: 100vh !important;
		height: 100dvh !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 0 !important;
		background: #fdfaf6;
		z-index: 999999;
		transform: translateX(-100%);
		transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
		flex-direction: column;
		overflow: hidden;
		opacity: 1 !important;
		border: none;
	}

	#rw-mobile-nav.open,
	.rw-mobile-nav.open {
		transform: translateX(0);
	}

	#rw-nav-overlay,
	.rw-nav-overlay {
		display: block !important;
		visibility: visible !important;
		position: fixed !important;
		left: 0 !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		width: 100% !important;
		height: 100% !important;
		max-height: none !important;
		inset: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: 999998;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.35s ease;
		margin: 0;
		padding: 0;
		overflow: hidden;
	}

	#rw-nav-overlay.active,
	.rw-nav-overlay.active {
		opacity: 1;
		pointer-events: auto;
	}

	.rw-nav-close {
		position: absolute;
		top: 14px;
		right: 14px;
		width: 36px;
		height: 36px;
		background: none;
		border: none;
		font-size: 18px;
		color: #2c2c2c;
		cursor: pointer;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: center;
		line-height: 1;
	}

	.rw-nav-tabs {
		display: flex;
		border-bottom: 0.5px solid #e8e0d6;
		flex-shrink: 0;
		padding-top: 48px;
	}

	.rw-nav-tab {
		flex: 1;
		padding: 14px;
		background: none;
		border: none;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: #888;
		cursor: pointer;
		border-bottom: 2px solid transparent;
		transition: all 0.2s;
	}

	.rw-nav-tab.active {
		color: #2c2c2c;
		border-bottom-color: #2c2c2c;
	}

	.rw-nav-panel {
		display: none;
		flex-direction: column;
		overflow-y: auto;
		flex: 1;
		-webkit-overflow-scrolling: touch;
	}

	.rw-nav-panel.active {
		display: flex;
	}

	.rw-nav-extra {
		flex-shrink: 0;
		border-top: 0.5px solid #e8e0d6;
		background: #faf8f5;
		max-height: 40vh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.rw-nav-item {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 14px 16px;
		border-bottom: 0.5px solid #f0ebe3;
		text-decoration: none;
		background: #fdfaf6;
		transition: background 0.15s;
		min-height: 64px;
		gap: 12px;
	}

	.rw-nav-item:active {
		background: #f5f0e8;
	}

	.rw-nav-item__name {
		font-size: 13px;
		font-weight: 500;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: #2c2c2c;
		flex: 1;
		min-width: 0;
	}

	.rw-nav-item__img {
		width: 52px;
		height: 52px;
		object-fit: cover;
		object-position: top center;
		border-radius: 2px;
		flex-shrink: 0;
		background: #ede8e2;
	}

	.rw-nav-item--sale {
		background: #2c2c2c;
		margin-top: 4px;
	}

	.rw-nav-item--sale .rw-nav-item__name {
		color: #fdfaf6;
		font-size: 14px;
	}

	.rw-nav-item--sale:active {
		background: #4a5240;
	}

	body.rw-mobile-nav-open {
		overflow: hidden;
	}

	/* Legacy homepage drawer — hide when ASOS menu is present */
	#rw-mob-menu,
	#rw-mob-menu-overlay {
		display: none !important;
	}
}
