.monarh-bnav {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 99999;
    max-width: min(420px, calc(100vw - 24px));
    font-family: var(--fbnav-font, var(--body-font, Jost, sans-serif));
}

.monarh-bnav,
.monarh-bnav * {
    box-sizing: border-box;
}

.monarh-bnav__menu.bnav_main_menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 14px 6px;
    list-style: none;
    border: none;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.monarh-bnav__item {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.monarh-bnav__item a {
    display: block;
    color: var(--dark-text-color, #fff);
    text-decoration: none;
    outline-offset: 4px;
}

.monarh-bnav__trigger {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--dark-text-color, #fff);
    font: inherit;
    line-height: inherit;
    text-align: inherit;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    outline-offset: 4px;
    appearance: none;
    -webkit-appearance: none;
}

.monarh-bnav__item a:hover,
.monarh-bnav__item a:focus-visible,
.monarh-bnav__trigger:hover,
.monarh-bnav__trigger:focus-visible {
    color: var(--primary-color, #baa383);
}

.monarh-bnav .bnav_menu_items {
    padding: 0 12px;
}

.monarh-bnav .bnav_flex {
    position: relative;
    display: flex;
    min-width: 78px;
    min-height: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    overflow: hidden;
}

.monarh-bnav .icon_wrapper {
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
    color: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.monarh-bnav .icon_wrapper.active {
    position: absolute;
    top: 4px;
    opacity: 0;
    transform: translateY(12px);
}

.monarh-bnav__item a:hover .icon_wrapper.normal,
.monarh-bnav__item a:focus-visible .icon_wrapper.normal,
.monarh-bnav__trigger:hover .icon_wrapper.normal,
.monarh-bnav__trigger:focus-visible .icon_wrapper.normal {
    opacity: 0;
    transform: translateY(-12px);
}

.monarh-bnav__item a:hover .icon_wrapper.active,
.monarh-bnav__item a:focus-visible .icon_wrapper.active,
.monarh-bnav__trigger:hover .icon_wrapper.active,
.monarh-bnav__trigger:focus-visible .icon_wrapper.active {
    opacity: 1;
    transform: translateY(0);
}

.monarh-bnav .text_wrapper {
    width: 100%;
    overflow: hidden;
    color: currentColor;
    font-size: var(--fbnav-font-size, 14px);
    font-weight: var(--fbnav-font-weight, 400);
    letter-spacing: var(--fbnav-font-letter-spacing, 0.05em);
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: var(--fbnav-font-transform, uppercase);
    white-space: nowrap;
}

.monarh-bnav__trigger .bnav_menu_items,
.monarh-bnav__trigger .bnav_flex,
.monarh-bnav__trigger .text_wrapper,
.monarh-bnav__trigger .icon_wrapper {
    color: inherit;
}

@media (max-width: 480px) {
    .monarh-bnav {
        left: 12px;
        bottom: 12px;
        max-width: calc(100vw - 24px);
    }

    .monarh-bnav__menu.bnav_main_menu {
        padding: 12px 4px;
    }

    .monarh-bnav .bnav_menu_items {
        padding: 0 8px;
    }

    .monarh-bnav .bnav_flex {
        min-width: 72px;
        min-height: 50px;
    }

    .monarh-bnav .text_wrapper {
        font-size: 12px;
    }
}

#mona-chat-frame,
#mona-chat-close {
    box-sizing: border-box;
}

#mona-chat-frame {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10000;
    display: none;
    overflow: hidden;
    width: 400px;
    max-width: calc(100vw - 32px);
    height: 550px;
    max-height: 85vh;
    border: 1px solid rgba(197, 165, 114, 0.3);
    border-radius: 16px;
    background: #0a0a1a;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

#mona-chat-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

#mona-chat-close {
    position: fixed;
    right: 28px;
    bottom: 580px;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(197, 165, 114, 0.3);
    border-radius: 50%;
    background: #1a1a2e;
    color: #c5a572;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

#mona-chat-close:hover,
#mona-chat-close:focus-visible {
    background: #2a2a4e;
}

@media (max-width: 480px) {
    #mona-chat-frame {
        right: 8px;
        bottom: 8px;
        width: calc(100vw - 16px);
        height: calc(100vh - 80px);
        border-radius: 12px;
    }

    #mona-chat-close {
        top: 12px;
        right: 16px;
        bottom: auto;
    }
}
