#pui-input{
    background-color: #edf5ff;
    padding: 0.75em;
    border-radius: 3px;
    margin-bottom: 1em;
    border: 1px solid #c9d1db;
}

/*  ===== INTERFACE */
#pui-input .pui-ask .pui-interface .pui-interface-query{
    margin-bottom: 0.5em;
}
#pui-input .pui-ask .pui-interface .pui-interface-query textarea {
    width: 100%;
    resize: vertical;
    outline: 0 none;
    padding: 10px;
    height: 150px;
    min-height: 150px;
    max-height: 300px;
    border: 1px solid #bfc8d1;
    border-radius: 3px;
}

#pui-input .pui-ask .pui-interface .pui-interface-topic{
    background: #fff;
    padding: 5px;
    text-align: center;
    border-radius: 3px;
    color: #202020;
    border: 1px dashed #b0b0b0;
    margin-bottom: 0.2em;
}

#pui-input .pui-ask .pui-interface .pui-interface-topic .pui-interface-topic-title{
    font-weight: 600;
}

#pui-input .pui-ask .pui-interface .pui-interface-topic .pui-interface-topic-menu {
    font-size: 0.8em;
}

#pui-input .pui-ask .pui-interface .pui-interface-topic .pui-interface-topic-menu a{
    text-decoration: underline;
    color: #993301;
}

#pui-input .pui-ask .pui-interface .pui-interface-topic .pui-interface-topic-menu a:hover{
    text-decoration: none;
}

#conversation:not([data-topic]) .pui-interface-topic {
    display: none;
    visibility: hidden;
}


#pui-input .pui-ask .pui-interface .pui-interface-menu {
    text-align: center;
}

/*  ===== RELATED QUESTIONS */
#pui-input .pui-related{
    margin-top: 2em;
 }
#pui-input .pui-related .pui-related-questions {
    user-select: none;
    margin: 1em 0.3em 1em 0.3em;
}
#pui-input .pui-related .pui-related-questions div {
    color: #888;
    margin: 4px 0;
    display: flex;
}
#pui-input .pui-related .pui-related-questions div span{
   margin-right: 5px;
 }

 #pui-input .pui-related .pui-related-questions div a{
    color: #5b5d60;
}

@media (max-width: 575px) {
    #pui-input .pui-related {
    font-size: 1.2em;
    }
}

/* ===== THINKING */
.pui-message.thinking .information{
    background: #fff6d4;
    color: #7e703b;
    padding: 10px;
    border-radius: 3px;
    font-weight: bold;
    border: 1px solid #00000024;
    height: 50px;
    margin-bottom: 1em;
}

.pui-message.thinking .information .dot-text {
    position: relative;
    display: block;
}

.pui-message.thinking .information .dot-text .dot {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 10px;
    height: 10px;
    background-color: #5c5c5c;
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite ease-out;
}

.pui-message.thinking .information .dot-text .text {
    position: absolute;
    top: 2px;
    left: 36px;
    font-weight: 600;
    color: #5c5c5c;
}

.pui-message.thinking .request {
    text-align: center
}

.pui-message.thinking .request a{
    text-decoration: underline;
    color: inherit;
}

.pui-message.thinking .request a:hover{
    text-decoration: none;
}

#conversation:not([data-state='thinking']) .pui-message.thinking{
    display: none;
    visibility: hidden;
}

#conversation[data-state='thinking'] .pui-interface-query textarea {
    background-color: #fbfbfb;
    color: #707070;
    pointer-events: none;
}

#conversation[data-state='thinking'] #pui-input{
    pointer-events: none;
}

#conversation[data-state='thinking'] .pui-interface-menu .btn{
    background-color: #ddd;
    color: #707070;
    border-color: #c7c7c7;
    pointer-events: none;
    box-shadow: none !important;
}

/* ===== WELCOME */
#conversation:not([data-state='welcome']) #pui-welcome{
    display: none;
    visibility: hidden;
}

/* ===== ANSWERS */
.pui-output-answers {
    max-height: 100vh;
    overflow: scroll;
}

@media (max-width: 575px) {
    .pui-output-answers {
        max-height: none;
        overflow: visible;
    }
}

.pui-output-answers .answer{
    margin-bottom: 1em;
}

.pui-output-answers .answer .answer-header {
    opacity: 1;
    border: 1px solid #0000000a;
    border-radius: 3px;
    display: flex;
    align-content: center;
    justify-content: center;
    padding: 0.5em;
    background: #fbfbfb;
    cursor: pointer;
}

