/* =====================================================
   FLOAT WHATSAPP BUTTON
===================================================== */

#dc-wl-button{
    position:fixed;
    bottom:25px;
    right:25px;
    background:#2c9a55;
    color:#fff;
    padding:10px 25px;
    border-radius:50px;
    cursor:pointer;
    font-size:10px;
    z-index:9999;
    font-family:sans-serif;
    display:flex;
    align-items:center;
    gap:10px;
    box-shadow:0 8px 25px rgba(0,0,0,.25);
    transition:.25s ease;
}

#dc-wl-button:hover{
    transform:translateY(-2px);
}

/* icon */
.whatsapp-icon{
    width:20px;
    height:20px;
    filter:invert(1);
}


/* =====================================================
   MODAL BACKGROUND
===================================================== */

#dc-wl-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    display:none;
    justify-content:center;
    align-items:center;
    padding:20px;
    z-index:10000;
}


/* =====================================================
   MODAL BOX
===================================================== */

.dc-wl-box{
    background:#fff;
    padding:30px;
    border-radius:14px;
    width:100%;
    max-width:420px;
    text-align:center;
    position:relative;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    animation:dcModalIn .35s ease;
}

@keyframes dcModalIn{
    from{
        transform:translateY(30px);
        opacity:0;
    }
    to{
        transform:translateY(0);
        opacity:1;
    }
}


/* =====================================================
   CLOSE BUTTON
===================================================== */

#dc-wl-close{
    position:absolute;
    right:15px;
    top:10px;
    cursor:pointer;
    font-size:26px;
    line-height:1;
}


/* =====================================================
   INPUT FIELD
===================================================== */

#dc-wl-name{
    width:100%;
    padding:14px;
    margin-top:18px;
    font-size:22px;
    border-radius:8px;
    border:1px solid #ddd;
    outline:none;
    transition:.2s ease;
}

#dc-wl-name:focus{
    border-color:#25D366;
    box-shadow:0 0 0 3px rgba(37,211,102,.15);
}

/* placeholder cross-browser */
#dc-wl-name::placeholder,
#dc-wl-name::-webkit-input-placeholder,
#dc-wl-name::-moz-placeholder,
#dc-wl-name:-ms-input-placeholder{
    font-size:20px;
    opacity:.6;
}


/* =====================================================
   START BUTTON
===================================================== */

#dc-wl-start{
    margin-top:18px;
    width:100%;
    padding:14px;
    font-size:20px;
    background:#2c9a55;
    border:none;
    color:#fff;
    cursor:pointer;
    border-radius:8px;
    transition:.25s ease;

}

#dc-wl-start:hover{
    transform:scale(1.03);
}


/* =====================================================
   SIGNAL / PULSE EFFECT (WORKING VERSION)
===================================================== */

@keyframes dcSignal{

    0%{
        box-shadow:0 0 0 0 rgba(37,211,102,.6);
    }

    70%{
        box-shadow:0 0 0 20px rgba(37,211,102,0);
    }

    100%{
        box-shadow:0 0 0 0 rgba(37,211,102,0);
    }
}


/* =====================================================
   TABLET RESPONSIVE
===================================================== */

@media (max-width:768px){

    #dc-wl-button{
        bottom:20px;
        right:20px;
        font-size:16px;
        padding:12px 16px;
    }

    .dc-wl-box{
        padding:25px;
        max-width:380px;
    }

    #dc-wl-name,
    #dc-wl-start{
        font-size:20px;
    }
}


/* =====================================================
   MOBILE RESPONSIVE
===================================================== */

@media (max-width:480px){

    #dc-wl-button{
        bottom:18px;
        right:18px;
        border-radius:50px;
        padding:14px 16px;
        font-size:15px;
    }

    .whatsapp-icon{
        width:22px;
        height:22px;
    }

    .dc-wl-box{
        width:100%;
        padding:22px;
        border-radius:16px;
    }

    #dc-wl-name{
        font-size:18px;
        padding:16px;
    }

    #dc-wl-start{
        font-size:18px;
        padding:16px;
    }
}


/* =====================================================
   SMALL MOBILE (iPhone SE)
===================================================== */

@media (max-width:360px){

    #dc-wl-button{
        font-size:14px;
        padding:12px 14px;
    }

    #dc-wl-name,
    #dc-wl-start{
        font-size:17px;
    }
}

/* =====================================================
   WHATSAPP BUTTON HEARTBEAT EFFECT
===================================================== */

#dc-wl-button{
    animation:dcHeartbeat 1.8s ease-out infinite;
}

/* heartbeat animation */
@keyframes dcHeartbeat{

    0%{
        box-shadow:0 0 0 0 rgba(37,211,102,.7);
    }

    40%{
        box-shadow:0 0 0 14px rgba(37,211,102,0);
    }

    80%{
        box-shadow:0 0 0 0 rgba(37,211,102,0);
    }

    100%{
        box-shadow:0 0 0 0 rgba(37,211,102,0);
    }
}