@import "https://fonts.googleapis.com/css?family=Noto+Sans";

* {
    box-sizing: border-box;
}

[class*="boltai-"] {
    font-size: 16px !important;
}

.boltai-selection {
    columns: 3;
}

.boltai-selection-text {
    font-size: 1rem;
}

.boltai-input {
    width: 50%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.boltai-btn {
    background-color: #4caf50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    font-size: 1.25rem;
    border-radius: 4px;
    cursor: pointer;
}

.dashicons-format-chat {
    font-size: 49px !important;
    color: #fff;
    position: absolute;
    top: 33%;
    left: 28%;
    transform: translate(-50%, -50%);
}

.boltai-floating-chat {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px !important;
    color: #fff;
    position: fixed;
    bottom: 64px;
    right: 64px;
    width: 64px;
    height: 64px;
    transform: translateY(100px);
    transition: all 250ms ease-out;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #69798a, #06223f);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.boltai-chat_msg_container {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: #ccc 1px dotted;
    border-left: #ccc 1px dotted;
    border-right: #ccc 1px dotted;
}

.boltai-chat_msg_container:first-of-type {
    border-top: #ccc 1px dotted;
}

.boltai-chat_msg_element {
    display: flex;
    flex-direction: column;
    border-left: #ccc 1px dotted;
}

.boltai-chat_msg_container:nth-child(odd) {
    background-color: whitesmoke;
}

.boltai-floating-chat.enter:hover {
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.19),
        0 6px 6px rgba(0, 0, 0, 0.23);
    opacity: 1;
}

.boltai-floating-chat.enter {
    transform: translateY(0);
    opacity: 1;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.14);
}

.boltai-floating-chat.expand {
    width: 400px;
    max-height: 80%;
    resize: both;
    min-height: 600px;
    border-radius: 10px;
    cursor: auto;
    opacity: 1;
    pointer-events: auto;
    background: #fff;
    border: 1px solid #ccc;
}

@media screen and (max-width: 768px) {
    .boltai-floating-chat.expand {
        width: 93%;
        height: 80%;
        left: 15px;
        right: 15px;
        border-radius: 10px;
        cursor: auto;
        opacity: 1;
    }

    .boltai-floating-chat {
        bottom: 70px;
        right: 15px;
    }
}

.boltai-reference {
    display: flex;
    flex-wrap: wrap;
    width: auto;
}

.boltai-ref_summary {
    display: revert;
}

.boltai-ref_summary:hover {
    cursor: pointer;
}

.boltai-ref_summary:focus {
    outline-style: none;
}

.boltai-floating-chat .boltai-cstm_butn:hover {
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.35);
}

.boltai-floating-chat .boltai-cstm_butn#close {
    height: 45px;
    width: 45px;
    border-radius: 100%;
    border: 1px solid #ccc;
    font-size: 32px !important;
    line-height: 0px;
    padding: 9px;
}


*:focus {
    outline: none;
}


.boltai-floating-chat .boltai-tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: gray;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    font-size: 1.75rem;
    right: 0;
    margin-right: -10px;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
}

.boltai-floating-chat .boltai-tooltiptext::after {
    content: " ";
    position: absolute;
    top: 100%;
    left: 67%;
    margin-left: 16px;
    border-width: 10px;
    border-style: solid;
    border-color: gray transparent transparent transparent;
}
@media (hover: hover) {
    .boltai-floating-chat:not(.expand):hover .boltai-tooltiptext {
        visibility: visible;
    }
}

.boltai-floating-chat .boltai-cstm_butn#boltai_sendMessage {
    height: 64px;
    width: 64px;
    border-radius: 100%;
    border: 1px solid #ccc;
    font-size: 32px !important;
    line-height: 0px;
    padding: 8px;
}

.boltai-floating-chat .boltai-chat {
    display: flex;
    flex-direction: column;

    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    border-radius: 50%;
    transition: all 250ms ease-out;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.boltai-floating-chat .boltai-chat.enter {
    opacity: 1;
    border-radius: 0;
    width: auto;
    height: auto;
}

.boltai-floating-chat .boltai-chat .boltai-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: center;
    color: #06223f;
    max-height: 64px;
    padding: 5px;
    border-bottom: 1px solid #ccc;
}

.boltai-floating-chat .boltai-chat .boltai-header .boltai-title {
    border-top-left-radius: 5px;
    font-size: 20px !important;
    height: 100%;
    align-content: center;
    margin-right: 5px;
    flex-grow: 1;
    flex-shrink: 1;
}

.boltai-floating-chat .boltai-chat .boltai-messages {
    margin: 0;
    width: 100%;
    list-style: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 10px;
    padding-right: 10px;
    z-index: 5;
    flex-grow: 1;
    position: relative;
    user-select: text;
    background: #ebeff1;
}

.boltai-floating-chat .boltai-chat .boltai-messages::-webkit-scrollbar {
    width: 10px;
}

.boltai-floating-chat .boltai-chat .boltai-messages::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: rgba(25, 147, 147, 0.1);
}

.boltai-floating-chat .boltai-chat .boltai-messages::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(25, 147, 147, 0.2);
}

.boltai-floating-chat .boltai-chat .boltai-messages li {
    position: relative;
    clear: both;
    display: inline-block;
    padding: 10px;
    margin: 0 0 20px 0;
    font:
        12px/16px "Noto Sans",
        sans-serif;
    border-radius: 10px;
    background-color: #c6e3fa;
    word-wrap: break-word;
    max-width: 100%;
    user-select: text;
}

