.ctaf-floating {
    position: fixed;
    right: var(--ctaf-right);
    bottom: var(--ctaf-bottom);
    z-index: var(--ctaf-z);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--ctaf-padding-y) var(--ctaf-padding-x);
    background: var(--ctaf-bg);
    color: var(--ctaf-text) !important;
    border-width: var(--ctaf-border-width);
    border-style: var(--ctaf-border-style);
    border-color: var(--ctaf-border);
    border-radius: var(--ctaf-radius);
    font-size: var(--ctaf-font-size);
    font-weight: var(--ctaf-font-weight);
    line-height: 1.2;
    text-decoration: none !important;
    text-align: center;
    box-shadow: var(--ctaf-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 18px, 0) scale(.98);
    transition:
        opacity var(--ctaf-duration) cubic-bezier(.22, 1, .36, 1),
        transform var(--ctaf-duration) cubic-bezier(.22, 1, .36, 1),
        visibility var(--ctaf-duration) ease,
        background-color .25s ease,
        color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
    will-change: transform, opacity;
}

.ctaf-floating.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.ctaf-floating:hover,
.ctaf-floating:focus {
    background: var(--ctaf-hover-bg);
    color: var(--ctaf-hover-text) !important;
    border-color: var(--ctaf-hover-border);
    transform: translate3d(0, -2px, 0) scale(1);
    text-decoration: none !important;
}

.ctaf-floating:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .ctaf-floating {
        right: var(--ctaf-mobile-right);
        bottom: var(--ctaf-mobile-bottom);
        max-width: calc(100vw - (var(--ctaf-mobile-right) * 2));
    }
}

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