/* lancher icon */
.rw-launcher {
    background-color: #6AC7BD;
    border: 2px solid #6AC7BD;
    height: 80px;
    width: 80px;
    text-align: center;
    border-radius: 50%;
    position: relative;  
    box-shadow: none !important;

    display:block !important;
}
.rw-chat-open .rw-launcher
{
    background-color: #6AC7BD;
}

/* lancher image */
.rw-launcher img {
    object-fit: fill;
    height: 100%;
    top: 0rem;
    width: 100%;
    display: inline-block;
}
.rw-open-launcher
{
    padding:7px;
}
/* header */
.rw-conversation-container .rw-header {
    background-color: #fff;
    display: inline-block;
    width: 100%;
    align-items: center;
    /* padding-inline-end: 20px; */
    border-bottom: 1px solid #1B8354;
    flex-direction: column;
    font-family: 'Tajawal', sans-serif;
    text-align: justify;
} 
.rw-conversation-container .rw-header.rw-with-subtitle .rw-title
{
    position: relative;
    top: 15px;
    left: 0;
}
.rw-conversation-container  .rw-header span.rw-with-avatar
{
   position: relative;
   top: 15px;
   left: 0 !important;
}

/* header avatar */
.rw-conversation-container .rw-header .rw-avatar{
   
    direction: ltr;
    position: relative;
    top: 0 !important;
    right: 0;
    left: 0;
    float: left;
    top: 5px !important;
    width: 50px;
    height: 50px; 
    padding: 3px;
}
/* header title */
.rw-conversation-container .rw-title {
    font-family: 'Tajawal', sans-serif;
    color:#1B8354;
    font-size: 0.8rem;
    direction: ltr;
}
.rw-conversation-container span.rw-with-avatar {
    font-size: 0.7rem;
}

/* header subtitle */
.rw-conversation-container .rw-with-subtitle{
    color:#8B8B8B;
    direction: ltr;
    
}

/* response from bot */
.rw-conversation-container .rw-response {
    background-color: #f4f7f9;
    color: #14394b;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
} 

/* conversation avatar*/
.rw-conversation-container .rw-avatar{
    width: 30px;
    height: 40px;
    border-radius: 100%;
    margin-right: 6px;
    position: relative;
    bottom: 0px;
}

/* request from user */
.rw-conversation-container .rw-client {
    background-color: #f4f7f9;
    color: #14394b;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
}



/* sender text */
.rw-conversation-container .rw-new-message {
    height :19px;
    font-family: 'Tajawal', sans-serif;
    font-weight: bold;
    color:#1B8354;
    font-size: 1rem;
    direction: ltr;
    padding-right: 15px;
}
 ::placeholder{
    font-weight: 700 !important;
    color: #1B8354 !important;
    opacity: 1;
    font-size: 1rem;
}
/* sender body */
.rw-conversation-container .rw-sender{
    border-top: 1px solid #8B8B8B;
}
/* sender */
.rw-sender .rw-send{
    image-rendering: auto;
}


/* sender icon */
.rw-conversation-container .rw-send .rw-send-icon-ready {
    fill: #1B8354;
    direction: ltr;
}


.rw-group-message.rw-from-response .rw-message.rw-with-avatar
{
    justify-content: flex-start;
    margin: 9px 0px;
}
.rw-group-message.rw-from-response .rw-message.rw-with-avatar  .rw-avatar {
    float: left;
    position: absolute;
    left: 0px;
    /* padding: 10px; */
    border-radius: 50%;
    display: inline-block;
    width: 40px;
    height: auto;
    top:0px;
    background-color: #f4f7f9;
}
.rw-group-message.rw-from-response .rw-message.rw-with-avatar  .rw-response
{
    margin-left: 40px;
    max-width: 85%;
}
.rw-group-message.rw-from-client  .rw-message.rw-with-avatar
{
    justify-content: flex-end;
}
.rw-group-message.rw-from-client .rw-client
{
    margin-left: unset;
}
.rw-conversation-container .rw-replies
{
   margin-inline-start: 40px;
    align-items: center;
    display: grid;
    -ms-grid-columns: minmax(250px,1fr) 2% minmax(250px,1fr) 2% minmax(250px,1fr) 2% minmax(250px,1fr);
    grid-template-columns: repeat(2,minmax(40%,1fr));
}

.rw-conversation-container .rw-reply
{
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.4rem 0.2em;
    background: #1B8354;
    font-family: 'Tajawal', sans-serif;
    box-shadow: unset !important; 
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    min-width: 100px;
    min-height: 50px;
}
.rw-conversation-container .rw-message-text .rw-markdown p 
{
    font-size: 13px;
}
.rw-conversation-container .rw-message-text
{
    font-size: 13px;
}
@media screen and (max-width: 991px)
{
   .rw-launcher.rw-hide-sm {
        display: block;
    }
    .rw-launcher img {
        object-fit: cover;
        height: auto;
        top: 0rem;
        /* width: auto !important; */
        display: inline-block;
    }
    .rw-close-launcher.rw-default
    {
        width: auto;
    }
    .rw-conversation-container .rw-new-message
    {
        text-align: right;
    }
}
@media screen and (max-width: 800px)
{
   .rw-launcher.rw-hide-sm {
        display: block;

        width:70px;
        height: 70px;
    }
    .rw-launcher.rw-hide-sm img {
        width: 20px;
    }
   .rw-widget-container.rw-chat-open
    {
        bottom:0;
    }  
}


/* change text width */
.rw-conversation-container  .rw-from-response .rw-message-text p 
{
    white-space: pre-wrap;
    display: block;
    overflow: hidden;
}

/* override style  */

.rw-group-message.rw-from-response .rw-message:not(:first-child):not(:only-child).rw-with-avatar {
    margin-left: 0px !important; 
}

.rw-group-message.rw-from-response .rw-message:not(:first-child):not(:last-child):not(:last-child)
{
    margin: 9px 0 !important;
}