﻿.ss-mega-menu {
  width: 100%;
}

.ss-mega-nav,
.ss-mega-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ss-mega-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.ss-mega-nav__item {
  position: relative;
}

.ss-mega-nav__link {
  min-height: var(--yc-header-height, 4.5rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 var(--yc-space-4, 1rem);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.ss-mega-nav__link:hover,
.ss-mega-nav__link[aria-expanded="true"] {
  color: var(--yc-primary-foreground, #fff);
}

.ss-mega-nav__link svg,
.ss-mega-panel svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ss-mega-nav__link svg {
  transition: transform 0.18s ease;
}

.ss-mega-nav__link[aria-expanded="true"] svg,
.ss-mega-nav__item--mega:hover > .ss-mega-nav__link svg {
  transform: rotate(180deg);
}

.ss-mega-panel {
  position: fixed;
  top: var(--ss-mega-top, var(--yc-header-height, 4.5rem));
  left: 50%;
  z-index: 9999;
  width: min(
    calc(100vw - var(--yc-container-px, 4rem) - var(--yc-container-px, 4rem)),
    calc(
      var(--yc-container-max, 90rem) - var(--yc-container-px, 4rem) -
        var(--yc-container-px, 4rem)
    )
  );
  max-width: none;
  background: var(--yc-card, #fff);
  border-radius: var(--yc-radius-sm, 4px);
  box-shadow: 0 18px 50px rgba(6, 43, 79, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

.ss-mega-nav__item--mega.is-open > .ss-mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ss-mega-panel__inner {
  position: relative;
  display: flex;
  min-height: 440px;
  overflow: hidden;
}

.ss-mega-panel__intro {
  width: 300px;
  flex: 0 0 auto;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  background: var(--yc-muted, #eef2f9);
  transition:
    width 0.28s ease,
    padding 0.28s ease,
    opacity 0.2s ease;
}

.ss-mega-panel__title {
  margin: 0 0 1.5rem;
  color: var(--yc-accent, #e30613);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
}

.ss-mega-panel__description {
  color: var(--yc-muted-foreground, #6b7280);
  font-size: 1rem;
  line-height: 1.65;
}

.ss-mega-panel__description > *:first-child {
  margin-top: 0;
}

.ss-mega-panel__description > *:last-child {
  margin-bottom: 0;
}

.ss-mega-panel__overview {
  margin-top: auto;
  color: var(--yc-foreground, #101820);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.ss-mega-panel__overview:hover {
  color: var(--yc-accent, #e30613);
}

.ss-mega-panel__level {
  padding: 40px 0;
}

.ss-mega-panel__level--two {
  width: 320px;
  flex: 0 0 auto;
  border-right: 1px solid var(--yc-border, #d8e0e8);
  transition: width 0.28s ease;
}

.ss-mega-panel__viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.ss-mega-panel__track {
  display: flex;
  width: 200%;
  min-height: 100%;
  transition: width 0.28s ease;
}

.ss-mega-panel__level--three,
.ss-mega-panel__level--four {
  position: relative;
  width: 50%;
  flex: 0 0 50%;
  min-height: 440px;
}

.ss-mega-panel__level--four {
  border-left: 1px solid var(--yc-border, #d8e0e8);
}

.ss-mega-panel__group {
  position: absolute;
  inset: 40px 0 0;
  display: none;
  padding: 0 32px;
}

.ss-mega-panel__group.is-active {
  display: block;
}

.ss-mega-panel__level--two {
  padding-left: 32px;
  padding-right: 32px;
}

.ss-mega-panel__link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px 0;
  color: var(--yc-foreground, #101820);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease;
}

.ss-mega-panel__link:hover,
.ss-mega-panel__link.is-active {
  color: var(--yc-accent, #e30613);
}

.ss-mega-panel__link svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  opacity: 0.85;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.ss-mega-panel__link:hover svg,
.ss-mega-panel__link.is-active svg {
  opacity: 1;
  transform: translateX(4px);
}

.ss-mega-panel__group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ss-mega-panel__back,
.ss-mega-panel__close {
  padding: 0;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--yc-accent, #e30613);
  cursor: pointer;
}

.ss-mega-panel__back {
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.ss-mega-panel__back svg,
.ss-mega-panel__close svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.18s ease;
}

.ss-mega-panel__back:hover svg {
  transform: translateX(-4px);
}

.ss-mega-panel__close:hover svg {
  transform: rotate(90deg);
}

.ss-mega-panel__close--desktop {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 2;
}

.ss-mega-panel.is-l4-active .ss-mega-panel__intro {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  opacity: 0;
}

.ss-mega-panel.is-l4-active .ss-mega-panel__level--two {
  width: 33.333333%;
}

.ss-mega-panel.is-l4-active .ss-mega-panel__viewport {
  flex-basis: 66.666667%;
}

.ss-mega-panel.is-l4-active .ss-mega-panel__track {
  width: 100%;
}

.ss-mega-panel.is-l4-active .ss-mega-panel__level--three,
.ss-mega-panel.is-l4-active .ss-mega-panel__level--four {
  width: 50%;
  flex-basis: 50%;
}

@media (max-width: 1199px) {
  .ss-mega-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .ss-mega-nav__link {
    width: 100%;
    min-height: 3.875rem;
    justify-content: space-between;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--yc-primary-foreground, #fff);
  }

  .ss-mega-panel {
    position: static;
    width: 100%;
    max-width: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .ss-mega-nav__item--mega.is-open > .ss-mega-panel {
    display: block;
  }

  .ss-mega-panel__inner,
  .ss-mega-panel__track {
    display: block;
    min-height: 0;
    width: 100%;
  }

  .ss-mega-panel__intro,
  .ss-mega-panel__level--two,
  .ss-mega-panel__level--three,
  .ss-mega-panel__level--four {
    width: 100%;
    min-height: 0;
    padding: 20px 0;
    border: 0;
    background: transparent;
  }

  .ss-mega-panel__title,
  .ss-mega-panel__description,
  .ss-mega-panel__overview,
  .ss-mega-panel__link {
    color: var(--yc-primary-foreground, #fff);
  }

  .ss-mega-panel__description {
    opacity: 0.82;
  }

  .ss-mega-panel__group {
    position: static;
    display: block;
    padding: 0 0 0 1rem;
  }

  .ss-mega-panel__close--desktop,
  .ss-mega-panel__group-header {
    display: none;
  }
}
/* SS mega mobile menu */
.ss-mega-mobile-toggle,
.ss-mega-mobile {
  display: none;
}

@media (max-width: 1199px) {
  .brxe-shortcode:has(.ss-mega-menu) {
    margin-left: auto;
  }

  .ss-mega-menu {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }

  .yc-site-header-logo-dm,
  .yc-site-header-logo-dm.brxe-image,
  .yc-site-header-logo-dm.brxe-logo {
    max-height: 48px !important;
  }

  .yc-site-header-logo-dm img,
  .yc-site-header-logo-dm svg {
    width: auto !important;
    height: 48px !important;
    max-height: 48px !important;
  }

  .ss-mega-nav {
    display: none !important;
  }

  .ss-mega-mobile-toggle {
    /* width: 2.75rem;
    height: 2.75rem; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--yc-primary-foreground, #fff);
    cursor: pointer;
  }

  .ss-mega-mobile-toggle svg {
    width: 2rem;
    height: 2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .ss-mega-mobile svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .ss-mega-mobile {
    position: fixed;
    top: var(--ss-mega-mobile-top, 0px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10050;
    display: block;
    background: var(--yc-card, #fff);
    color: var(--yc-foreground, #101820);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition:
      opacity 0.24s ease,
      visibility 0.24s ease;
  }

  body.ss-mega-mobile-active .ss-mega-mobile.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.ss-mega-mobile-active {
    overflow: hidden;
  }

  .ss-mega-mobile__panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--yc-card, #fff);
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.32s ease,
      visibility 0.32s ease;
  }

  .ss-mega-mobile__panel.is-active {
    transform: translateX(0);
    visibility: visible;
  }

  .ss-mega-mobile__panel.is-parent {
    transform: translateX(-18%);
    visibility: visible;
  }

  .ss-mega-mobile__bar {
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.625rem 1.25rem;
    border-bottom: 1px solid var(--yc-border, #d8e0e8);
  }

  .ss-mega-mobile__bar--root {
    justify-content: flex-end;
  }

  .ss-mega-mobile__back {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--yc-foreground, #101820);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
  }

  .ss-mega-mobile__back svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
  }

  .ss-mega-mobile__back:hover,
  .ss-mega-mobile__back:focus-visible {
    color: var(--yc-accent, #e30613);
  }

  .ss-mega-mobile__title {
    margin: 0;
    overflow: hidden;
    color: var(--yc-foreground, #101820);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ss-mega-mobile__icon-button {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--yc-foreground, #101820);
    cursor: pointer;
  }

  .ss-mega-mobile__close {
    justify-self: end;
  }

  .ss-mega-mobile__body {
    flex: 1 1 auto;
    padding: 1.25rem 1.25rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ss-mega-mobile__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .ss-mega-mobile__list-item {
    margin: 0;
    border-bottom: 1px solid var(--yc-border, #d8e0e8);
  }

  .ss-mega-mobile__item {
    width: 100%;
    min-height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--yc-foreground, #101820);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .ss-mega-mobile__item svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
  }

  .ss-mega-mobile__item:hover,
  .ss-mega-mobile__item:focus-visible {
    color: var(--yc-accent, #e30613);
  }

  .ss-mega-mobile__cta {
    width: 100%;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    border-width: var(--yc-border-width, 1px);
    border-style: solid;
    border-color: currentColor;
    border-radius: var(--yc-radius-md, 6px);
    appearance: none;
    background: transparent;
    color: var(--yc-primary, #062548);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
  }

  .ss-mega-mobile__cta:hover,
  .ss-mega-mobile__cta:focus-visible {
    color: var(--yc-accent, #e30613);
  }
}
/* End SS mega mobile menu */
/* SS mega menu detail overrides */
.ss-mega-menu {
  --ss-mega-gap: 24px;
}

@media (min-width: 1200px) {
  body.ss-mega-menu-active::before {
    content: "";
    position: fixed;
    top: var(--ss-mega-top, var(--yc-header-height, 4.5rem));
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9990;
    background: rgba(0, 0, 0, 0.68);
    pointer-events: none;
  }

  .ss-mega-header-active {
    position: relative !important;
    z-index: 10001 !important;
  }

  .ss-mega-header-active .ss-mega-panel {
    z-index: 10002 !important;
  }

  .ss-mega-panel {
    top: calc(
      var(--ss-mega-top, var(--yc-header-height, 4.5rem)) +
        var(--ss-mega-gap, 24px)
    ) !important;
    width: min(
      calc(100vw - var(--yc-container-px, 4rem) - var(--yc-container-px, 4rem)),
      calc(
        var(--yc-container-max, 90rem) - var(--yc-container-px, 4rem) -
          var(--yc-container-px, 4rem)
      )
    ) !important;
    max-width: none !important;
    z-index: 10000 !important;
  }

  .ss-mega-panel__inner {
    height: 440px !important;
    min-height: 0 !important;
    max-height: calc(
      100vh - var(--ss-mega-top, var(--yc-header-height, 4.5rem)) -
        var(--ss-mega-gap, 24px) - 32px
    ) !important;
  }

  .ss-mega-panel__track,
  .ss-mega-panel__level--three,
  .ss-mega-panel__level--four {
    height: 100% !important;
    min-height: 0 !important;
  }

  .ss-mega-panel__intro {
    min-width: 0 !important;
    overflow: hidden !important;
    transition:
      width 0.5s ease,
      padding 0.5s ease,
      opacity 0.5s ease !important;
  }

  .ss-mega-panel__level--two,
  .ss-mega-panel__viewport,
  .ss-mega-panel__track {
    transition-duration: 0.5s !important;
    transition-timing-function: ease !important;
  }

  .ss-mega-panel__intro > * {
    transition: none !important;
  }

  .ss-mega-panel.is-l4-active .ss-mega-panel__intro {
    width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    opacity: 0 !important;
  }

  .ss-mega-panel:not(.is-l4-active) .ss-mega-panel__intro {
    opacity: 1 !important;
  }

  .ss-mega-panel__group {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
      opacity 0.5s ease,
      transform 0.5s ease,
      visibility 0.5s ease !important;
  }

  .ss-mega-panel__group.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .ss-mega-panel {
    --ss-mega-intro-width: 33.333333%;
    --ss-mega-level-two-width: 33.333333%;
  }

  .ss-mega-panel__intro,
  .ss-mega-panel__level--two,
  .ss-mega-panel__viewport,
  .ss-mega-panel__track {
    box-sizing: border-box;
  }

  .ss-mega-panel__intro {
    width: var(--ss-mega-intro-width) !important;
    flex: 0 0 var(--ss-mega-intro-width) !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    opacity: 1 !important;
  }

  .ss-mega-panel__level--two {
    width: var(--ss-mega-level-two-width) !important;
    flex: 0 0 var(--ss-mega-level-two-width) !important;
  }

  .ss-mega-panel__viewport {
    flex: 0 0
      calc(100% - var(--ss-mega-intro-width) - var(--ss-mega-level-two-width)) !important;
  }

  .ss-mega-panel__intro,
  .ss-mega-panel__level--two,
  .ss-mega-panel__viewport {
    transform: translateX(0);
    transition:
      transform 0.5s ease,
      flex-basis 0.5s ease,
      width 0.5s ease,
      opacity 0.5s ease !important;
  }

  .ss-mega-panel.is-l4-active .ss-mega-panel__intro,
  .ss-mega-panel.is-l4-active .ss-mega-panel__level--two {
    transform: translateX(-100%) !important;
  }

  .ss-mega-panel.is-l4-active .ss-mega-panel__viewport {
    transform: translateX(-50%) !important;
  }

  .ss-mega-panel.is-l4-active .ss-mega-panel__intro {
    width: var(--ss-mega-intro-width) !important;
    flex-basis: var(--ss-mega-intro-width) !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    opacity: 1 !important;
  }

  .ss-mega-panel.is-l4-active .ss-mega-panel__level--two {
    width: var(--ss-mega-level-two-width) !important;
    flex-basis: var(--ss-mega-level-two-width) !important;
  }

  .ss-mega-panel.is-l4-active .ss-mega-panel__viewport {
    flex-basis: calc(100% - var(--ss-mega-level-two-width)) !important;
  }

  .ss-mega-panel__level--four .ss-mega-panel__close {
    display: none !important;
  }
}

@media (max-width: 1199px) {
  body.ss-mega-menu-active::before {
    display: none !important;
  }
}
/* End SS mega menu detail overrides */
/* SS mega mobile header alignment overrides */
@media (max-width: 1199px) {
  .yc-site-header-inner-dm.brxe-container {
    column-gap: 0 !important;
  }

  .ss-mega-mobile-toggle {
    justify-content: flex-end;
    padding: 0;
  }
}
/* End SS mega mobile header alignment overrides */

/* Localized header Contact Us button */
.ss-header-contact-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border: 1px solid currentColor;
  border-radius: var(--yc-radius-md, 6px);
  appearance: none;
  background: transparent;
  color: var(--yc-primary-foreground, #fff);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.ss-header-contact-button:hover,
.ss-header-contact-button:focus-visible {
  border-color: var(--yc-primary-foreground, #fff);
  background: var(--yc-primary-foreground, #fff);
  color: var(--yc-primary, #0d3f7a);
}

.ss-header-contact-button:focus-visible {
  outline: 2px solid var(--yc-primary-foreground, #fff);
  outline-offset: 3px;
}

.brxe-shortcode:has(> .ss-header-contact-button) {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

@media (max-width: 1199px) {
  .ss-header-contact-button {
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 639px) {
  .ss-header-contact-button {
    min-height: 2.25rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
  }
}
/* End localized header Contact Us button */
