.ui-chat .chat-body .time {
    color: rgba(255,255,255,0.5);
    font-size:12px;
    text-align: center;
    padding: 10px;
    clear: both;
}
.ui-chat .chat-body .typing {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    padding: 10px;
    clear: both;
}
.ui-chat {
    display: flex;
    flex-direction: column;    
}
.ui-chat .chat-input {
    flex-shrink: 0;
    margin: 15px 30px;
    font-size: 14px;
}
.ui-chat .chat-body {
    flex-grow: 1;
    overflow-y: auto;
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.2);
    padding: 15px 30px;
}

input.chat-input {
    border-radius: 4px;
    border: 1px solid #cccccc;
    padding: 5px 5px;
    font-size: 13px;
}

.loading {
    clear: both;
    margin: 10px 15px;    
}
.loading.rotating {
    display: inline-block;
    clear: inherit;
    margin: 0;
}
.loading span {
    color: rgba(255,255,255,0.5);
    font-size: 28px;
    animation: spin 2s linear infinite;
    display: inline-block;
}
.loading.rotating span {
    font-size: 14px;    
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.chat-narration {
    clear: both;
    font-weight: 400;
    font-size: 14px;
    margin: 0px 20px;
    padding: 10px;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

.chat-transition div {
    font-weight: 400;
    font-size: 14px;
    margin: 10px 40px;
    padding: 5px 15px;
    border-radius: 10px;
    text-align: center;
    color: rgb(64, 70, 84);
    background: rgba(255,255,255,0.5);
}
.chat-transition {
    padding: 5px 0;
    clear: both;
}


.chat-audio {
    clear: both;
    margin: 5px 0px;
    padding: 5px 0;
    text-align: left;
    color: rgba(255,255,255,0.5);
}


.chat-message {
    font-weight: 400;
    font-size: 14px;
    margin: 0px 100px 0px 0px;

}
.chat-message .name- {
    color: #fff;
    padding: 0 10px 0;
}
.chat-message .text- {
    padding: 10px;
    background: #fff;
    border-radius: 0px 10px 10px 10px;
    margin-top: 3px;
    float:left;
    clear:both;
}
.chat-message.chat-user .name- {
    text-align: right;
}

.chat-message.chat-user {
    margin: 0px 0px 0px 100px;
}
.chat-message.chat-user .text- {
    float:right;
    background: hsl(171, 100%, 96%);
    border-radius: 10px 0px 10px 10px;    
}

.chat-message.chat-agent + .chat-message.chat-user .name-,
.chat-message.chat-user + .chat-message.chat-agent .name- {
    padding-top: 10px;
}

.chat-controls { display: flex; }
.chat-controls button { flex-grow: 0; margin: 15px 20px 15px -10px; }
.chat-controls input { flex-grow: 1 }
.chat-controls.microphone-preparing button,
.chat-controls.microphone-on button {
    background: rgba(252, 30, 73, 1);
    flex-grow: 1;
    margin: 15px;
    color: #ffffff;
}
.chat-controls.microphone-preparing button {
    background: rgba(150, 150, 150, 1) !important;
}
.chat-controls.microphone-preparing input,
.chat-controls.microphone-on input { display: none }


.chat-choices {
    padding: 10px 25px 0;
    margin-bottom: -5px;
}
.chat-choice {
    border-radius: 2px;
    margin: 5px;
    padding: 0px;
    background: rgba(255,255,255, 0.5);
    display: flex;
    font-size: 14px;
}
.chat-choice:hover {
    cursor: pointer;
    background: rgba(255,255,255, 0.75);
}
.chat-choice .choice-text { 
    flex: 1;
    padding: 5px 10px;
}
.chat-choice .choice-type {
    flex-grow: 0;
    padding: 5px;
    background: rgba(30, 132, 73, 0.75);
}
.chat-choice .choice-key {
    flex-grow: 0;
    padding: 5px;
    background: rgba(30, 132, 73, 0.5);
}


.message-color-0 { background: #ffffff !important }
.message-color-1 { background: #fff4b2 !important } /* Deeper yellow */
.message-color-2 { background: #f8c6b8 !important } /* Richer peach */
.message-color-3 { background: #c4f0d2 !important } /* Stronger mint green */
.message-color-4 { background: #bff0eb !important } /* Bolder aqua */
.message-color-5 { background: #e0c7f0 !important } /* More visible lavender */
.message-color-6 { background: #f9d1aa !important } /* Brighter coral cream */
.message-color-7 { background: #cbe5e3 !important } /* Sharper teal-gray */