/**
 * priusbearings.com layout fixes (2026-12-03)
 * Scoped to the four confirmed issues: mid-page nav, cookie/mobile menu,
 * cropped hero slogan, and product-detail first-screen gap.
 * Does not change titles, URLs, company name, address, or cookie policy text.
 */

/* ------------------------------------------------------------------
 * 1) Keep the theme header in normal flow at the top (sticky, not fixed).
 *    position:fixed was leaving no spacer and, in full-page captures,
 *    painted a second copy of the bar through the middle of the content.
 * ------------------------------------------------------------------ */
#masthead-sticky-wrapper {
	position: sticky !important;
	top: 0;
	left: auto;
	right: auto;
	width: 100%;
	z-index: 9999;
	background: #fff;
}

#masthead.site-header {
	background: #fff;
}

/* HFC block header is the mobile nav; hide it on desktop, hide #masthead on small screens. */
.header-custom {
	display: none !important;
}

@media (max-width: 480px) {
	.header-custom {
		display: flex !important;
		position: relative;
		z-index: 10000;
		background: #fff;
		width: 100%;
	}

	#masthead-sticky-wrapper,
	#masthead.site-header {
		display: none !important;
	}

	/* Home hero no longer needs a 70px offset for a fixed desktop bar. */
	.home .elementor-element-20a6180 {
		margin-top: 0 !important;
	}
}

/* ------------------------------------------------------------------
 * 2) CookieYes: compact full-width bottom bar (consent remains).
 *    Mobile menu: opaque panel, above content and the cookie bar.
 * ------------------------------------------------------------------ */
.cky-consent-container,
.cky-consent-container.cky-box-bottom-left,
.cky-consent-container.cky-box-bottom-right,
.cky-consent-container.cky-box-top-left,
.cky-consent-container.cky-box-top-right {
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	top: auto !important;
	width: 100% !important;
	max-width: 100% !important;
	transform: none !important;
	border-radius: 0 !important;
	z-index: 9999999;
}

.cky-consent-container .cky-consent-bar {
	padding: 10px 20px !important;
	border-radius: 0 !important;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
}

.cky-consent-container .cky-title {
	margin: 0 0 4px 0 !important;
	font-size: 16px !important;
	line-height: 1.25 !important;
}

.cky-consent-container .cky-notice-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.cky-consent-container .cky-notice-des {
	flex: 1 1 320px;
	font-size: 13px !important;
	line-height: 1.35 !important;
}

.cky-consent-container .cky-notice-des p {
	margin: 0 !important;
}

.cky-consent-container .cky-notice-btn-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 0 !important;
}

.cky-consent-container .cky-btn {
	padding: 6px 14px !important;
	margin: 0 !important;
}

@media (max-width: 767px) {
	.cky-consent-container .cky-consent-bar {
		padding: 8px 12px !important;
	}

	.cky-consent-container .cky-title {
		font-size: 14px !important;
	}

	.cky-consent-container .cky-notice-des {
		flex: 1 1 100%;
		font-size: 12px !important;
		line-height: 1.3 !important;
		max-height: 3.9em;
		overflow: auto;
	}

	.cky-consent-container .cky-notice-btn-wrapper {
		width: 100%;
	}

	.cky-consent-container .cky-btn {
		flex: 1 1 auto;
	}
}

/* Open mobile (block) navigation: solid background, readable, clickable, above cookie. */
.wp-block-navigation__responsive-container.is-menu-open,
.wp-block-navigation__responsive-container.has-modal-open,
.wp-block-navigation__responsive-container[aria-hidden="false"].is-menu-open {
	background-color: #ffffff !important;
	z-index: 100000000 !important;
	color: #111111;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
	background-color: #ffffff !important;
	color: #111111 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container.is-menu-open a {
	color: #111111 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
	color: #111111 !important;
	fill: #111111 !important;
	z-index: 1;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background-color: #f4f4f4 !important;
	border-color: #dddddd !important;
}

/* ------------------------------------------------------------------
 * 3) Hero slogan is painted into dsa.jpg (1920x450). Do not crop it.
 * ------------------------------------------------------------------ */
.home-hero.elementor-element-20a6180,
.elementor-element-20a6180 {
	min-height: 0 !important;
	height: auto !important;
	aspect-ratio: 1920 / 450;
	background-size: 100% 100% !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	margin-top: 0 !important;
	padding: 0 !important;
}

.elementor-element-20a6180 .product-hero,
.elementor-element-20a6180 .product-hero div,
.elementor-element-20a6180 .product-hero .elementor-widget-container,
.product-hero,
.product-hero .elementor-widget-container {
	min-height: 0 !important;
	height: 100% !important;
	background-size: 100% 100% !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	padding: 0 !important;
}

@media (max-width: 480px) {
	.home-hero.elementor-element-20a6180,
	.elementor-element-20a6180,
	.elementor-element-20a6180 .product-hero,
	.elementor-element-20a6180 .product-hero div,
	.elementor-element-20a6180 .product-hero .elementor-widget-container,
	div.product-hero,
	.product-hero div {
		min-height: 0 !important;
		background-size: 100% 100% !important;
		background-position: center center !important;
	}
}

/* ------------------------------------------------------------------
 * 4) Product detail first screen: show title + main image without a
 *    nearly-blank viewport (fixed header overlay + very tall thumbnail).
 * ------------------------------------------------------------------ */
.singular.single .site-main,
.single-post .site-main,
body.single .site-main {
	padding-top: 16px;
	margin-top: 0;
}

.singular .entry-header,
.single-post .entry-header,
body.single .entry-header.alignwide {
	margin: 0 auto 12px auto !important;
	padding: 12px 16px 0 16px !important;
	max-width: 1100px;
}

.singular .entry-header .entry-title,
.single-post .entry-title,
body.single h1.entry-title {
	margin: 0 0 12px 0 !important;
	padding: 0;
	position: relative;
	z-index: 1;
	color: #111;
	background: transparent;
}

.singular .post-thumbnail,
.single-post .post-thumbnail,
body.single .entry-header .post-thumbnail {
	margin: 0 auto !important;
	max-width: 100%;
}

.singular .post-thumbnail img,
.single-post .post-thumbnail img,
body.single .wp-post-image {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: 52vh;
	object-fit: contain;
	object-position: center;
	display: block;
	margin: 0 auto;
}

body.single .entry-content {
	margin-top: 16px !important;
	padding-top: 0;
}
