/** position and size **/
.aiq_button {
    position: fixed;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    border-radius: 3px;
    box-shadow: 1px 1px 5px #333;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aiq_button a {
    color: #111;
}
.aiq_button img {
    padding: 7px;
}
@media (max-width: 768px) {
    /** mobile **/
    .aiq_button {
        height: 40px;
        width: 40px;
        font-size: 30px;
        /** default **/
        right: 15px;
        bottom: 15px;
    }
    .aiq_button.aiq_position_mobile_fixedright {
        right: 0;
        top: 50vh;
        margin-top: -20px;
    }
    .aiq_button.aiq_position_mobile_fixedleft {
        left: 0;
        top: 50vh;
        margin-top: -20px;
    }    
    .aiq_button.aiq_position_mobile_fixedbottomleft {
        left: 15px;
        bottom: 15px;
        right: auto;
    }
}
@media (min-width: 768px) {
    /** desktop **/
    .aiq_button {
        height: 60px;
        width: 60px;
        font-size: 31px;
        /** default **/
        right: 0;
        top: 50vh;
        margin-top: -30px;
    }
    .aiq_button.aiq_position_desktop_fixedleft {
        left: 0;
    }
    .aiq_button.aiq_position_desktop_fixedbottomright {
        right: 1em;
        bottom: 1em;
        top: auto;
    }
    .aiq_button.aiq_position_desktop_fixedbottomleft {
        left: 1em;
        right: auto;
        bottom: 1em;
        top: auto;
    }

    /** fields **/
    .aiq_fields_container input[type="text"] {
        height: 35px;
    }
    .aiq_fields_container .btn {
        height: 35px;
        display: flex;
        align-items: center;
    }
}


#aiq_response_container {
    max-height: 600px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    transition: all 0.5s linear;
}
@media (max-width: 768px) {
    #aiq_response_container {
        max-height: 65vh;
        overflow: auto;
    }
}

.aiq_form_container {
    margin-top: 20px;
}
.aiq_form_container .btn-primary {
    background: #2e94b9;
    color: #fff !important;
}

.aiq_answer {
    border: 1px solid #e8e7e7;
    border-radius: 10px;
    margin: 15px;
    padding: 15px;
    background: #fff;
    color: #111;
    clear: both;
    transition: all 0.2s linear;
}
.aiq_answer.aiq_intro {
    margin: 0;
    padding: 0;
    border: none;
}
.aiq_answer p:last-child {
    margin-bottom: 0;
}
.aiq_answer.typing  {
    opacity: 0.4;
}
.aiq_query {
    border: 1px solid #2e94b9;
    border-radius: 5px;
    margin: 15px 25px;
    padding: 5px 15px;
    background: #2e94b9;
    color: #fff !important;
    font-size: 13px;
    max-width: 30%;
    align-self: end;
    margin-bottom: -25px;
    z-index: 9;
}
@media (max-width: 768px) {
    .aiq_answer {
        font-size: 14px;
    }
    .aiq_query {
        font-size: 13px;
        max-width: 60%;
    }
}

.aiq_preset_container {
    margin: 7px 0;
}
.aiq_preset_container a {
    font-size: 12px;
    margin-right: 2px;
    display: inline-block;
    border: 1px solid #2e94b9;
    padding: 3px 7px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s linear;
    color: #2e94b9 !important;
}
.aiq_preset_container a:hover {
    text-decoration: none;
    background: #2e94b9;
    color: #fff !important;
}

/** questions **/
.aiq_questions_backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9;
}
.aiq_questions_container {
    position: absolute;
    left: 50%;
    width: 70%;
    margin-left: -35%;
    top: 20%;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    z-index: 99;
}
@media (max-width: 768px) {
    .aiq_questions_container {
        width: 90%;
        margin-left: -45%;
        top: 5%;
    }
}
.aiq_questions_form_container {
    padding: 1em;
}
.aiq_questions_container_close {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 1.3em;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s linear;
}
.aiq_questions_container_close:hover {
    opacity: 1;
}