/* Load sau các CSS trang để không bị ghi đè; neo viewport bên phải, tách khỏi footer */
#btnBackToTop {
    position: fixed !important;
    left: auto !important;
    right: 20px !important;
    top: auto !important;
    bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 72px)) !important;
    z-index: 1080 !important;

    width: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    background-color: #fe7814 !important;
    background-image: none !important;
    color: #ffffff !important;

    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(0, 0, 0, 0.06) inset !important;

    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 16px, 0);
    transition:
        opacity 0.28s ease,
        transform 0.28s ease,
        visibility 0.28s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

#btnBackToTop.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate3d(0, 0, 0) !important;
}

#btnBackToTop:hover {
    background-color: #e8680c !important;
    color: #ffffff !important;
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
}

#btnBackToTop:focus {
    outline: none !important;
}

#btnBackToTop:focus-visible {
    outline: 3px solid #269af2 !important;
    outline-offset: 3px !important;
}

#btnBackToTop svg {
    display: block !important;
    flex-shrink: 0 !important;
}

.c22-floating-contact {
    position: fixed !important;
    z-index: 1080 !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

@media (max-width: 575.98px) {
    #btnBackToTop {
        right: 14px !important;
        width: 52px !important;
        height: 52px !important;
        bottom: max(88px, calc(env(safe-area-inset-bottom, 0px) + 64px)) !important;
    }

    .c22-floating-contact {
        left: 14px !important;
        bottom: max(88px, calc(env(safe-area-inset-bottom, 0px) + 64px)) !important;
    }
}
