.chat-main {
    max-width: 1120px !important;
}

.chat-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.chat-connection {
    padding: 8px 11px;

    border-radius: 20px;

    background: #eef1f3;

    color: #78828c;

    font-size: 9px;
    font-weight: 800;
}

.chat-connection.online {
    background: #edf5f0;
    color: #527462;
}

.forum-chat-card {
    margin-top: 24px;

    overflow: hidden;

    border: 1px solid #e1e5e9;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 12px 40px
        rgba(32,43,54,.04);
}

.chat-info-bar {
    min-height: 61px;

    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #edf0f2;
}

.chat-info-bar strong,
.chat-info-bar span {
    display: block;
}

.chat-info-bar strong {
    font-size: 10px;
    letter-spacing: .08em;
}

.chat-info-bar span {
    margin-top: 3px;

    color: #929ba4;
    font-size: 8px;
}

.forum-chat-messages {
    height: min(62vh, 650px);
    min-height: 430px;

    overflow-y: auto;

    padding: 21px 24px;

    background: #f7f9fa;

    scroll-behavior: smooth;
}

.chat-loading {
    padding: 50px 0;

    color: #929ba4;

    text-align: center;

    font-size: 10px;
}

.chat-message {
    max-width: 76%;

    margin-bottom: 15px;
}

.chat-message.mine {
    margin-left: auto;
}

.chat-message-head {
    margin-bottom: 5px;

    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-message.mine .chat-message-head {
    justify-content: flex-end;
}

.chat-message-name {
    color: #35414d;

    font-size: 10px;
    font-weight: 800;
}

.chat-source {
    padding: 3px 6px;

    border-radius: 6px;

    font-size: 7px;
    font-weight: 900;
    letter-spacing: .06em;
}

.chat-source.game {
    background: #e9edf1;
    color: #687581;
}

.chat-source.web {
    background: #263443;
    color: #ffffff;
}

.chat-bubble {
    display: inline-block;

    padding: 10px 13px;

    border: 1px solid #e0e5e9;
    border-radius: 5px 15px 15px 15px;

    background: #ffffff;

    color: #34404c;

    font-size: 11px;
    line-height: 1.6;

    word-break: break-word;
}

.chat-message.mine {
    text-align: right;
}

.chat-message.mine .chat-bubble {
    border-color: #263443;

    border-radius:
        15px
        5px
        15px
        15px;

    background: #263443;
    color: #ffffff;

    text-align: left;
}

.chat-message-time {
    margin-top: 5px;

    color: #9ca4ac;

    font-size: 7px;
}

.chat-message.mine
.chat-message-time {
    text-align: right;
}

.chat-delivery-failed {
    color: #a35d5d;
}

.chat-compose {
    padding: 14px;

    border-top: 1px solid #e9edf0;

    background: #ffffff;
}

.chat-composer {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.chat-composer textarea {
    min-height: 44px;
    max-height: 120px;

    flex: 1;

    resize: none;

    padding: 12px 14px;

    border: 1px solid #dfe4e8;
    border-radius: 13px;

    outline: none;

    color: #303c48;
    background: #f8f9fa;

    font: inherit;
    font-size: 11px;
    line-height: 1.5;
}

.chat-composer textarea:focus {
    border-color: #bfc8d1;
    background: #ffffff;
}

.chat-compose-side {
    display: flex;
    align-items: center;
    gap: 9px;
}

.chat-compose-side span {
    color: #999fa7;
    font-size: 8px;
}

.chat-compose-side button {
    height: 42px;

    padding: 0 18px;

    border: 0;
    border-radius: 12px;

    background: #263443;
    color: #ffffff;

    font-size: 10px;
    font-weight: 800;
}

.chat-compose-side button:disabled {
    opacity: .45;
}

.chat-login-notice {
    padding: 12px;

    border-radius: 11px;

    background: #f4f6f7;

    color: #747f89;

    text-align: center;

    font-size: 9px;
}

.chat-login-notice a {
    margin-left: 5px;

    color: #263443;
    font-weight: 800;
}

.chat-error {
    margin-top: 8px;

    color: #a85c5c;

    font-size: 9px;
}

@media (max-width: 650px) {

    .chat-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .forum-chat-card {
        margin-left: -3px;
        margin-right: -3px;
    }

    .forum-chat-messages {
        height: 62vh;
        min-height: 390px;

        padding: 16px 12px;
    }

    .chat-message {
        max-width: 88%;
    }

    .chat-info-bar {
        padding: 0 14px;
    }

    .chat-info-bar > div:last-child {
        display: none;
    }

    .chat-composer {
        align-items: stretch;
    }

    .chat-compose-side {
        flex-direction: column;
        justify-content: flex-end;
    }

    .chat-compose-side button {
        height: 44px;
        padding: 0 15px;
    }
}


/* ==========================================================
   FORUMHUB VISIBILITY UTILITY
   ========================================================== */

.hidden {
    display: none !important;
}
