.h2o-ai-agent__bubble {
    border: 0;
    border-radius: 58% 42% 51% 49% / 47% 56% 44% 53%;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .16), 0 3px 10px rgba(15, 23, 42, .08);
}

.h2o-ai-agent__bubble::before {
    top: calc(100% - 5px);
    left: 54%;
    width: 22px;
    height: 24px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 28% 100%);
    filter: drop-shadow(4px 6px 5px rgba(15, 23, 42, .14));
    transform: translateX(-50%) rotate(12deg);
}

.h2o-ai-agent__bubble::after {
    display: none;
}

.h2o-ai-agent__dismiss {
    border: 0;
    box-shadow: 0 5px 15px rgba(15, 23, 42, .13);
}

.h2o-ai-agent__chat {
    overflow: visible;
    border: 0;
    border-radius: 42px 30px 45px 33px / 36px 44px 31px 41px;
    background: #fff;
    box-shadow: 0 26px 66px rgba(15, 23, 42, .20), 0 6px 20px rgba(15, 23, 42, .10);
}

.h2o-ai-agent__chat::before,
.h2o-ai-agent__chat::after {
    content: '';
    position: absolute;
    z-index: 0;
    top: 56%;
    pointer-events: none;
}

.h2o-ai-agent__chat::before {
    left: -34px;
    width: 36px;
    height: 31px;
    background: #fff;
    clip-path: polygon(100% 0, 100% 100%, 0 58%);
    filter: drop-shadow(-5px 6px 6px rgba(15, 23, 42, .13));
    transform: translateY(-50%) rotate(-5deg);
}

.h2o-ai-agent__chat::after {
    display: none;
}

.h2o-ai-agent__chat > * {
    position: relative;
    z-index: 1;
}

.h2o-ai-agent__chat-header {
    padding: 17px 20px 14px;
    border-bottom: 0;
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, .08);
}

.h2o-ai-agent__chat-header strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .01em;
}

.h2o-ai-agent__chat-close {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    padding: 0 0 2px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .14);
    font-size: 21px;
    font-weight: 800;
}

.h2o-ai-agent__messages {
    padding: 18px 20px 14px;
}

.h2o-ai-agent__message {
    border-radius: 19px 15px 20px 14px / 17px 19px 15px 20px;
}

.h2o-ai-agent__form {
    padding: 14px 16px 16px;
    border-top: 0;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, .08);
}

.h2o-ai-agent__input {
    border: 0;
    border-radius: 20px 16px 19px 15px / 17px 20px 16px 19px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .13), 0 3px 10px rgba(15, 23, 42, .05);
}

.h2o-ai-agent__send {
    border: 0;
    border-radius: 52% 48% 46% 54% / 48% 52% 48% 52%;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .18);
}

@media (max-width: 760px) {
    .h2o-ai-agent__chat {
        bottom: 18px;
        border-radius: 34px 26px 37px 28px / 30px 37px 27px 34px;
    }

    .h2o-ai-agent__chat::before,
    .h2o-ai-agent__chat::after {
        left: auto;
        top: -1px;
        transform-origin: bottom center;
    }

    .h2o-ai-agent__chat::before {
        right: 45px;
        width: 29px;
        height: 27px;
        background: #fff;
        clip-path: polygon(0 100%, 100% 100%, 68% 0);
        filter: drop-shadow(3px -5px 5px rgba(15, 23, 42, .12));
        transform: translateY(-86%) rotate(5deg);
    }

    .h2o-ai-agent__chat::after {
        display: none;
    }
}
