.chat-window * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.chat-window body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    color: #000;
    background: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.chat-window h3 {
    margin-bottom: 8px;
}

.chat-window .chat-container {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 10px;
}

.chat-window .message {
    position: relative;
}

.chat-window .message:hover {
    background-color: #f9f9f9;
}

.chat-window .message:hover .delete-btn {
    opacity: 1;
}

.chat-window .message-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.chat-window .time {
    font-size: 13px;
    color: #666;
    font-weight: 400;
    margin-right: 8px;
}

.chat-window .sender {
    font-weight: 600;
    margin-right: 8px;
    color: #000;
}

.chat-window .text {
    font-weight: 400;
    color: #333;
    flex: 1;
}

.chat-window .delete-btn {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 50px;
    height: 20px;
    color: #fe0000;
    opacity: 0;
    justify-content: center;
}

.chat-window .delete-btn:hover {
    background: #ccc;
    color: #333;
}

.chat-window .input-area {
    margin-top: 3px;
}

.chat-window .input-field {
    flex: 1;
    min-width: 200px;
    width: 100%;
    padding: 6px 10px;
    margin: 3px 0px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.chat-window .input-field:focus {
    outline: none;
    border-color: #666;
}

.chat-window .send-btn {
    padding: 6px 10px;
    margin: 3px 0px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.chat-window .send-btn:hover {
    background: #333;
}

.chat-window footer {
    padding-top: 10px;
    font-size: 13px;
    color: #888;
}

.chat-window @media (max-width: 600px) {
        body {
            padding: 15px;
        }
        
        .message-line {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .time {
            margin-bottom: 2px;
        }
        
        .send-btn {
            width: 100%;
            float: none;
        }
    }
    
.chat-window @media (max-width: 400px) {
        body {
            padding: 10px;
        }
        
        .input-field {
            padding: 6px 10px;
        }
        
        textarea.input-field {
            min-height: 50px;
        }
      }
