/* -----------------------NAV ITEMS-------------------- */
/* --------------------MEGA MENU CONTENT DESKTOP & MOBILE----------------- */
/* -----------------------MOBILE SETTINGS-------------------- */
:root {
  --mm-pad-v: var(
        --gutter
    );
  --mm-pad-h: var(
        --gutter
    );
}
.mm-close-dropdown-btn {
  background-color: var(--transparent) !important;
  border: 1px solid var(--white) !important;
  border-radius: var(--btn-radius);
  gap: var(--space-xxs);
  box-shadow: none;
  padding: var(--btn-padding-s);
  color: var(--btn-font-color-light) !important;
  font-weight: 500;
  font-size: var(--text-s);
}
/* ----------------------YOUR CUSTOM CSS--------------------- */
@media (max-width: 991px) {
  .mm li:last-of-type .mm__nav-link {
    padding: var(--btn-padding-l) !important;
    font-size: var(--text-m) !important;
  }
  .mm li:last-of-type .icon svg {
    width: var(--text-xxl);
    height: var(--text-xxl);
  }
  .mm .mm__mobile-nav {
    border-block-end: none !important;
    padding-block: var(--space-s) !important;
  }
  .mm .brx-submenu-toggle button > svg {
    height: var(--text-l) !important;
    width: auto !important;
  }
}
/* -----------------------END OF YOUR CUSTOM CSS-------------------- */
/* -----------------------LOGIC *IGNORE*-------------------- */
.mm__nav-items-wrapper, .brx-dropdown-content {
  gap: unset;
}
/* -----------------------END OF LOGIC-------------------- */
/* -----------------------REST OF CSS BELOW--------------------*/
.mm .brxe-dropdown.brx-has-megamenu .brx-dropdown-content {
  padding-block: var(--gutter);
  padding-inline: var(--gutter);
  gap: var(--content-gap);
  box-shadow: 119px 360px 152px rgba(0, 0, 0, 0.01), 67px 203px 128px rgba(0, 0, 0, 0.05), 30px 90px 95px rgba(0, 0, 0, 0.09), 7px 23px 52px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);
  flex-direction: row;
  border-radius: var(--radius);
}
.mm .brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content {
  min-width: fit-content;
  box-shadow: 119px 360px 152px rgba(0, 0, 0, 0.01), 67px 203px 128px rgba(0, 0, 0, 0.05), 30px 90px 95px rgba(0, 0, 0, 0.09), 7px 23px 52px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  padding: var(--space-xxs);
  gap: 0;
}
.mm .brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content > li a, .mm .brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content > li .brx-submenu-toggle {
  white-space: nowrap;
}
.mm .mm__mobile-nav {
  display: none;
}
.mm .mm-close-dropdown-btn {
  position: absolute;
  inset-inline-start: var(--mm-pad-h);
}
@media (min-width: 991px) {
  .mm .brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content .menu-item a, .mm .brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content .brxe-dropdown:not(.brx-has-megamenu) .brx-submenu-toggle {
    color: var(--heading-color-dark);
    padding: var(--btn-padding-s);
    border-radius: var(--radius);
    border: 1px solid var(--transparent);
    font-size: var(--text-m);
    font-weight: 500;
  }
  .mm .brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content .menu-item a:hover, .mm .brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content .brxe-dropdown:not(.brx-has-megamenu) .brx-submenu-toggle:hover {
    background-color: var(--primary);
    color: var(--btn-font-color-light);
  }
  .mm .brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content .menu-item a {
    width: 100%;
  }
  .mm .brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content .brx-submenu-toggle > a {
    color: inherit;
    font-weight: inherit;
    text-transform: inherit;
  }
  .mm .brxe-dropdown:not(.brx-has-megamenu) .brxe-dropdown:not(.brx-has-megamenu) .brx-submenu-toggle {
    justify-content: space-between;
  }
  .mm .brxe-dropdown:not(.brx-has-megamenu) .brxe-dropdown:not(.brx-has-megamenu) .brx-submenu-toggle svg {
    transform: rotate(-90deg);
  }
  .mm .brxe-dropdown .brx-dropdown-content {
    background-color: var(--bg-color);
  }
  .mm .mm__nav-items-wrapper {
    transition-duration: 0s;
  }
  .mm .mm__nav-items {
    gap: var(--content-gap);
  }
  .mm .mm__nav-items > li {
    max-inline-size: max-content;
  }
  .mm .mm__nav-items > .brxe-dropdown > .brx-submenu-toggle button svg {
    transform: rotate(0);
    transition: transform 0.2s ease-in-out;
  }
  .mm .mm__nav-items > .brxe-dropdown > .brx-dropdown-content {
    transform: translateY(20px);
  }
  .mm .mm__nav-items > .brxe-dropdown.open > .brx-dropdown-content {
    transform: translateY(5px);
  }
  .mm .mm__nav-items > .brxe-dropdown.open > .brx-submenu-toggle button svg {
    transform: rotatex(180deg);
  }
  .mm .mm__nav-items > li:last-of-type a.mm__nav-link, .mm .mm__nav-items > li:last-of-type > .brx-submenu-toggle {
    padding: var(--btn-padding-s);
    background-color: var(--transparent);
    border: 1px solid var(--white);
    border-radius: var(--btn-radius);
    color: var(--btn-font-color-light);
    letter-spacing: 0;
    transition: all 0.2s ease;
    justify-content: center;
    font-weight: var(--btn-font-weight);
    font-size: var(--btn-font-size);
    min-width: 100px;
    margin-left: 0;
    width: 100%;
  }
  .mm .mm__nav-items > li:last-of-type a.mm__nav-link:hover, .mm .mm__nav-items > li:last-of-type > .brx-submenu-toggle:hover {
    background-color: var(--white);
    color: var(--btn-font-color-dark);
  }
  .mm .mm__nav-items > li:last-of-type .brx-submenu-toggle a {
    color: inherit;
  }
  .mm .mm__nav-items > li:not(:last-of-type) > a {
    color: var(--heading-color-light);
    font-size: var(--text-m);
    font-weight: 500;
    background-size: 0 1px, 100% 1px;
    background-position: 100% 100%, 0 100%;
  }
  .mm .mm__nav-items > li:not(:last-of-type) > a:hover {
    color: var(--white);
    background: linear-gradient(45deg, var(--primary-l-2), var(--primary-l-5)), linear-gradient(45deg, transparent, transparent);
    background-size: 100% 1px, 0 1px;
    background-position: 100% 100%, 0 100%;
    background-repeat: no-repeat;
    transition: background-size 300ms !important;
  }
  .mm .mm__nav-items > li:not(:last-of-type) > .brx-submenu-toggle {
    color: var(--heading-color-light);
    font-size: var(--text-m);
    font-weight: 500;
    background-size: 0 1px, 100% 1px;
    background-position: 100% 100%, 0 100%;
  }
  .mm .mm__nav-items > li:not(:last-of-type) > .brx-submenu-toggle a, .mm .mm__nav-items > li:not(:last-of-type) > .brx-submenu-toggle span, .mm .mm__nav-items > li:not(:last-of-type) > .brx-submenu-toggle svg {
    color: inherit;
  }
  .mm .mm__nav-items > li:not(:last-of-type).open > .brx-submenu-toggle, .mm .mm__nav-items > li:not(:last-of-type):hover > .brx-submenu-toggle {
    color: var(--white);
    background: linear-gradient(45deg, var(--primary-l-2), var(--primary-l-5)), linear-gradient(45deg, transparent, transparent);
    background-size: 100% 1px, 0 1px;
    background-position: 100% 100%, 0 100%;
    background-repeat: no-repeat;
    transition: background-size 300ms !important;
  }
}
@media (max-width: 991px) {
  .mm .mm__toggle-open {
    display: flex !important;
    --brxe-toggle-scale: 1;
    color: var(--primary);
    font-size: 2.5rem;
  }
  .mm .mm__toggle-open svg {
    width: 2.5rem;
    height: auto;
    color: inherit;
  }
  .mm .mm__mobile-nav {
    padding-block: var(--mm-pad-v);
    padding-inline: var(--mm-pad-h);
    border-block-end: none;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: space-between;
  }
  .mm .mm__mobile-nav .mm-close-dropdown-btn {
    opacity: 0;
    visibility: hidden;
    transform: translatex(100%);
    transition: opacity 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86), visibility 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86), transform 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86);
  }
  .mm .mm__mobile-nav[data-submenu-open="True"] .mm-close-dropdown-btn {
    visibility: visible;
    opacity: 1;
    transform: translatex(0);
  }
  .mm .mm__nav-items .brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content li > a {
    color: var(--heading-color-light);
    padding-block: var(--space-l);
    padding-inline: 0;
    justify-content: space-between;
    font-weight: 400;
    font-size: var(--h2);
    font-family: "Instrument Serif" !important;
    font-style: italic;
    width: 100%;
  }
  .mm .mm__nav-items .brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content .brxe-dropdown:not(.brx-has-megamenu) .brx-submenu-toggle {
    color: var(--heading-color-light);
    padding-block: var(--space-l);
    padding-inline: 0;
    justify-content: space-between;
    font-weight: 400;
    font-size: var(--h2);
    font-family: "Instrument Serif" !important;
    font-style: italic;
  }
  .mm .mm__nav-items .brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content .brxe-dropdown:not(.brx-has-megamenu) .brx-submenu-toggle svg {
    color: inherit;
    font-weight: inherit;
  }
  .mm .mm__nav-items .brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content .brxe-dropdown:not(.brx-has-megamenu) .brx-submenu-toggle > a {
    color: inherit;
    font-weight: inherit;
    text-decoration: inherit;
  }
  .mm .mm__nav-items .brxe-dropdown {
    position: static;
  }
  .mm .mm__nav-items .brxe-dropdown > .brx-dropdown-content {
    display: flex;
    position: fixed !important;
    inset-block: var(--mobile-top-nav-height) 0;
    transition-property: inset-inline-start, opacity, visibility;
    transition-duration: 0.3s;
    display: flex;
    padding-block: var(--mm-pad-v);
    padding-inline: var(--mm-pad-h);
    width: 100%;
    overflow-x: hidden;
    flex-direction: column;
    background-color: var(--base);
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    box-shadow: none;
    opacity: 1;
  }
  @layer bricks.reset {
    .mm .mm__nav-items .brxe-dropdown > .brx-dropdown-content {
      inset-inline-start: 100% !important;
    }
  }
  .mm .mm__nav-items .brxe-dropdown > .brx-dropdown-content > * {
    max-width: 100%;
  }
  .mm .mm__nav-items .brxe-dropdown > .brx-submenu-toggle {
    justify-content: space-between;
  }
  .mm .mm__nav-items .brxe-dropdown > .brx-submenu-toggle button svg {
    transition: none;
    transform: rotate(-90deg);
  }
  @layer bricks.reset {
    .mm .mm__nav-items .brxe-dropdown.open > .brx-dropdown-content {
      inset-inline-start: 0% !important;
    }
  }
  .mm .mm__nav-items .brxe-dropdown .brx-dropdown-content {
    -ms-overflow-style: none;
    /* IE and Edge scrollbar */
    scrollbar-width: none;
    /* Firefox scrollbar */
  }
  .mm .mm__nav-items .brxe-dropdown .brx-dropdown-content::-webkit-scrollbar {
    display: none;
  }
  .mm .mm__nav-items-wrapper {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 0% 12%, var(--primary-l-3), var(--primary) 10%, var(--base));
    z-index: 1001;
    transform: translateY(-100%);
    display: flex;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86), visibility 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86);
  }
  .mm .mm__nav-items-wrapper .mm__toggle-close {
    display: flex;
    font-size: 2rem;
    color: var(--primary);
  }
  .mm .mm__nav-items-wrapper .mm__toggle-close svg {
    width: 2rem;
    height: auto;
    color: inherit;
  }
  .mm .mm__nav-items-wrapper ul.mm__nav-items {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex: 1;
    justify-content: flex-start;
    background-color: var(--base);
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    -ms-overflow-style: none;
    /* IE and Edge scrollbar */
    scrollbar-width: none;
    /* Firefox scrollbar */
    align-items: stretch;
    bottom: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    inset-inline: 0;
    padding-block: var(--mm-pad-v);
    padding-inline: var(--mm-pad-h);
    gap: 0;
    transition: visibility 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86);
  }
  .mm .mm__nav-items-wrapper ul.mm__nav-items::-webkit-scrollbar {
    display: none;
  }
  @layer bricks.reset {
    .mm .mm__nav-items-wrapper ul.mm__nav-items {
      opacity: 1 !important;
    }
  }
  .mm .mm__nav-items-wrapper ul.mm__nav-items > li:last-of-type {
    padding-block: unset;
    padding-inline: unset;
  }
  .mm .mm__nav-items-wrapper ul.mm__nav-items > li:last-of-type .mm__nav-link, .mm .mm__nav-items-wrapper ul.mm__nav-items > li:last-of-type > .brx-submenu-toggle {
    padding: var(--btn-padding-s);
    background-color: var(--transparent);
    border: 1px solid var(--white);
    border-radius: var(--btn-radius);
    color: var(--btn-font-color-light);
    letter-spacing: 0;
    transition: all 0.2s ease;
    justify-content: center;
    font-weight: var(--btn-font-weight);
    font-size: var(--btn-font-size);
    min-width: 100px;
    margin-left: 0;
    width: 100%;
  }
  .mm .mm__nav-items-wrapper ul.mm__nav-items > li:last-of-type .mm__nav-link:hover, .mm .mm__nav-items-wrapper ul.mm__nav-items > li:last-of-type > .brx-submenu-toggle:hover {
    background-color: var(--white);
    color: var(--btn-font-color-dark);
  }
  .mm .mm__nav-items-wrapper ul.mm__nav-items > li:last-of-type .mm__nav-link > a, .mm .mm__nav-items-wrapper ul.mm__nav-items > li:last-of-type > .brx-submenu-toggle > a {
    color: inherit;
    font-weight: inherit;
  }
  .mm .mm__nav-items-wrapper ul.mm__nav-items > li:not(:last-of-type) {
    border-block-end: none;
  }
  .mm .mm__nav-items-wrapper ul.mm__nav-items > li:not(:last-of-type) > .mm__nav-link {
    color: var(--heading-color-light);
    padding-block: var(--space-l);
    padding-inline: 0;
    justify-content: space-between;
    font-weight: 400;
    font-size: var(--h2);
    font-family: "Instrument Serif" !important;
    font-style: italic;
    width: 100%;
  }
  .mm .mm__nav-items-wrapper ul.mm__nav-items > li:not(:last-of-type) > .brx-submenu-toggle {
    color: var(--heading-color-light);
    padding-block: var(--space-l);
    padding-inline: 0;
    justify-content: space-between;
    font-weight: 400;
    font-size: var(--h2);
    font-family: "Instrument Serif" !important;
    font-style: italic;
  }
  .mm .mm__nav-items-wrapper ul.mm__nav-items > li:not(:last-of-type) > .brx-submenu-toggle svg {
    color: inherit;
    font-weight: inherit;
  }
  .mm .mm__nav-items-wrapper ul.mm__nav-items > li:not(:last-of-type) > .brx-submenu-toggle > a {
    color: inherit;
    font-weight: inherit;
    text-decoration: inherit;
  }
  .mm .mm__nav-items-wrapper ul.mm__nav-items > li:last-of-type {
    margin-block-start: auto;
  }
  .mm .mm__nav-items-wrapper ul.mm__nav-items > li:last-of-type a.mm__nav-link, .mm .mm__nav-items-wrapper ul.mm__nav-items > li:last-of-type .brxe-dropdown.brx-has-megamenu, .mm .mm__nav-items-wrapper ul.mm__nav-items > li:last-of-type .brxe-dropdown:not(.brx-has-megamenu) {
    text-align: center;
  }
  .mm .mm__nav-items li.brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content {
    padding-block: var(--mm-pad-v);
    padding-inline: var(--mm-pad-h);
    gap: 0;
  }
  .mm .mm__nav-items li.brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content .menu-item, .mm .mm__nav-items li.brxe-dropdown:not(.brx-has-megamenu) .brx-dropdown-content .brxe-dropdown:not(.brx-has-megamenu) {
    border-block-end: none;
  }
  .mm .mm__mobile-logo {
    display: block;
    opacity: 1;
    transform: translatex(0);
    transition: opacity 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86), visibility 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86), transform 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86);
  }
  .mm .mm__mobile-logo img {
    height: 3.45rem;
    width: auto;
  }
  .mm .mm__mobile-nav[data-submenu-open="True"] .mm__mobile-logo {
    visibility: hidden;
    opacity: 0;
    transform: translatex(-100%);
    transition: opacity calc(0.3s / 1.5) cubic-bezier(0.79, 0.14, 0.15, 0.86), visibility 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86), transform 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86);
    transition: opacity 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86), visibility 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86), transform 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86);
  }
  :where(html[dir="RTL"]) .mm .mm__nav-items .brxe-dropdown > .brx-submenu-toggle button svg {
    transform: rotate(90deg);
  }
  :where(html[dir="RTL"]) .mm .mm__mobile-nav .mm-close-dropdown-btn {
    transform: translatex(-100%);
    flex-direction: row-reverse;
  }
  :where(html[dir="RTL"]) .mm .mm__mobile-nav[data-submenu-open="True"] .mm__mobile-logo {
    transform: translatex(100%);
  }
}
.mm.brx-open .mm__nav-items-wrapper {
  visibility: visible;
  transform: translateX(0);
}
@layer bricks.reset {
  .mm.brx-open .mm__nav-items {
    visibility: visible !important;
  }
}
@media (max-width: 991px) {
  body.bricks-is-frontend.admin-bar .mm__nav-items-wrapper {
    top: var(--wp-admin--admin-bar--height) !important;
  }
  body.bricks-is-frontend.admin-bar .mm__nav-items-wrapper .mm__nav-items {
    top: unset;
  }
}
