/* @import url("mediaservice.css"); */

.chat-box {
    flex-direction: column;
    position: fixed;
    bottom: 5px;
    /* 距离底部的距离 */
    right: 0px;
    /* 距离右侧的距离 */
    width: 26.5rem;
    /* 聊天框宽度 */
    background-color: rgb(255, 255, 255);
    /* 背景色 */
    border-radius: 5px;
    /* 边框圆角 */
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); !* 阴影效果 *!*/
    overflow: hidden;
    /* 隐藏溢出内容 */
    z-index: 9999;
    /* 确保对话框在其他元素之上 */
    border: 2px solid #3978f6;
}

.chat-header {
    padding: 10px;
    background-color: #3978f6;
    /* 头部背景色 */
    color: white;
    /* 文字颜色 */
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header .close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header .close-btn img {
    width: 1rem;
    height: 1rem;
}

.chat-body {
    padding: 10px;
    /*max-height: 25rem; !* 聊天内容区域最大高度 *!*/
    height: 25rem;
    overflow-y: auto;
    /* 当内容超出时出现滚动条 */
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* 消息之间的间距 */
}

.chat-footer {
    padding: 10px;
    display: flex;
    gap: 10px;
    /* 输入框与按钮之间的间距 */
}

.chat-footer input[type="text"] {
    flex-grow: 1;
    /* 输入框自适应宽度 */
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.chat-footer button {
    padding: 5px 10px;
    background-color: #3978f6;
    /* 按钮背景色 */
    color: white;
    /* 按钮文字颜色 */
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

/* 消息框基础样式 */
.message-box {
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    /* 让气泡宽度自适应内容 */
    vertical-align: top;
    /* 保证顶部对齐 */
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
}

.chat-body img {
    width: 3rem;
    height: 3rem;
}

.sender {
    background-color: rgb(240, 240, 240);
    color: #333;
    margin-left: 20px;
    /* 与前一条消息间距 */
    margin-right: 0.4rem;
    line-height: 1.5rem;
}

.receiver {
    background-color: rgb(240, 240, 240);
    color: #333;
    margin-left: 0.4rem;
    margin-right: 20px;
    /* 与前一条消息间距 */
    line-height: 1.5rem;
}


.sender-name {
    text-align: right;
    color: #3498db;
    /* 发送者名称颜色 */
}

.receiver-name {
    text-align: left;
    color: #7f8c8d;
    /* 接收者名称颜色 */
}



.open-message {
    position: fixed;
    bottom: 5rem;
    /* 距离底部的距离 */
    right: 0px;
    /* 距离右侧的距离 */
    width: 2.5rem;
    /* height: 14rem; */
    background-color: #3978f6;
    /* 背景色 */
    border-radius: 10px;
    /* 边框圆角 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* 阴影效果 */
    z-index: 9999;
    /* 确保对话框在其他元素之上 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    color: white;
}

.tb i {
    font-size: 30px;

}

.zxkf span {
    writing-mode: vertical-rl;
    font-size: .8rem;
    line-height: 1rem;
    /* line-height: 1.4rem;
    display: block; */
    text-align: center;
}

.createPatientBtn {
    display: none;
}

.createShopBtn {
    display: none;
}