@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
.op*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
 
.chatbot__grid {
    display: grid !important;
    grid-template-rows: 60px 1fr auto 54px 76px;
    height: 753px;
}

.op {
	position:fixed;
	right:24px; bottom: 0px;
    width: 306px;
    z-index:20000;
}
.op .title{
    align-items: center;
    background: #45b08a;
    border-radius: 12px 12px 0 0;
    color: #fff;
    display: flex;
    padding: 18px;
}

.op .title svg {
    height: 24px;
    width: 24px;
}

.op .title span {
    font-size: 14px;
    font-weight: bold;
    line-height: 24px;
    letter-spacing: 0.15px;
    margin-left: 14px;
}

.op .buttons{
    display: flex;
    padding: 10px 10px 42px;
	margin-top:10px;
	background: white;
    border-radius: 12px;
    padding-bottom: 4px;
    height: 45px;
	
	
}

.op .buttons * {
    display: block;
    height: 24px;
    width: 24px;
}

.op .buttons *:not(:first-child) {
    margin-left: 12px;
}

.op .buttons #telegram-icon {
    background-image: url(/bitrix/templates/v2/include/chatbot/buttons.svg);
    background-position: -4px -4px ;
}

.op .buttons #whatsapp-icon {
    background-image: url(/bitrix/templates/v2/include/chatbot/buttons.svg);
    background-position: -40px -4px;
}

.op .buttons #viber-icon {
    background-image: url(/bitrix/templates/v2/include/chatbot/buttons.svg);
    background-position: -76px -4px;
}

.op .buttons #marusya-icon {
    background-image: url(/bitrix/templates/v2/include/chatbot/buttons.svg);
    background-position: -112px -4px;
}
.op .buttons #sber-icon {
    background-image: url(/bitrix/templates/v2/include/chatbot/salute.png);
    background-size: contain;
}
.op .buttons #alisa-icon {
    background-image: url(/bitrix/templates/v2/include/chatbot/buttons.svg);
    background-position: -148px -4px;
}

.op .form {
    background: #FAFBFC;
    border-left: 1px solid #45B08A;
    border-right: 1px solid #45B08A;
    padding: 26px 16px 4px;
    overflow-y: auto;
}

.op .form::-webkit-scrollbar {
    width: 6px;
    background-color: #EAE9E8;
    overflow: visible;
}

.op .form::-webkit-scrollbar-thumb {
    cursor: pointer;
    background: #555555;
    border-radius: 100px;
    width: 6px;
    position: absolute;
    top: 0;
    left: 0; 
}

.op #fixedMenu {
    align-items: center;
    background: #FAFBFC;
    border-left: 1px solid #45B08A;
    border-right: 1px solid #45B08A;
    display: flex;
    flex-wrap: wrap;
    padding: 0 16px;
}

.op #fixedMenu .menu {
    margin: 6px 6px 0 0;
}

.op #fixedMenu .menu .menu {
    margin: 0;
}

.op .form .inbox{
    width: 100%;
    display: flex;
    align-items: baseline;
}
.op .form .user-inbox{
    justify-content: flex-end;
    margin: 13px 0;
}

.op .form .inbox .icon{
    height: 40px;
    width: 40px;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    font-size: 18px;
    background: #45b08a;
}
.op .form .inbox .msg-header{
    max-width: 100%;
}

.form .inbox .msg-header p{
    color: #000;
    background: #FFFFFF;
    border: 1px solid #F5F7FA;
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 14px;
    word--break: break-all;
}

.op .typing-field {
    align-items: center;
    background: #FAFBFC;
    border: 1px solid #45B08A;
    border-top: none;
    border-radius: 0 0 12px 12px;
    display: grid;
    grid-gap: 14px;
    grid-template-columns: 1fr 21px;
    padding: 4px 16px 16px;
    width: 100%;
}

.op .typing-field .input-data{
    height: 33px;
    width: 100%;
}
.op .typing-field .input-data input{
    background: #FFFFFF;
    border: 1px solid #B0BEC5;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    padding: 0 15px;
    transition: all 0.3s ease;
    height: 100%;
    width: 100%;
}
.typing-field .input-data input:focus{
    border-color: rgba(0,123,255,0.8);
}
.input-data input::placeholder{
    color: #999999;
    transition: all 0.3s ease;
}
.input-data input:focus::placeholder{
    color: #bfbfbf;
}
.op .typing-field button {
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 3px;
    padding: 0;
    height: 18px;
    width: 21px;
}



@media (max-width: 768px) {
	
	.op {right:0;}
}
	
	
	
	@media (max-height:  50px) {
	
	.op{
      
height:calc(80vh-90px);
    
}
	.op .form{
    
    min-height: calc(100vh - 120px);  
    max-height: calc(100vh - 120px);
  
}
}

.user-inbox:not(.vr) .msg-header p{
    background: #45B08A;
    border-radius: 4px;
    color: #FFFFFF;
    padding: 6px 10px;
}

.msg-header.menu p{
    background:#FFFFFF;
    border: 1px solid #F1E8F5;
    border-radius: 4px;
    line-height: 100%;
    padding: 4px 10px;
}

.msg-header.menu p a {
    color: #607D8B;
    font-size: 12px;
    line-height: 16px;
}

.op .form .user-inbox.menu{ 
    display: inline-block;
    width: fit-content;
    white-space: nowrap;
} 

.op .form .user-inbox.vr:not(.menu) .msg-header {
    width: 100%;
}

.op .form .user-inbox.vr:not(.menu) {
    background: #FFFFFF;
    border-left: 1px solid #F5F7FA;
    border-right: 1px solid #F5F7FA;
    justify-content: flex-start;
    margin: 0;
    padding: 0 12px;
}

.op .form .user-inbox.vr:not(.menu):first-of-type {
    border-top: 1px solid #F5F7FA;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    margin-top: 2px;
}

.op .form .user-inbox.vr:not(.menu):last-of-type {
    border-bottom: 1px solid #F5F7FA;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-bottom: 16px;
}

.op .form .user-inbox.vr:not(.menu) a {
    align-items: center;
    border: none;
    border-bottom: 1px solid #CFD8DC;
    border-radius: 0;
    display: grid;
    font-size: 12px;
    grid-template-columns:  1fr auto;
    padding: 6px 0;
    width: 100%;
}

.op .form .user-inbox.vr:not(.menu):first-of-type a {
    padding-top: 12px;
}

.op .form .user-inbox.vr:not(.menu):last-of-type a {
    border-bottom: none;
    padding-bottom: 12px;
}

.op .form .user-inbox.vr:not(.menu) a img {
    padding: 0 5px;
}

.chatbot__btn {
    bottom: 16px !important;
    right: 27px !important;
    height: 50px !important;
    width: 50px !important;
}

.chatbot__btn::before {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    height: 28px !important;
    width: 28px !important;
}

.act.chatbot__btn::before {
    font-size: 22px !important;
    text-align: center;
}

@media screen and (max-height: 800px) {
    .chatbot__grid {
        height: 100vh;
    }
}

@media screen and (max-width: 600px) {
    .op {
        background: #FFFFFF;
        right: 0;
        width: 100%;
    }

    .op .title {
        border-radius: 0;
    }

    .op .typing-field {
        border-radius: 0;
    }

    .op .buttons {
        padding: 10px 16px 30px;
    }
}



 .nomenu.msg-header a{ color: #00935f !important;}