/* ============================================*/
/* CHAT */
/* ============================================*/

.op-chat-container {
	height: var(--opChatContainerHeight);
	background-color: #ffffff;
	
	flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.op-chat-footer {
	height: var(--opChatFooterHeight);
	background-color: #f4f4f4;
	
	padding: 10px;
    border-top: 1px solid #e1e1e1;
    display: flex;
    align-items: center;
}

.op-chat-notification {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #999;
}

.op-chat-message {
    display: flex;
    margin-bottom: 15px;
    word-wrap: break-word;
    margin-left: 20px;
    margin-right: 20px;
}

.op-chat-message .caption {
    font-style: italic;
    color: #555;
    margin-top: 5px;
    margin-bottom: 10px;
}

.op-chat-message .footer {
    font-style: italic;
    color: #555;
    margin-top: 5px;
    margin-bottom: 10px;
}

.op-chat-message .op-message-header {
    font-weight: bold;
    margin-bottom: 5px;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.op-chat-message .op-message-header .dropdown-toggle {
    background-color: transparent;
    border: none;
    color: #007bff;
}

.op-chat-message .op-message-footer {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
}

.op-chat-message .op-message-content {
    max-width: 60%;
    min-width: 40%;
    padding: 10px 15px;
    border-radius: 20px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Media query para dispositivos móveis */
@media only screen and (max-width: 768px) {
    .op-chat-message .op-message-content {
        max-width: 95%;
    	min-width: 70%;
    }
}

.op-message-content ul {
    list-style-position: inside;
    padding: 0;
    margin: 0;
    /* Adicione outros estilos que desejar */
}

.op-chat-message.sent .op-message-content {
    margin-left: auto;
    background-color: #dcf8c6;
    color: #000;
}

.op-chat-message.received .op-message-content {
    background-color: #f4f4f4;
    color: #000;
    border: 1px solid #e1e1e1;
}

.op-chat-message .op-message-content:before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    margin-top: -6px;
}

.op-chat-message.sent .op-message-content:before {
    right: -12px;
    border-left-color: #dcf8c6;
}

.op-chat-message.received .op-message-content:before {
    left: -12px;
    border-right-color: #f4f4f4;
}

.op-chat-message img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 5px;
}

.op-chat-message audio {
    max-width: 100%;
    margin-top: 5px;
    border-radius: 5px;
}

.op-chat-message video {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 5px;
}

.op-chat-message .document {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 10px;
    margin-top: 5px;
    text-decoration: none;
    color: #333;
}
.op-chat-message .document i {
    font-size: 24px;
    margin-right: 10px;
    color: #007bff;
}
.op-chat-message .document span {
    font-size: 14px;
    font-weight: 500;
}

.op-chat-message .sticker {
    max-width: 150px;
    max-height: 150px;
    border-radius: 10px;
    margin-top: 5px;
}

.op-chat-message .location {
    max-width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-top: 5px;
    overflow: hidden;
    position: relative;
}
.op-chat-message .location #map {
    max-width: 100%;
    min-width: 100%;
    height: 100%;
    min-width:300px;
}

.op-chat-message .message-edited {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    display: flex;
    align-items: center;
}
.op-chat-message .message-edited i {
    margin-right: 5px;
    color: #999;
}

.op-chat-message .op-message-replied {
    padding: 10px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    margin-top: 10px;
    background-color: #f1f1f1;
}
.op-chat-message .op-message-replied .op-message-replied-header {
    font-weight: bold;
    margin-bottom: 5px;
}
.op-chat-message .op-message-replied .op-message-replied-footer {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.op-chat-message .op-message-forwarded {
    padding: 10px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    margin-top: 10px;
    background-color: #f1f1f1;
}
.op-chat-message .op-message-forwarded .op-message-forwarded-header {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}
.op-chat-message .op-message-forwarded .op-message-forwarded-header i {
    margin-right: 5px;
    color: #999;
}
.op-chat-message .op-message-forwarded .op-message-forwarded-content {
    margin-top: 5px;
    padding: 5px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
   
    background-color: #ffffff;
}

.op-chat-message .op-message-reactions {
    display: flex;
    align-items: center;
    margin-top: 5px;
    font-size: 14px;
}
.op-chat-message .op-message-reactions i {
    margin-right: 10px;
    cursor: pointer;
}

.op-chat-message .op-message-deleted-content {
    padding: 10px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background-color: #f8f9fa;
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 14px;
}
.op-chat-message .op-message-deleted-content i {
    font-size: 24px;
    color: #999;
}

.op-vcard-message {
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
}
.op-vcard-message .op-vcard-icon {
    font-size: 40px;
    color: #007bff;
    margin-right: 15px;
}
.op-vcard-message .op-vcard-details {
    flex: 1;
}
.op-vcard-message .op-vcard-details h5 {
    margin: 0;
    font-size: 16px;
}
.op-vcard-message .op-vcard-details p {
    margin: 0;
    font-size: 14px;
    color: #666;
}