/* Menu */

.menu--desktop {
    display: block;
}

.menu--mobile {
    display: none;
}

.header-button {
    display: none;
}

@media (max-width: 768px) {
    .menu--desktop {
        display: none;
    }

    .menu--mobile {
        display: block;
    }

    .header-button {
        display: block;
    }
}

/* Menu items */

.menu__item {
    position: relative;
}

.menu__link {
    font-style: normal;
    text-decoration: none;
    position: relative;
    font-weight: 500;
}

.menu__link:hover,
.menu__link:focus,
.menu__link:active {
    text-decoration: none;
    font-weight: 400;
}

.menu__item--depth-2 > .menu__link:hover,
.menu__link:focus,
.menu__link:active {
    /* 	border-bottom: 2px solid #44bcd2; */
}

.menu__link--active-link,
.menu__link--active-branch {
    /*   font-weight: bold; */
}

@media (min-width: 768px) and (max-width: 1150px) {
    .menu__link {
        font-size: 0.833rem;
    }
}

@media (max-width: 768px) {
    .menu__item {
        display: block;
        width: 100%;
    }

    .menu__link {
        display: block;
        font-size: 1.083rem;
    }
}

/* Menu items - top level */

.menu__item--depth-1 {
    display: inline-block;
    padding: 0.7rem 0.875rem;
}

.menu__item--depth-1 > .menu__link--active-link:after,
.menu .menu__item--depth-2 > .menu__link--active-link:after,
.menu .menu__item--depth-3 > .menu__link--active-link:after,
.menu .menu__link--active-branch:after {
    bottom: -3px;
    content: '';
    height: 3px;
    left: 0;
    position: absolute;
    width: 100%;
}

@media (max-width: 768px) {
    .menu__item--depth-1 {
        border-top: 2px solid #ced4db;
        padding: 0;
    }

    .menu__item--depth-1 > .menu__link {
        padding: 18px 26px;
    }

    .menu__item--depth-1 > .menu__link--active-link:after {
        content: none;
    }
}

/* Menu items - submenus */

.menu__submenu {
    border-radius: 3px;
    display: none;
    left: 0;
    position: absolute;
    text-align: left;
    text-transform: none;
    top: 100%;
    width: 270px;
    z-index: 99;
}

.menu__item--open > .menu__submenu {
    display: block;
}

.menu__submenu--level-2 {
    transform: unset;
}

/* Keeps the first menu item's drop down menu aligned to the left of the top level menu item */

.menu__item--depth-1:first-child .menu__submenu--level-2 {
    transform: unset;
}

.menu__submenu .menu__item {
    border-bottom: 1px solid #3c3c51;
    padding: 0;
    width: 100%;
}

.menu__submenu .menu__item:hover {
    border-bottom: 2px solid #ed1556;
}

.menu__submenu .menu__item:active {
    border-bottom: 2px solid #ed1556;
}

.menu__submenu .menu__link {
    display: block;
    padding: 0.7rem 1.05rem;
    transition: background-color 0.3s;
    width: 100%;
}

.menu__submenu--level-3 {
    left: 100%;
    top: 0;
}

/* Flyouts for the last two top level menu items go left to keep page responsive */

.menu__item--depth-1:nth-last-child(-n + 2) .menu__submenu--level-3 {
    left: auto;
    right: 100%;
    top: 0;
}

/* Accounts for child toggle */

.menu__submenu .menu__item--has-submenu > .menu__link {
    padding-right: 3rem;
}

/* Figma-style desktop dropdown (regular menu only, not mega) */

