/**
 * priusbearings.com visual polish pass 2 (2026-12-03)
 * Loaded after wp_footer so it can override CookieYes CSS injected there.
 * Does not disable CookieYes, change slugs, or invent claims.
 */

/* ------------------------------------------------------------------
 * 1) CookieYes: compact full-width bottom bar, every page.
 *    Root cause: plugin is configured as type "box" / position
 *    "bottom-left" (class cky-box-bottom-left). Our earlier bar
 *    CSS was printed BEFORE wp_footer, so CookieYes CSS/JS could
 *    reassert the 440px card. On the Elementor homepage (WP page 7
 *    rendering document 128), a transformed ancestor can also make
 *    position:fixed attach to a containing block instead of the
 *    viewport, so the same rules looked different from inner pages.
 *    Pass 2: banner type is classic/bottom, this file loads after
 *    wp_footer, and a small script re-parents the banner to <body>.
 * ------------------------------------------------------------------ */
html body .cky-consent-container,
html body .cky-consent-container.cky-box-bottom-left,
html body .cky-consent-container.cky-box-bottom-right,
html body .cky-consent-container.cky-box-top-left,
html body .cky-consent-container.cky-box-top-right,
html body .cky-consent-container.cky-classic-bottom,
html body .cky-consent-container.cky-classic-top,
html body .cky-consent-container.cky-box-bottom,
html body div.cky-consent-container {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	top: auto !important;
	inset: auto 0 0 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	transform: none !important;
	border-radius: 0 !important;
	z-index: 9999999 !important;
	overflow: visible !important;
}

html body .cky-consent-container .cky-consent-bar,
html body .cky-consent-container [data-cky-tag="notice"] {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 8px 16px !important;
	border-radius: 0 !important;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
	box-sizing: border-box !important;
}

html body .cky-consent-container .cky-notice,
html body .cky-consent-container .cky-notice-group {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	width: 100%;
}

html body .cky-consent-container .cky-title {
	margin: 0 0 2px 0 !important;
	font-size: 15px !important;
	line-height: 1.25 !important;
}

html body .cky-consent-container .cky-notice-des,
html body .cky-consent-container .cky-notice-des p {
	flex: 1 1 280px;
	max-height: none !important;
	overflow: visible !important;
	font-size: 13px !important;
	line-height: 1.35 !important;
	margin: 0 !important;
}

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

html body .cky-consent-container .cky-btn {
	padding: 6px 14px !important;
	margin: 0 !important;
	white-space: nowrap;
}

@media (max-width: 767px) {
	html body .cky-consent-container .cky-consent-bar,
	html body .cky-consent-container [data-cky-tag="notice"] {
		padding: 8px 12px !important;
	}

	html body .cky-consent-container .cky-title {
		font-size: 14px !important;
		margin: 0 0 4px 0 !important;
	}

	html body .cky-consent-container .cky-notice-des,
	html body .cky-consent-container .cky-notice-des p {
		flex: 1 1 100%;
		font-size: 12px !important;
		line-height: 1.35 !important;
		max-height: none !important;
		overflow: visible !important;
	}

	html body .cky-consent-container .cky-notice-btn-wrapper {
		width: 100%;
		flex-wrap: nowrap;
	}

	html body .cky-consent-container .cky-btn {
		flex: 1 1 0;
		padding: 8px 8px !important;
		font-size: 13px !important;
	}
}

/* Leave space so the bar does not cover last-line content. */
body {
	padding-bottom: 0;
}

/* ------------------------------------------------------------------
 * 2) Mobile menu (HFC block navigation / Interactivity API).
 *    Previous rules targeted is-menu-open correctly, but the open
 *    overlay kept a transparent background and absolutely positioned
 *    submenus, so items stacked on the email row and the page behind.
 *    The hamburger lives in .mobile-menu-col (black bar), not #masthead.
 * ------------------------------------------------------------------ */
