/* =========================================================
   FLOATING CONTACT BUTTONS
   Get Well Physiotherapy & Sports Injury Clinic
   ========================================================= */


/* =========================================================
   CONTACT BUTTON WRAPPER
   ========================================================= */

.floating-contact-buttons {
    position: fixed;
    left: 22px;
    bottom: 25px;
    z-index: 9998;

    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* =========================================================
   CONTACT BUTTON
   ========================================================= */

.floating-contact-btn {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border-radius: 50%;

    color: #ffffff;
    text-decoration: none;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.16);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.floating-contact-btn:hover {
    color: #ffffff;
    transform: translateX(4px) scale(1.05);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.22);

    filter: brightness(1.05);
}


/* =========================================================
   ICON
   ========================================================= */

.floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}


/* =========================================================
   BUTTON COLORS
   ========================================================= */

.floating-whatsapp {
    background: #25d366;
}

.floating-email {
    background: #0077b9;
}

.floating-call {
    background: #00a651;
}


/* =========================================================
   TOOLTIP
   ========================================================= */

.floating-tooltip {
    position: absolute;

    left: 64px;
    top: 50%;

    padding: 8px 12px;

    background: #163f55;
    color: #ffffff;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-50%)
        translateX(-5px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.floating-contact-btn:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(-50%)
        translateX(0);
}


/* =========================================================
   PAGE UP BUTTON
   ========================================================= */

.page-up-button {
    position: fixed;

    right: 22px;
    bottom: 25px;

    z-index: 9998;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    padding: 0;

    background: #ffffff;
    color: #0077b9;

    border: 2px solid #0077b9;
    border-radius: 50%;

    font-family: inherit;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.14);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

.page-up-button.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-up-button:hover {
    background: #0077b9;
    color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 12px 28px rgba(0, 119, 185, 0.25);
}

.page-up-button span {
    display: block;

    margin-top: -3px;

    transition:
        transform 0.2s ease;
}

.page-up-button:hover span {
    transform: translateY(-2px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .floating-contact-buttons {
        left: 18px;
        bottom: 20px;
        gap: 9px;
    }

    .floating-contact-btn,
    .page-up-button {
        width: 48px;
        height: 48px;
    }

    .floating-icon {
        font-size: 20px;
    }

    .page-up-button {
        right: 18px;
        bottom: 20px;
        font-size: 23px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .floating-contact-buttons {
        left: 14px;
        bottom: 15px;
        gap: 8px;
    }

    .floating-contact-btn {
        width: 46px;
        height: 46px;
    }

    .floating-icon {
        font-size: 19px;
    }

    .page-up-button {
        right: 14px;
        bottom: 15px;

        width: 46px;
        height: 46px;

        font-size: 22px;
    }

    /* Hide tooltip on touch devices */
    .floating-tooltip {
        display: none;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .floating-contact-buttons {
        left: 12px;
        bottom: 12px;
        gap: 7px;
    }

    .floating-contact-btn {
        width: 43px;
        height: 43px;
    }

    .floating-icon {
        font-size: 18px;
    }

    .page-up-button {
        right: 12px;
        bottom: 12px;

        width: 43px;
        height: 43px;

        font-size: 20px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .floating-contact-buttons {
        left: 9px;
        bottom: 10px;
    }

    .floating-contact-btn,
    .page-up-button {
        width: 40px;
        height: 40px;
    }

    .floating-icon {
        font-size: 17px;
    }

    .page-up-button {
        right: 9px;
        bottom: 10px;
        font-size: 19px;
    }

}