
#aiChatBlockUpsale {
    position: fixed;
    bottom: 0%;
    right: 0%;
    z-index: 100000;
}
img#iconChatUpsale {
    width: 66px;
    cursor: pointer;
}
img#iconChatUpsale:hover{
    opacity: 0.9;
}

#blockChatUpsale {
    display: none;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.3s ease, height 0.3s ease;
    /*background: azure;*/
    position: relative;
    width: 302px;
    height: 485px;
}
#blockChatUpsale.show {
    opacity: 1;
}
#iconChatUpsaleClose {
    width: 40px;
    cursor: pointer;
    position: relative;
    right: -267px;
    top: 33px;
}
img#iconChatUpsaleClose:hover{
    filter: brightness(0.95);
}

#chat-image2{
    transition:visibility 0.25s, opacity 0.25s;
    visibility:hidden; opacity:0;
    position: fixed;
    align-self: center;
    justify-self: center;
    z-index:9;
}
#close{

    border-radius: 50%;
    background: #dbdbdb;
    z-index: 10;
    height: 25px;
    width: 25px;
    border: solid white 1px;
    position: absolute;
    display: flex;
    line-height: 1.1;
    font-size: 20px;
    justify-content: center;
    align-content: center;
    font-family: "HP Simplified";
    bottom: -5px;
    right: -3px;
}
#chat-circle:hover > #chat-image2{

    visibility:visible;
    opacity:1;
}

#bubble{
    display: flex;
    position: fixed;
    align-items: center;
    bottom: 60px;
}
.talk-bubble {
    right: 95px;
    margin: 40px;
    display: inline-block;
    width: auto;
    min-width: 130px;
    min-height: 60px;
    max-height: 80px;
    background-color: #007dbd;
}
.round{
    border-radius: 5px;
}

#help{

    position: fixed;
    margin-right: 30px;
    display: flex;
    transition:visibility 2s, opacity 2s;
    visibility:hidden; opacity:0;
}
:root {
    --loader-size: 0.625rem;
    --loader-spacing: 0.3125rem;
    --loader-background: rgba(255, 255, 255, .6);
    --loader-background-active: rgba(255, 255, 255, .9); /*#ADB5BD;*/
    --loader-animation-duration: 0.8s;
}
.loader {
    margin: 0px 10px;
    align-self:center;
    left: 50px;
    justify-self:center;
    position: relative;
    margin-left: calc(var(--loader-spacing) + var(--loader-size));
    margin-right: calc(var(--loader-spacing) + var(--loader-size));
    animation-delay: calc(var(--loader-animation-duration) / 3);
}
.loader,
.loader::before,
.loader::after {
    display: inline-block;
    width: var(--loader-size);
    height: var(--loader-size);
    background: var(--loader-background);
    border-radius: 100%;
    animation-name: loader;
    animation-duration: var(--loader-animation-duration);
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
.loader::before,
.loader::after {
    content: '';
    position: absolute;
    top: 0;
}
.loader::before {
    left: calc((var(--loader-spacing) + var(--loader-size)) * -1);
}
.loader::after {
    right: calc((var(--loader-spacing) + var(--loader-size)) * -1);
    animation-delay: calc(var(--loader-animation-duration) / 3 * 2);
}
@keyframes loader {
    0%,
    66%,
    100% {
        transform: translateY(10%);
        background: var(--loader-background);
    }

    33% {
        transform: translateY(-25%);
        background: var(--loader-background-active);
    }
}
.talktext{
    font-size: 23px;
    font-family: "HP Simplified light";
    color: white;
    align-self: center;
    justify-self: center;
    padding: 10px;
    text-align: left;
    line-height: 1.5em;
}
#center-text {
    text-align: center;
    display: flex;
    flex: 1;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    height:100%;

}
#chat-online-background{
    z-index:10;
    height: 30px;
    width: 30px;
    position: absolute;
    border-radius: 50%;
    display:flex;
    top: -7px;
    right: -7px;
    /*   overflow: hidden; */
}
#chat-online{
    border: 2px solid #efefef;

    position: absolute;
    bottom: 8%;
    right:7%;
    background-color: #00b712;
    background-image: linear-gradient(315deg, #00b712 0%, #5aff15 74%);
    height: 87%;
    width: 87%;

    border-radius: 50%;

}
#chat-message{
    justify-content: space-evenly;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    /*padding: 6.5px;*/
    /*line-height: 8px;*/
    font-family: "HP simplified";
    font-weight: 550;
    background: rgb(255,0,0);
    background: linear-gradient(333deg, rgba(255,0,0,1) 0%, rgba(255,162,167,1) 100%);

    color: #fff;
    width:100%;
    height:100%;
}
#chat-image{


    align-self: center;
    justify-self: center;
    /*   width: inherit;
      height: inherit; */


}
.bounce-5 {
    animation-name: bounce-5;
    animation-timing-function: ease;
}
@keyframes bounce-5 {
    0%   { transform: scale(1,1)    translateY(0); }
    10%  { transform: scale(1.1,.9) translateY(0); }
    30%  { transform: scale(.9,1.1) translateY(-3px); }
    50%  { transform: scale(1,1)    translateY(0); }
    57%  { transform: scale(1,1)    translateY(-1px); }

}
#chat-circle {
    animation-duration: 1s;
    animation-iteration-count: 1;
    transform-origin: bottom;

    display: flex;
    position: fixed;
    /*   bottom: 50px; */
    right: 20px;
    /*background: #841fc7;*/
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;

    /*box-shadow: 0px 3px 16px 0px rgba(129,98,173, 0.6), 0 3px 1px -2px rgba(129,98,173, 0.5), 0 2px 5px 0 rgba(129,98,173, 0.3);*/
}
/* #chat-circle :hover{
   box-shadow: 2px 2px 32px 0px rgba(129,98,173,0.6);
  border-radius: 50%;
} */
.btn#my-btn {
    background: white;
    padding-top: 13px;
    padding-bottom: 12px;
    border-radius: 45px;
    padding-right: 40px;
    padding-left: 40px;
    color: #5865C3;
}
#chat-overlay {
    background: rgba(255,255,255,0.1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: none;
}


