.nature-buddy {
    bottom: 30px;
    display: grid;
    gap: 10px;
    justify-items: end;
    max-width: min(320px, calc(100vw - 28px));
    position: fixed;
    right: 18px;
    transform: translateY(120%);
    transition: transform .45s ease, opacity .3s ease;
    z-index: 99990;
}

.nature-buddy.is-visible {
    transform: translateY(0);
}

.nature-buddy.is-hidden {
    display: none;
}

.nature-buddy-bubble {
    background: #ffffff;
    border: 1px solid rgba(20, 69, 47, .16);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(20, 69, 47, .16);
    color: #263128;
    font-size: 14px;
    line-height: 1.45;
    min-width: 210px;
    padding: 12px 40px 12px 14px;
    position: relative;
}

.nature-buddy-bubble::after {
    border-left: 10px solid transparent;
    border-right: 0 solid transparent;
    border-top: 12px solid #ffffff;
    bottom: -10px;
    content: "";
    position: absolute;
    right: 42px;
}

.nature-buddy-close {
    align-items: center;
    background: #eef5ec;
    border: 0;
    border-radius: 50%;
    color: #14452f;
    display: flex;
    font-size: 16px;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 9px;
    top: 9px;
    width: 24px;
}

.nature-buddy-close:hover {
    background: #14452f;
    color: #ffffff;
}

.nature-buddy-character {
    align-items: center;
    background: #ffffff;
    border: 2px solid #eddd5e;
    border-radius: 50%;
    box-shadow: 0 16px 30px rgba(20, 69, 47, .22);
    cursor: pointer;
    display: grid;
    height: 78px;
    justify-items: center;
    padding: 7px;
    position: relative;
    transition: transform .18s ease;
    width: 78px;
}

.nature-buddy-character:hover {
    transform: translateY(-3px) rotate(-2deg);
}

.nature-buddy-logo {
    border-radius: 50%;
    height: 58px;
    object-fit: cover;
    width: 58px;
}

.nature-buddy-clip {
    border: 3px solid #14452f;
    border-left-color: transparent;
    border-radius: 999px;
    bottom: -9px;
    height: 36px;
    position: absolute;
    right: 0;
    transform: rotate(27deg);
    width: 20px;
}

.nature-buddy-grass {
    align-items: end;
    bottom: -5px;
    display: none;
    gap: 2px;
    height: 18px;
    left: 10px;
    position: absolute;
}

.nature-buddy-grass span {
    background: #5b8c51;
    border-radius: 8px 8px 0 0;
    display: block;
    width: 4px;
}

.nature-buddy-grass span:nth-child(1) { height: 12px; }
.nature-buddy-grass span:nth-child(2) { height: 18px; }
.nature-buddy-grass span:nth-child(3) { height: 10px; }

.nature-buddy-zzz {
    color: #14452f;
    display: none;
    font-size: 13px;
    font-weight: 800;
    position: absolute;
    right: -7px;
    top: -12px;
}

.nature-buddy.is-talking .nature-buddy-character {
    animation: nature-buddy-hop .9s ease;
}

.nature-buddy.is-idle .nature-buddy-character {
    animation: nature-buddy-sleep 2.6s ease-in-out infinite;
}

.nature-buddy.is-idle .nature-buddy-grass,
.nature-buddy.is-idle .nature-buddy-zzz {
    display: flex;
}

@keyframes nature-buddy-hop {
    0%, 100% { transform: translateY(0) rotate(0); }
    35% { transform: translateY(-10px) rotate(-4deg); }
    70% { transform: translateY(0) rotate(3deg); }
}

@keyframes nature-buddy-sleep {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(3px) rotate(2deg); }
}

@media (max-width: 575px) {
    .nature-buddy {
        bottom: 22px;
        right: 12px;
    }

    .nature-buddy-bubble {
        font-size: 13px;
        min-width: 190px;
    }

    .nature-buddy-character {
        height: 70px;
        width: 70px;
    }

    .nature-buddy-logo {
        height: 52px;
        width: 52px;
    }
}
