@import "./utils/chat_variables.less";


.chatPopup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    &--bottom-left {
        right: auto;
        left: 24px;
        align-items: flex-start;
    }

    &--top-right {
        bottom: auto;
        top: 7rem;
        flex-direction: column-reverse;
    }

    &--top-left {
        bottom: auto;
        top: 7rem;
        right: auto;
        left: 24px;
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    &--custom {
        position: static;
    }




    &--open {
        background-color: var(--chat-popup-open-bg-color);
        border-radius: var(--chat-popup-open-border-radius);
        box-shadow: var(--chat-popup-open-box-shadow);
        border: 1px solid var(--chat-popup-open-border-color);
        margin-bottom: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--chat-popup-open-color);
    }

    &__toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        background-color: var(--chat-toggle-bg-color);
        color: var(--chat-toggle-color);
        font-weight: 600;
        padding: 0.75rem 1.25rem;
        border-radius: 99em;
        box-shadow: var(--chat-toggle-box-shadow);
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 16px;

        &:hover {
            background-color: var(--chat-toggle-bg-color-hover);
            transform: scale(1.05);

            .chatPopup__icon {
                transform: rotate(12deg);
            }
        }

        &--active {
            background-color: var(--chat-toggle-active-bg-color);

            &:hover {
                background-color: var(--chat-toggle-active-bg-color-hover);
            }
        }
    }

    &__icon {
        width: 20px;
        height: 20px;
        fill: currentColor;
        transition: transform 0.2s;
    }
}

/* Vue Transitions (Utility) */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s, transform 0.3s;
}

.fade-enter,
.fade-leave-to {
    opacity: 0;
    transform: translateY(20px);
}