.pui-output-answers .answer.open .answer-header{
    border: 1px solid #0000001a;
    background: #7966ad;
    color: #fff;
}

.pui-output-answers .answer .answer-header .answer-query{
    flex: 2;
    user-select: none;
}

.pui-output-answers .answer:not(.open) .answer-header .answer-query {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-content: center;
    font-size: 0.9em;
}

.pui-output-answers .answer .answer-header .answer-links{
    align-items: center;
    justify-content: right;
    display: flex;
    font-size: 0.9em;
}

.pui-output-answers .answer .answer-header .answer-links a{
    color: #222;
    text-decoration: none;
    border-radius: 3px;
    background: #fbfbfb;
    padding: 2px 10px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.pui-output-answers .answer .answer-header .answer-links a:hover{
    color: #090909;
    background: #f4f4f4;
}

.pui-output-answers .answer .answer-header .answer-icons{
    margin-right: 10px;
    align-content: center;
    font-size: 0.9em;
}

.pui-output-answers .answer:not(.open)  .answer-header .answer-icons .answer-icon-open{
    display: none;
    visibility: hidden;
}
.pui-output-answers .answer.open  .answer-header .answer-icons .answer-icon-closed{
    display: none;
    visibility: hidden;
}

.pui-output-answers .answer .answer-response{
    padding: 0 0.5em 0.5em 0.5em;
}

.pui-output-answers .answer .answer-response h1 {
    font-size: 1.4em;
    color: #535353;
    font-weight: 600;
    margin-top: 1em;
}

.pui-output-answers .answer .answer-response h2 {
    margin-bottom: 0.5em;
    font-size: 1.15em;
    margin-top: 2em;
    color: #7966ad;
    padding: 0.1em 0.5em;
    border-left: 3px solid #7966ad;
    line-height: 1;
}

.pui-output-answers .answer .answer-response h2:first-child {
    margin-top: 0;
}

.pui-output-answers .answer .answer-response h3 {
    font-size: 1em;
    color: #6c6c6c;
    margin-top: 1rem;
}

.pui-output-answers .answer .answer-response ol + h3,
.pui-output-answers .answer .answer-response ul + h3,
.pui-output-answers .answer .answer-response p + h3{
    margin-top: 2em;
}

.pui-output-answers .answer .answer-response ul{
    padding-left: 1em;
}

.pui-output-answers .answer .answer-response ol{
    padding-left: 2em;
}

.pui-output-answers .answer .answer-response ol li{
    padding-left: 0.2em;
}

.pui-output-answers .answer .answer-response p,
.pui-output-answers .answer .answer-response ul {
    font-size: 1em;
}

.pui-output-answers .answer .answer-response table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1rem 0;
    font-size: 0.8rem;
}

.pui-output-answers .answer .answer-response table thead {
    background-color: #f5f5f5;
}

.pui-output-answers .answer .answer-response table th,
.pui-output-answers .answer .answer-response table td {
    padding: 0.35rem;
    border: 1px solid #ddd;
}

.pui-output-answers .answer .answer-response .answer-response-sources {
    padding: 0;
    border-radius: 0 0 4px 4px;
    font-size: 0.9em;
    background-color: #e6e6e6;
}

.pui-output-answers .answer .answer-response .answer-response-sources h2 {
    font-size: 1em;
    padding: 0.5rem;
    margin: 0;
    border: 0;
    cursor: pointer;
    user-select: none;
}
.pui-output-answers .answer .answer-response .answer-response-sources h2:hover{
    color: #57448B;
}

.pui-output-answers .answer .answer-response .answer-response-sources ul{
    padding: 0 0 1em 2em;
    margin-bottom: 1em;
    overflow: hidden;
}
.pui-output-answers .answer .answer-response .answer-response-sources ul li a{
   color: #2b2d2f !important;
}
.pui-output-answers .answer .answer-response .answer-response-sources:not(.open) ul{
    display: none;
    visibility: hidden;
}
.pui-output-answers .answer .answer-response .answer-response-content{
    margin-top: 1em;
}
.pui-output-answers .answer .answer-response tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.pui-output-answers .answer:not(.open) .answer-response{
    display: none;
    visibility: hidden;
}





/* ---- PIXIE UI : ANSWER -> ERROR */
.pui-answer .pui-answer-contents.error {
    color: #862f2f;
    background: #fff8f8;
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
}

/* ---- PIXIE UI : ANSWER -> SHARED */
.pui-answer.pui-answer-headless{
    border: 0 none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}
.pui-answer.pui-answer-headless .pui-answer-contents.answered {
    padding: 0;
    font-size: 1rem;
}


