#ten-sure-chat-btn, #ten-sure-chat-window, #ten-sure-chat-messages, #ten-sure-chat-input, #ten-sure-send-btn {
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    outline: none;
}
#ten-sure-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
    z-index: 99999;
    transition: transform 0.2s;
    border: none;
}
#ten-sure-chat-btn + .floating-qr,
#ten-sure-chat-btn ~ .floating-qr {
    bottom: 100px !important;
}
#ten-sure-chat-btn:hover {
    transform: scale(1.1);
}
#ten-sure-chat-window {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid #e5e5e5;
}
.ten-sure-header {
    background-color: #0066cc;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
    flex-shrink: 0;
}
.ten-sure-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer !important;
    line-height: 1;
    opacity: 0.8;
    padding: 0;
    margin: 0;
    pointer-events: auto !important;
}
.ten-sure-close:hover {
    opacity: 1;
}
#ten-sure-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ten-sure-msg-user {
    background-color: #0066cc;
    color: white;
    padding: 10px 14px;
    border-radius: 12px 12px 0 12px;
    max-width: 80%;
    margin-left: auto;
    word-break: break-word;
    align-self: flex-end;
}
.ten-sure-msg-bot {
    background-color: white;
    color: #333;
    padding: 10px 14px;
    border-radius: 12px 12px 12px 0;
    max-width: 80%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    word-break: break-word;
    align-self: flex-start;
}
.ten-sure-msg-admin {
    background-color: #009900;
    color: white;
    padding: 10px 14px;
    border-radius: 12px 12px 12px 0;
    max-width: 80%;
    word-break: break-word;
    align-self: flex-start;
}
.msg-sender {
    font-weight: bold;
    font-size: 12px;
    opacity: 0.7;
    margin-right: 6px;
}
.ten-sure-input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid #eee;
    gap: 8px;
    background: #fff;
    flex-shrink: 0;
}
#ten-sure-chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    height: 36px;
}
#ten-sure-chat-input:focus {
    border-color: #0066cc;
}
#ten-sure-send-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
#ten-sure-send-btn:hover {
    background-color: #0052a3;
}
#ten-sure-chat-auth {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}
#ten-sure-chat-auth input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
#ten-sure-chat-auth button {
    width: 100%;
    background: #0066cc;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}
#ten-sure-chat-auth button:hover {
    background: #0052a3;
}
.ten-sure-float-phone {
    position: fixed;
    top: 80px;
    right: 25px;
    z-index: 999999;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.ten-sure-float-phone:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: #0066cc;
}
.ten-sure-float-phone .phone-icon {
    font-size: 18px;
}
@media (max-width: 768px) {
    .ten-sure-float-phone {
        display: none !important;
    }
    #ten-sure-chat-window {
        width: calc(100% - 30px);
        right: 15px;
        height: 450px;
    }
}