.wblivechat-widget {
    position: fixed;
    z-index: 1000;
    bottom: calc(22px + var(--wblivechat-bottom-offset, 0px));
    display: grid;
    justify-items: end;
    gap: 12px;
    font-family: inherit;
}

.wblivechat-widget--bottom-right {
    right: 22px;
}

.wblivechat-widget--bottom-left {
    left: 22px;
    justify-items: start;
}

.wblivechat-widget__trigger {
    width: 58px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(8, 112, 52, .22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.wblivechat-widget__trigger:hover,
.wblivechat-widget__trigger:focus {
    box-shadow: 0 18px 36px rgba(8, 112, 52, .34);
    transform: translateY(-2px);
}

.wblivechat-widget__trigger:focus-visible,
.wblivechat-widget__close:focus-visible,
.wblivechat-widget__action:focus-visible {
    outline: 3px solid rgba(32, 179, 88, .28);
    outline-offset: 3px;
}

.wblivechat-widget__icon,
.wblivechat-widget__icon img {
    width: 58px;
    height: 58px;
    display: block;
}

.wblivechat-widget__icon img {
    border-radius: 999px;
    object-fit: contain;
}

.wblivechat-widget__panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: min(320px, calc(100vw - 28px));
    padding: 20px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    background: #fff;
    color: #172033;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.wblivechat-widget--bottom-left .wblivechat-widget__panel {
    right: auto;
    left: 0;
}

.wblivechat-widget.is-open .wblivechat-widget__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.wblivechat-widget__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #eef2f7;
    color: #172033;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.wblivechat-widget__message {
    padding-right: 28px;
    font-size: 15px;
    line-height: 1.55;
}

.wblivechat-widget__message p {
    margin: 0 0 10px;
}

.wblivechat-widget__message p:last-child {
    margin-bottom: 0;
}

.wblivechat-widget__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #20b358;
    color: #fff !important;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .18s ease, transform .18s ease;
}

.wblivechat-widget__action:hover,
.wblivechat-widget__action:focus {
    background: #178e47;
    color: #fff !important;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .wblivechat-widget {
        bottom: calc(20px + var(--wblivechat-bottom-offset, 0px));
    }

    .wblivechat-widget--bottom-right {
        right: 14px;
    }

    .wblivechat-widget--bottom-left {
        left: 25px;
    }

    .wblivechat-widget__trigger {
        width: 52px;
        height: 52px;
    }

    .wblivechat-widget__icon,
    .wblivechat-widget__icon img {
        width: 52px;
        height: 52px;
    }

    .wblivechat-widget__panel {
        bottom: 64px;
        width: min(300px, calc(100vw - 28px));
        padding: 18px;
    }
}