.boltai-floating-chat .boltai-chat .boltai-messages li:before {
    position: absolute;
    top: 0;
    width: 25px;
    height: 25px;
    border-radius: 25px;
    content: "";
    background-size: cover;
}

.boltai-floating-chat .boltai-chat .boltai-messages li:after {
    position: absolute;
    top: 10px;
    content: "";
    width: 0;
    height: 0;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-default,
.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-default-bottom,
.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-info {
    animation: show-chat-even 0.15s 1 ease-in;
    display: flex;
    justify-content: space-around;
    width: 100%;
    text-align: justify;
    align-items: center;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #151616;
    background-color: #fff3cd;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-other {
    animation: show-chat-odd 0.15s 1 ease-in;
    float: left;
    margin-left: 50px;
    text-align: left;
    background-color: #fff;
    color: #151616;
    max-width: 81%;
    user-select: text;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-other.processing {
    animation-duration: 20s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: placeHolderShimmer;
    animation-timing-function: linear;
    background: linear-gradient(to right, #fce69e 8%, #fce69e 18%, #fff3cd 33%);
    -webkit-backface-visibility: hidden;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-other:before {
    left: -45px;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    font-family: dashicons;
    text-align: center;
    line-height: 42px;
    font-size: 38px;
    content: "\f198";
    background-color: #fff;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-other .boltai-feedback {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 10px;
    width: 50%;
    color: #9c9c9c;
    font-size: 1.5rem;
}

.boltai-feedbacktext{
    font-size: 12px !important;
    color: #9c9c9c;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-other .boltai-feedback_up,
.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-other .boltai-feedback_down,
.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-other .boltai-feedback_delete {
    width: 33%;
    border-radius: 5px;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-other .boltai-feedback_up {
    color: #31cc31;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-other .boltai-feedback_down {
    color: #cc3232;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-other .boltai-feedback_up:hover {
    color: #fff;
    display: flex;
    justify-content: center;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.35);
    background-color: #31cc31;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-other .boltai-feedback_down:hover {
    color: #fff;
    display: flex;
    justify-content: center;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.35);
    background-color: #cc3232;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-other .boltai-feedback_down:hover {
    color: #fff;
    display: flex;
    justify-content: center;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.35);
    background-color: #3c31dd;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-other:after {
    border-left: 10px solid transparent;
    border-top: 10px solid #fff;
    left: -10px;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-self,
.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-self_temp {
    animation: show-chat-even 0.15s 1 ease-in;
    float: right;
    margin-right: 50px;
    text-align: left;
    max-width: 81%;
    color: #151616;
    user-select: text;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-self_temp {
    background-color: #fff;
    border: 2px solid #bce2ff;
    box-shadow: -10px 10px 10px rgba(0, 0, 0, 0.35);
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-self_temp:before,
.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-self:before {
    right: -45px;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    font-family: dashicons;
    text-align: center;
    line-height: 42px;
    font-size: 38px;
    content: "\f110";
    background-color: #bce2ff;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-self_temp:after,
.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-self:after {
    border-right: 15px solid transparent;
    border-top: 10px solid #bce2ff;
    transform: rotate(90deg);
    right: -10px;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-self_temp:hover {
    background-color: #bce2ff;
}

.boltai-floating-chat .boltai-chat .boltai-messages li.boltai-self boltai-cdate {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    margin-left: auto;
    width: 100%;
    text-align: right;
    color: #9c9c9c;
    font-size: 12px !important;
    padding-top: 1rem;
}


.boltai-floating-chat .boltai-chat .boltai-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    padding-left: 10px;
    padding-right: 10px;
    border-top: 1px solid #ccc;
    padding: 5px;
}

.boltai-floating-chat .boltai-chat .boltai-footer .boltai-text-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #fff;
    overflow-y: auto;
    max-height: 80px;
    margin-right: 5px;
    width: 85%;
    font-size: 20px !important;
    color: #151616;
    text-align: left;
    vertical-align: middle;
}

.boltai-text-box[placeholder]:empty:before {
    content: attr(placeholder);
    color: #ccc;
}

.boltai-text-box[placeholder]:empty:focus:before {
    content: "";
}

.boltai-footer_action {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 100%;
    max-height: 80px;
    width: 100%;
}

@keyframes placeHolderShimmer {
    0% {
        background-position: 0;
    }
    100% {
        background-position: 100em 0;
    }
}

@keyframes show-chat-even {
    0% {
        margin-left: -480px;
    }
    100% {
        margin-left: 0;
    }
}

@keyframes show-chat-odd {
    0% {
        margin-right: -480px;
    }
    100% {
        margin-right: 0;
    }
}

.disclaimer {
    color: #cc3232;
}

.boltai-chatGroup {
    display: inline-block;
    margin-bottom: 20px;
    width: 100%;
    height: fit-content;
}

curve {
    position: absolute;
    height: 250px;
    width: 100%;
    bottom: 0;
    text-align: center;
}

.curve::before {
    content: "";
    display: block;
    position: absolute;
    border-radius: 100% 50%;
    width: 55%;
    height: 100%;
    transform: translate(85%, 60%);
    background-color: hsl(216, 21%, 16%);
}

.curve::after {
    content: "";
    display: block;
    position: absolute;
    border-radius: 100% 50%;
    width: 55%;
    height: 100%;
    background-color: #3c31dd;
    transform: translate(-4%, 40%);
    z-index: -1;
}

.boltai-overview-item-server-status-live {
    color: #31cc31;
}
.boltai-overview-item-server-status-offline {
    color: #cc3232;
}