.online-chat-section {
    position: relative;
}

.open-chat-btn {
    position: fixed;
    bottom: 12%;
    left: 20px;
    background: #007fff;
    color: #fff;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
    z-index: 1000;
}

.btn-openchat {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-openchat img {
    position: absolute;
    width: 35px;
    height: 35px;
    bottom: 11px;
}

#chat-box {
    position: fixed;
    bottom: 22%;
    left: 20px;
    width: 320px;
    height: 600px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 3px 7px -3px #2d2d2d;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    border-top: 5px solid #007fff;
}

.chat-header {
    background: #fff;
    color: #007fff;
    padding: 0 15px;
    font-size: 14px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e6e6e6;
}

.chat-content {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 13px;
}

.chat-input {
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: row-reverse;
    padding: 10px;
}

.chat-input input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 13px;
}

.chat-input button {
    background: #06d6a0;
    border: none;
    color: white;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 5px;
}

#chat-close {
    cursor: pointer;
}

.select-who-connect,
.explain {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: right;
    direction: rtl;
    width: 100%;
    margin: 0 auto;
}

.explain {
    align-items: normal;
}

.select-who-connect .patient-problem,
.select-who-connect .doctor-problem {
    width: 200px;
    padding: 15px;
    text-align: center;
    color: #fff;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 400;
    margin: 1em 0 0;
    cursor: pointer;
}

.select-who-connect .patient-problem {
    background: #06d6a0;
}

.select-who-connect .doctor-problem {
    background: #ffb703;
}

.select-who-connect p {
    direction: rtl;
    font-size: 15px;
    font-weight: 400;
    padding: 0 10px;
    text-align: right;
}

.explain input,
.explain textarea {
    border: 1px solid #6495ed;
    height: 43px;
    border-radius: 5px;
    padding: 0 10px;
}

.explain textarea {
    height: 150px;
    resize: none;
}

.explain label {
    color: #000080;
    ;
}

.chat-box-send.ui.button {
    background-color: #4187ff;
    color: #fff;
    border-radius: 5px;
}

.bottom-nav.visible-xs a>img {
    width: 25px;
    height: 25px;
    margin: 0 auto;
}
.user-info.error,
.user-info.success{
    padding: 10px;
    text-align: right;
    border-radius: 5px;
    margin: 5px 0;
}
.user-info.error{
    color: #ef476f;
    background: #ef476f24;
    padding: 10px;
    text-align: right;
    border: 1px solid #ef476f;
    border-radius: 5px;
    margin: 5px 0;
}
.user-info.success{
    border: 1px solid #09cc9a;
    background: #09cc9a33;
}

@media (max-width: 375px) {
    .open-chat-btn {
        bottom: 3%;
    }

    #chat-box {
        bottom: 12%;
        height: 550px;
    }

    .select-who-connect .patient-problem,
    .select-who-connect .doctor-problem {
        width: 180px;
        padding: 10px;
    }

    .explain label {
        font-size: 12px;
    }

    .explain input{
        height: 38px;
        font-size: 12px;
    }

    #user_complain {
        height: 98px;
    }
}

@media(max-width: 320px) {
    #chat-box {
        width: 280px;
    }
}