
/* whatsapp */
.float:active, .float:focus, .float:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    opacity: 0.8;
    color: white;
}
/* popup mobile */
.whatsapp-btn:hover {
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    color: white;
}
.img-wrapper-whatsapp {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    padding: 5px;
    margin-right: 10px;

    /* height: 30%; */
}

.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 100;
}
.my-float {
    margin-top: 16px;
}

/* Popup container */
.popup {
    position: fixed;
    bottom: 110px;
    right: 37px;
    border: 1px solid #ddd;
    z-index: 101; /* Ensure it's above the button */
    background-color: #fff;
    width: 320px; /* Adjust width for better spacing */
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 6px; /* ruimte tussen icoon en tekst */
    text-decoration: none;
    color: inherit;
}



@media only screen and (max-width: 600px) {
    .popup {
        width: 70%;
        bottom: 15vh;
        right: 10;
        border-radius: 10px;
        box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.2);

    }

    .status-icon {
        width: 9px;
        height: 9px;
        margin-left: 5px;
        top: 1px; /* Adjust for smaller screens */
    }

    .float {
        right: 10px;
    }

    .online-status {
        position: relative; /* Make it absolute positioned */
        right: 0px; /* Distance from the right edge */
        bottom: -21px; /* Distance from the bottom edge of the header */
        display: flex;
        align-items: center;
        margin-left: auto;
    }
}




@media only screen and (max-width: 400px) {
    .popup {
        width: 85%; /* Iets meer breedte voor kleine schermen */
        bottom: 15vh; /* Maak ruimte onderaan het scherm */
        right: 5px; /* Minder ruimte aan de zijkant voor smallere schermen */
        border-radius: 10px;
    }

    .status-icon {
        width: 5px;
        height: 5px;
    }

    .online-status {
        position: relative;
        display: flex;
        align-items: center;
        margin-left: auto;
        bottom: 0;
        right: 0; /* Geen extra offset, om overlap te voorkomen */
    }
}

/* Specifieke styling voor schermen tussen 400px en 600px */
@media only screen and (min-width: 400px) and (max-width: 600px) {
    .popup {
        width: 60%;
        bottom: 11vh;
        right: 10px;
        border-radius: 10px;
        box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.2);
    }

    .float {
        bottom: 20px;
    }

    .status-icon {
        width: 9px;
        height: 9px;
        background-color: #25d366;
        border-radius: 50%;
        position: relative; /* Maak positionering relatief in plaats van absoluut */
        margin-left: -10px; /* Plaats het icoontje dichter bij de naam */
        margin-right: 5px; /* Zorg voor ruimte aan de rechterkant */
    }

    .online-status {
        position: relative;
        display: flex;
        align-items: center;
        margin-left: auto;
        bottom: 0;
        right: 0; /* Verwijder extra offset om overlap te voorkomen */
    }
}

/* Green Header */
.popup-header {
    background-color: #128c7e;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    position: relative;
}

/* Profile image inside a white circular background */
.popup-header img {
    width: 50px;
    height: 50px;
}

.popup-header h3 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2;
}

.popup-header p {
    margin: 5px 0 0;
    font-size: 12px;
    line-height: 1.2;
}

/* Update .online-status to use flex layout */
.online-status {
    align-items: center;
    position: absolute;
    margin-left: auto;
    right: 1px;
    bottom: 1px;
}

/* General Style for .status-icon */
.status-icon {
    width: 10px;
    border: 3px solid #128c7e;
    height: 10px;
    background-color: #25d366;
    border-radius: 50%;
    margin-left: 8px; /* Create spacing between icon and text */
    position: relative;
    top: 2px; /* Slightly adjust vertically to align with text */
}

/* Close button inside the popup */
.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
    color: white;
}

/* Chat content area */
.popup-content {

    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    text-align: left;
    position: relative;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
}

.whatsapp-popup {
    display: block;
}

.chat-bubble {
    background-color: #ffffff;
    padding: 10px 15px;
    border-radius: 15px;
    display: inline-block;
    position: relative;
    font-size: 14px;
    color: #333;
    margin: 20px 10px 0px 20px;
}

/* Create the chat tail */
.chat-bubble:before {
    content: '';
    position: absolute;
    top: 5px; /* Position the tail above the bubble */
    left: -10px; /* Align it to the left */
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: #ffffff; /* Set the right border to match the bubble */
    margin-left: -5px;
}

    /* Time inside the chat bubble */
    .chat-time {
        display: inline;
        float: right;
        font-size: 12px;
        color: #999;
        margin-top: 5px;
        text-align: right;
    }

/* WhatsApp button in a white box */
.whatsapp-box {
    background-color: white;
    padding: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.whatsapp-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

/* EXTRA kleine weergave voor telefoon (<480px) */
@media only screen and (max-width: 480px) {
    .popup {
        width: 75% !important;
        bottom: 12vh !important;
        right: 8px !important;
        border-radius: 10px;
        padding: 0;
    }

    .popup-header {
        padding: 10px !important;
    }

    .popup-header img {
        width: 40px !important;
        height: 40px !important;
    }

    .popup-header h3 {
        font-size: 14px !important;
    }

    .popup-header p {
        font-size: 11px !important;
    }

    .chat-bubble {
        font-size: 12px !important;
        padding: 8px 12px !important;
        margin: 15px 10px !important;
    }

    .whatsapp-btn {
        font-size: 14px !important;
        padding: 8px 12px !important;
    }
}
