/* Click to call widget style */
/*body {*/
/*  font: 80%/1.5 system-ui, sans-serif;*/
/*  background: #76BABE;*/
/*  color: white;*/
/*  !*height: 10vh;*!*/
/*  margin: 0;*/
/*  display: grid;*/
/*  place-items: center;*/
/*  padding: 1rem;*/
/*}*/

#main_div {
    max-width: 350px;
}

/*a {*/
/*  color: #56BBF9;*/
/*}*/

/* Connection quality. Optional. */
#c2c_connection_speed_div {
    display: none;
    font-size: 18px;
}

/* Test call quality. Optional. */
#c2c_test_call_quality_div {
    display: none;
    font-size: 18px;
}

/* Widget. Contains call buttons */
#c2c_widget_div {
    padding: 10px;
    width: 400px;
}

/* Phone status line.
   HTML with possible styles set as argument of c2c_info() method
*/
#c2c_status_line {
    display: inline-block;
}

/* Select devices button. Optional. Can be hidden */
#c2c_select_devices_btn {
    font-size: 18px;
    padding-top: 2px;
    margin-right: 8px;
    display: none; /* hide select devices */
}

#c2c_select_devices_svg {
    width: 22px;
    height: 22px;
}

/* Test call button and SVG icon. Optional. Can be hidden */
#c2c_test_btn {
    font-size: 18px;
    padding-top: 2px;
    display: none; /* hide test quality gui */
}

#c2c_test_svg {
    width: 22px;
    height: 22px;
}

/* Main call button and SVG icon */
#c2c_call_btn {
    font-size: 18px;
    padding-top: 2px;
    padding-left: 10px;
    padding-right: 10px;
    display: none;
    background: transparent;
}

#c2c_call_svg {
    width: 22px;
    height: 22px;
}

/* Call button hangup look */
.c2c_call_btn_hangup {
    background-color: red;
    border-color: red;
}

/* Call button ready look */
/*.c2c_call_btn_ready {
    background-color: lightgreen;
    border-color: lightgreen;
}*/


/* Call button SVG icon can be in one of the states: */
.c2c_call_svg_disabled {
    transform: rotate(-90deg);
    fill: gray;
}

.c2c_call_svg_ready {
    transform: rotate(-90deg);
    fill: DodgerBlue;
}

.c2c_call_svg_hangup {
    fill: red;
}

.c2c_call_svg_calling {
    fill: red;
}

/* Call button SVG icon color animation during calling */
@keyframes colorChange {
    100% {
        fill: #99e6ff;
    }
    90% {
        fill: #66d9ff;
    }
    80% {
        fill: #33ccff;
    }
    70% {
        fill: #00bfff;
    }
    60% {
        fill: #0099cc;
    }
    50% {
        fill: #007399;
    }
    40% {
        fill: #004d66;
    }
    30% {
        fill: #007399;
    }
    20% {
        fill: #0099cc;
    }
    10% {
        fill: #00bfff;
    }
    0% {
        fill: #33ccff;
    }
}

#c2c_video_chk_span {
    color: #150cef;
    display: none;
}

#c2c_camera_btn {
    padding: 0px 5px 3px 5px;
    border: 0px none #99e6ff;
    background-color: #99e6ff;
    display: none;
}

#c2c_camera_svg {
    width: 26px;
    height: 26px;
    fill: white;
    stroke: black;
}

#c2c_camera_line_svg.c2c_camera_on {
    stroke: none;
}

#c2c_camera_line_svg.c2c_camera_off {
    stroke: black;
}

#c2c_select_devices_div {
    display: none;
}

.c2c-call__container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10100;
}

@media (max-width: 1023px) {
    .c2c-call__container {
        right: 50%;
        transform: translateX(50%);
        transition: bottom 0.3s;
    }
}

.c2c-call__container > #c2c_call_btn {
    flex-direction: row;
    align-items: center;
    width: 280px;
    height: 80px;
    border-radius: 40px;
    border: 1px solid rgba(19, 53, 63, 0.09);
    background: #F3F5F5;
    padding: 10px 15px 10px 35px;
    opacity: 0;
    display: none;
    transition: all 0.5s;
    -webkit-tap-highlight-color: transparent;
}

.c2c-call__container > #c2c_call_btn:disabled {
    cursor: default;
}

.c2c-call__text {
    width: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

p.c2c-call__text--head {
    padding: 0 !important;
    margin: 0 !important;
    color: #658692;
    font-size: 12px;
    font-weight: 400;
    line-height: 13px;
    text-align: left;
}

p.c2c-call__text--base {
    padding: 0 !important;
    margin: 0 !important;
    color: #13353F;
    font-size: 16px;
    font-weight: 400;
    line-height: 18.5px;
    text-align: left;
}

.c2c-call__icon img {
    display: none;
}

.c2c-call__icon, .c2c-call__container > #c2c_call_btn > div:nth-child(2) {
    width: 60px;
    height: 60px;
    border-radius: 60px;
    background: url(/local/templates/invitro_main/webrtc/image/c2c-load.svg);
}

.c2c-call__container > #c2c_call_btn.c2c_call_btn_ready {
    opacity: 0;
}

.c2c-call__container > #c2c_call_btn.c2c_call_btn_hangup,
.c2c-call__container > #c2c_call_btn.c2c_call_btn_calling,
.c2c-call__container > #c2c_call_btn.c2c_call_btn_error,
.c2c-call__container > #c2c_call_btn.c2c_call_btn_final {
    opacity: 1;
}

@media (max-width: 1023px) {
    .c2c-call__container {
        bottom: -80px;
    }

   .c2c-call__container > #c2c_call_btn,
    .c2c-call__container > #c2c_call_btn.c2c_call_btn_ready {
        opacity: 1;
    }
}

.c2c-call__container > #c2c_call_btn.c2c_call_btn_ready > div:nth-child(2) {
    /*background: url(/local/templates/invitro_main/webrtc/image/c2c-load.svg);*/
}

.c2c-call__container > #c2c_call_btn.c2c_call_btn_hangup > div:nth-child(2) {
    background: url(/local/templates/invitro_main/webrtc/image/c2c-load.svg);
}

.c2c-call__container > #c2c_call_btn.c2c_call_btn_calling > div:nth-child(2) {
    background: url(/local/templates/invitro_main/webrtc/image/c2c-calling.svg);
}

.c2c-call__container > #c2c_call_btn.c2c_call_btn_error > div:nth-child(2) {
    background: url(/local/templates/invitro_main/webrtc/image/c2c-error.svg);
}

.c2c-call__container > #c2c_call_btn.c2c_call_btn_error .c2c-call__text--head {
    display: none;
}

.c2c-call__container > #c2c_call_btn.c2c_call_btn_error .c2c-call__text--base {
    color: #FC6A77;
    font-size: 14px;
    line-height: 16px;
}

.c2c-call__container > #c2c_call_btn.c2c_call_btn_error > .c2c-call__icon {
    background: none;
}

.c2c-call__container > #c2c_call_btn.c2c_call_btn_error > .c2c-call__icon img {
    display: block;
}

.c2c-call__container > #c2c_call_btn.c2c_call_btn_final > div:nth-child(2) {
    background: url(/local/templates/invitro_main/webrtc/image/c2c-final.svg);
}