:root {
    --primary-color: #259ad6;
    --background-color: #f5f5f5;
    --text-color: #333;
    --message-bg: #e6f2ff;
}

#danswer-chat-widget {
    position: relative;
    height: 530px;
    width: 376px;
    overflow: hidden;
    flex-direction: column;
    display: none;
    box-shadow: 0 5px 40px rgba(0,0,0,.16);
    background: rgb(255, 255, 255);
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 16px;
    transition: all 0.25s ease-in-out 0s;
    bottom: 0px;
}

.chat-item-container {
    display: block;
    width: 100%;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    background-color: transparent;
    transition: background-color 150ms ease-out 0s;
    border: none;
    min-height: 40px;
    color: rgb(51, 71, 91);
    padding: 0px;
    cursor: pointer;
}

.chat-item-container:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.chat-item-wrapper {
    text-align: left;
    padding: 8px 10px;
    display: flex;
    flex-direction: row;
    -webkit-box-align: center;
    align-items: center;
    height: 75px;
}

.chat-item-avatar-wrapper {
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    box-sizing: content-box;
    font-size: initial;
    overflow: hidden;
    position: relative;
    border-radius: 50%;
    height: 48px;
    width: 48px;
    flex: 0 0 48px;
    border: 2px solid #fff;
}

.chat-item-text-wrapper {
    -webkit-box-flex: 1;
    flex-grow: 1;
    min-width: 0px;
    padding-left: 12px;
}

.chat-item-title-wrapper {
    font-size: 12px;
    line-height: 18px;
    color: rgb(66, 91, 118);
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
}

.chat-item-title {
    font-size: 12px;
    line-height: 18px;
    color: rgb(66, 91, 118);
}

.chat-item-timestamp {
    font-size: 12px;
    line-height: 18px;
    color: rgb(66, 91, 118);
    white-space: nowrap;
}

.chat-item-preview-text {
    line-height: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}


.chat-item-avatar {
    background-image: url('/assets/img/favicon.png');
    /*background-image: url(https://go.cometchat.com/hs-fs/hubfs/Logos/logo.png?width=108&height=108);*/
    background-position: center center;
    width: 108px;
    height: 108px;
    background-size: cover;
    height: 100%;
    width: 100%;
}

.danswer-chat-widget-wrapper {
    position: fixed;
    bottom: 0px;
    display: flex;
    padding: 16px;
    gap: 12px;
    flex-direction: column;
    -webkit-box-pack: end;
    justify-content: flex-end;
    right: 0px;
    align-items: flex-end;
}


.danswer-widget-unifier {
    height: calc(100% - 68px);
}

.danswer-widget-header {
    height: 68px;
    border-radius: 8px 8px 0px 0px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.danswer-chat-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    display: none;
}

.danswer-chatlist-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    display: none;
}

.icon-wrapper {
    user-select: none;
    display: inline-flex;
    vertical-align: middle;
    fill: currentcolor;
    font-size: 20px;
    height: 20px;
    width: 20px;
}

.danswer-back-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


.danswer-back-button {
    flex-shrink: 0;
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    border-radius: 3px;
    width: 40px;
    height: 40px;
    vertical-align: middle;
    padding: 0px;
    text-align: center;
    text-overflow: clip;
    font-size: 18px;
    line-height: 18px;
    outline: none;
    transition: background-color 150ms ease-out 0s;
    background-color: transparent;
    border: none;
    color: rgb(255, 255, 255);
    cursor: pointer;
}

.danswer-back-button-wrapper {
    position: relative;
    display: inline-flex;
    -webkit-box-align: baseline;
    align-items: baseline;
    line-height: 1;
    margin-right: 4px !important;
}

.danswer-header-avatar {
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    box-sizing: content-box;
    font-size: initial;
    position: relative;
    border-radius: 50%;
    background-image: url('../assets/img/favicon.png');
    /*background-image: url(https://go.cometchat.com/hs-fs/hubfs/Logos/logo.png?width=108&height=108);*/
    background-position: center center;
    background-size: cover;
    height: 32px;
    width: 32px;
    background: rgb(255, 255, 255);
    border-radius: 50%;
    z-index: 0;
}

.danswer-chat-avatar-container {
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    box-sizing: content-box;
    font-size: initial;
    position: relative;
    border-radius: 50%;
    background-image: url('../assets/img/favicon.png');
    /*background-image: url(https://go.cometchat.com/hs-fs/hubfs/Logos/logo.png?width=108&height=108);*/
    background-position: center center;
    background-size: cover;
    height: 32px;
    width: 32px;
    padding: 2px;
    background: rgb(255, 255, 255);
    z-index: 0;
}

.danswer-chat-avatar-wrapper {
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    box-sizing: content-box;
    font-size: initial;
    overflow: hidden;
    position: relative;
    border-radius: 50%;
    height: 32px;
    width: 32px;
    overflow: visible;
}

.danswer-chat-avatar {
    background-image: url('../assets/img/favicon.png');
    background-position: top;
    background-size: contain;
    height: 60%;
    width: 100%;
    background-repeat: no-repeat;
}

.danswer-header-avatar-icon {
    /*background-image: url(https://go.cometchat.com/hs-fs/hubfs/Logos/logo.png?width=108&height=108);*/
    background-image: url('../assets/img/favicon.png');
    background-position: top;
    background-size: contain;
    height: 60%;
    width: 100%;
    background-repeat: no-repeat;
}

