:root{--sf-navy:#0e305b;--sf-blue:#0864b6;--sf-red:#ed3346}
#sf-global-actions,#sf-global-actions *{box-sizing:border-box}
#sf-global-actions{position:fixed;right:16px;top:calc(50% + 95px);transform:translateY(-50%);z-index:99920;display:flex;flex-direction:column;gap:9px;padding:9px;background:#fff;border:1px solid #e5edf7;border-radius:18px;box-shadow:0 13px 42px rgba(10,47,89,.16)}
#sf-global-actions a{height:48px;min-width:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border-radius:12px;text-align:center;text-decoration:none!important;color:var(--sf-navy)!important;background:#f4f8fd;transition:background .15s,color .15s,transform .15s;font:600 10px/1.1 Arial,sans-serif}
#sf-global-actions a:hover,#sf-global-actions a:focus-visible{background:var(--sf-blue);color:#fff!important;transform:translateX(-2px)}
#sf-global-actions svg{width:22px;height:22px;flex-shrink:0}
#sf-global-actions .sf-action-chat{color:#159d57!important}
#sf-global-actions .sf-action-phone{background:var(--sf-red);color:#fff!important}
#sf-global-actions a:focus-visible{outline:3px solid #7aaee5;outline-offset:2px}
/* Compact mobile header enhancements; selectors applied only to detected mobile menu elements by JS */
@media(max-width:767px){
  body{padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))!important}
  #sf-global-actions{top:auto;right:0;bottom:0;left:0;transform:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;border:0;border-top:2px solid var(--sf-red);border-radius:16px 16px 0 0;padding:7px 4px calc(7px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 25px rgba(8,39,75,.12)}
  #sf-global-actions a{min-width:0;height:47px;padding:3px 1px;background:transparent;gap:4px;font-size:10px;border-radius:8px}
  #sf-global-actions a:hover,#sf-global-actions a:focus-visible{transform:none;background:#ecf5ff;color:var(--sf-blue)!important}
  #sf-global-actions svg{width:22px;height:22px}
  #sf-global-actions .sf-action-phone{background:transparent;color:var(--sf-navy)!important}
  body.sf-on-contact-mobile{padding-bottom:0!important}
  body.sf-on-contact-mobile #sf-global-actions{display:none!important}
  /* The old Quick Access bar must not compete with the unified site-wide action bar */
  body.sf-has-global-actions .sqa-mobile-dock{display:none!important}
  /* Existing plugin styles use body:has selector to add padding; override on contact */
  body.sf-on-contact-mobile:has(.sqa-mobile-dock){padding-bottom:0!important}
  .sf-mobile-nav-list{display:block!important;padding:0 12px!important;margin:0!important;max-height:calc(100dvh - 165px);overflow-y:auto;overscroll-behavior:contain;background:#fff}
  .sf-mobile-nav-list>li{margin:0!important;padding:0!important;border-bottom:1px solid #e9edf4!important;position:relative!important;min-height:44px}
  .sf-mobile-nav-list>li>a{min-height:46px!important;padding:12px 43px 12px 9px!important;margin:0!important;display:flex!important;align-items:center!important;color:#142d4e!important;font-weight:600!important;font-size:12px!important;line-height:1.35!important;max-width:100%!important}
  .sf-mobile-nav-list>li.current-menu-item>a{color:var(--sf-red)!important}
  .sf-mobile-nav-list>li.sf-has-toggle>a{padding-right:48px!important}
  .sf-submenu-toggle{position:absolute!important;right:1px!important;top:3px!important;z-index:5!important;display:flex!important;align-items:center;justify-content:center;width:42px!important;height:40px!important;padding:0!important;border:0!important;border-radius:8px;background:#eef5fc!important;color:var(--sf-blue)!important;cursor:pointer;box-shadow:none!important;font-size:19px!important;line-height:1!important}
  .sf-submenu-toggle[aria-expanded=true]{background:var(--sf-blue)!important;color:white!important}
  .sf-mobile-nav-list li.sf-mobile-expanded>ul.sub-menu{display:block!important;max-height:min(42vh,380px)!important;overflow-y:auto!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;position:relative!important;inset:auto!important;transform:none!important;box-shadow:none!important;width:100%!important;padding:5px 8px 10px!important;border:0!important;border-left:2px solid var(--sf-red)!important;background:#f7faff!important}
  .sf-mobile-nav-list li:not(.sf-mobile-expanded)>ul.sub-menu{display:none!important;max-height:0!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
  .sf-mobile-nav-list li.sf-mobile-expanded>ul.sub-menu>li>a{font-size:12px!important;padding:10px!important;min-height:38px!important;color:#204268!important}
  /* Keep menu clear of bottom dock */
  .sf-mobile-nav-list{scrollbar-width:thin}
}
@media(max-width:360px){#sf-global-actions a{font-size:9px!important}.sf-mobile-nav-list{padding:0 7px!important}}
@media(prefers-reduced-motion:reduce){#sf-global-actions a{transition:none}}

/* v1.1: Native + mega-menu submenu visibility fix. Scope strictly to mobile. */
@media(max-width:767px){
  .sf-mobile-nav-list,
  .sf-mobile-nav-list>li,
  .sf-mobile-nav-list>li.sf-mobile-expanded{overflow:visible!important;contain:none!important}
  .sf-mobile-nav-list{overflow-y:auto!important;overflow-x:hidden!important}
  .sf-mobile-nav-list>li.sf-mobile-expanded{height:auto!important;max-height:none!important}
  .sf-mobile-nav-list li.sf-mobile-expanded>ul,
  .sf-mobile-nav-list li.sf-mobile-expanded>ul.sub-menu,
  .sf-mobile-nav-list li.sf-mobile-expanded>ul.children,
  .sf-mobile-nav-list li.sf-mobile-expanded.samford-mm-parent>ul.sub-menu{
    display:block!important;position:relative!important;float:none!important;
    top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:auto!important;max-height:min(48vh,430px)!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    visibility:visible!important;opacity:1!important;pointer-events:auto!important;
    transform:none!important;clip:auto!important;clip-path:none!important;
    grid-template-columns:minmax(0,1fr)!important;
    padding:7px 8px 10px!important;margin:3px 0 9px!important;
    border:1px solid #dfebf7!important;border-left:3px solid var(--sf-blue)!important;
    border-radius:8px!important;background:#f7fbff!important;
    z-index:4!important;box-shadow:none!important;
  }
  .sf-mobile-nav-list li.sf-mobile-expanded>ul>li{display:block!important;float:none!important;width:100%!important;height:auto!important;visibility:visible!important;opacity:1!important}
  .sf-mobile-nav-list li.sf-mobile-expanded>ul>li>a{display:flex!important;min-height:38px!important;width:100%!important;padding:9px 10px!important;color:#143a63!important;font-size:12px!important;white-space:normal!important}
  .sf-mobile-nav-list li.sf-mobile-expanded>ul>li>a .samford-mm-icon{flex-shrink:0}
  .sf-mobile-nav-list li:not(.sf-mobile-expanded)>ul.sub-menu,
  .sf-mobile-nav-list li:not(.sf-mobile-expanded)>ul.children{display:none!important}
}
@media(min-width:768px){
  #sf-global-actions{top:calc(50% + 95px)!important}
}
@media(min-width:768px) and (max-height:650px){
  #sf-global-actions{top:auto!important;bottom:20px!important;transform:none!important}
}
