.gbwd-root {
    --gbwd-bottom-offset: 18px;
    position: fixed;
    right: max(18px, env(safe-area-inset-right, 0px));
    bottom: calc(var(--gbwd-bottom-offset) + env(safe-area-inset-bottom, 0px));
    z-index: 99950;
    font-family: inherit;
}

.gbwd-root[hidden],
.gbwd-root.gbwd-blocked {
    display: none !important;
}

.gbwd-launcher {
    display: inline-flex;
    min-width: 132px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: #20b95a;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none !important;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.gbwd-launcher:hover {
    background: #159447;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
    color: #fff !important;
    transform: translateY(-1px);
}

.gbwd-launcher:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.gbwd-icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

html.gbwd-ready #joinchat,
html.gbwd-ready .joinchat {
    display: none !important;
}

@media (max-width: 767px) {
    .gbwd-root {
        right: max(12px, env(safe-area-inset-right, 0px));
    }

    .gbwd-launcher {
        width: 48px;
        min-width: 48px;
        height: 48px;
        min-height: 48px;
        padding: 0;
    }

    .gbwd-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gbwd-launcher {
        transition: none;
    }
}
