/* =========================================================
   EduINFrance WhatsApp Widget
   ========================================================= */

#eduWhatsappWidget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999999;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   Floating Button
   ========================================================= */

.edu-whatsapp-button {
    display: flex;
    align-items: center;
    gap: 9px;

    height: 58px;
    padding: 0 20px 0 16px;

    border: none;
    border-radius: 30px;

    background: #25d366;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.edu-whatsapp-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25);
}


/* WhatsApp icon */

.edu-whatsapp-icon {
    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-whatsapp-icon svg {
    width: 29px;
    height: 29px;

    fill: #ffffff;
}


/* =========================================================
   Panel
   ========================================================= */

.edu-whatsapp-panel {
    position: absolute;

    right: 0;
    bottom: 70px;

    width: 370px;
    max-width: calc(100vw - 30px);

    background: #ffffff;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.20);

    border: 1px solid #e5e7eb;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(15px)
        scale(0.97);

    transform-origin: bottom right;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}


.edu-whatsapp-panel.active {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   Header
   ========================================================= */

.edu-whatsapp-header {
    min-height: 76px;

    padding: 12px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #075e54;
    color: #ffffff;
}


.edu-whatsapp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}


.edu-whatsapp-avatar {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;

    font-size: 21px;
}


.edu-whatsapp-brand strong {
    display: block;

    font-size: 15px;
}


.edu-whatsapp-brand span {
    display: block;

    margin-top: 4px;

    font-size: 11px;

    opacity: 0.95;
}


.edu-whatsapp-brand span i {
    display: inline-block;

    width: 7px;
    height: 7px;

    margin-right: 4px;

    border-radius: 50%;

    background: #25d366;
}


.edu-whatsapp-close {
    width: 34px;
    height: 34px;

    border: none;
    background: transparent;

    color: #ffffff;

    font-size: 27px;
    line-height: 30px;

    cursor: pointer;

    opacity: 0.9;
}


.edu-whatsapp-close:hover {
    opacity: 1;
}


/* =========================================================
   Body
   ========================================================= */

.edu-whatsapp-body {
    padding: 20px 18px 18px;

    background: #f8fafc;
}


/* =========================================================
   Welcome
   ========================================================= */

.edu-whatsapp-welcome {
    text-align: center;

    margin-bottom: 18px;
}


.edu-whatsapp-wave {
    font-size: 30px;

    margin-bottom: 5px;
}


.edu-whatsapp-welcome h3 {
    margin: 0 0 5px;

    color: #111827;

    font-size: 19px;
}


.edu-whatsapp-welcome p {
    margin: 0;

    color: #6b7280;

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   Options
   ========================================================= */

.edu-whatsapp-options {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.edu-whatsapp-option {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 11px 12px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #ffffff;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.edu-whatsapp-option:hover {
    background: #f0fdf4;

    border-color: #86efac;

    transform: translateX(2px);
}


.edu-whatsapp-option > span {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f0fdf4;

    font-size: 17px;
}


.edu-whatsapp-option div {
    flex: 1;
}


.edu-whatsapp-option strong {
    display: block;

    color: #111827;

    font-size: 13px;
}


.edu-whatsapp-option small {
    display: block;

    margin-top: 3px;

    color: #6b7280;

    font-size: 10px;
}


.edu-whatsapp-option b {
    color: #9ca3af;

    font-size: 20px;

    font-weight: 400;
}


/* =========================================================
   Direct WhatsApp
   ========================================================= */

.edu-whatsapp-direct {
    margin-top: 17px;

    padding-top: 15px;

    border-top: 1px solid #e5e7eb;

    text-align: center;
}


.edu-whatsapp-direct > span {
    display: block;

    margin-bottom: 9px;

    color: #9ca3af;

    font-size: 10px;
}


#eduWhatsappDirect {
    width: 100%;

    height: 43px;

    border: none;

    border-radius: 9px;

    background: #25d366;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


#eduWhatsappDirect:hover {
    background: #20bd5a;

    transform: translateY(-1px);
}


.direct-icon {
    display: inline-block;

    margin-right: 6px;

    font-size: 15px;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 480px) {

    #eduWhatsappWidget {
        right: 15px;
        bottom: 15px;
    }


    .edu-whatsapp-panel {
        right: -2px;
        bottom: 68px;

        width: calc(100vw - 30px);

        border-radius: 14px;
    }


    .edu-whatsapp-button {
        width: 56px;
        height: 56px;

        padding: 0;

        justify-content: center;

        border-radius: 50%;
    }


    .edu-whatsapp-label {
        display: none;
    }


    .edu-whatsapp-icon,
    .edu-whatsapp-icon svg {
        width: 28px;
        height: 28px;
    }
}