.hosted-floating-actions {
    --hosted-floating-accent: #3478f6;
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
    z-index: 1040;
    display: grid;
    justify-items: end;
    gap: 11px;
    pointer-events: none;
}

.hosted-floating-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    overflow: visible;
    color: #fff;
    background: var(--hosted-floating-accent);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(20, 35, 70, .24);
    cursor: pointer;
    pointer-events: auto;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.hosted-floating-action[hidden] {
    display: none !important;
}

.hosted-floating-action svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.hosted-floating-action--top {
    color: #2f4263;
    background: rgba(255, 255, 255, .96);
    border-color: rgba(130, 147, 176, .32);
}

.hosted-floating-action:hover,
.hosted-floating-action:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(20, 35, 70, .3);
}

.hosted-floating-action--top:hover,
.hosted-floating-action--top:focus-visible {
    color: var(--hosted-floating-accent);
}

.hosted-floating-action:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .96);
    outline-offset: 3px;
}

.hosted-floating-action__label {
    position: absolute;
    right: calc(100% + 10px);
    padding: 6px 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    background: rgba(18, 28, 47, .9);
    border-radius: 7px;
    opacity: 0;
    transform: translateX(5px);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

.hosted-floating-action:hover .hosted-floating-action__label,
.hosted-floating-action:focus-visible .hosted-floating-action__label {
    opacity: 1;
    transform: translateX(0);
}

.dark .hosted-floating-action--top,
.dark-mode .hosted-floating-action--top {
    color: #f3f6fc;
    background: rgba(24, 31, 44, .96);
    border-color: rgba(155, 173, 204, .4);
}

@media (max-width: 767.98px) {
    .hosted-floating-actions {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px));
        gap: 9px;
    }

    .hosted-floating-action {
        width: 48px;
        height: 48px;
    }

    .hosted-floating-action__label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hosted-floating-action,
    .hosted-floating-action__label {
        transition: none;
    }
}