@media (min-width: 769px) {
    .menu.menu--desktop .menu__submenu,
    .menu.menu--desktop .menu__submenu--level-3 {
        background-color: #ffffff;
        border: none;
        border-radius: 14px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        padding: 10px;
    }

    .menu.menu--desktop .menu__submenu .menu__item {
        border-bottom: none;
        padding: 10px 0;
    }

    .menu.menu--desktop .menu__submenu .menu__item:hover,
    .menu.menu--desktop .menu__submenu .menu__item:active {
        border-bottom: none;
    }

    .menu.menu--desktop .menu__submenu .menu__link {
        color: #1a1a1a;
        font-family: Poppins;
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 18px;
        padding: 12px 12px;
        border-radius: 6px;
    }

    .menu.menu--desktop .menu__submenu .menu__item .menu__link:hover,
    .menu.menu--desktop .menu__submenu .menu__item .menu__link:active {
        background-color: #e7f0f6;
    }

    .menu.menu--desktop .menu__submenu .menu__item--has-submenu .menu__child-toggle-icon {
        display: block !important;
        border: none;
        width: 8px;
        height: 14px;
        min-width: 8px;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='6' height='11' viewBox='0 0 6 11' fill='none'%3e%3cpath d='M6 5.49994L5.54274 4.97171L1.19258 -5.21292e-08L-4.34645e-07 1.05649L3.88667 5.5L-4.61805e-08 9.94351L1.19258 11L5.54274 6.02829L6 5.49994Z' fill='%23ED1556'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .menu.menu--desktop .menu__submenu--level-3 .menu__item,
    .menu.menu--desktop .menu__submenu--level-3 .menu__item:hover,
    .menu.menu--desktop .menu__submenu--level-3 .menu__item:active,
    .menu.menu--desktop .menu__submenu--level-3 .menu__link,
    .menu.menu--desktop .menu__submenu--level-3 .menu__item:hover .menu__link {
        border-bottom: none;
        color: #1a1a1a;
        font-weight: 600;
        padding: 7px 12px;
        background-color: transparent;
    }

    .menu.menu--desktop .menu__submenu--level-3 .menu__item:hover .menu__link,
    .menu.menu--desktop .menu__submenu--level-3 .menu__item:active .menu__link {
        background-color: #e7f0f6;
    }
}

/* Creates the triangle at the top of the submenu drop down */

@media (min-width: 769px) {
    .menu__child-toggle-icon {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .menu__submenu {
        border: none;
        border-radius: 0;
        box-shadow: none;
        position: static;
        transform: unset;
        width: 100%;
    }

    .menu__submenu .menu__item {
        background-color: #f6fbff;
        border-bottom: none;
        border-top: 1px solid #d6dee5;
        padding: 0;
    }

    .menu__submenu .menu__link {
        display: block;
        padding: 0.7rem 2rem;
        transition: none;
        width: 100%;
    }

    .menu__submenu .menu__item .menu__link:hover,
    .menu__submenu .menu__item .menu__link:focus {
        background-color: inherit;
        transition: none;
    }

    .menu__item--has-submenu > .menu__link {
        width: 70%;
    }

    .menu__submenu--level-3 .menu__item .menu__link {
        padding: 0.7rem 3rem;
    }
}

/* Menu icons */

@media (min-width: 769px) {
    .menu__submenu .menu__child-toggle {
        margin-left: auto;
        padding: 0 1.05rem;
    }

    .menu__child-toggle {
        position: absolute;
        right: 5px;
        top: 25px;
        z-index: 2;
    }

    .menu__item--depth-1 > .menu__child-toggle {
        position: static;
        right: 0;
        top: 0;
        vertical-align: middle;
    }

    .menu__child-toggle-icon {
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top-style: solid;
        border-top-width: 7px;
        display: block;
        height: 0;
        margin-left: 1px;
        width: 0;
    }

    .cta-li {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu__child-toggle {
        background-position: center right 30px;
        background-repeat: no-repeat;
        background-size: 20px;
        border: none;
        cursor: pointer;
        height: 79px;
        padding: 15px 0;
        position: absolute;
        right: 0;
        top: 0;
        width: 30%;
    }

    .menu__child-toggle-icon {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3e%3cpath d='M13.811 1.70643L7.02014 8L0.189822 1.66829C0.0686583 1.55597 -2.88354e-07 1.40322 -2.95293e-07 1.24448C-3.02232e-07 1.08574 0.0686583 0.932986 0.189822 0.820674L0.886109 0.175216C1.00727 0.0628967 1.17205 -1.00491e-06 1.34329 -1.01239e-06C1.51453 -1.01988e-06 1.67932 0.0628967 1.80047 0.175216L7.02014 5.01385L12.2003 0.213361C12.4532 -0.0202709 12.8619 -0.0202709 13.1139 0.213361L13.811 0.859567C13.9321 0.971886 14 1.12389 14 1.28337C14 1.44212 13.9321 1.59412 13.811 1.70643Z' fill='%23ED1556'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        display: block;
        height: 20px;
        margin-left: auto;
        margin-right: 1.05rem;
        transition: transform 0.4s;
        width: 20px;
        margin-top: 12px;
    }

    .menu__item--open > .menu__child-toggle .menu__child-toggle-icon {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3e%3cpath d='M0.189034 6.29356L6.97986 -3.0686e-07L13.8102 6.33171C13.9313 6.44403 14 6.59678 14 6.75552C14 6.91426 13.9313 7.06701 13.8102 7.17933L13.1139 7.82478C12.9927 7.9371 12.8279 8 12.6567 8C12.4855 8 12.3207 7.9371 12.1995 7.82478L6.97986 2.98615L1.79968 7.78664C1.54685 8.02027 1.13814 8.02027 0.886107 7.78664L0.189013 7.14043C0.0678498 7.02811 6.5311e-07 6.87611 6.60081e-07 6.71662C6.6702e-07 6.55788 0.0678699 6.40588 0.189034 6.29356Z' fill='%23ED1556'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        display: block;
        height: 20px;
        margin-left: auto;
        margin-right: 1.05rem;
        transition: transform 0.4s;
        width: 20px;
    }

    .mobile-search {
        display: flex;
        flex-direction: row;
        gap: 15px;
        justify-content: flex-end;
        align-items: center;
        padding: 10px 20px;
    }
    .mobile-search-input {
        flex-grow: 1;
    }

    .mobile-btn-wrapper {
        position: relative;
        padding: 20px 30px;
    }
    .mobile-menu-btn {
        width: 100%;
    }

    .menu__item .menu__item--depth-2 > a.menu__link {
        background-color: #f6fbff;
        font-size: 15px !important;
        font-style: normal !important;
        font-weight: 400 !important;
        line-height: normal;
        padding: 17px 26px;
        border-top: 1px solid #bcc9d4;
    }

    .menu__item .menu__item--depth-2 .menu__child-toggle {
        border-top: 1px solid #d6dee5;
    }

    .menu__item .menu__item--depth-3 > a.menu__link {
        color: #fff;
        font-size: 15px !important;
        font-style: normal !important;
        font-weight: 700 !important;
        line-height: normal;
        padding: 17px 26px;
        border-bottom: 1px solid #d6dee5;
    }

    .mega-menu-primary {
        display: none;
    }
}

.mobile-search-form-submit {
    background: none;
    border: none;
    padding: 0;
}

.mobile-search-form-submit:focus {
    border: none;
}

/* Mega Menu Styles */
.mega-menu-primary ul {
    margin-bottom: 0;
    padding-left: 0;
}

.mega-menu-primary li {
    list-style: none;
}

.cta-li {
    padding: 5px 0 0 20px;
}

.mega-menu-wrapper {
    background: transparent;
    width: 100%;
}

.mega-menu-wrapper h5 {
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 700 !important;
    line-height: normal;
    margin-bottom: 14px;
    color: #fff;
}

.mega-col {
    padding: 44px 0;
    display: flex;
    flex-direction: column;
    border-left: 5px solid #f5f8fa;
    padding: 30px 20px;
    flex: 1;
}

.mega-col:first-child {
    border-left: none;
}

.mega-col ul {
    display: flex;
    flex-direction: column;
}

.mega-row {
    justify-content: space-between;
}

.mega-link {
    list-style: none;
    padding: 10px;
}

.mega-menu-primary li:last-child {
    padding-right: 0;
}

{# .mega-link a:hover {
    /* 	color: */
} #}

.mega-col .hs-menu-depth-1 .hs-menu-item li {
    margin-bottom: 14px !important;
}

#hs_menu_wrapper_navigation_ > ul > li {
    margin-bottom: 14px;
}

.mega-col .hs-menu-item {
    padding: 7px;
    border-radius: 6px;
}

.mega-col .hs-menu-item a {
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 400 !important;
    line-height: normal;
}

.mega-label {
    color: #3c3c51;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
    line-height: 18px; /* 128.571% */
    padding: 0 7px;
}

.mega-col .hs-menu-item a:hover {
    text-decoration-line: none;
    border-bottom: none;
}

.mega-col .hs-menu-item:hover {
    background-color: #e7f0f6;
}

.mega-col .hs-menu-item .hs-menu-depth-1 {
    margin-bottom: 14px;
}

.mega-menu-wrapper {
    display: none;
}

.mega-menu-wrapper.active {
    display: block;
    position: absolute;
    width: 100%;
    height: auto;
    left: 0;
    top: 103px;
    padding-top: 25px;
    z-index: 10;
    border-radius: 20px;
}