.danswer-header-avatar::after {
    content: "";
    position: absolute;
    right: 0px;
    bottom: 1px;
    border-radius: 50%;
    border: 2px solid rgb(255, 255, 255);
    height: 11px;
    width: 11px;
    background: rgb(0, 189, 165);
}

.danswer-header-title {
    display: flex;
    align-items: center;
}

.danswer-header-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.danswer-chatlist-composer {
    height: 100%;
    overflow: auto;
    flex: 1 1 0%;
}

.danswer-chat-messages-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    height: 100%;
    position: relative;
    background-color: var(--background-color);
    overflow-x: hidden;
}

.danswer-message-wrapper {
    margin-bottom: 10px;
    max-width: 80%;
}

.danswer-chat-input-wrapper {
    display: flex;
    width: 100%;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.danswer-form-control-wrapper {
    width: 100%;
    flex-basis: 100%;
}

.danswer-message-spacing {
    padding: 4px 10px;
    width: 100%;
}

.danswer-message-content {
    background-color: white;
    border-radius: 10px;
    padding: 8px 12px;
    display: inline-block;
    font-size: 16px;
}

.danswer-message-wrapper.user, .danswer-message-spacing.user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-left: 8px;
    padding: 4px 10px;
}

.danswer-message-wrapper.assistant, .danswer-message-spacing.assistant {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 8px;
    padding: 4px 10px;
}

.danswer-message-wrapper.user .danswer-message-content {
    position: relative;
    min-height: 32px;
    word-break: break-word;
    box-sizing: border-box;
    border-style: solid;
    border-width: 0px;
    border-color: rgba(0, 0, 0, 0.2);
    background-color: var(--primary-color);
    color: rgb(255, 255, 255);
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    flex-direction: column;
    border-radius: 8px 0px 8px 8px;
    max-width: max(100% - 48px, 284px);
    float: right;
}

.danswer-message-header {
    display: flex;
    height: 16px;
    -webkit-box-align: center;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 4px;
    width: 100%;
}

.danswer-header-avatar-container {
    -webkit-box-align: center;
    place-items: center;
    display: flex;
    flex-shrink: 0;
    margin-top: 35px;
    width: 32px;
    margin-left: -8px;
    margin-right: 8px;
}

.danswer-header-name {
    font-weight: 600;
    margin-right: 8px;
    margin-left: 8px;
    display: block;
    font-size: 12px;
    line-height: 18px;
    color: rgb(66, 91, 118);
}

.danswer-header-avatar-wrapper {
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    box-sizing: content-box;
    font-size: initial;
    overflow: hidden;
    position: relative;
    border-radius: 50%;
    height: 32px;
    width: 32px;
    overflow: visible;
}

.danswer-message-style-wrapper {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-left: 32px;
    width: 100%;
}

.danswer-message-wrapper.user .danswer-message-time {
    justify-content: flex-end;
}

.danswer-message-time {
    text-align: right;
    display: flex;
    margin-top: 4px;
    max-width: 284px;
    font-size: 12px;
    line-height: 18px;
    color: rgb(66, 91, 118);
}

.danswer-message-composer {
    padding: 8px 8px 0px;
    margin-bottom: 8px;
    max-width: 100%;
    background-color: rgb(255, 255, 255);
    border-top: 2px solid rgb(242, 245, 248);
    flex-shrink: 0;
}



#danswer-chat-input {
    border-radius: 3px;
    font-size: 16px;
    line-height: 22px;
    min-height: 38px;
    max-height: 100px;
    overflow: hidden auto;
    padding: 8px;
    position: relative;
    width: 100%;
    flex-basis: 100%;
    word-break: break-word;
    cursor: text;
    border: none;
    background-color: transparent;
}

#danswer-chat-input:focus-visible {
    outline: none;
}


#danswer-chat-attach, #danswer-chat-send {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
}

#danswer-chat-launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

@media (prefers-reduced-motion: no-preference) {
    #danswer-chat-launcher:hover {
        box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px, rgba(0, 0, 0, 0.2) 0px 4px 16px;
        transform: scale(1.1);
    }
}

#danswer-chat-launcher:hover {
    cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
    .jTtBnY {
        transition: transform 100ms ease-in-out 0s;
    }
}

.danswer-launcher-icon {
    transform: rotate(45deg);
}

.danswer-launcher-icon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
}

.danswer-chat-launcher-close {
    transition: transform 0.16s linear 0s, opacity 0.06s linear 0s;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.danswer-chat-launcher-open {
    transition: transform 0.16s linear 0s, opacity 0.06s linear 0s;
    opacity: 0;
    transform: rotate(-25deg) scale(0.5);
}

.danswer-widget-content-wrapper-chat {
    -webkit-box-align: center;
    align-items: center;
    color: rgb(255, 255, 255);
    display: flex;
    height: 100%;
    padding: 16px;
    display: none;
}

.danswer-widget-content-wrapper-chatlist {
    -webkit-box-align: center;
    align-items: center;
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
    width: 100%;
    display: none;
    padding: 16px;
    color: rgb(255, 255, 255);
    height: 100%;
}

.danswer-widget-content-chatlist {
    -webkit-box-align: center;
    align-items: center;
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
    width: 100%;
}

.danswer-widget-header-title-chatlist {
    text-align: center;
    color: rgb(255, 255, 255);
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    margin-top: 0;
    margin-bottom: 0;
}

.danswer-header-title-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    -webkit-box-pack: center;
    justify-content: center;
    min-width: 0px;
    margin-left: 12px;
}

.danswer-header-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: rgb(255, 255, 255);
    margin: 0px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}