.ca-floating-ui {
    position: fixed;
    right: clamp(18px, 2vw, 28px);
    bottom: clamp(18px, 2vw, 28px);
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    pointer-events: none;
}

.ca-back-to-top {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--ca-border-soft);
    border-radius: 999px;
    background: var(--ca-surface);
    color: var(--ca-text-strong);
    box-shadow: var(--ca-shadow);
    cursor: pointer;
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    transition: opacity 0.24s ease, transform 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.ca-back-to-top svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.ca-back-to-top__label {
    display: inline-flex;
    align-items: center;
    font-size: var(--ca-type-13);
    line-height: 1;
    font-weight: var(--ca-weight-400);
    white-space: nowrap;
}

.ca-back-to-top__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.ca-back-to-top.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.ca-back-to-top:hover,
.ca-back-to-top:focus-visible {
    background: var(--ca-surface-muted);
    border-color: rgba(var(--color-primary-rgb), 0.3);
}

body.has-ca-preview-open {
    overflow: hidden;
}

.ca-home-card--preview {
    cursor: pointer;
}

@media (max-width: 720px) {
    .ca-floating-ui {
        right: 16px;
        bottom: 16px;
    }
}
