.b1t-ymservice-custom-header-phones {
    position: relative;
    padding: 20px;
}

.b1t-ymservice-custom-header-phones .context {
    font-size: 15px;
    line-height: 19px;
    color: #000;
    padding-left: 53px;
}
.b1t-ymservice-custom-header-phones .context .context-text{
    display: flex;
    align-items: center;
}

.b1t-ymservice-custom-header-phones .context.icon-24-bf.icon-phone-24:before {
    width: 31px;
    height: 31px;
    background: url(/bitrix/templates/ymservice/images/icons/phones.png) center no-repeat;
    -webkit-background-size: 100%;
    background-size: 100%;
}

.b1t-ymservice-custom-header-phones .call-from-site .icon-24-bf.icon-headset-mic-24:before {
    width: 34px;
    height: 36px;
    background: url(/bitrix/templates/ymservice/images/icons/call_online.png) center no-repeat;
    -webkit-background-size: 100%;
    background-size: 100%;
}

.b1t-ymservice-custom-header-phones .context .action a {
    font-size: 15px;
    line-height: 19px;
    color: #539ef0;
    text-decoration: none;
    border-bottom: 1px solid #539ef0;
}
.b1t-ymservice-custom-header-phones .context .action a:hover {
    color: #0984c6;
    border-bottom: 1px solid #0984c6;
}
.b1t-ymservice-custom-header-phones .clickable-panel {
    cursor: pointer;
    white-space: nowrap;
}

.b1t-ymservice-custom-header-phones .description {
    font-size: 14px;
    color: #000;
}

.b1t-ymservice-custom-header-phones .call-from-site .description {
    font-size: 14px;
    font-weight: 300;
    color: #000;
    padding-left: 53px;
    line-height: 19px;
}

.b1t-ymservice-custom-header-phones .popup {
    display: none;
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    z-index: 5;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    background: #f2f2f2;
    -moz-box-shadow: 10px 0 16px rgba(51, 55, 57, .18);
    -webkit-box-shadow: 10px 0 16px rgba(51, 55, 57, .18);
    box-shadow: 10px 0 16px rgba(51, 55, 57, .18);
    padding: 21px;
    min-width: 260px;
}

.b1t-ymservice-custom-header-phones .popup .h2.icon-phone-talk-24, .b1t-ymservice-custom-header-phones .popup .h2.icon-headset-mic-24 {
    color: #539ef0;
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    padding-left: 53px;
    margin-top: 30px;
    margin-bottom: 0;
}

.b1t-ymservice-custom-header-phones .popup .h2.icon-24-bf.icon-phone-talk-24:before {
    width: 31px;
    height: 31px;
    background: url(/bitrix/templates/ymservice/images/icons/phones.png) center no-repeat;
    -webkit-background-size: 100%;
    background-size: 100%;
}

.b1t-ymservice-custom-header-phones.hover .popup{
    display: block;
}

.b1t-ymservice-custom-header-phones .popup .close {
    position: absolute;
    top: 15px;
    right: 15px;
    display: none;
    z-index: 3;
}

.b1t-ymservice-custom-header-phones .popup .close {
    display: block;
}

.b1t-ymservice-custom-header-phones .popup .callback-btn {
    width: 100%;
    margin-top: 10px;
}

.b1t-ymservice-custom-header-phones .popup .callback-wrapper {
    display: none;
}

.b1t-ymservice-custom-header-phones .popup .call-from-site .btn {
    margin-top: 10px;
    display: block;
    width: calc(100% - 53px);
    margin-left: 53px;
    font-size: 12px;
    line-height: 10px;
    border-radius: 16px;
    border: 3px solid #76bafb;
    color: #000;
    background-color: #f8f8f8;
    -moz-box-shadow: 0 10px 16px rgba(51, 55, 57, .18);
    -webkit-box-shadow: 0 10px 16px rgba(51, 55, 57, .18);
    box-shadow: 0 10px 16px rgba(51, 55, 57, .18);
}

.b1t-ymservice-custom-header-phones .popup .call-from-site .btn:hover {
    color: #fff;
    background-color: #76bafb;
}

.b1t-ymservice-custom-header-phones .popup .call-from-site .btn:focus {
    color: #fff;
    background-color: #0f77c5;
}

.b1t-ymservice-custom-main-blocks .a-tab-wrapper{
    border-bottom: inherit;
}

@media only screen and (min-width: 1200px) {
    .b1t-ymservice-custom-header-phones .clickable-panel {
        width: auto;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
       
    .b1t-ymservice-custom-header-phones .popup {
        left: -16px;
         top: -11px;
    }
}
@media only screen  and (max-width: 1199px) {
    .b1t-ymservice-custom-header-phones {
        padding-left: 15px;
        padding-right: 15px;
    }
    .b1t-ymservice-custom-header-phones .popup {
        padding-left: 16px;
        padding-right: 16px;
    }
    .b1t-ymservice-custom-header-phones .context, .b1t-ymservice-custom-header-phones .context .action a {
        font-size: 14px;
        line-height: 18px;
    }    
}

@media only screen  and (max-width: 991px) {
    
    .b1t-ymservice-custom-header-phones {
        padding: 10px 5px;
    }  
    .b1t-ymservice-custom-header-phones .context .context-text, .b1t-ymservice-custom-header-phones .context .action a {
        display: none;
    }  
    .b1t-ymservice-custom-header-phones .clickable-panel .context {
        padding-top: 48px;
        padding-left: 48px;
    }
    .b1t-ymservice-custom-header-phones .popup .context.icon-24-bf.icon-phone-24:before {
        width: 31px;
        height: 31px;
        left: 0;
        right: auto;
    }
    .b1t-ymservice-custom-header-phones .context.icon-24-bf.icon-phone-24:before {
        width: 48px;
        height: 48px;
    }
    .b1t-ymservice-custom-header-phones .clickable-panel .context:before {
        left: auto;
        right: 0;
    }
}

@media only screen  and (max-width: 767px) {

    .b1t-ymservice-custom-header-phones .clickable-panel .context .context-text,
    .b1t-ymservice-custom-header-phones .clickable-panel .context .action {
        display: none !important;
    }
    
    .b1t-ymservice-custom-header-phones {
        padding: 0px;
    }
    
    .b1t-ymservice-custom-header-phones .clickable-panel {
        padding: 22px 10px;
        text-align: center;
    }
    
    .b1t-ymservice-custom-header-phones .clickable-panel .context {
        height: 24px;
        padding-top: 0;
        padding-left: 0;
    }
    
    .b1t-ymservice-custom-header-phones .clickable-panel .context:before {
        top: 50%;
        left: 50%;
        margin-top: -24px;
        margin-left: -24px;
    }
    
    .b1t-ymservice-custom-header-phones .popup {
        left: auto;
        right: -40px;
    }
}

@media only screen and (max-width: 570px) {
    
    .b1t-ymservice-custom-header-phones .clickable-panel {
        padding: 15px 10px;
    }
}

@media only screen and (max-width: 400px) {
    
    .b1t-ymservice-custom-header-phones .clickable-panel {
        padding: 15px 0 15px 0;
    }
    
    .b1t-ymservice-custom-header-phones {
        position: static;
    }
    
    .b1t-ymservice-custom-header-phones .popup {
        top: 10px;
        left: 10px;
        right: 10px;
        width: auto;
    }
    .b1t-ymservice-custom-header-phones .context.icon-24-bf.icon-phone-24:before {
        width: 32px;
        height: 32px;
    }
    .b1t-ymservice-custom-header-phones .clickable-panel .context:before {
        margin-top: -16px;
        margin-left: -16px;
    }  
}