/* Bot window custom styles */
/* Changes the width of user and bot message bubbles to allow longer responses to take less lines */

.embedded-messaging-chat-message {
    max-width:100% !important;
}
    
div.embedded-messaging-chat-message div.slds-chat-message__body {
    width:100%;
    max-width: none;
}

embeddedmessaging-prechat-state .form-footer>.submit-button {
    border-radius: 100px;
}

embeddedmessaging-prechat-state .form-footer .submit-button:hover {
    background-color: #2B2BB2;
}

embeddedmessaging-conversation-state.containerArea, .embeddedMessagingInputTextAreaWrapper, 
div.embedded-messaging-system-event-participantchanged-text {
    background-color: #f8f8f9 !important;
}

embeddedmessaging-chat-header.containerArea .headerAnnouncement{
    display: none !important;
}

.embedded-messaging-outbound-chat-message {
    /*max-width: 85%;*/
    border-radius: 5px 5px 0px 5px;
}

.slds-chat-message__text_outbound {
    background-color: #2B2BB2 !important;
}

.embedded-messaging-inbound-chat-message {
    /*max-width: 95%;*/
    border-radius: 5px 5px 5px 0px;
    background: #FFF;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.15);
}

div.embedded-messaging-inbound-chat-message:not(.custom_chat_message_bubble_component) {
    background: #FFF !important;
}

.embedded-messaging-quick-replies {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px !important;
}

.embedded-messaging-quick-reply {
    padding: 8px 25px;
    border-radius: 100px !important;
    background-color: #2B2BB2 !important;
}

.embedded-messaging-quick-reply>span {
    color: #FFF;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
}

.embedded-messaging-quick-reply:hover {
    background-color: #2B2BB2 !important;
}

.embedded-messaging-quick-reply:hover>span, .embedded-messaging-quick-reply>span:hover {
    color: #FFF !important;
}

/* Hides the send button in the embedded service chat window */
.embeddedMessagingSendButtonWrapper {
    display: none !important;
}

.embeddedMessagingInputFooterTextArea{
    padding-right: 0px !important;
}

/* Removes the blue border around the chat window when it is clicked 
which was causeing weird shifting in browsers */
section.slds-chat:focus, section.slds-chat:focus  {
    border: none !important;
}

embeddedmessaging-input-footer .embeddedMessagingInputTextAreaWrapper .embeddedMessagingInputFooterTextArea{
    resize: block !important;
}

.chatHeader .optionsMenu .requestTranscriptOption:before{
    content: 'Download Chat Transcript';
    color: #2B2BB2 !important;
}

.chatHeader .optionsMenu .requestTranscriptOption>span{
    display: none;
}

.embeddedMessagingConversationButtonWrapper .embeddedMessagingConversationButton,
.embedded-messaging > .embeddedMessagingFrame[class~="isMinimized"], 
embeddedmessaging-minimized-state .minimizedButtonWrapper>.minimizedButton {
    border-radius: 18px !important;
    padding: 3px !important;
    width:180px !important;
    height: 45px !important;
    position: relative !important;
}

.chatHeader .endChat {
    color: #EA001E !important;
}

.enchat_content.enchat_minicard {
    min-width: 250px !important;
}

.nf-miniCard-container {
    color: #000000;
}

.nf-miniCard-subject {
    font-size: 15px;
    padding-bottom: 10px;
}

.nf-miniCard-createdDate {
    font-size: 10px;
    padding-bottom: 10px;
}

.nf-miniCard-button {
    display: none;
    border-radius: 100px; 
    background: #2B2BC1; 
    color: #FFFFFF; 
    padding: 5px 85px;
}

.nf-miniCard-button:hover {
    background-color: #FFFFFF;
    color: #2B2BC1;
}

/* Reduce the amount of space between text elements and list items in chat messages */
.chat-content dl, .chat-content fieldset, .chat-content h1, .chat-content h2, .chat-content h3, .chat-content h4, .chat-content h5, .chat-content h6, .chat-content ol, .chat-content p, .chat-content ul {
    line-height: 1.5 !important;
}

.chat-content ol, .chat-content ul {
    margin-top: -8px !important;
    margin-bottom: -8px !important;
    line-height: 1 !important;
}