
.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;
}
.carbonai-user-input-form{
    position: relative;
    bottom: 0;
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: row;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.carbonai-user-input-form textarea{
    background-color: #fff;
    border: none;
    color: #222;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    max-height: 192px;
    outline: none;
    overflow: auto;
    overflow-y: scroll;
    padding: 12px 8px;
    resize: none;
    width: 100%;
}
.carbonai-user-input-form textarea::-webkit-scrollbar {
    display: none;
}
.carbonai-user-input-form #carbonai-send-button {
    width: 46px;
    height: 36px;
    background-color: #5025d1;
    color: #f8f8f8;
    font-size: 20px;
    border:0;
    border-radius: 5px;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.carbon-chatbot-display-box #carbonai-chatgpt-response {
    flex: 1;
}
.carbon-chatbot-display-box.carbonshowaichat {
    height: calc(100vh - 200px);
    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;
}
#carbonai-chatgpt-response ul, #carbonai-chatgpt-response ol {
    margin-left: 20px; 
    padding-left: 0;
}
#carbonai-chatgpt-response ul li, #carbonai-chatgpt-response ol li{
    margin-bottom: 10px;
}
.carbon-chatbot-ask, .carbon-chatbot-answer {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: flex-start;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    padding: 15px;
    gap: 12px;
}
.carbon-chatbot-answer {
    background-color: #f2f3f6;
    border-radius: 8px;
}
.carbon-chatbot-ask__message, .carbon-chatbot-answer__message {
    flex: 1;
}
.carbon-chatbot-ask__message p:last-child, .carbon-chatbot-answer__message p:last-child{
    margin-bottom: 0;
}

.chatbot-answer__icon, .chatbot-ask__icon {
    width: 25px;
    height: 25px;
    background-color: #5025D1;
    color: #fff;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.chatbot-ask__icon {
    background-color: #ddd;
    color: #333;
}
.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;
}
.carbonai-chatbot-limit {
    padding: 10px 20px;
    text-align: center;
    margin-top: 20px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: #FFF5F5;
    line-height: 1.5;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    visibility: hidden;
    position: absolute; /* Initially hidden and taken out of the flow */
    bottom: 0;
    left: 0;
}
.carbonai-chatbot-limit.chatbotlimit-show {
    opacity: 1;
    transform: translateY(0); 
    visibility: visible;
    position: relative;
}
.carbonai-chatbot-limit p {
    margin: 0;
}
#carbonai-send-button i {
    transform: rotate(270deg);
}
@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);;
    }
}