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

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

body:not(.logged-in) #mega-menu-primary li:has(> a[href*="/distributor-resources/"]),
body:not(.logged-in) .hfe-nav-menu li:has(> a[href*="/distributor-resources/"]) {
    display: none !important;
}

body:not(.logged-in) #mega-menu-item-15836 > a.mega-menu-link .mega-indicator,
body:not(.logged-in) #mega-menu-item-15836 > ul.mega-sub-menu {
    display: none !important;
}

/* Distributor Resources page template */
.phdr-page {
    background: #f7fafc;
}

.phdr-hero {
    padding: 64px 0 28px;
    background: #ffffff;
    text-align: center;
}

.phdr-hero h1 {
    margin: 0 0 12px;
    color: #001f4f;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 600;
}

.phdr-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: #344568;
    font-size: 18px;
    line-height: 1.55;
}

.phdr-resources {
    padding: 42px 0 76px;
}

.phdr-userbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #d8e4ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(5, 73, 138, 0.07);
}

.phdr-userbar__welcome {
    color: #001f4f;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
}

.phdr-userbar__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #05498a;
    color: #ffffff !important;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.phdr-userbar__logout:hover,
.phdr-userbar__logout:focus {
    background: #00a6cd;
    color: #ffffff !important;
}

.phdr-accordion {
    display: grid;
    gap: 14px;
}

.phdr-accordion__item {
    overflow: hidden;
    border: 1px solid #d8e4ef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(5, 73, 138, 0.08);
}

.phdr-accordion__button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    color: #001f4f;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.phdr-accordion__item.is-open .phdr-accordion__button,
.phdr-accordion__button:hover,
.phdr-accordion__button:focus {
    background: #05498a;
    color: #ffffff;
}

.phdr-accordion__button::after {
    content: "+";
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
}

.phdr-accordion__item.is-open .phdr-accordion__button::after {
    content: "-";
}

.phdr-accordion__count {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 166, 205, 0.14);
    color: inherit;
    font-size: 14px;
    font-weight: 600;
}

.phdr-accordion__panel {
    padding: 24px;
    border-top: 1px solid #d8e4ef;
}

.phdr-resource-list {
    display: grid;
    gap: 14px;
}

.phdr-resource-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #e2edf5;
    border-radius: 10px;
    background: #fbfdff;
}

.phdr-resource-card h2 {
    margin: 0 0 6px;
    color: #001f4f;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 600;
}

.phdr-resource-card p {
    margin: 0;
    color: #344568;
    font-size: 15px;
    line-height: 1.5;
}

.phdr-resource-card__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #05498a;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.phdr-resource-card__download:hover,
.phdr-resource-card__download:focus {
    background: #00a6cd;
    color: #ffffff !important;
}

.phdr-empty {
    padding: 28px;
    border: 1px solid #d8e4ef;
    border-radius: 12px;
    background: #ffffff;
    color: #344568;
    text-align: center;
}

@media (max-width: 767px) {
    .phdr-hero {
        padding: 42px 0 20px;
    }

    .phdr-hero h1 {
        font-size: 30px;
    }

    .phdr-hero p {
        font-size: 16px;
    }

    .phdr-resources {
        padding: 28px 0 52px;
    }

    .phdr-userbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .phdr-accordion__button {
        padding: 17px 18px;
        font-size: 18px;
    }

    .phdr-accordion__panel {
        padding: 16px;
    }

    .phdr-resource-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .phdr-resource-card__download {
        width: 100%;
    }
}

/* Header menu: let the right menu area use the available header width */
@media (min-width: 1201px) {
    #pt-header.pt-header-style-1 .pt-middle-menu,
    #pt-header.pt-header-style-1 #mega-menu-wrap-primary,
    #pt-header.pt-header-style-1 #mega-menu-wrap-primary #mega-menu-primary {
        width: 100% !important;
        min-width: 0 !important;
    }

    #pt-header.pt-header-style-1 #mega-menu-wrap-primary #mega-menu-primary {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        white-space: nowrap !important;
    }

    #pt-header.pt-header-style-1 #mega-menu-wrap-primary #mega-menu-primary > li.menu-item-gtranslate {
        flex: 0 0 172px !important;
        width: 172px !important;
        min-width: 172px !important;
        height: 100px !important;
        position: relative !important;
    }

    #pt-header.pt-header-style-1 #mega-menu-wrap-primary #mega-menu-primary > li.menu-item-gtranslate > div {
        top: 50% !important;
        right: 0 !important;
        left: auto !important;
        transform: translateY(-50%) !important;
    }
}

@media (min-width: 1201px) and (max-width: 1499px) {
    #pt-header.pt-header-style-1 #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        padding-right: 10px !important;
        font-size: 15px !important;
    }

    #pt-header.pt-header-style-1 .pt-bottom-header .pt-container-wrapper {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Mobile menu: show language switcher as a regular menu row */
@media (max-width: 1200px) {
    #pt-header.pt-header-style-1 #mega-menu-wrap-primary #mega-menu-primary > li.menu-item-gtranslate {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 12px 0 !important;
        position: relative !important;
        background: #ffffff !important;
    }

    #pt-header.pt-header-style-1 #mega-menu-wrap-primary #mega-menu-primary > li.menu-item-gtranslate > div {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 220px !important;
        margin: 0 0 0 0 !important;
        white-space: nowrap !important;
    }
}

