/* 1. Positie van de section vastzetten aan de rechterkant van het scherm */
#sticky-mail-button-section {
    position: fixed;
    right: 25px;
    top: 80%;
    transform: translateY(-50%);
    z-index: 99999;
    width: auto !important;
    max-width: none !important;
    pointer-events: none;
}

/* 2. De interactieve wrapper */
#sticky-mail-button-section .uagb-container-inner-blocks-wrap > a {
    pointer-events: auto;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    background-color: #85668c;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
    width: 60px;
    height: 60px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    padding: 0;
    box-sizing: border-box;
}

/* 3. Stijl voor het tekstblok: start op breedte 0 en schuift soepel uit naar links */
#sticky-mail-button-section .uagb-block-e69e14fc {
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    padding-left: 0;
    padding-right: 0;
    text-align: right;
}

#sticky-mail-button-section .wp-block-paragraph {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 16px;
    margin: 0 !important;
    padding-right: 15px; /* Bepaalt de afstand tussen de tekst en het mail-icoon */
}

/* 4. Icoon-container */
#sticky-mail-button-section .uagb-block-63392894 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    width: 60px;
    height: 60px;
    background-color: transparent !important;
    border-radius: 50%;
    box-shadow: none;
    flex-shrink: 0;
    border: 0px solid #ffffff;
    /*transition: border 0.3s ease;*/
    box-sizing: border-box;
}

#sticky-mail-button-section img.uag-image-393 {
    width: 28px !important;
    height: auto !important;
}

/* 5. HOVER STATE: Schuif de knop en de tekst tegelijk naar links uit */
#sticky-mail-button-section .uagb-container-inner-blocks-wrap > a:hover {
    width: 240px; /* Pas deze breedte aan als de tekst net te lang/kort is */
    border-radius: 50px;
}

#sticky-mail-button-section .uagb-container-inner-blocks-wrap > a:hover .uagb-block-63392894 {
    border: 5px solid #ffffff;
}

#sticky-mail-button-section .uagb-container-inner-blocks-wrap > a:hover .uagb-block-e69e14fc {
    opacity: 1;
    visibility: visible;
    width: 180px; /* Zorg dat dit het verschil is tussen de totale breedte (240px) en het icoon (60px) */
}