.site-menu-open .bana-sor { visibility:hidden; pointer-events:none; }

.bana-sor {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 100;
    transform: translateY(-50%);
    font-family: inherit;
}

.bana-sor__tab {
    min-width: 48px;
    min-height: 108px;
    padding: 14px 10px;
    border: 0;
    border-radius: 26px 0 0 26px;
    background: var(--orange);
    color: #09233e;
    font: inherit;
    font-weight: 800;
    writing-mode: vertical-rl;
    cursor: pointer;
}

.bana-sor__panel {
    position: absolute;
    top: 50%;
    right: 62px;
    width: min(360px, calc(100vw - 82px));
    overflow: hidden;
    transform: translateY(-50%);
    border: 1px solid rgba(9, 35, 62, .12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(9, 35, 62, .24);
}

.bana-sor__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    background: #09233e;
    color: #fff;
}

.bana-sor__close {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

.bana-sor__messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 190px;
    max-height: 350px;
    padding: 14px;
    overflow-y: auto;
    background: #f5f7fa;
}

.bana-sor__message {
    max-width: 88%;
    margin: 0;
    padding: 9px 11px;
    border-radius: 13px;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.bana-sor__message--assistant {
    align-self: flex-start;
    background: #fff;
    color: #09233e;
}

.bana-sor__message--user {
    align-self: flex-end;
    background: #09233e;
    color: #fff;
}

.bana-sor__form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px;
    background: #fff;
}

.bana-sor__form input {
    min-width: 0;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
}

.bana-sor__form button {
    min-height: 44px;
    padding: 9px 13px;
    border: 0;
    border-radius: 10px;
    background: var(--orange);
    color: #09233e;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.bana-sor__form button:disabled {
    opacity: .55;
}

@media (max-width: 640px) {
    .bana-sor {
        top: auto;
        bottom: 76px;
        transform: none;
    }

    .bana-sor__panel {
        position: fixed;
        top: auto;
        right: 12px;
        bottom: 64px;
        width: calc(100vw - 24px);
        max-height: 72vh;
        transform: none;
    }
}