:root {
    --chat-primary-color: #dc2626;
}
.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: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--chat-primary-color);
}

#chatroom-messages {
    height: 500px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid var(--chat-primary-color);
    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;
    font-size: 90%;
}

.user-active-content svg {
	width: 20px;
	height: 20px;
}

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

#chatroom-user-input button {
    background: var(--chat-primary-color);
    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 input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--chat-primary-color);
    margin-bottom: 0;
}

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

#chatroom-user-input p {
    margin-bottom: 0;
    color: var(--chat-primary-color);
    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;
}