/*
Theme Name: Physicalself Child
Theme URI: https://performancehealth.global/
Description: Child theme for the Physicalself WordPress theme.
Author: Performance Health Global
Template: physicalself
Version: 1.0.0
Text Domain: physicalself-child
Requires PHP: 7.4
Requires at least: 5.0
*/

.pt-breadcrumb-style-1 {
    padding: 40px 0 !important;
}

/* Distributors form compact field sizing */
body.page-id-15818 .wpcf7-form input[type="text"],
body.page-id-15818 .wpcf7-form input[type="email"],
body.page-id-15818 .wpcf7-form input[type="tel"],
body.page-id-15818 .wpcf7-form select,
body.page-id-15818 .wpcf7-form .wpcf7-select,
body.page-id-15818 .pt-contact-form input[type="text"],
body.page-id-15818 .pt-contact-form input[type="email"],
body.page-id-15818 .pt-contact-form input[type="tel"],
body.page-id-15818 .pt-contact-form select {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 20px !important;
    border: 1px solid #cfd8e3 !important;
    border-radius: 999px !important;
    background-color: #ffffff !important;
    color: #44506a !important;
    font-size: 14px !important;
    line-height: 50px !important;
    box-shadow: none !important;
}

body.page-id-15818 .wpcf7-form select,
body.page-id-15818 .wpcf7-form .wpcf7-select,
body.page-id-15818 .pt-contact-form select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #ffffff !important;
}

body.page-id-15818 .wpcf7-form p {
    margin-bottom: 14px !important;
}

body.page-id-15818 .wpcf7-form p:has(input[type="submit"]),
body.page-id-15818 .wpcf7-form .col-lg-12:has(input[type="submit"]),
body.page-id-15818 .wpcf7-form .col-md-12:has(+ .col-lg-12) {
    margin-top: 14px !important;
}

body.page-id-15818 .wpcf7-form input[type="submit"] {
    margin-top: 18px !important;
}

body.page-id-15818 .wpcf7-form .wpcf7-submit {
    margin-top: 18px !important;
    display: inline-block !important;
}

/* Shortcode login form: [ph_login_form] */
.ph-login-form {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.ph-login-form form {
    margin: 0;
}

.ph-login-form p {
    margin: 0 0 14px !important;
}

.ph-login-form label {
    display: block;
    margin: 0 0 7px;
    color: #132249;
    font-size: 14px;
    font-weight: 500;
}

.ph-login-form input[type="text"],
.ph-login-form input[type="password"] {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 20px !important;
    border: 1px solid #cfd8e3 !important;
    border-radius: 999px !important;
    background-color: #ffffff !important;
    color: #44506a !important;
    font-size: 14px !important;
    line-height: 50px !important;
    box-shadow: none !important;
    outline: none !important;
}

.ph-login-form input[type="text"]:focus,
.ph-login-form input[type="password"]:focus {
    border-color: #05498a !important;
}

.ph-login-form .login-remember {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin: 0 0 16px !important;
}

.ph-login-form .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    white-space: nowrap;
}

.ph-login-form .login-password {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin-bottom: 12px !important;
}

