﻿/* ==================================================
   FLOATING CONTACT BUTTONS - AUTOPLUS24

   Blauw  : #022373
   Oranje : #f6701c
================================================== */


/* Voorkomt horizontale scrollbar */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}


/* ==================================================
   DESKTOP
================================================== */

.floating-contact-buttons {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}


.floating-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 145px;
    padding: 13px 20px;
    box-sizing: border-box;
    border-radius: 50px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.22);
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}


    .floating-contact-btn i {
        width: 22px;
        margin: 0;
        font-size: 21px;
        text-align: center;
    }


/* ==================================================
   BELLEN
================================================== */

.floating-phone {
    background-color: #022373;
    border: 2px solid #f6701c;
}


    .floating-phone:hover {
        background-color: #f6701c;
        border-color: #022373;
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 7px 22px rgba(0, 0, 0, 0.28);
    }


/* ==================================================
   WHATSAPP
================================================== */

.floating-whatsapp {
    background-color: #f6701c;
    border: 2px solid #022373;
}


    .floating-whatsapp:hover {
        background-color: #022373;
        border-color: #f6701c;
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 7px 22px rgba(0, 0, 0, 0.28);
    }


/* ==================================================
   TABLET / IPAD
   576px t.e.m. 1024px
================================================== */

@media (min-width: 576px) and (max-width: 1024px) {

    .floating-contact-buttons {
        right: 15px;
        bottom: 15px;
        width: auto !important;
        max-width: none !important;
        gap: 8px;
    }


    .floating-contact-btn {
        min-width: 130px;
        max-width: none;
        padding: 11px 16px;
        font-size: 14px;
    }


        .floating-contact-btn i {
            width: 20px;
            font-size: 19px;
        }
}


/* ==================================================
   GSM
   Twee knoppen naast elkaar
   Elk 50% van het scherm
================================================== */

@media (max-width: 575.98px) {

    .floating-contact-buttons {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        max-width: 100% !important;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        z-index: 9999;
    }


    .floating-contact-btn {
        width: 50% !important;
        height: 56px !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 10px !important;
        margin: 0 !important;
        border-radius: 0;
        flex: 0 0 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 15px;
        font-weight: 600;
        box-shadow: none;
    }


        .floating-contact-btn span {
            display: inline;
        }


        .floating-contact-btn i {
            width: auto;
            margin: 0 !important;
            font-size: 20px;
        }


    /* BELLEN */
    .floating-phone {
        background-color: #022373;
        border: 2px solid #f6701c;
    }


    /* WHATSAPP */
    .floating-whatsapp {
        background-color: #f6701c;
        border: 2px solid #022373;
    }


    /* Geen omhoog-beweging op touchscreen */
    .floating-contact-btn:hover {
        transform: none;
    }
}
