/* The Shop menu (v1.111): "Recordings" becomes "Shop", with its products grouped under headings.
   v1.187.12: the panel drops vertically, as one column. Loaded on every page (it is small). */
.dw-menu-heading__t { display: block; cursor: default; }

@media (min-width: 981px) {
	/* v1.187.12: the panel drops vertically — one column, headings stacked with their links under
	   them — instead of the wide five-column grid it used to be. It hangs from the "Shop" item now
	   rather than from the header container, and opens leftwards from that item's right edge, which
	   is what keeps it on screen when Shop is the last thing in the menu (where it usually is). */
	body #top-menu li.dw-shop-menu { position: relative !important; }
	body #top-menu li.dw-shop-menu > ul.sub-menu {
		display: block;
		position: absolute; top: 100%; right: 0; left: auto;
		width: 264px; max-width: calc(100vw - 24px); padding: 16px 0 12px; border-radius: 0 0 12px 12px; box-sizing: border-box;
		max-height: min(72vh, 640px); overflow-y: auto; overscroll-behavior: contain;
	}
	body #top-menu li.dw-shop-menu > ul.sub-menu > li { width: 100%; padding: 0; float: none; }
	/* The divider goes BETWEEN groups, not under each heading: an underlined heading reads as a rule
	   closing the group above it rather than opening the one below. */
	body #top-menu li.dw-shop-menu > ul.sub-menu > li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--dw-line); }

	/* v1.119: the closed panel is invisible but still hangs over the top of the page. Before, its columns were
	   forced visible, so passing the mouse over that empty-looking area (in a game, say) counted as hovering
	   Shop and opened the menu. Now the closed panel ignores the mouse entirely: only pointing at "Shop" itself
	   (or tabbing to it) opens it, and once open you can move down into it as usual. */
	body #top-menu li.dw-shop-menu > ul.sub-menu { pointer-events: none; }
	body #top-menu li.dw-shop-menu:hover > ul.sub-menu,
	body #top-menu li.dw-shop-menu.et-show-dropdown > ul.sub-menu,
	body #top-menu li.dw-shop-menu:focus-within > ul.sub-menu { pointer-events: auto; }

	body #top-menu li.dw-shop-menu > ul.sub-menu > li.dw-menu-heading > .dw-menu-heading__t {
		margin: 0 0 6px; padding: 0 18px;
		color: var(--dw-gold); font: 600 11.5px/1.2 var(--dw-sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
	}
	/* the lists under each heading are plain lists, not fly-outs */
	body #top-menu li.dw-shop-menu > ul.sub-menu > li > ul.sub-menu {
		position: static !important; display: block !important; visibility: inherit !important; opacity: 1 !important; transform: none !important;
		pointer-events: inherit !important;
		width: auto !important; margin: 0; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
	}
	body #top-menu li.dw-shop-menu > ul.sub-menu > li > ul.sub-menu > li { width: 100%; padding: 0; }
	body #top-menu li.dw-shop-menu > ul.sub-menu > li > ul.sub-menu > li > a { padding: 7px 18px !important; font-size: 15px; line-height: 1.3; white-space: normal; }
}

@media (max-width: 980px) {
	body .et_mobile_menu li.dw-menu-heading > .dw-menu-heading__t {
		padding: 16px 5% 8px; border-bottom: 1px solid var(--dw-line); color: var(--dw-gold);
		font: 600 12px/1.2 var(--dw-sans); letter-spacing: .16em; text-transform: uppercase;
	}
	body .et_mobile_menu li.dw-menu-heading > ul.sub-menu > li > a { padding-left: 10% !important; }
}
