.wpsc-error-msg {
    background: #ffebe8;
    border: 1px solid #c00;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #c00;
    font-weight: bold;
}

.wpsc-chat-container {
    max-width: 600px;
    margin: 20px auto;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    font-family: Tahoma, Arial, sans-serif;
}

.wpsc-chat-header {
    background: #007cba;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpsc-chat-header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.wpsc-online-status {
    font-size: 12px;
    background: #46b450;
    padding: 2px 8px;
    border-radius: 12px;
}

.wpsc-chat-box {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #eceff1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wpsc-message-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 85%;
}

.wpsc-others {
    align-self: flex-start;
}

.wpsc-mine {
    align-self: flex-end;
}

.wpsc-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.wpsc-message-content {
    display: flex;
    flex-direction: column;
}

.wpsc-mine .wpsc-message-content {
    align-items: flex-end;
}

.wpsc-username {
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
    margin-right: 5px;
}

.wpsc-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.wpsc-others .wpsc-bubble {
    background: #fff;
    color: #333;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wpsc-mine .wpsc-bubble {
    background: #007cba;
    color: #fff;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wpsc-time {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
    margin-right: 5px;
}

.wpsc-chat-form {
    display: flex;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #ddd;
    gap: 10px;
}

.wpsc-chat-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-family: inherit;
}

.wpsc-chat-form input:focus {
    border-color: #007cba;
}

.wpsc-chat-form button {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.wpsc-chat-form button:hover {
    background: #006ba1;
}
