/* =========================================
   MAIN ASSISTANT
========================================= */

.ara-assistant {
    position: fixed;

    z-index: 999999;

    overflow: visible;

    pointer-events: none;
}

/* =========================================
   CHARACTER WRAP
========================================= */

.ara-character-wrap {
    position: relative;

    width: 100%;

    overflow: visible;

    pointer-events: auto;
}

/* =========================================
   CHARACTER IMAGES
========================================= */

.ara-character {
    width: 100%;
    height: auto;

    display: block;

    position: absolute;

    bottom: 0;
    left: 0;

    transition: opacity 0.25s ease;

    user-select: none;

    -webkit-user-drag: none;
}

/* Default Character */

.ara-default {
    opacity: 1;
    z-index: 2;
}

/* Hover Character */

.ara-hover {
    opacity: 0;
    z-index: 3;
}

/* =========================================
   HOVER IMAGE SWAP
========================================= */

.ara-assistant:hover .ara-default {
    opacity: 0;
}

.ara-assistant:hover .ara-hover {
    opacity: 1;
}

/* =========================================
   BUBBLES
========================================= */

.ara-bubble {
    position: absolute;

    left: 220px;
    bottom: 140px;

    width: 360px;

    padding: 24px 28px;

    background: #e69a96;

    border-radius: 28px;

    box-shadow:
        0 18px 36px rgba(0,0,0,0.14);

    color: #111111;

    font-size: 18px;
    line-height: 1.4;

    pointer-events: auto;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    opacity: 0;
    visibility: hidden;
}

/* =========================================
   BUBBLE TAIL
========================================= */

.ara-bubble::before {
    content: "";

    position: absolute;

    left: -10px;
    bottom: 36px;

    width: 24px;
    height: 24px;

    background: inherit;

    transform: rotate(45deg);

    border-radius: 4px;
}

/* =========================================
   INTRO BUBBLE
========================================= */

.ara-intro-bubble.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* =========================================
   HOVER BUBBLE
========================================= */

.ara-hover-bubble {
    display: flex;
    flex-direction: column;

    gap: 18px;

    opacity: 0;
    visibility: hidden;
}

.ara-hover-bubble.active {
    opacity: 1;
    visibility: visible;
}

/* Show Hover Bubble */

.ara-assistant:hover .ara-hover-bubble {
    opacity: 1;
    visibility: visible;
}

/* Hide Intro Bubble On Hover */

/* =========================================
   BUTTON
========================================= */

.ara-button {
    display: inline-block;

    align-self: flex-start;

    padding: 12px 20px;

    background: #c0392b;

    color: #ffffff;

    border-radius: 999px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.ara-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .ara-assistant {
        width: 170px !important;
        left: 10px !important;
        bottom: 10px !important;
    }

    .ara-bubble {
    position: absolute;

    left: 180px;
    bottom: 140px;

    width: 360px;

    padding: 24px 28px;

    background: #e69a96;

    border-radius: 28px;

    overflow: visible;

    box-shadow:
        0 18px 36px rgba(0,0,0,0.14);

    color: #111111;

    font-size: 18px;
    line-height: 1.4;

    pointer-events: auto;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    opacity: 0;
    visibility: hidden;
}

    .ara-bubble::before {
        width: 22px;
        height: 22px;

        left: -10px;
    }

    .ara-button {
        font-size: 13px;

        padding: 10px 16px;
    }
}