/* Home brand carousel: vertically align every logo on laptop widths */
@media (min-width: 1025px) and (max-width: 1440px) {
    body.home .elementor-element-273249b .swiper-wrapper {
        align-items: stretch !important;
    }

    body.home .elementor-element-273249b .swiper-slide {
        height: 170px !important;
        display: flex !important;
        align-items: center !important;
    }

    body.home .elementor-element-273249b .swiper-slide > .e-con,
    body.home .elementor-element-273249b .swiper-slide .e-con-inner,
    body.home .elementor-element-273249b .swiper-slide .elementor-widget-image,
    body.home .elementor-element-273249b .swiper-slide .elementor-widget-container,
    body.home .elementor-element-273249b .swiper-slide a {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.home .elementor-element-273249b .swiper-slide img {
        display: block !important;
        max-height: 120px !important;
        width: auto !important;
        max-width: 82% !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }
}

/* Home brand carousel: keep logos vertically centered on tablet/mobile */
@media (max-width: 1024px) {
    body.home .elementor-element-273249b .swiper-wrapper {
        align-items: stretch !important;
    }

    body.home .elementor-element-273249b .swiper-slide {
        height: 130px !important;
        display: flex !important;
        align-items: center !important;
    }

    body.home .elementor-element-273249b .swiper-slide > .e-con,
    body.home .elementor-element-273249b .swiper-slide .e-con-inner,
    body.home .elementor-element-273249b .swiper-slide .elementor-widget-image,
    body.home .elementor-element-273249b .swiper-slide .elementor-widget-container,
    body.home .elementor-element-273249b .swiper-slide a {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.home .elementor-element-273249b .swiper-slide img {
        display: block !important;
        max-height: 86px !important;
        width: auto !important;
        max-width: 78% !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }
}

/* Home counters: keep labels and number/suffix pairs on one line on laptop widths */
@media (min-width: 1025px) and (max-width: 1440px) {
    body.home .elementor-widget-counter .elementor-counter-number-wrapper {
        font-size: 46px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    body.home .elementor-widget-counter .elementor-counter-number,
    body.home .elementor-widget-counter .elementor-counter-number-prefix,
    body.home .elementor-widget-counter .elementor-counter-number-suffix {
        font-size: inherit !important;
        line-height: inherit !important;
        white-space: nowrap !important;
    }

    body.home .elementor-widget-counter .elementor-counter-title {
        font-size: 13px !important;
        line-height: 1.25 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
    }
}

/* Distributors page: use the two intro boxes as popup tab triggers */
body.page-id-15818 .elementor-element-dd67db8 .e-n-tabs-heading {
    display: none !important;
}

body.page-id-15818:not(.ph-distributor-modal-open) .elementor-element-dd67db8 .e-n-tabs-content {
    display: none !important;
}

body.page-id-15818.ph-distributor-modal-open {
    overflow: hidden;
}

body.page-id-15818.ph-distributor-modal-open .elementor-element-dd67db8 .e-n-tabs-content {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    padding: 24px !important;
    background: rgba(5, 73, 138, 0.58) !important;
}

body.page-id-15818.ph-distributor-modal-open .elementor-element-dd67db8 .e-n-tabs-content > [role="tabpanel"] {
    display: none !important;
}

body.page-id-15818.ph-distributor-modal-open .elementor-element-dd67db8 .e-n-tabs-content > [role="tabpanel"].e-active {
    position: relative !important;
    display: block !important;
    width: min(620px, calc(100vw - 40px)) !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    padding: 38px 34px 32px !important;
    background: #ffffff !important;
    border: 1px solid #d5e2ee !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 70px rgba(5, 73, 138, 0.28) !important;
}

body.page-id-15818 .ph-distributor-modal-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #111111 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

body.page-id-15818 .ph-distributor-modal-close:hover,
body.page-id-15818 .ph-distributor-modal-close:focus {
    background: rgba(5, 73, 138, 0.08) !important;
    color: #05498a !important;
}

body.page-id-15818 .elementor-element-2dc2ea9.login,
body.page-id-15818 .elementor-element-40cbb4e.register {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.page-id-15818 .elementor-element-2dc2ea9.login:focus-visible,
body.page-id-15818 .elementor-element-40cbb4e.register:focus-visible {
    outline: 2px solid #05498a;
    outline-offset: 4px;
}

body.page-id-15818 .elementor-element-2dc2ea9.login:hover,
body.page-id-15818 .elementor-element-40cbb4e.register:hover,
body.page-id-15818 .elementor-element-2dc2ea9.login.is-active,
body.page-id-15818 .elementor-element-40cbb4e.register.is-active {
    border-color: #05498a !important;
    box-shadow: 0 14px 34px rgba(5, 73, 138, 0.14);
    transform: translateY(-2px);
}

/* 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;
}

body.page-id-15818 .wpcf7-form .iti {
    display: block !important;
    width: 100% !important;
}

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

body.page-id-15818 .wpcf7-form input[name="phone-full"],
body.page-id-15818 .wpcf7-form input[name="phone-country-code"] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

body.page-id-15818 .wpcf7-form p:has(input[name="phone-full"]) br {
    display: none !important;
}

body.page-id-15818 .wpcf7-form .iti input[type="tel"],
body.page-id-15818 .wpcf7-form input.ph-distributor-phone-input {
    padding-left: 72px !important;
}

body.page-id-15818 .wpcf7-form .iti__flag-container {
    height: 50px !important;
}

body.page-id-15818 .wpcf7-form .iti__selected-flag {
    height: 50px !important;
    padding-left: 16px !important;
    padding-right: 8px !important;
    border-radius: 999px 0 0 999px !important;
}

body.page-id-15818 .wpcf7-form .iti__selected-dial-code {
    color: #44506a !important;
    font-size: 14px !important;
}

body.page-id-15818 .wpcf7-form .iti__country-list {
    z-index: 100001 !important;
    font-family: "Montserrat", Arial, sans-serif !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;
    }
}
