/* ===============================
   Chat App Messaging Plugin Styles
   =============================== */

/* General Reset */
.um-msg * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

/* Container */
.um-msg-container {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    background-color: #f7f9fc;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Headings */
.um-msg-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

/* Input Fields */
.um-msg-container input[type="text"],
.um-msg-container input[type="email"],
.um-msg-container input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Buttons */
.um-msg-container button {
    width: 100%;
    padding: 12px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.um-msg-container button:hover {
    background-color: #005f8d;
}

/* Links */
.um-msg-container .um-msg-link {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 13px;
    color: #0073aa;
    text-decoration: none;
}

.um-msg-container .um-msg-link:hover {
    text-decoration: underline;
}

/* Messages */
.um-msg-container .um-msg-error {
    color: #d32f2f;
    margin-bottom: 15px;
    font-size: 14px;
}

.um-msg-container .um-msg-success {
    color: #388e3c;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .um-msg-container {
        padding: 15px;
        margin: 20px;
    }
}

.chat-message {
    margin: 5px 0;
    display: flex;
}

.message-in {
    justify-content: flex-start; /* left */
}

.message-out {
    justify-content: flex-end; /* right */
}

.bubble {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 12px;
    background-color: #e5e5ea;
}

.message-out .bubble {
    background-color: #0b93f6;
    color: white;
}

.new-message-alert {
    display: none; /* hidden by default */
    margin: 10px auto; /* center horizontally below chatbox */
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    width: max-content; /* button width adjusts to content */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease;
}

.new-message-alert:hover {
    background-color: #005d88;
}

.chatbox {
    height: 400px; /* Adjust as needed */
    width: 100%;   /* Or set a fixed width */
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    background-color: #fff;
    overflow-y: auto; /* This makes it scrollable */
    box-sizing: border-box;
}

.fancybox-overlay {
  	z-index: 9999;
}

