:root {
    --form-gpt-dark-bg: #34383C;
    --form-gpt-bg: #34383C;
    --form-gpt-bg-2: #404349;
    --text-light: #E0E1E3;
    --form-green: #4EBD95;
    --form-error: #E12626;
}
.form-gpt-chat-result .results-wrapper::-webkit-scrollbar {
    width: 6px;
    background: var(--form-gpt-bg);
    border-radius: 20px;
}
.form-gpt-chat-wrapper.floating {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0px;
    z-index: 9999999;
}

.form-gpt-chat-wrapper.floating i{
    transition: transform 0s 0.4, opacity 0.4s 0s;
}

.form-gpt-chat-wrapper.floating.show i.open, 
.form-gpt-chat-wrapper.floating i.close {
    max-width: 0px !important;
    opacity: 0;
    scale: 0;
}

.form-gpt-chat-wrapper.floating i.open, 
.form-gpt-chat-wrapper.floating.show i.close  {
    opacity: 1;
    scale: 1;
    max-width: 100% !important;
}



.form-gpt-chat-wrapper.floating .form-gpt-chat-result{
    transition: transform 0.8s, scale 0s 0.8s, max-height 0s 0.4s;
    max-height: 0px;
}
.form-gpt-chat-wrapper.floating.left .form-gpt-chat-result{
    transform: translateX(-150%);
    scale: 0;
}
.form-gpt-chat-wrapper.floating.right  .form-gpt-chat-result{
    transform: translateX(150%);
    scale: 0;
}
.form-gpt-chat-wrapper.floating.show .form-gpt-chat-result {
    transition: transform 0.8s 0s, scale 0s 0s;
    transform: translateX(0);
    scale: 1;
    max-height: 100%;
}


.form-gpt-chat-wrapper.left {
    left: 0px;
}
.form-gpt-chat-wrapper.right {
    right: 0px;
}
.form-gpt-chat-wrapper .floating-icon {
    display: flex;
    flex-direction: row;
    cursor: pointer;
}

.form-gpt-chat-wrapper .floating-icon.left {
    justify-content: flex-start;
}
.form-gpt-chat-wrapper .floating-icon.right {
    justify-content: flex-end;
}
.form-gpt-chat-wrapper .floating-icon-wrapper {
    padding: 12px;
    line-height: 0px;
    display: flex;
}

.form-gpt-chat-wrapper .floating-icon-wrapper i{
    font-size: 18px;
    width: 18px !important;
    display: flex;
    flex-direction: row;
    justify-content: center;
}


 
.form-gpt-chat-result .results-wrapper::-webkit-scrollbar-thumb {
    background: var(--form-gpt-bg-2);
    border-radius: 20px;
}
.hide {
    display: none !important;
}
.form-gpt-chat-result {
    display: flex;
    flex-direction: column;
    background: var(--form-gpt-bg);
    border-radius: 3px;
    padding: 12px;
    row-gap: 12px;
    box-shadow: 0px 0px 20px -3px rgb(0 0 0 / 21%);
}
.form-gpt-chat-result .bottom-bar {
    display: flex;
    font-size: 12px;
    font-weight: 700;
    flex-direction: row;
    align-items: center;
    column-gap: 8px;
    justify-content: flex-start;
}
.form-gpt-chat-result .regenerate-button {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 6px;
}
.form-gpt-chat-result .results-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    min-height: 360px;
    max-height: 360px;
    overflow-y: auto;
}
.form-gpt-chat-result .result-item {
    position: relative;
    color: var(--text-light);
    display: flex;
    flex-direction: row;
    align-items: bottom;
    gap: 8px;
}
.form-gpt-chat-result .result-item.system,
.form-gpt-chat-result .result-item.assistant  {
    align-self: flex-start;
}
.form-gpt-chat-result .result-item.user {
    flex-direction: row-reverse;
}
.form-gpt-chat-result .result-item:is(.system, .assistant) .message-content {
    border-bottom-left-radius: 0px;
}
.form-gpt-chat-result .result-item:is(.user) .message-content {
    border-bottom-right-radius: 0px;
}
.form-gpt-chat-result .result-item .message-content {
    background: var(--form-gpt-bg-2);
    padding: 8px 12px;
    font-size: 15px;
    border-radius: 18px;
}
.form-gpt-chat-result .message-content p:last-child {
    margin: 0px;
}
.form-gpt-chat-result .image-wrapper {
    display: flex;
    border-radius: 100%;
    align-items: flex-end;
}
.form-gpt-chat-result .user-image {
    min-width: 26px;
    border-radius: 100%;
    width: 26px;
}
.form-gpt-chat-result .result-item .result-image {
    border-radius: 6px;
    margin: 6px 0px;
}

.clean-btn {
    cursor: pointer;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    color: #ffffffb3;
    font-size: 13px;
    font-weight: 600;
    left: 0;
    bottom: 0;
    padding: 3px 0px;
    transition: all 0.4s;
}
.clean-btn:hover {
    color: #fff;
}
/** typing */
.typing {
    position: relative;
    display: flex;
    flex-direction: row;
    column-gap: 6px;
    padding: 6px 12px;
}
.typing div {
    content: "";
    -webkit-animation: blink 1.5s infinite;
            animation: blink 1.5s infinite;
    -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
    height: 10px;
    width: 10px;
    background: #4EBD95;
    left: 0;
    top: 0;
    border-radius: 50%;
}
.typing div:nth-child(2) {
    -webkit-animation-delay: 0.2s;
            animation-delay: 0.2s;
}
.typing div:nth-child(3) {
    -webkit-animation-delay: 0.4s;
            animation-delay: 0.4s;
}
.formgpt-form-container form {
    display: grid;
    grid-template-columns: 80% 1fr;
}
.formgpt-form-container .formgpt-chat-field {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    border: none;
    background: var(--form-gpt-bg-2);
    color: var(--text-light);
}
.formgpt-form-container .formgpt-chat-field:focus-visible {
    outline: none;
}
.formgpt-form-container .formgpt-chat-button {
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    color: var(--text-light);
    border: none;
    background: var(--form-green);
}
.form-gpt-chat-result .fast-questions {
    display: flex;
    flex-direction: row;
    column-gap: 6px;
    overflow-x: overlay;
    color: #fff;
    font-size: 12px;
}

.form-gpt-chat-result .fast-question {
    padding: 3px 8px;
    cursor: pointer;
    background: var(--form-gpt-bg-2);
    border-radius: 6px;
    white-space: nowrap;
}

@-webkit-keyframes blink {
    0% {
        opacity: 0.1;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0.1;
    }
}

@keyframes blink {
    0% {
        opacity: 0.1;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0.1;
    }
}