/**
 * WordPress / Elementor compatibility overrides.
 * Keep external theme defaults out of the Conniva interface.
 */

.cloudcall-wordpress-page button.mobile-toggle {
  background: var(--color-brand-blue) !important;
  border: 1px solid var(--color-brand-blue) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
  color: var(--color-white) !important;
  outline: 0 !important;
}

.cloudcall-wordpress-page button.mobile-toggle:hover,
.cloudcall-wordpress-page button.mobile-toggle:active {
  background: var(--color-brand-blue-hover) !important;
  border-color: var(--color-brand-blue-hover) !important;
  color: var(--color-white) !important;
}

.cloudcall-wordpress-page button.mobile-toggle:focus-visible {
  box-shadow: 0 0 0 3px var(--color-blue-glow) !important;
}

/* The close control is moved to body by the mobile-menu script. */
body.mobile-nav-open .mobile-nav-drawer .mobile-close-btn {
  background: var(--color-bg-ice) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: none !important;
  color: var(--color-primary-navy) !important;
}

body.mobile-nav-open .mobile-nav-drawer .mobile-close-btn:hover {
  background: var(--color-brand-blue) !important;
  border-color: var(--color-brand-blue) !important;
  color: var(--color-white) !important;
}

/* Keep the active accordion state within the Conniva palette. */
body .mobile-nav-drawer button.mobile-menu-trigger,
body .mobile-nav-drawer a.mobile-menu-trigger {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--color-primary-navy) !important;
  text-decoration: none !important;
}

body .mobile-nav-drawer button.mobile-menu-trigger:hover,
body .mobile-nav-drawer a.mobile-menu-trigger:hover,
body .mobile-nav-drawer button.mobile-menu-trigger:focus-visible,
body .mobile-nav-drawer a.mobile-menu-trigger:focus-visible {
  background: var(--color-bg-ice) !important;
  color: var(--color-brand-blue) !important;
}

body .mobile-nav-drawer button.mobile-menu-trigger[aria-expanded='true'] {
  background: var(--color-bg-ice) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--color-brand-blue) !important;
}

body .mobile-nav-drawer .mobile-sub-link {
  background: transparent !important;
  color: var(--color-text-secondary) !important;
}

body .mobile-nav-drawer .mobile-sub-link:hover,
body .mobile-nav-drawer .mobile-sub-link:focus-visible {
  background: var(--color-bg-ice) !important;
  color: var(--color-brand-blue) !important;
}