.ph-login-form .login-username {
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

.ph-login-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.ph-login-form .login-submit {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin: 0 0 0 !important;
}

.ph-login-form input[type="submit"],
.ph-login-form__logout {
    display: inline-block !important;
    min-height: 50px !important;
    padding: 13px 28px !important;
    border: 1px solid #05498a !important;
    border-radius: 999px !important;
    background: #05498a !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

.ph-login-form input[type="submit"]:hover,
.ph-login-form input[type="submit"]:focus,
.ph-login-form__logout:hover,
.ph-login-form__logout:focus {
    background: #043b70 !important;
    border-color: #043b70 !important;
    color: #ffffff !important;
}

.ph-login-form .ph-login-form__logout,
.ph-login-form .ph-login-form__logout:visited,
.ph-login-form .ph-login-form__logout:hover,
.ph-login-form .ph-login-form__logout:focus,
.ph-login-form .ph-login-form__logout:active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.ph-login-form__links {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

.ph-login-form__links a {
    color: #05498a;
    font-size: 14px;
    text-decoration: none;
}

.ph-login-form__links a:hover {
    text-decoration: underline;
}

/* Contact Form 7 distributor form: make select fields match text inputs */
.pt-contact-form select,
.wpcf7-form .pt-contact-form select,
.wpcf7-form-control.wpcf7-select {
    width: 100% !important;
    min-height: 62px !important;
    padding: 0 22px !important;
    border: 1px solid #cfd8e3 !important;
    border-radius: 999px !important;
    background-color: #ffffff !important;
    color: #44506a !important;
    font-size: 14px !important;
    line-height: 62px !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.pt-contact-form .wpcf7-form-control-wrap:has(select) {
    position: relative;
    display: block;
}

.pt-contact-form .wpcf7-form-control-wrap:has(select)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #8a95a6;
    transform: translateY(-50%);
    pointer-events: none;
}

.pt-contact-form select:focus,
.wpcf7-form .pt-contact-form select:focus,
.wpcf7-form-control.wpcf7-select:focus {
    border-color: #05498a !important;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu {
    width: 280px !important;
}

/* Ensure footer custom/html text is visible on dark footer background */
#pt-footer .pt-footer-bottom-list .widget,
#pt-footer .pt-footer-bottom-list .widget .textwidget,
#pt-footer .pt-footer-bottom-list .widget p,
#pt-footer .pt-footer-bottom-list .widget li,
#pt-footer .pt-footer-bottom-list .widget span,
#pt-footer .pt-footer-bottom-list .widget a {
    color: #ffffff !important;
}

/* Compact breadcrumb: no background, black/smaller text, reduced height */
.pt-breadcrumb-style-1 {
    background: transparent !important;
    min-height: 0 !important;
    padding: 10px 0 8px !important;
}

.pt-breadcrumb-style-1::before,
.pt-breadcrumb-style-1::after,
.pt-breadcrumb-style-1 .pt-breadcrumb-bg,
.pt-breadcrumb-style-1 .pt-breadcrumb-bg::before,
.pt-breadcrumb-style-1 .pt-breadcrumb-bg::after,
.pt-breadcrumb-style-1 .pt-background-overlay {
    background: transparent !important;
    background-color: transparent !important;
    opacity: 0 !important;
    content: none !important;
}

.pt-breadcrumb-style-1 .pt-breadcrumb-title,
.pt-breadcrumb-style-1 h1 {
    color: #111111 !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    margin: 0 0 6px !important;
}

.pt-breadcrumb-style-1 .breadcrumb,
.pt-breadcrumb-style-1 .breadcrumb-item,
.pt-breadcrumb-style-1 .breadcrumb-item a {
    color: #111111 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

.pt-breadcrumb-style-1 .breadcrumb {
    margin-bottom: 0 !important;
}

.pt-breadcrumb-style-1 .breadcrumb-item + .breadcrumb-item::before {
    color: #111111 !important;
}

/* Global typography lock to Calibri */
html,
body,
body *:not(#wpadminbar):not(#wpadminbar *):not(i):not(.fas):not(.far):not(.fab):not(.dashicons):not([class*="dashicons"]):not([class*="fa-"]):not(.e-font-icon-svg),
.elementor-widget-container,
.elementor *:not(#wpadminbar):not(#wpadminbar *):not(i):not(.fas):not(.far):not(.fab):not(.dashicons):not([class*="dashicons"]):not([class*="fa-"]):not(.e-font-icon-svg),
input,
textarea,
select,
button {
    font-family: "Montserrat", Arial, sans-serif !important;
}

/* Restore icon fonts after global Calibri override */
i.fas,
i.far,
i.fab,
[class*="fa-"]::before {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
}

i.fas,
.fas::before {
    font-weight: 900 !important;
}

/* Global accent color override */
:root {
    --e-global-color-primary: #05498a !important;
    --primary-color: #05498a !important;
}

a:hover,
a:focus,
.elementor a:hover,
.elementor a:focus {
    color: #05498a !important;
}

.pt-button,
.pt-button:hover,
.pt-button:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
    border-color: #05498a !important;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover {
    color: #05498a !important;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link:hover,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link:focus {
    background-color: #05498a !important;
    color: #ffffff !important;
}

/* Max Mega Menu exact current/flyout selector override (desktop submenu) */
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item.mega-current-menu-item > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item.mega-toggle-on > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item.mega-current-page-item > a.mega-menu-link {
    background: #05498a !important;
    background-image: none !important;
    color: #ffffff !important;
}

/* Desktop submenu: current page item must use brand blue background + white text */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.mega-current-menu-item > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.mega-current-page-item > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.mega-current-menu-ancestor > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.mega-current-page-ancestor > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.current-menu-item > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.current_page_item > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.current-menu-ancestor > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.current-page-ancestor > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu > li.mega-menu-item.current-menu-item > a.mega-menu-link {
    background-color: #05498a !important;
    color: #ffffff !important;
}

/* Mobile menu: remove colored background from submenu toggle buttons */
@media (max-width: 1200px) {
    /* Keep the circular mobile menu toggle in the new brand color */
    #mega-menu-wrap-primary .mega-toggle-block-0 .mega-toggle-animated-inner,
    #mega-menu-wrap-primary .mega-toggle-block-0 .mega-toggle-animated-inner::before,
    #mega-menu-wrap-primary .mega-toggle-block-0 .mega-toggle-animated-inner::after {
        background-color: #ffffff !important;
    }

    /* apply color only to the real round toggle button */
    #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-0 {
        background: #05498a !important;
        border-color: #05498a !important;
        border-radius: 999px !important;
        overflow: hidden !important;
    }

    /* reset any accidental block backgrounds that broke shape */
    #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block {
        box-shadow: none !important;
    }

    #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block:not(.mega-toggle-block-0) {
        background: transparent !important;
        border-color: transparent !important;
    }

    /* Active/current mobile menu row (e.g. BRANDS) */
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-menu-item > a.mega-menu-link,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-menu-ancestor > a.mega-menu-link,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-page-ancestor > a.mega-menu-link,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:focus {
        background-color: #05498a !important;
        color: #ffffff !important;
    }

    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-menu-item > a.mega-menu-link .mega-indicator::after,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-menu-ancestor > a.mega-menu-link .mega-indicator::after,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-page-ancestor > a.mega-menu-link .mega-indicator::after,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover .mega-indicator::after,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:focus .mega-indicator::after {
        color: #ffffff !important;
    }

    /* Ensure text is white for items that have submenus */
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item-has-children > a.mega-menu-link:hover,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item-has-children > a.mega-menu-link:focus,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item-has-children.mega-toggle-on > a.mega-menu-link {
        color: #ffffff !important;
    }

    /* Current page/ancestor item text must stay white on blue background */
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-menu-item > a.mega-menu-link,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-menu-ancestor > a.mega-menu-link,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-page-ancestor > a.mega-menu-link,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current_page_item > a.mega-menu-link {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        opacity: 1 !important;
    }

    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-menu-item.mega-menu-item-has-children > a.mega-menu-link,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-menu-ancestor.mega-menu-item-has-children > a.mega-menu-link,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-page-ancestor.mega-menu-item-has-children > a.mega-menu-link,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current_page_item.mega-menu-item-has-children > a.mega-menu-link {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        opacity: 1 !important;
    }
}
