/**
 * Live Chat CSS Styles
 * Matches site theme with accent color #fa225b
 */

#live-chat-widget {
    margin-bottom: 20px;
}

#live-chat-login {
    padding: 10px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}

#live-chat-login input {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

#live-chat-login button {
    width: 100%;
    padding: 8px;
    background-color: #fa225b;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

#live-chat-login button:hover {
    background-color: #e01e4f;
}

#live-chat-container {
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    height: 300px;
    overflow: hidden;
}

#live-chat-header {
    padding: 8px 10px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    flex-shrink: 0;
}

#live-chat-username-display {
    color: #555;
    font-weight: bold;
}

#live-chat-logout {
    padding: 4px 8px;
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
}

#live-chat-logout:hover {
    opacity: 0.9;
    background-color: #c82333;
}

#live-chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
}

#live-chat-messages::-webkit-scrollbar {
    width: 8px;
}

#live-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#live-chat-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#live-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.live-chat-message {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.live-chat-message:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.live-chat-username {
    font-weight: bold;
    color: #fa225b;
}

.live-chat-text {
    color: #333;
}

.live-chat-text a {
    color: #fa225b;
    text-decoration: underline;
}

.live-chat-text a:hover {
    color: #e01e4f;
}

.live-chat-timestamp {
    font-size: 11px;
    color: #888;
    margin-left: 4px;
}

#live-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #eee;
    background-color: #fff;
    flex-shrink: 0;
}

#live-chat-message {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

#live-chat-message:focus {
    outline: none;
    border-color: #fa225b;
}

#live-chat-submit {
    padding: 8px 16px;
    background-color: #fa225b;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

#live-chat-submit:hover:not(:disabled) {
    background-color: #e01e4f;
}

#live-chat-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #live-chat-messages {
        height: 200px;
    }
    
    #live-chat-form {
        flex-direction: column;
    }
    
    #live-chat-submit {
        width: 100%;
    }
}