.chat-box {
    display:none;
    background: #efefef;
    position:fixed;
    right:30px;
    bottom:50px;
    width:350px;
    max-width: 85vw;
    max-height:100vh;
    border-radius:5px;
    /*   box-shadow: 0px 5px 35px 9px #464a92; */
    box-shadow: 0px 5px 35px 9px #ccc;
}
.chat-box-toggle {
    float:right;
    margin-right:15px;
    cursor:pointer;
}
.chat-box-header {
    font-family: "HP Simplified Light";
    background: #461b65;
    height:70px;
    border-top-left-radius:5px;
    border-top-right-radius:5px;
    color:white;
    text-align:center;
    font-size:20px;
    padding-top:17px;
}
.chat-box-body {
    position: relative;
    height:370px;
    height:auto;
    border:1px solid #ccc;
    overflow: hidden;
}
.chat-box-body:after {
    content: "";
    background-color: #E8E8E8;
    opacity: 0.1;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height:100%;
    position: absolute;
    z-index: -1;
}
#chat-input {
    background: #f4f7f9;
    width:100%;
    position:relative;
    height:47px;
    padding-top:10px;
    padding-right:50px;
    padding-bottom:10px;
    padding-left:15px;
    border:none;
    resize:none;
    outline:none;
    border:1px solid #ccc;
    color:#888;
    border-top:none;
    border-bottom-right-radius:5px;
    border-bottom-left-radius:5px;
    overflow:hidden;
}
.chat-input > form {
    margin-bottom: 0;
}
#chat-input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: #ccc;
}
#chat-input::-moz-placeholder { /* Firefox 19+ */
    color: #ccc;
}
#chat-input:-ms-input-placeholder { /* IE 10+ */
    color: #ccc;
}
#chat-input:-moz-placeholder { /* Firefox 18- */
    color: #ccc;
}
.chat-submit {
    position:absolute;
    bottom:3px;
    right:10px;
    background: transparent;
    box-shadow:none;
    border:none;
    border-radius:50%;
    color:#461b65;
    width:35px;
    height:35px;
}
.chat-logs {
    padding:15px;
    height:370px;
    overflow-y:scroll;
}

.chat-logs::-webkit-scrollbar-track
{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #F5F5F5;
}

.chat-logs::-webkit-scrollbar
{
    width: 5px;
    background-color: #F5F5F5;
}

.chat-logs::-webkit-scrollbar-thumb
{
    background-color: #461b65;
}



@media only screen and (max-width: 540px) {
    .chat-logs {
        height:40vh;
    }
    #talktext{
        font-size: 16px;
        margin: 10px;
    }
    #help{
        right: 87px;
    }
    #chat-circle{
        right: 20px;
    }
    .talk-bubble {
        min-height: 60px;
    }
}

.chat-msg.user > .msg-avatar img {
    width:45px;
    height:45px;
    border-radius:50%;
    float:left;
    width:15%;
}
.chat-msg.self > .msg-avatar img {
    width:45px;
    height:45px;
    border-radius:50%;
    float:right;
    width:15%;
}
.cm-msg-text {
    background:white;
    padding:10px 15px 10px 15px;
    color:#666;
    max-width:75%;
    float:left;
    margin-left:10px;
    position:relative;
    margin-bottom:20px;
    border-radius:30px;
}
.chat-msg {
    clear:both;
}
.chat-msg.self > .cm-msg-text {
    float:right;
    margin-right:10px;
    background: #461b65;
    color:white;
}
.cm-msg-button>ul>li {
    list-style:none;
    float:left;
    width:50%;
}
.cm-msg-button {
    clear: both;
    margin-bottom: 70px;
}
.mainCover {
    background: rgba(0, 0, 0, 0.34) !important; /* для старых браузеров */
}