.xl-contact-fab {
    position: fixed;
    z-index: 1000;
    right: 18px;
    right: max(18px, env(safe-area-inset-right));
    bottom: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    min-width: 148px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 17px 8px 13px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, #229ed9 0%, #1976b9 100%);
    box-shadow: 0 14px 34px rgba(18, 93, 139, .28);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.xl-contact-fab:hover {
    color: #fff !important;
    box-shadow: 0 18px 42px rgba(18, 93, 139, .36);
    transform: translateY(-2px);
}

.xl-contact-fab:focus-visible {
    outline: 3px solid rgba(34, 158, 217, .38);
    outline-offset: 4px;
}

.xl-contact-fab-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
}

.xl-contact-fab-copy,
.xl-contact-fab-copy strong,
.xl-contact-fab-copy small {
    display: block;
}

.xl-contact-fab-copy {
    text-align: left;
}

.xl-contact-fab-copy strong {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

.xl-contact-fab-copy small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .8);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .03em;
}

/* The template's scroll control occupies the same corner and uses a very
 * high inline z-index. Keep it above the primary support action instead of
 * allowing the two 50px targets to overlap. */
.xl-sdot-page #scrollUp {
    right: 18px;
    right: max(18px, env(safe-area-inset-right));
    bottom: 84px;
    bottom: calc(84px + env(safe-area-inset-bottom));
}

@media (max-width: 780px) {
    .xl-contact-fab {
        right: 0;
        right: env(safe-area-inset-right);
        width: 52px;
        min-width: 52px;
        height: 52px;
        min-height: 52px;
        padding: 0;
        border-radius: 18px 0 0 18px;
    }

    .xl-contact-fab-copy {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .xl-account:not(.xl-console-body) .xl-account-footer {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .xl-console-body .xl-console-stage {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .xl-contact-fab {
        transition: none;
    }
}
