.sfm-space-bubble {
    align-items: center;
    background: #0c356a;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    bottom: max(18px, env(safe-area-inset-bottom));
    box-shadow: 0 18px 45px rgba(7, 17, 31, 0.22);
    color: #ffffff !important;
    display: inline-flex;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 850;
    gap: 10px;
    line-height: 1;
    min-height: 54px;
    max-width: calc(100vw - 28px);
    padding: 7px 18px 7px 8px;
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    text-decoration: none !important;
    transform: translateZ(0);
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    white-space: nowrap;
    z-index: 99990;
}

.sfm-space-bubble:hover,
.sfm-space-bubble:focus {
    background: #124a8d;
    box-shadow: 0 22px 55px rgba(7, 17, 31, 0.28);
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
}

.sfm-space-bubble:focus-visible {
    outline: 3px solid rgba(240, 88, 34, 0.46);
    outline-offset: 4px;
}

.sfm-space-bubble-mark {
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 40px;
    justify-content: center;
    overflow: hidden;
    width: 40px;
}

.sfm-space-bubble-mark img {
    display: block;
    height: 34px;
    object-fit: contain;
    width: 34px;
}

.sfm-space-bubble-text {
    display: block;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .sfm-space-bubble {
        bottom: max(14px, env(safe-area-inset-bottom));
        min-height: 50px;
        padding-right: 15px;
        right: max(14px, env(safe-area-inset-right));
    }

    .sfm-space-bubble-mark {
        height: 36px;
        width: 36px;
    }

    .sfm-space-bubble-mark img {
        height: 30px;
        width: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sfm-space-bubble {
        transition: none;
    }

    .sfm-space-bubble:hover,
    .sfm-space-bubble:focus {
        transform: none;
    }
}

@media print {
    .sfm-space-bubble {
        display: none !important;
    }
}
