/* Header compatibility for Neve 4: original two-row Success Finance menu. */
#header-grid .header-top { position:relative; z-index:110; border-top:1px solid #85809b; border-bottom:1px solid #eee; background:#fff; }
#header-grid .header-top-inner { background:#fff; }
#header-grid .header-top .row--wrapper { display:flex; min-height:40px; }
#header-grid .header-top .hfg-slot.left { flex:1 1 100%; width:100%; justify-content:flex-end; }
#header-grid .header-top .hfg-slot.right:empty { display:none; }
#header-grid .header-top .builder-item { margin:0; padding:0; }
#header-grid .header-top .item--inner { margin:0; padding:0; }
#header-grid .sfg-secondary-menu { display:flex; justify-content:flex-end; flex-wrap:nowrap; gap:0; margin:0; padding:0; list-style:none; font-family:Arial,"Microsoft JhengHei",sans-serif; }
#header-grid .sfg-secondary-menu li { position:relative; margin:0; padding:0; list-style:none; }
#header-grid .sfg-secondary-menu > li { border-left:1px solid #ddd; }
#header-grid .sfg-secondary-menu > li > .wrap { display:flex; align-items:center; min-height:40px; }
#header-grid .sfg-secondary-menu > li > .wrap > a { font-size:13px; font-weight:400; line-height:20px; padding:10px; color:#363b43; background:transparent; white-space:nowrap; text-transform:none; }
#header-grid .sfg-secondary-menu > li:first-child > .wrap > a { text-decoration:underline; }
#header-grid .sfg-secondary-menu .btn-demo > .wrap > a { color:#be8632 !important; background:transparent !important; }
#header-grid .sfg-secondary-menu .btn-red > .wrap > a,
#header-grid .sfg-secondary-menu .current-lang > .wrap > a { color:#a00008 !important; background:transparent !important; }
#header-grid .sfg-secondary-menu .lang-item:after { display:none; }
#header-grid .sfg-secondary-menu .menu-item-has-children > .wrap > a:after { display:none; }
#header-grid .sfg-menu-toggle { display:inline-flex; justify-content:center; align-items:center; flex:0 0 24px; width:24px; min-width:24px; height:40px; padding:0; margin:0 3px 0 -6px; border:0; border-radius:0; color:#333; background:transparent; box-shadow:none; cursor:pointer; }
#header-grid .sfg-menu-toggle:after { content:""; width:0; height:0; border:4px solid transparent; border-bottom:0; border-top:6px solid currentColor; }
#header-grid .btn-red .sfg-menu-toggle { color:#851218; }
#header-grid .sfg-secondary-menu .sub-menu { display:none; position:absolute; inset:100% 0 auto auto; width:152px; min-width:152px; max-height:none; margin:0; padding:0; opacity:1; visibility:visible; background:#fff; border:1px solid #ccc; box-shadow:0 2px 5px #0002; z-index:120; }
#header-grid .sfg-secondary-menu .sub-menu li { display:block; min-width:0; border:0; border-bottom:1px solid #f0f0f0; background:#fff; }
#header-grid .sfg-secondary-menu .sub-menu li:last-child { border-bottom:0; }
#header-grid .sfg-secondary-menu .sub-menu .wrap { display:flex; justify-content:center; margin:0; padding:0; }
#header-grid .sfg-secondary-menu .sub-menu a { display:flex; align-items:center; justify-content:center; width:100%; padding:10px 14px; font-size:13px; font-weight:400; line-height:20px; white-space:nowrap; color:#363b43; background:#fff; }
#header-grid .sfg-secondary-menu .sub-menu a { color:#363b43 !important; }
#header-grid .sfg-secondary-menu .sub-menu .current-lang > .wrap > a,
#header-grid .sfg-secondary-menu .sub-menu a:hover { color:#a00008 !important; background:#fafafa; }
#header-grid .sfg-secondary-menu li.sfg-open > .sub-menu { display:block; }
#header-grid .sfg-secondary-menu a:focus-visible,
#header-grid .sfg-menu-toggle:focus-visible { outline:2px solid #851218; outline-offset:-3px; }
@media (hover:hover) {
 #header-grid .sfg-secondary-menu li:not(.sfg-dismissed):hover > .sub-menu { display:block; }
}
@media (min-width:960px) {
 #header-grid .header-top .container,
 #header-grid .header-main .container { margin:auto; padding:0 15px; }
 #header-grid .header-main .row--wrapper { min-height:120px; }
 #header-grid .header-main .primary-menu-ul { gap:20px; }
 #header-grid .header-main .primary-menu-ul > li > .wrap > a { font-size:16px; font-weight:600; color:#363b43; white-space:nowrap; }
 #header-grid .header-main .primary-menu-ul > li.current-menu-ancestor > .wrap > a,
 #header-grid .header-main .primary-menu-ul > li > .wrap:hover > a { color:#a00008; }
 #header-grid .header-main .primary-menu-ul > li > .wrap { align-items:center; }
 #header-grid .header-main .primary-menu-ul > li > .wrap .caret-wrap { background:none; border:0; box-shadow:none; color:inherit; }
}
@media (max-width:959px) {
 #header-grid .header-top .container { padding:0 8px; }
 #header-grid .sfg-secondary-menu { flex-wrap:wrap; justify-content:flex-end; }
 #header-grid .sfg-secondary-menu > li > .wrap > a { font-size:12px; padding:5px 3px; }
 #header-grid .sfg-secondary-menu > li > .wrap { min-height:36px; }
 #header-grid .sfg-menu-toggle { height:36px; margin-right:0; }
}
