/*
Theme Name: Pharmacy Mentor Child
Template: pharmacymentor
Author: Pharmacy Mentor
Version: 1.7.5
Description: Child theme for Ray Health redesign
Text Domain: pharmacymentor-child
*/

/* Parent/child layout conflict fixes — scoped to child body class */
body.pharmacymentor-child {
	overflow-x: hidden;
}

body.pharmacymentor-child .page-wrapper {
	padding: 0;
	margin: 0;
	max-width: none;
}

body.pharmacymentor-child .header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1000;
}

/* Cover 1px hairline gap between fixed header and page content */
body.pharmacymentor-child .header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 3px;
	background-color: var(--color-dark);
	pointer-events: none;
	z-index: 0;
}

/* Keeps layout from jumping under the fixed header (height synced in JS) */
body.pharmacymentor-child .header-spacer {
	display: block;
	width: 100%;
	height: var(--pm-header-height, 110px);
	margin: 0;
	padding: 0;
	border: 0;
	line-height: 0;
	font-size: 0;
	pointer-events: none;
	background-color: var(--color-dark);
}

@media (min-width: 1024px) {
	body.pharmacymentor-child .header-spacer {
		height: var(--pm-header-height, 143px);
	}
}

/* WP admin bar offset */
body.admin-bar.pharmacymentor-child .header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar.pharmacymentor-child .header {
		top: 46px;
	}
}

body.pharmacymentor-child .footer {
	position: relative;
	z-index: 1;
}

/* Anchor variants of Ray Health interactive controls */
body.pharmacymentor-child a.header__signup-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	border: none;
	font: inherit;
}

body.pharmacymentor-child a.header__treatments-button {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 14px;
	text-decoration: none;
	cursor: pointer;
	color: var(--color-white);
	font-family: var(--font-primary);
	font-weight: 600;
	font-size: 18px;
	line-height: normal;
	background-color: transparent;
	border: 2px solid var(--color-white);
	border-radius: var(--radius-pill);
}

@media (min-width: 1024px) {
	body.pharmacymentor-child a.header__treatments-button {
		display: inline-flex;
	}
}

/* Link reset only — do not override component backgrounds/colors */
body.pharmacymentor-child a.home-plans__explore,
body.pharmacymentor-child a.home-plans__button,
body.pharmacymentor-child a.home-products__button {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	cursor: pointer;
}

body.pharmacymentor-child a.home-products__more {
	text-decoration: none;
	cursor: pointer;
}

body.pharmacymentor-child a.home-sticky-cta__button {
	text-decoration: none;
	cursor: pointer;
}

body.pharmacymentor-child a.home-sticky-cta__button:hover,
body.pharmacymentor-child a.home-sticky-cta__button:focus {
	color: var(--color-white);
	text-decoration: none;
}

/* Hero CTAs — parent `a:hover` sets dark text; keep design colors */
body.pharmacymentor-child .home-hero a.home-button--outline,
body.pharmacymentor-child .home-hero a.home-button--outline:hover,
body.pharmacymentor-child .home-hero a.home-button--outline:focus,
body.pharmacymentor-child .home-hero a.home-button--outline:active {
	color: var(--color-white);
	text-decoration: none;
}

body.pharmacymentor-child .home-hero a.home-button--primary,
body.pharmacymentor-child .home-hero a.home-button--primary:hover,
body.pharmacymentor-child .home-hero a.home-button--primary:focus,
body.pharmacymentor-child .home-hero a.home-button--primary:active {
	color: var(--color-dark);
	text-decoration: none;
}

/* Footer menus from wp_nav_menu */
body.pharmacymentor-child .footer__menu-list,
body.pharmacymentor-child .footer__legal-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.pharmacymentor-child .footer__menu-list a {
	color: inherit;
	text-decoration: none;
}

body.pharmacymentor-child .footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

body.pharmacymentor-child .footer__legal-list a {
	color: inherit;
	text-decoration: none;
}

body.pharmacymentor-child .footer__legal-list li:not(:last-child)::after {
	content: "|";
	margin-left: 0.5rem;
	opacity: 0.6;
}

/* Mobile nav: Ray Health menu — override parent WooPW / mega menu markup */
body.pharmacymentor-child .mobile-nav .panel-menu,
body.pharmacymentor-child .mobile-nav .title-only,
body.pharmacymentor-child .mobile-nav .menu_item,
body.pharmacymentor-child .mobile-nav .menu_icon {
	display: none !important;
}

body.pharmacymentor-child .mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.pharmacymentor-child .mobile-nav__list > .menu-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.pharmacymentor-child .mobile-nav__list a.mobile-nav__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: inherit;
	text-decoration: none;
}

body.pharmacymentor-child .mobile-nav__brand {
	color: inherit;
	text-decoration: none;
}

body.pharmacymentor-child .mobile-nav__brand-logo {
	height: 20px;
	width: auto;
}

/* FiboSearch legacy override (if plugin active elsewhere) */
body.pharmacymentor-child .header__search-dropdown .dgwt-wcas-search-wrapp {
	width: 100%;
}

/* Keep WooCommerce / WooPW inner pages usable with Ray Health chrome */
body.pharmacymentor-child.woocommerce-cart .woocommerce,
body.pharmacymentor-child.woocommerce-checkout .woocommerce,
body.pharmacymentor-child.woocommerce-account .woocommerce {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: 2rem 1rem;
}

/* Shop / product archives — no padded .woocommerce shell (banner + grid handle layout) */
body.pharmacymentor-child.woocommerce-shop .woocommerce,
body.pharmacymentor-child.tax-product_cat .woocommerce,
body.pharmacymentor-child.tax-product_tag .woocommerce,
body.pharmacymentor-child.post-type-archive-product .woocommerce {
	max-width: none;
	margin: 0;
	padding: 0;
}

body.pharmacymentor-child .site-content,
body.pharmacymentor-child #content,
body.pharmacymentor-child .page-content-wrapper,
body.pharmacymentor-child main:not(.home) {
	min-height: 40vh;
}

body.pharmacymentor-child.woocommerce-shop main,
body.pharmacymentor-child.tax-product_cat main,
body.pharmacymentor-child.tax-product_tag main,
body.pharmacymentor-child.post-type-archive-product main,
body.pharmacymentor-child.woocommerce-shop .site-main,
body.pharmacymentor-child.tax-product_cat .site-main,
body.pharmacymentor-child.post-type-archive-product .site-main {
	min-height: 0 !important;
}

/* Soften parent Bootstrap container conflicts on home */
body.pharmacymentor-child.page-template-home .home .container {
	max-width: none;
	padding: 0;
}

/* Font Awesome icons in Ray Health header */
body.pharmacymentor-child .header__help-icon,
body.pharmacymentor-child .header__utility-icon {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	display: inline-block;
	object-fit: unset;
}
