/* CCAP Affiliate Menu Tap 1.0.3
 * Rules apply only under html.ccap-amt-tap, which menu-tap.js sets in tap mode,
 * so the theme's menu is untouched when the script does not run. Selectors
 * start with "html.ccap-amt-tap body ... .ova_nav ul.menu" so they outrank the
 * theme and the CCAP Site Standards hover/focus rules wherever they load. */

/* The parent-page item exists only for tap mode. */
.ccap-aff-main-nav .ccap-amt-overview {
	display: none !important;
}

html.ccap-amt-tap body .ccap-aff-main-nav.elementor-widget-ova_menu .ova_nav ul.menu > li.menu-item-has-children > ul.dropdown-menu {
	display: none !important;
}
/* Hover and focus must not move items under the finger. */
html.ccap-amt-tap body .ccap-aff-main-nav.elementor-widget-ova_menu .ova_nav ul.menu > li.menu-item-has-children {
	grid-column: auto !important;
}
/* The theme lays the item out as a flex row; wrap so the sub-menu drops below the link. */
html.ccap-amt-tap body .ccap-aff-main-nav.elementor-widget-ova_menu .ova_nav ul.menu > li.ccap-amt-open {
	grid-column: 1 / -1 !important;
	flex-wrap: wrap !important;
}
html.ccap-amt-tap body .ccap-aff-main-nav.elementor-widget-ova_menu .ova_nav ul.menu > li.ccap-amt-open > ul.dropdown-menu {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
}
html.ccap-amt-tap body .ccap-aff-main-nav.elementor-widget-ova_menu .ova_nav ul.menu > li.ccap-amt-open > ul.dropdown-menu > li.ccap-amt-overview {
	display: block !important;
}

/* Up to 1024px the open sub-menu sits in the page flow, directly below its item.
   Wider touch screens keep the theme's drop-down position. */
@media (max-width: 1024px) {
	html.ccap-amt-tap body .ccap-aff-main-nav.elementor-widget-ova_menu .ova_nav ul.menu > li.ccap-amt-open > ul.dropdown-menu {
		position: static !important;
		flex: 0 0 100% !important;
		float: none !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		margin: 4px 0 0 !important;
		padding: 4px 0 !important;
		border: 1px solid #e2e8f0 !important;
		border-radius: 8px;
		box-shadow: none !important;
		background: #fff !important;
	}
}

/* ---- In-page menu (.ccap-page-nav, PACA MH/DS since 1.0.2). Its sub-menu is a
   <div> of links that the widget stylesheet opens on hover, focus and .is-open
   (set on child pages); in tap mode only the tapped state opens it. ---- */
.ccap-page-nav__sub > .ccap-amt-overview {
	display: none !important;
}
html.ccap-amt-tap body.ccap-affiliate-page .ccap-page-nav__item.has-sub > .ccap-page-nav__sub {
	display: none !important;
}
html.ccap-amt-tap body.ccap-affiliate-page .ccap-page-nav__item.has-sub.ccap-amt-open > .ccap-page-nav__sub {
	display: block !important;
}
html.ccap-amt-tap body.ccap-affiliate-page .ccap-page-nav__item.has-sub.ccap-amt-open > .ccap-page-nav__sub > .ccap-amt-overview {
	display: block !important;
}
@media (max-width: 1024px) {
	/* The menu row wraps (the widget keeps it on one line above 980px), so the
	   other items stay on screen while a sub-menu is open. */
	html.ccap-amt-tap body.ccap-affiliate-page .ccap-page-nav__main {
		flex-wrap: wrap !important;
	}
	/* The open item takes its own row and its sub-menu drops below the link. */
	html.ccap-amt-tap body.ccap-affiliate-page .ccap-page-nav__item.has-sub.ccap-amt-open {
		flex: 0 0 100% !important;
		flex-wrap: wrap !important;
		max-width: 100% !important;
	}
	html.ccap-amt-tap body.ccap-affiliate-page .ccap-page-nav__item.has-sub.ccap-amt-open > .ccap-page-nav__sub {
		position: static !important;
		flex: 0 0 100% !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		margin: 4px 0 0 !important;
		padding: 4px 0 !important;
		border: 1px solid #e2e8f0 !important;
		border-radius: 8px;
		box-shadow: none !important;
		background: #fff !important;
	}
}
