body {
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
    overflow: auto; 
    font-size: 12px;
}

#unique-chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #fd4085;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    z-index: 999999999997;
    
}

#unique-notification {
    display: none; /* 默认隐藏 */
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgb(255, 0, 0);
    color: white;
    border-radius: 50%;
    width: 25px; 
    height: 25px;
    align-items: center; /* 用于垂直居中 */
    justify-content: center; /* 用于水平居中 */
    font-size: 12px;
}

#unique-chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    display: none; /* 默认隐藏 */
    z-index: 99999999999;
    
}

#unique-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fd4085;
    color: white;
    padding: 10px;
}

.unique-user-info {
    display: flex;
    align-items: center;
}

.unique-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.unique-user-details {
    display: flex;
    flex-direction: column;
}

.unique-user-name {
    font-size: 16px;
    font-weight: bold;
}

.unique-user-subtitle {
    font-size: 12px;
    color: #f0f0f0;
}

#unique-chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #fd4085 #f0f0f0;
}

#unique-chat-messages::-webkit-scrollbar {
    width: 4px;
}

#unique-chat-messages::-webkit-scrollbar-thumb {
    background: #d7ddee;
    border-radius: 3px;
}

#unique-chat-messages::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}

#unique-chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#unique-chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    background-color: #f2f7fd;
}

#unique-chat-input input:focus {
    outline: none;
}

#unique-chat-input button {
    background-color: #fd4085;
    border: none;
    color: white;
    padding: 10px;
    margin-left: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.unique-mini-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 10px;
    font-size: 16px;
    border-bottom: 2px solid #f3f7ff;
}

#unique-mini-chat-box {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 250px;
    background-color: white;
    border-radius: 10px;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999996;
    
}

#unique-mini-chat-messages {
    padding: 10px;
    overflow-y: auto;
    flex: 1;
    font-size: 16px;
    border-bottom: 2px solid #f3f7ff;
}

#unique-mini-chat-input {
    display: flex;
    padding: 10px;
    cursor: pointer;
    color: #808695;
    font-size: 16px;
}

#unique-mini-chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f2f7fd;
    padding-bottom: 1px;
    padding-top: 1px;
    padding-left: 6px;
}

#unique-mini-chat-input input:focus {
    outline: none;
}

#unique-mini-chat-input button {
    background-color: #fd4085;
    border: none;
    color: white;
    padding: 10px;
    margin-left: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

/* Styles for messages */
.unique-message-container {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
}

.unique-message {
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 70%;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    word-wrap: break-word;
}

.unique-close-btn {
    font-size: 24px;
}
#unique-close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    color: rgb(0, 0, 0);
    border: none;
    background: none;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    font-size: 20px;
}
.unique-bot-message {
    background-color: #f2f7fd;
    margin-left: 6px;
    color: rgb(48, 47, 47);
}

.unique-user-message {
    background-color: #fd4085;
    color: white;
    margin-left: auto;
    margin-right: 0;
}

.unique-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0px;
}

.unique-loading-text {
    display: inline-block;
}

.unique-loading-text span {
    display: inline-block;
    font-size: 24px; /* 调整点的大小，使其更明显 */
    margin: 0 2px;  /* 调整点之间的间距 */
    animation: unique-blink 1.4s infinite both;
}

.unique-loading-text span:nth-child(1) {
    animation-delay: 0s;
}

.unique-loading-text span:nth-child(2) {
    animation-delay: 0.2s;
}

.unique-loading-text span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes unique-blink {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}
