/* DiviHarbor global header: only one arrow on View Plans.
 * The literal "→" in the button label stays. Disable Divi's automatic
 * :after arrow that appears on hover. Preserve button color and padding. */
body #page-container .et_pb_section .et_pb_button_0_tb_header::after,
body #page-container .et_pb_section .et_pb_button_0_tb_header:hover::after,
body #page-container .et_pb_section .et_pb_button_0_tb_header:focus-visible::after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
}
/* Keep the desktop header action entirely absent from the layout when the
 * current signed-in customer has membership access, according to F03. */
body.dh-header-has-membership .et_pb_button_0_tb_header_wrapper {
    display: none !important;
}
/* Defense-in-depth if a navigation renderer uses cached menu HTML.
 * The PHP nav-menu filter also removes the mobile menu item completely. */
body.dh-header-has-membership #menu-item-340 {
    display: none !important;
}

/* DH ACCOUNT PRIMARY CTA V2 — member-specific styling of the EXISTING
 * desktop My Account text-link. Matches the current View Plans design:
 * #4130E9, Inter semibold, 13px/22px padding, 12px radius.
 * Never style the link this way for guests or signed-in non-members. */
@media (min-width: 981px) {
  body.dh-header-has-membership .et_pb_text_0_tb_header .et_pb_text_inner p {
    padding-bottom: 0 !important;
    margin: 0 !important;
  }
  body.dh-header-has-membership .et_pb_text_0_tb_header .et_pb_text_inner a[href*="/my-account/"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    padding: 13px 22px !important;
    border: 1px solid #4130E9 !important;
    border-radius: 12px !important;
    background: #4130E9 !important;
    color: #FFFFFF !important;
    font-family: Inter, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: background-color .16s ease, border-color .16s ease !important;
  }
  body.dh-header-has-membership .et_pb_text_0_tb_header .et_pb_text_inner a[href*="/my-account/"]:hover,
  body.dh-header-has-membership .et_pb_text_0_tb_header .et_pb_text_inner a[href*="/my-account/"]:focus-visible {
    background: #6543F4 !important;
    border-color: #6543F4 !important;
    color: #FFFFFF !important;
  }
  /* Remove the login text-module underline, not the CTA itself. */
  body.dh-header-has-membership .et_pb_text_0_tb_header .et_pb_text_inner a[href*="/my-account/"]::after,
  body.dh-header-has-membership .et_pb_text_0_tb_header .et_pb_text_inner a[href*="/my-account/"]:hover::after {
    content: none !important;
    display: none !important;
  }
}
/* In the hamburger menu the View Plans item #340 is already removed for
 * active members. Turn the sole remaining Account item #339 into the primary
 * CTA without adding another button or changing the underlying menu. */
@media (max-width: 980px) {
  body.dh-header-has-membership .et_mobile_menu li.menu-item-339 > a {
    display: block !important;
    background: #4130E9 !important;
    color: #FFFFFF !important;
    border: 0 !important;
    border-radius: 10px !important;
    margin: 8px 4px 2px !important;
    padding: 13px 16px !important;
    font-weight: 750 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }
  body.dh-header-has-membership .et_mobile_menu li.menu-item-339 > a:hover,
  body.dh-header-has-membership .et_mobile_menu li.menu-item-339 > a:focus-visible {
    background: #6543F4 !important;
    color: #FFFFFF !important;
  }
}
body.dh-header-has-membership .et_pb_text_0_tb_header a[href*="/my-account/"]:focus-visible,
body.dh-header-has-membership .et_mobile_menu li.menu-item-339 > a:focus-visible {
  outline: 3px solid #AB96FF !important;
  outline-offset: 3px !important;
}
@media (prefers-reduced-motion: reduce) {
  body.dh-header-has-membership .et_pb_text_0_tb_header .et_pb_text_inner a[href*="/my-account/"] {
    transition: none !important;
  }
}