.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 {
	position: fixed !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #111111 !important;
	z-index: 100000000 !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	padding: 16px 20px 24px 20px !important;
	box-sizing: border-box !important;
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
.wp-block-navigation__responsive-container.has-modal-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.has-modal-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
.wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation__responsive-close {
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #111111 !important;
	width: 100% !important;
	max-width: 100% !important;
	position: relative !important;
	height: auto !important;
	transform: none !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation__container {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0 !important;
	width: 100% !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
.wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation-item {
	display: block !important;
	position: relative !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label,
.wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation-item__label,
.wp-block-navigation__responsive-container.is-menu-open a,
.wp-block-navigation__responsive-container.has-modal-open a {
	color: #111111 !important;
	background: transparent !important;
	line-height: 1.35 !important;
	white-space: normal !important;
	display: inline-block;
	padding: 8px 0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation__submenu-container {
	position: static !important;
	left: auto !important;
	top: auto !important;
	width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	overflow: visible !important;
	background: #f4f4f4 !important;
	border: none !important;
	box-shadow: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	display: block !important;
	padding: 0 0 0 16px !important;
	margin: 0 0 8px 0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__description {
	display: none !important; /* long descriptions caused overlapping paragraphs */
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation__responsive-container-close {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	z-index: 2 !important;
	background: #ffffff !important;
	color: #111 !important;
}

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

/* Hide cookie + floating buttons while the menu is open so they stay clickable-free. */
html:has(.wp-block-navigation__responsive-container.is-menu-open) .cky-consent-container,
html:has(.wp-block-navigation__responsive-container.has-modal-open) .cky-consent-container,
html:has(.wp-block-navigation__responsive-container.is-menu-open) .mystickyelements-fixed,
html:has(.wp-block-navigation__responsive-container.has-modal-open) .mystickyelements-fixed {
	visibility: hidden !important;
	pointer-events: none !important;
}

/* ------------------------------------------------------------------
 * 3) Homepage hero: do not keep fighting cover-crop of baked text.
 *    dsa.jpg still has "RELIED ON FOR DECADES" painted in, which is
 *    not accurate for a company founded in 2007. Overlay real copy
 *    and mask the baked words with a gradient. Bearings stay visible.
 *
 *    Also UNDO the pass-1 aspect-ratio on non-home pages that share
 *    .elementor-element-20a6180 / .product-hero without the image —
 *    that was the large white gap on /products/ and category pages.
 * ------------------------------------------------------------------ */
body:not(.home) .elementor-element-20a6180,
body:not(.home) section.elementor-element-20a6180,
body:not(.home) .elementor-element-20a6180 .product-hero,
body:not(.home) .elementor-element-20a6180 .product-hero div,
body:not(.home) .elementor-element-20a6180 .product-hero .elementor-widget-container,
body:not(.home) div.product-hero,
body:not(.home) .product-hero .elementor-widget-container {
	min-height: 0 !important;
	height: auto !important;
	aspect-ratio: auto !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	background-image: none !important;
	background-size: auto !important;
}

body:not(.home) section.elementor-element-20a6180 {
	display: none !important;
}

.home .home-hero.elementor-element-20a6180,
.home .elementor-128 .elementor-element.elementor-element-20a6180,
.home section.elementor-element-20a6180.home-hero {
	position: relative !important;
	min-height: 340px !important;
	height: auto !important;
	aspect-ratio: auto !important;
	margin-top: 0 !important;
	padding: 0 !important;
	background-image: url("/wp-content/uploads/2021/11/dsa.jpg") !important;
	background-size: cover !important;
	background-position: right center !important;
	background-repeat: no-repeat !important;
	display: flex !important;
	align-items: center !important;
}

.home .home-hero.elementor-element-20a6180::before,
.home section.elementor-element-20a6180.home-hero::before {
	content: "" !important;
	position: absolute !important;
	inset: 0 !important;
	background: linear-gradient(
		90deg,
		rgba(10, 36, 72, 0.88) 0%,
		rgba(10, 36, 72, 0.78) 36%,
		rgba(10, 36, 72, 0.28) 62%,
		rgba(10, 36, 72, 0.0) 100%
	) !important;
	z-index: 1 !important;
	pointer-events: none !important;
}

.home .home-hero.elementor-element-20a6180 .elementor-container,
.home .home-hero.elementor-element-20a6180 .product-hero {
	position: relative;
	z-index: 2;
	min-height: 0 !important;
	height: auto !important;
	background: none !important;
	background-image: none !important;
}

.prius-hero-copy {
	position: relative;
	z-index: 3;
	max-width: 720px;
	padding: 48px 56px;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.prius-hero-copy .prius-hero-brand {
	margin: 0 0 10px 0;
	font-size: clamp(28px, 4.2vw, 52px);
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.1;
	text-transform: uppercase;
}

.prius-hero-copy .prius-hero-tagline {
	margin: 0 0 8px 0;
	font-size: clamp(16px, 2vw, 24px);
	font-weight: 600;
	line-height: 1.3;
}

.prius-hero-copy .prius-hero-sub {
	margin: 0;
	font-size: clamp(14px, 1.4vw, 18px);
	font-weight: 400;
	line-height: 1.4;
	opacity: 0.95;
}

@media (max-width: 767px) {
	.home .home-hero.elementor-element-20a6180,
	.home section.elementor-element-20a6180.home-hero {
		min-height: 220px !important;
		background-position: 70% center !important;
	}

	.prius-hero-copy {
		padding: 28px 20px 32px 20px;
		max-width: 100%;
	}
}

/* ------------------------------------------------------------------
 * 4) Product detail first screen: keep H1 visible, then the image.
 * ------------------------------------------------------------------ */
body.single .entry-header,
body.single-post .entry-header,
.singular .entry-header {
	display: block !important;
	visibility: visible !important;
	margin: 16px auto 8px auto !important;
	padding: 8px 16px 0 16px !important;
	max-width: 1100px;
	overflow: visible !important;
}

body.single h1.entry-title,
body.single-post h1.entry-title,
.singular .entry-header .entry-title {
	display: block !important;
	visibility: visible !important;
	position: relative !important;
	z-index: 1 !important;
	margin: 0 0 16px 0 !important;
	padding: 0 !important;
	color: #111111 !important;
	font-size: clamp(28px, 3vw, 42px) !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	background: transparent !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	clip: auto !important;
	text-indent: 0 !important;
	width: auto !important;
}

body.single .post-thumbnail,
body.single-post .post-thumbnail,
body.single .entry-header .post-thumbnail {
	margin: 0 auto 16px auto !important;
	max-width: 720px;
	text-align: center;
}

body.single .post-thumbnail img,
body.single-post .post-thumbnail img,
body.single .entry-header .post-thumbnail img {
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: 46vh !important;
	object-fit: contain !important;
	display: block;
	margin: 0 auto;
}

/* "Categorized as" was empty because footer CSS hides the first category link. */
body.single .cat-links > a:first-child,
body.single-post .cat-links > a:first-child {
	display: inline !important;
}

body.single .cat-links:not(:has(a)),
body.single .post-taxonomies:has(.cat-links:not(:has(a))) .cat-links {
	display: none !important;
}

/* ------------------------------------------------------------------
 * 5) Footer: legal name already in markup; hide unverified badges;
 *    keep logo from clipping; do not wrap mid-label.
 * ------------------------------------------------------------------ */
.footer img[src*="ptda_logo"],
.footer img[data-lazy-src*="ptda_logo"],
.footer img[src*="bsa_logo"],
.footer img[data-lazy-src*="bsa_logo"],
.footer noscript img[src*="ptda_logo"],
.footer noscript img[src*="bsa_logo"] {
	display: none !important;
}

.footer .col > img[src*="logo-e1638771890547"],
.footer img[src*="logo-e1638771890547"] {
	width: 180px !important;
	max-width: 100% !important;
	height: auto !important;
	object-fit: contain !important;
	display: block;
	background: none !important;
	clip: auto !important;
	overflow: visible !important;
}

.footer,
.footer .iko-container,
.footer .col {
	overflow: visible !important;
}

.footer-menu-2 {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: flex-end !important;
	align-items: center !important;
	gap: 8px 22px !important;
}

.footer-menu-2 li,
.footer-menu-2 a {
	white-space: nowrap !important;
	padding: 0 !important;
	margin: 0 !important;
	display: inline-block;
}

/* ------------------------------------------------------------------
 * 6) Home product card titles: do not crush line-height or mid-word wrap.
 * ------------------------------------------------------------------ */
.home .product-section .product-line-box h3,
.home .product-section .product-line-box .elementor-image-box-title,
.home .elementor-128 .product-section .elementor-image-box-title,
.home .elementor-128 .elementor-heading-title {
	line-height: 1.25 !important;
	letter-spacing: normal !important;
	white-space: normal !important;
	overflow: visible !important;
	word-break: normal !important;
	overflow-wrap: break-word !important;
	hyphens: none !important;
	height: auto !important;
	max-height: none !important;
}

.home .product-section .product-line-box h3,
.home .product-section .product-line-box .elementor-image-box-title {
	font-size: clamp(16px, 1.35vw, 20px) !important;
	min-height: 0 !important;
	margin: 0 0 10px 0 !important;
}

/* ------------------------------------------------------------------
 * 7) Industries grid: keep 4-col cards, don't let the sticky bar
 *    cover the first-row titles (SEMICONDUCTOR etc.).
 * ------------------------------------------------------------------ */
.home .industries-section.elementor-element-aaf9499 {
	padding-top: 40px !important;
	scroll-margin-top: 90px;
	overflow: visible !important;
}

.home .industries-section #industry-heading,
.home .industries-section .elementor-element-0b8a2f6 {
	position: relative !important;
	top: auto !important;
	transform: none !important;
	z-index: 1;
	margin-bottom: 16px !important;
}

.home .industries-section .elementor-inner-section {
	overflow: visible !important;
}

.home .industries-section .elementor-inner-column .elementor-widget-wrap {
	overflow: hidden;
	isolation: isolate;
}

.home .industries-section .elementor-widget-heading .elementor-heading-title,
.home .industries-section .elementor-widget-heading .elementor-heading-title span {
	overflow: visible !important;
	padding: 0 6px;
	line-height: 1.2 !important;
}

/* ------------------------------------------------------------------
 * 8) Category / products leftover chrome, type labels, contact layout.
 * ------------------------------------------------------------------ */
/* Product Catalog leftover bar: only the button should be painted. */
.category .product-asset-download.catalog,
.archive .product-asset-download.catalog,
.product-asset-download.catalog {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	width: auto !important;
	max-width: 100%;
	display: inline-block !important;
	padding: 0 !important;
	margin: 12px 0 20px 0 !important;
	box-shadow: none !important;
}

.category .product-asset-download.catalog a,
.archive .product-asset-download.catalog a,
.product-asset-download.catalog a,
.catalog a.elementor-button,
.category .catalog a {
	display: inline-flex !important;
	align-items: center;
	width: auto !important;
	max-width: 100%;
	padding: 10px 18px !important;
	background-image: none !important;
}

/* "Mounting Holed Type" — leading M was clipped on narrow screens. */
.category h2,
.category h3,
.category .elementor-heading-title,
.archive h2,
.archive .elementor-heading-title,
.category .app-title-banner,
.category .app-image-one h4,
.category .app-image-two h4 {
	overflow: visible !important;
	text-indent: 0 !important;
	padding-left: 0;
	margin-left: 0;
	word-break: normal !important;
}

@media (max-width: 767px) {
	.category .product-blue-section,
	.category .elementor-widget-heading,
	.category h2,
	.category h3 {
		padding-left: 16px !important;
		padding-right: 16px !important;
		overflow: visible !important;
	}

	.category .product-blue-section .elementor-widget-container,
	.category .navigation-section,
	.category .navigation-section a {
		overflow: visible !important;
	}
}

/* Contact first screen: give the factory photo, address and form room. */
.page-template-page-contact .contact-us-title-banner,
.page-id-15 .contact-us-title-banner {
	margin-bottom: 8px;
}

.page-template-page-contact .contact-content-box,
.page-id-15 .contact-content-box {
	padding: 12px 16px 48px 16px;
}

.page-template-page-contact .contact-content-box .row,
.page-id-15 .contact-content-box .row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px 0;
}

.page-template-page-contact .contact-content-box img,
.page-id-15 .contact-content-box img {
	margin-bottom: 24px !important;
}

.page-template-page-contact .contact-content-box .col-lg-6,
.page-id-15 .contact-content-box .col-lg-6 {
	padding-bottom: 24px;
}

/* Floating action buttons: sit a bit higher than the cookie bar, don't cover titles. */
.mystickyelements-fixed {
	z-index: 9000 !important;
	bottom: auto !important;
	top: 42% !important;
	right: 0 !important;
}

@media (max-width: 767px) {
	.mystickyelements-fixed {
		top: 36% !important;
		transform: scale(0.92);
		transform-origin: right center;
	}

	body.single h1.entry-title {
		font-size: 28px !important;
		padding: 0 8px;
	}

	body.single .post-thumbnail img {
		max-height: 38vh !important;
	}
}
