.floating-actions {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.floating-actions > * {
    pointer-events: auto;
}

html.is-menu-open .floating-actions {
    display: none;
}

.back-to-top {
    position: relative;
    margin-inline-end: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--theme-surface);
    box-shadow: var(--shadow-lg);
    color: var(--theme-text);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.9);
    transition: opacity .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .3s, color .2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1), visibility 0s, color .2s ease;
}

.back-to-top:hover {
    color: var(--brand-primary);
}

.back-to-top i {
    position: relative;
    font-size: .95rem;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

.back-to-top__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.back-to-top__track,
.back-to-top__progress {
    fill: none;
    stroke-width: 2.5;
}

.back-to-top__track {
    stroke: var(--theme-line);
}

.back-to-top__progress {
    stroke: var(--brand-primary);
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset .1s linear;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    height: 56px;
    padding: 0 16px;
    border-radius: 999px;
    background-color: #25D366;
    box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .5);
    color: #FFFFFF !important;
    animation: whatsapp-enter .6s cubic-bezier(.22, 1, .36, 1) 1s both;
    transition: background-color .2s ease, box-shadow .3s ease;
}

.whatsapp-button:hover {
    background-color: #1EBE5A;
    box-shadow: 0 14px 28px -6px rgba(37, 211, 102, .55);
}

.whatsapp-button i {
    width: 24px;
    font-size: 1.6rem;
    text-align: center;
}

.whatsapp-button__label {
    max-width: 0;
    overflow: hidden;
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
    opacity: 0;
    transition: max-width .45s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, margin .45s cubic-bezier(.22, 1, .36, 1);
}

.whatsapp-button:hover .whatsapp-button__label,
.whatsapp-button:focus-visible .whatsapp-button__label {
    max-width: 200px;
    margin-inline-start: 10px;
    opacity: 1;
}

@keyframes whatsapp-enter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.8);
    }
}

@media (max-width: 575.98px) {
    .floating-actions {
        bottom: 16px;
        inset-inline-end: 16px;
    }

    .whatsapp-button {
        height: 52px;
        padding: 0 14px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-button {
        animation: none;
    }
}
