﻿
.btnCall {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0 6px 0 0;
    border: 2px solid transparent;
    border-radius: 50%;
    line-height: 1;
    vertical-align: middle;
    transform: translateY(3px);
    background: rgba(255,255,255,.08);
    transition: all .2s ease;
}

    #twilioMenuPhone i {
        font-size: 18px;
        color: #ffffff;
        line-height: 1;
    }

    .twilio-state-off {
        border-color: #cfd8e3;
        box-shadow: 0 0 4px rgba(207,216,227,.8), 0 0 10px rgba(207,216,227,.45);
    }

    #twilioMenuPhone.twilio-state-idle {
        border-color: #f0ad4e;
        box-shadow: 0 0 5px rgba(240,173,78,.95), 0 0 12px rgba(240,173,78,.65), 0 0 20px rgba(240,173,78,.35);
    }

    .twilio-state-live {
        border-color: #22c55e;
        box-shadow: 0 0 5px rgba(34,197,94,1), 0 0 12px rgba(34,197,94,.75), 0 0 22px rgba(34,197,94,.45);
    }

    .twilio-state-ring {
        border-color: #22c55e;
        box-shadow: 0 0 5px rgba(34,197,94,1), 0 0 12px rgba(34,197,94,.75), 0 0 22px rgba(34,197,94,.45);
        
    }

    .twilio-state-ring-in {
        border-color: #22c55e;
        box-shadow: 0 0 5px rgba(34,197,94,1), 0 0 12px rgba(34,197,94,.75), 0 0 22px rgba(34,197,94,.45);
        animation: twilioBlink .8s linear infinite;
    }

    #twilioMenuPhone.twilio-state-alert {
        border-color: #ff4d4f;
        box-shadow: 0 0 6px rgba(255,77,79,1), 0 0 14px rgba(255,77,79,.85), 0 0 24px rgba(255,77,79,.55);
        animation: twilioAlertBlink .7s linear infinite;
    }

    .twilio-state-red {
        border-color: #ff4d4f;
        box-shadow: 0 0 6px rgba(255,77,79,1), 0 0 14px rgba(255,77,79,.85), 0 0 24px rgba(255,77,79,.55);
        
    }

    @keyframes twilioBlink {
        50% {
            opacity: .35;
        }
    }

    @keyframes twilioAlertBlink {
        50% {
            opacity: .45;
        }
    }


/* Twilio Switch Styles */

.abis-switch {
    display: inline-flex;
    align-items: center;
    height: 44px;
}

    .abis-switch input {
        display: none;
    }

    .abis-switch label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        height: 44px;
        cursor: pointer;
    }

.abis-switch-text {
    display: flex;
    align-items: center;
    line-height: 1;
    height: 44px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

    .abis-switch-text.on {
        color: #ffc107;
    }

.abis-switch-track {
    width: 58px;
    height: 30px;
    border-radius: 999px;
    background: #1f5f83;
    border: 1px solid rgba(255,255,255,.35);
    position: relative;
    box-shadow: inset 0 0 6px rgba(0,0,0,.25);
}

.abis-switch-thumb {
    position: absolute;
    top: 1px;
    left: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
    color: #1f5f83;
    font-size: 12px;
}

.abis-switch input:checked + label .abis-switch-thumb {
    left: 29px;
    background: #ffc107;
    color: #1f5f83;
    box-shadow: 0 0 12px #ffc107, 0 0 22px rgba(255,193,7,.65);
}
