
.carbon-chatbot-button {
    align-items: center;
    background-color: hsl(255, 77%, 57%);
    border: 0;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    line-height: 24px;
    padding: 8px 16px 8px 16px;
    color: #fff;
    align-self: flex-end;
}
.carbon-chatbot-container {
    bottom: 0;
    display: flex;
    filter: drop-shadow(0 0 12px rgba(29, 30, 32, .16));
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: fixed;
    right: 8px;
    width: 400px;
    z-index: 999;
    position: fixed;
    bottom: 20px;
    right: 20px;
    gap: 20px;
}

.carbon-chatbot-header {
    background-color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 15px;
}
.carbon-chatbot-header p {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}
.carbon-chatbot-header .chatbot-action-close {
    cursor: pointer;
    min-width: 20px;
    min-height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carbon-chatbot-display-box {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
    width: 0;
    height: 0;
    padding: 0;
    opacity: 0;
    align-self: flex-end;
}
.carbon-chatbot-display-box #carbonai-chatgpt-response {
    flex: 1;
}
.carbon-chatbot-display-box.carbonshowaichat {
    height: calc(100vh - 200px);
    max-height: 500px;
    min-height: 250px;
    width: 100%;
    padding: 10px;
    opacity: 1;
}

#carbonai-chatgpt-response {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 25px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.carbon-chatbot-ask, .carbon-chatbot-answer {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: flex-start;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    padding: 15px;
    gap: 12px;
}
.carbon-chatbot-answer {
    background-color: #f2f3f6;
    border-radius: 8px;
}
.carbon-chatbot-answer__message {
    flex: 1;
}
.carbon-chatbot-answer__message p:last-child{
    margin-bottom: 0;
}

.chatbot-answer__icon {
    width: 25px;
    height: 25px;
    background-color: #5025D1;
    color: #fff;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.chatbot-message-loader {
    width: 28px;
    display: inline-block;
    aspect-ratio: 4;
    --_g: no-repeat radial-gradient(circle closest-side,#444 90%,#0000);
    background: 
      var(--_g) 0%   50%,
      var(--_g) 50%  50%,
      var(--_g) 100% 50%;
    background-size: calc(100%/3) 100%;
    animation: chatbotmessageload 1s infinite linear;
}
@keyframes chatbotmessageload {
    33%{background-size:calc(100%/3) 0%  ,calc(100%/3) 100%,calc(100%/3) 100%}
    50%{background-size:calc(100%/3) 100%,calc(100%/3) 0%  ,calc(100%/3) 100%}
    66%{background-size:calc(100%/3) 100%,calc(100%/3) 100%,calc(100%/3) 0%  }
}
.chatbot-error-message {
    text-align: center;
    padding: 10px;
    color: red;
    border: 1px solid #ddd;
    margin-top: 20px;
}
@media (max-width: 480px) {
    .carbon-chatbot-container {
        width: 380px;
    }
    .carbon-chatbot-display-box.carbonshowaichat {
        height: calc(100vh - 180px);
    }
}
@media (max-width: 380px) {
    .carbon-chatbot-container {
        width: calc(100vw - 30px);;
    }
}