* {
    box-sizing: border-box;
}

html{
    height: 100%;
}

body {
    margin: 0;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.chat-only{
    background-color: transparent !important;
}

#user_input.disabled{
    opacity: 0.7;
    pointers-event:none;
}

body.chat-only .headerWrapper{
    display:none !important;
}

.headerWrapper{
    display: flex;
    width: 100%;
    align-items: center;
    position: relative;
    justify-content: center;
    padding: 12px;
    background-color: #fff;
    height: 105px;
    flex-shrink: 0;
    -webkit-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.25);
    -moz-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.25);
    box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.25);
}

.headerWrapper img{
    width: 100%;
    max-width: 150px;
    height: auto;
}

.loader_wrapper{
    display: flex;
    justify-content: center;
}

.loader {
  color: #000;
  width: 4px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 19px 0 0 7px, 38px 0 0 3px, 57px 0 0 0;
  transform: translateX(-38px);
  animation: l21 .5s infinite alternate linear;
}

@keyframes l21 {
  50%  {box-shadow: 19px 0 0 3px, 38px 0 0 7px, 57px 0 0 3px}
  100% {box-shadow: 19px 0 0 0  , 38px 0 0 3px, 57px 0 0 7px}
}

.mainWrapper {
    display: flex;
    width: 100%;
    position: relative;
    flex-direction: column;
    flex-grow: 1;
}

.mainWrapper.chat-only{
    height: 100vh;
    
}

.main_chat_wrapper {
    display: flex;
    width: 100%;
    position: relative;
    flex-direction: column;
    flex-grow: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 32px 0px 32px;
}

.chat-only .main_chat_wrapper{
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 100%;
    padding:0 !important;
}

.chat_header_wrapper {
    display: flex;
    padding: 24px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    background-color:#FF3067;
    flex-shrink: 0;
}

.chat_header_title {
    display: flex;
    text-align: center;
    width: 100%;
    color: white;
    align-items: center;
    justify-content: center;
}

.chat_header_options {
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat_option {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: white;
}

.chat_body_wrapper {
    display: flex;
    width: 100%;
    background-color: #f5f5f5;
    flex-grow: 1;
    flex-direction: column;
    position: relative;
    overflow:hidden;
}

.chat-only .chat_body_wrapper{
    flex-grow: 1;
}

.chat_conversation_option_wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.history_icon{
    display: flex;
    align-items: center;
    cursor: pointer;
}

.chat_conversation_option_icon {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.chat_conversation_option {
    display: flex;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    align-items: center;
}

.chat_conversation_option select {
    border: 0 !important;
    height: 24px;
    background-color: transparent;
}

.chat_conversation_user_input_wrapper {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 16px;
}

.chat_conversation_user_input_icon {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.chat_conversation_user_input {
    display: flex;
    align-items: center;

}

.chat_conversation_user_input input {
    border: 0;
    background-color: transparent;
    height: 50px;
    font-size: 20px;
    width: 100%;
}

.chat_conversation_user_input input:focus {
    outline: none;
}

.enter_chat,
.enter_attachments {
    cursor: pointer;
}

.chat_item {
    display: flex;
    margin-bottom: 32px;
}

.chat_conversation_wrapper {
    padding: 42px;
    overflow-y: scroll;
    flex-grow: 1;
    max-height: 500px;
}

.error_message{
    display: flex;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    font-size: 42px;
}

.chat-only .chat_conversation_wrapper{
    max-height: 100% !important;
}

.chat_user_image {
    background-color: #afafaf;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chat_user_image .material-symbols-outlined {
    color: white;
}

.chat_user_info {
    margin-left: 16px;
    flex: 1;
}

.chat_user_info_name {
    margin-bottom: 4px;
    color: #666666;
    font-size: 18px;
}

.chat_user_info_message {
    font-size: 16px;
}

.chat_footer_wrapper{
    background-color: #f5f5f5;
    padding:16px 32px;
    flex-shrink: 0;
}

.chat-only .chat_header_wrapper, .chat-only .chat_footer_wrapper{
    flex-shrink: 0;
}

.chat-only .chat_footer_wrapper{
    padding:16px !important;
}

.chat-only .chat_conversation_user_input input{
    font-size: 16px;
}

.chat-only .chat_conversation_user_input_wrapper{
    padding: 8px !important;
}

.chat_history_list{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: absolute;
    bottom:-101%;
    left:0;
    background-color: #ffdde6;
    transition: all .25s ease;
    padding: 24px;
    overflow-y: auto;
    max-height: 100%;
}
.chat_history_list.show{
    bottom: 0%;
}

.chat_history_close{
    position: absolute;
    top: 16px;
    right: 16px;
    cursor: pointer;
}

.chat_history_item{
    display: block;
    max-width: 95%;
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    background-color: white;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.25);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.25);
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.25);
    margin-bottom: 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all .25s ease;
    overflow: hidden;
}

.chat_history_item:hover{
    background-color: #ffa3bc;
}

#uploadIcon{
    cursor: pointer;
}

.transcript_action_btns{
    display:flex;
    width: 100%;
    margin-top: 8px;
    justify-content: center;
    gap: 16px;
}

.action_btn{
    padding:8px 16px;
    color: white;
    background-color: #FF3067;
    border-radius: 5px;
    cursor:pointer;
    transition: all .25s ease;
}

.action_btn:hover{
    background-color: #e82959;
}

@media screen and (max-width: 639px) {
    .transcript_action_btns{
        flex-direction: column;
    }
    
    .action_btn:first-child{
        margin-bottom:16px;
    }
}