
/* ABUJA WEB SERVICE LTD — BACK TO TOP */

#awsBackToTop {
    position: fixed;
    right: 24px;
    bottom: 26px;
    z-index: 1200;

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

    width: 52px;
    height: 52px;
    padding: 0;

    border: 2px solid #f77909;
    border-radius: 50%;

    background: #0b203f;
    color: #ffffff;

    font-size: 25px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.23);

    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease,
        background-color 0.3s ease;
}

#awsBackToTop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#awsBackToTop:hover {
    background: #f77909;
    color: #0b203f;
    transform: translateY(-4px);
}

#awsBackToTop:focus-visible {
    outline: 3px solid #f77909;
    outline-offset: 4px;
}

/* Phones and tablets */
@media (max-width: 768px) {
    #awsBackToTop {
        width: 48px;
        height: 48px;
        right: 16px;
        bottom: 20px;
        font-size: 23px;
    }

    /* Avoid covering the signed-in mobile tab bar */
    body.aws-has-mobile-tabs #awsBackToTop {
        bottom: 90px;
    }
}

/* Respect accessibility preferences */
@media (prefers-reduced-motion: reduce) {
    #awsBackToTop {
        transition: none;
    }
}
