.krt-floating-back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--krt-color-border, #e5e7eb);
    border-radius: 999px;
    background: var(--krt-color-surface, #fff);
    color: var(--krt-color-heading, #0f172a);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.krt-floating-back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.krt-floating-back-to-top:hover,
.krt-floating-back-to-top:focus-visible {
    background: var(--krt-color-primary, #1f3c88);
    color: #fff;
    border-color: var(--krt-color-primary, #1f3c88);
    outline: none;
}

.krt-floating-back-to-top svg {
    display: block;
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .krt-floating-back-to-top {
        right: 14px;
        bottom: 14px;
        width: 46px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .krt-floating-back-to-top {
        transition: none;
    }
}
