/* ===========================
   Floating Phone Button
=========================== */

#phoneButton{
    position: fixed;
    left: 20px;
    bottom: 10px;

    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #3b9b35;
    color: #fff;

    border-radius: 50%;
    cursor: pointer;

    z-index: 999999999;

    box-shadow: 0 8px 24px rgba(0,0,0,.25);

    -webkit-transform: translateZ(0);
    transform: translateZ(0);

    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

#phoneButton:hover{
    transform:translateY(-5px);
}

#phoneButton i{
    font-size:30px;
}

/* ===========================
   Popup
=========================== */

#callPopup{
    position:fixed;
    right:20px;
    bottom:110px;

    width:360px;

    display:none;

    z-index:999999998;

    animation:slideUp .35s ease;
}

@keyframes slideUp{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

@keyframes pulse{

    0%{
        box-shadow:0 0 0 0 rgba(59,155,53,.5);
    }

    70%{
        box-shadow:0 0 0 18px rgba(59,155,53,0);
    }

    100%{
        box-shadow:0 0 0 0 rgba(59,155,53,0);
    }

}

/* ===========================
   Card
=========================== */

.card{
    border:none;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 25px 60px rgba(0,0,0,.15);
}

.card-header{
    background:#3b9b35;
    color:#fff;
    padding:18px;
    font-weight:600;
}

.avatar{
    width:90px;
    height:90px;

    border-radius:50%;

    background:#d3f3d1;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:42px;
    color:#3b9b35;

    margin:auto;
}

.call-status{
    color:#3b9b35;
    font-weight:600;
}

.btn-answer{
    background:#22c55e;
    color:#fff;
    border:none;
}

.btn-answer:hover{
    background:#16a34a;
}

.btn-reject{
    background:#ef4444;
    color:#fff;
    border:none;
}

.btn-reject:hover{
    background:#dc2626;
}

.icon-btn{
    width:44px;
    height:44px;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#f3f4f6;

    cursor:pointer;

    transition:.2s;
}

.icon-btn:hover{
    background:#3b9b35;
    color:#fff;
}

/* ===========================
   Large Desktop
=========================== */

@media (min-width:1400px){

    #callPopup{
        width:420px;
    }

}

/* ===========================
   Laptop
=========================== */

@media (max-width:1200px){

    #callPopup{
        width:360px;
    }

}

/* ===========================
   Tablet
=========================== */

@media (max-width:991px){

    #phoneButton{
        width:65px;
        height:65px;
        right:20px;
        bottom:20px;
    }

    #callPopup{
        width:380px;
        right:15px;
        bottom:100px;
    }

}

/* ===========================
   Mobile
=========================== */

@media (max-width:576px){

    #phoneButton{

        position:fixed !important;

        display:flex !important;

        visibility:visible !important;

        opacity:1 !important;

        width:60px;
        height:60px;

        right:15px;
        bottom:calc(15px + env(safe-area-inset-bottom));

        border-radius:18px;

        z-index:999999999;
    }

    #phoneButton i{
        font-size:26px;
    }

    #callPopup{
        left:10px;
        right:10px;
        width:auto;
        bottom:90px;
    }

    .card{
        border-radius:20px;
    }

    .card-header{
        padding:15px;
        font-size:15px;
    }

    .card-body{
        padding:20px !important;
    }

    .avatar{
        width:75px;
        height:75px;
        font-size:36px;
    }

}

/* ===========================
   Very Small Phones
=========================== */

@media (max-width:400px){

    #phoneButton{
        right:12px;
        bottom:calc(12px + env(safe-area-inset-bottom));
    }

    #callPopup{
        left:0;
        right:0;
        bottom:0;
        width:100%;
    }

    .card{
        border-radius:20px 20px 0 0;
        min-height:100vh;
    }

}