@import "../utils/chat_variables.less";
@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}
.thinking {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--chat-bubble-content-bg-color);
    border-radius: 18px;
    width: fit-content;
    position: relative;
    z-index: 0;
    overflow: hidden;
    padding: 1.5rem;

    &::before {
        content: '';
        position: absolute;
        z-index: -2;
        left: -50%;
        top: -50%;
        width: 400%;
        height: 400%;
        background-repeat: no-repeat;
        background-size: 50% 50%, 50% 50%;
        background-position: 0 0, 100% 0, 100% 100%, 0 100%;
        background-image:  var(--chat-thinking-border-gradient);
        animation: rotate 4s linear infinite;
    }

    &::after {
        content: '';
        position: absolute;
        z-index: -1;
        left: 6px;
        top: 6px;
        width: calc(100% - 12px);
        height: calc(100% - 12px);
        background: white;
        border-radius: 5px;
    }


    &__message {
        font-style: italic;
        margin: 0;
    }

    &__icon {
        margin-right: 0.5rem;
        vertical-align: middle;
        width: 20px;
    }
}
