:root {
    --chat-primary-color: #E0E0E1;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999999;
}

.popup-chatroom-user-phone {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.chatroom-container {
    z-index: 1000;
    background: white;
    width: 300px;
    border: 1px solid var(--chat-primary-color);
}

#chatroom-messages {
    height: 500px;
    overflow: auto;
    /* hoặc scroll */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE, Edge cũ */
    padding: 10px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;

}

.user-active {
    background: var(--chat-primary-color);
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.user-active h2 {
    color: white;
}

.user-active-content p {
    margin-bottom: 0;
}

.user-active .user-active-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

#chatroom-user-input button {
    background: #AC0B0B;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-transform: capitalize;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    line-height: 24px;
    margin-top: 15px;
}

#chatroom-user-input label {
    display: block;
    margin: 10px 0;
    font-weight: bold;
    font-size: 18px;
}

#chatroom-user-input p {
    margin-bottom: 0;
    color: red;
    font-style: italic;
    font-size: 90%;
}

#chatroom-user-input .popup-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    font-size: 24px;
    cursor: pointer;
    color: black;
}


.chat-message {
    margin-bottom: 10px;
    color: black;
}

.chat-message:nth-child(even) .chat-message-head span.chat-message-head-name {
    color: #8f0ae6;
    font-weight: bold;
}

.chat-message:nth-child(odd) .chat-message-head span.chat-message-head-name {
    color: #2563eb;
    font-weight: bold;
}

.chat-message p {
    margin-bottom: 0;
    font-size: 90%;
}

.chat-message-head-time {
    font-size: 85%;
    color: #ff9900;
}

.form-submit-user-name {
    background: var(--chat-primary-color);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.form-input-submit {
    display: flex;
    width: 100%;
    justify-content: space-between;
    background: #fff;
    padding: 10px;
    border-radius: 8px !important;
}

.form-submit-user-name input {
    flex: 1;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 16px 18px;
    font-size: 16px;
    background: transparent;
}

.send-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.send-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

#user-name {
    flex: 1;
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 16px;
    background: transparent;
    margin: 0px;
}