/* content and wrapper
======================================================================================================================*/
.mobile-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: none;
    flex-direction: column;
    width: 100%;
}

html[data-scroll="0"] .mobile-header-wrapper {
    position: absolute;
}

body.mobile-menu-open {
    overflow: hidden;
}

@media screen and (max-width: 1023px) {
    .mobile-header-wrapper {
        display: flex;
    }
}

.mobile-header-container {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 24px;
    padding-bottom: 24px;
}

/* logo
======================================================================================================================*/
.mobile-logo-container {
    padding-right: 16px;
}

.mobile-logo-container img {
    height: 30px;
    width: auto;
    display: block;
}

/* actions
======================================================================================================================*/
.mobile-actions-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.mobile-action-button {
    border: 0;
    border-radius: 0;
    height: 48px;
    width: 48px;
    padding: 0;
    background-color: #4a6a98;

    color: white;
    font-size: 20px;
}

.mobile-action-button i {
    line-height: 48px;
}

.mobile-action-button:not(:first-child) {
    margin-left: 10px;
}

/* search
----------------------------------------------------------------------------------------------------------------------*/
.mobile-search-buttons {
    position: relative;
}

.mobile-search-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;

    padding: 0;

    border: 0;
    border-radius: 0;
    background-color: #76232f;
    cursor: pointer;

    opacity: 0;
    pointer-events: none;
    transition: all linear 0.2s;
    will-change: transform;

    text-align: center;
    font-size: 20px;
    line-height: 1;
    color: white;
}

.mobile-search-close.mobile-search-show {
    opacity: 1;
    pointer-events: auto;
}

/* menu
======================================================================================================================*/
.mobile-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    width: 100%;
    height: 100vh;

    transition: opacity 0.3s linear 0.2s;
    pointer-events: none;
    opacity: 0;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);

    transition: opacity linear 0.2s;
    opacity: 0;
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: calc(100% - 30px);
    z-index: 1;
    overflow-y: auto;

    transition: all 0.3s linear 0.2s;
    opacity: 0;
    transform: translateX(100%);

    background-color: #f4f4f4;
}

@media screen and (max-width: 1023px) {
    .mobile-menu-open .mobile-menu-wrapper {
        pointer-events: auto;
        opacity: 1;
    }

    .mobile-menu-open .mobile-menu-overlay {
        opacity: 1;
    }

    .mobile-menu-open .mobile-menu-container {
        opacity: 1;
        transform: translateX(0);
    }
}

/* menu header
----------------------------------------------------------------------------------------------------------------------*/
.mobile-menu-header-container {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 24px;
    padding-right: 24px;
    background-color: #f4f4f4;
}

.mobile-menu-close {
    padding: 0;
    border: 0;

    margin-top: 24px;
    margin-bottom: 24px;
    background-color: transparent;
    outline: none;
    cursor: pointer;
}

.mobile-menu-close-icon {
    display: inline-block;
    height: 48px;
    width: 48px;
    border: 2px solid #466790;
    background-color: #f4f4f4;

    color: #446598;

    font-size: 20px;
}

.mobile-menu-close-icon i {
    line-height: 48px;
}

.mobile-menu-close-text {
    display: inline-block;
    margin-left: 10px;

    color: #466790;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

.mobile-menu-logo-link {
    display: block;
    width: 40%;
}

.mobile-menu-logo {
    display: block;
    width: 100%;
}

/* menu buttons
----------------------------------------------------------------------------------------------------------------------*/
.mobile-header-buttons-wrapper {
    background: white;
}
.mobile-header-buttons-wrapper ul {
    width: 100%;
    padding-top: 24px;
    padding-bottom: 24px;
    padding-left: 24px;
    padding-right: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    list-style: none;
    margin: 0;
}

.mobile-header-buttons-wrapper li {
    text-align: center;
}

.mobile-header-buttons-wrapper a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 14px;
    font-weight: bold;

    border-radius: 100px;
    color: #76232f;
    background-color: white;
}

.mobile-header-buttons-wrapper a .link-icon {
    padding-right: 4px;
    font-size: 12px;
}

@media screen and (max-width: 320px) {
    .mobile-header-buttons-wrapper a .link-icon {
        display: none;
    }
}

.mobile-header-buttons-wrapper a.button-tertiary {
    background-color: #76232f;
    color: white;
}

/* menu main
----------------------------------------------------------------------------------------------------------------------*/
.mobile-main-header-wrapper {
    display: flex;
    width: 100%;
    flex-direction: column;
    background: white;
    padding-left: 24px;
    padding-right: 24px;
}

.mobile-main-header-navigation-list-item {
    position: relative;
}

.mobile-main-header-navigation-list-item:not(:last-child) {
    border-bottom: 1px solid #e4e4e4;
}

.mobile-main-header-navigation-link {
    display: inline-block;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 12px;
    padding-bottom: 12px;

    text-transform: uppercase;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    color: #193051;
}

.mobile-main-header-arrow {
    display: block;
    width: 48px;
    height: 48px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;

    transition: transform linear 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;

    padding: 0;

    color: #193051;
}

.subnavigation-open .mobile-main-header-arrow {
    transform: rotate(180deg);
    transform-origin: center center;
}

/* main subnavigation
----------------------------------------------------------------------------------------------------------------------*/
.mobile-main-header-subnavigation {
    display: none;
    background-color: #f3f4f4;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-left: -24px;
    margin-right: -24px;
}

.mobile-main-header-subnavigation li {
    padding-left: 64px;
    padding-right: 64px;
}

.mobile-main-header-subnavigation li:not(:last-child) {
    margin-bottom: 12px;
}

.mobile-main-header-subnavigation a {
    color: #193051;
    text-transform: uppercase;
}

/* menu masthead
----------------------------------------------------------------------------------------------------------------------*/
.mobile-masthead-wrapper {
    padding-top: 24px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 96px;
}

.mobile-masthead-wrapper ul {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.mobile-masthead-wrapper li {
    flex-shrink: 0;
}

.mobile-masthead-wrapper li:not(:last-child) {
    margin-right: 12px;
}

.mobile-masthead-wrapper a {
    color: #76232f;
    text-decoration: underline;
    font-weight: 600;
}

@media screen and (max-width: 320px) {
    .mobile-masthead-wrapper a {
        font-size: 14px;
    }

    .mobile-masthead-wrapper a .link-icon {
        display: none;
    }
}
