:root {
  --color: rgb(104, 148, 159); /*#fe1743;*/
  --layout-height: 80vh;
  --right_prop: -75px;
  --pixel_tranform: calc(var(--right_prop) + -20px);
  --vabottom: 110px;
  --vawidth: 64px;
  --vaheight: 64px;
}

.bot-button,
.bot-button-eng,
.bot-tooltip,
.bot-tooltip-eng,
.bot-layout,
.bot-layout-eng {
  position: fixed;
  z-index: 10000;
  box-sizing: initial;
}

.bot-button,
.bot-button-eng {
  width: var(--vawidth);
  height: var(--vaheight);
  right: var(--right_prop);
  bottom: var(--vabottom);
  border: 3px solid var(--color); 
  border-radius: 50%;
  box-shadow:
    0 2px 4px 0 rgba(0, 0, 0, 0.16),
    0 2px 10px 0 rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: initial;
  padding: 0;
  background: none;
  border: none;
}

.bot-button-fix,
.bot-button-fix-eng {
  border-radius: 5px;  
  box-shadow: 0 7px 25px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  box-sizing: initial;
  padding: 10px;
/* background: rgb(255,255,255); */
/* background: linear-gradient(60deg, rgba(255,255,255,1) 7%, rgba(255,255,255,1) 24%, rgba(22,113,194,1) 24%, rgba(35,90,127,1) 98%); SDPPUB-15073 */
  color: #fff; 
  margin-bottom: 20px;
  height: 85px;
  width: calc(100% - 20px);  
  max-width: 450px; 
  border: 0;
  text-align: left;
}

.bot-button-fix {
  justify-content: center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 20%, rgba(22, 113, 194, 1) 0%, rgba(35, 90, 127, 1) 100%);
}

.bot-button-fix-eng {
  justify-content: unset;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 20%, rgba(221, 0, 51, 1) 0%, rgba(221, 0, 57, 1) 100%);
}

.bot-button-fix span {
  padding-left: 5px;
}

.bot-button-fix-eng span {
  padding-left: 10px;
}

.bot-button-fix .avatar,
.bot-button-fix-eng .avatar-eng {
  width: initial;
  height: 100%;
  position: relative;
  margin-right: 10px;
}

.bot-button-fix .avatar {
  left: 1px;
}

.bot-button-fix-eng .avatar-eng {
  left: 2px;
}


/* tooltip */
.bot-tooltip,
.bot-tooltip-eng {
  display: inline-block;
  background: var(--color); 
  color: #fff;
  border-radius: 10px;
  border-bottom-right-radius: 0;
  padding: 5px 10px;
  width: 250px;
  right: 90px;
  bottom: calc(var(--vabottom) + var(--vaheight));
  box-sizing: initial;
  z-index: 20;
}

.bot-button-animation,
.bot-button-animation-eng {
  transition: transform 0.4s ease-out;
  transform: translateX(var(--pixel_tranform));
}

#chat-close-icon,
#chat-close-icon-eng {
  width: 1em;
  height: 1em;
  margin-left: auto;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e")
    center/1em auto no-repeat;
  border: 0;
  filter: invert(1) grayscale(100%) brightness(200%);
  cursor: pointer;
  right: 10px;
  position: absolute;
}

#va-smallchat,
#va-smallchat-eng {
  font-size: 16px;
}

.bot-layout,
.bot-layout-eng {
  height: var(--layout-height);
  width: 25em;
  bottom: 20px;
  right: 20px;
  overflow: hidden;
  animation: appear 0.15s cubic-bezier(0.25, 0.25, 0.5, 1.1);
  background-color: #fff;
  border-radius: 10px;
  transition:
    right 0.1s cubic-bezier(0.25, 0.25, 0.5, 1),
    bottom 0.1s cubic-bezier(0.25, 0.25, 0.5, 1),
    min-width 0.2s cubic-bezier(0.25, 0.25, 0.5, 1),
    max-width 0.2s cubic-bezier(0.25, 0.25, 0.5, 1),
    min-height 0.2s cubic-bezier(0.25, 0.25, 0.5, 1),
    max-height 0.2s cubic-bezier(0.25, 0.25, 0.5, 1),
    border-radius 50ms cubic-bezier(0.25, 0.25, 0.5, 1) 0.15s,
    background-color 50ms cubic-bezier(0.25, 0.25, 0.5, 1) 0.15s,
    color 50ms cubic-bezier(0.25, 0.25, 0.5, 1) 0.15s;
  box-shadow:
    0 2px 4px 0 rgba(0, 0, 0, 0.16),
    0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

@keyframes appear {
  0% {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  to {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

.messenger-header,
.messenger-header-eng {
  display: flex;
  gap: 10px;
  height: 5em;
  align-items: center;
  padding: 0 10px;
  background-color: var(--color); 
  color: #fff;
  background: rgb(255,255,255);
}

.messenger-header {
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 23%, rgba(22,113,194,1) 0%, rgba(35,90,127,1) 100%);
}

.messenger-header-eng {
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 23%, rgba(221, 0, 51, 1) 0%, rgba(221, 0, 57, 1) 100%);
}

.messenger-header .title_h1,
.messenger-header-eng .title_h1 {
  font-weight: bold;
  font-size: 1em;
  margin: 25px;
}

.messenger-header .avatar,
.messenger-header-eng .avatar-eng {
  width: 20%;
}

@keyframes slidein {
  0% {
    opacity: 0;
    -webkit-transform: translateX(10px);
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

#bot-iframe,
#bot-iframe-eng {
  width: 100%;
  height: calc(var(--layout-height) - 5em);
  border: none;
}

@media (max-width: 450px) {
  .bot-button-fix,
  .bot-button-fix-eng {
    width: 100%;
  }

  .bot-button-fix {
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 22%, rgba(22, 113, 194, 1) 0%, rgba(35, 90, 127, 1) 100%);
  }

  .bot-button-fix-eng {
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 22%, rgba(221, 0, 51, 1) 0%, rgba(221, 0, 57, 1) 100%);
  }

  .bot-button-fix .avatar,
  .bot-button-fix-eng .avatar-eng {
    left: 5px;
    width: 20%;
    height: auto;
  }

  .bot-layout,
  .bot-layout-eng {
    height: 100%;
    width: 100%;
    bottom: 0;
    right: 0;
    overflow: visible;
    border-radius: 0;
  }

  #bot-iframe,
  #bot-iframe-eng {
  }

  .messenger-header,
  .messenger-header-eng {
    height: 5em;
    padding: 0;
  }

  .messenger-header .avatar,
  .messenger-header-eng .avatar-eng {
    width: 20%;
  }
}

