:root {
  --layout-height: 80vh;
  --right_prop: -75px;
  --pixel_tranform: calc(var(--right_prop) + -20px);
  --avacolor: #173A54;
}

.ava-block .va-button {
  position: fixed;
  z-index: 10000;
  width: 64px;
  height: 64px;
  right: var(--right_prop);
  bottom: 110px;
  border: 0px solid var(--avacolor);
  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;
}

.ava-block .ava-tooltip {
  position: fixed;
  display: inline-block;
  background: var(--avacolor);
  color: #fff;
  border-radius: 10px;
  border-bottom-right-radius: 0;
  padding: 5px 10px;
  width: 250px;
  right: 90px;
  bottom: 175px;
  box-sizing: initial;
  z-index: 20;
}


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

#chat-close-icon {
  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 {
  font-size: 16px;
}

.ava-layout {
  height: var(--layout-height);
  width: 25em;
  position: fixed;
  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);
  z-index: 10000000000;
}

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

.ava-layout .messenger-header {
  display: flex;
  gap: 10px;
  height: 5em;
  align-items: center;
  padding: 0 16px;
  background-color: var(--avacolor);
  color: #fff;
}

.ava-layout .title_h1 {
  font-weight: normal;
  font-size: 1em;
  margin: 0;
  color: #fff;
}

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

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

.ava-block .avatar {
  height: 54px;
  width: initial;
}

@media (max-width: 450px) {
  .ava-layout {
    height: 100svh;
    width: 100%;
    bottom: 0;
    right: 0;
    overflow: visible;
    border-radius: 0;
  }

  #bot-iframe {
    height: calc(100svh - 6em);
  }
}


/* per assistente virtuale PTL-7655 */
/* i seguenti stili devono essere sistemati lato bot
 * li scrivo qui come promemoria 
 */
.messenger-header {
  background-color: var(--avacolor) !important;
}
.mic-btn {
  color: var(--avacolor) !important;
}
.circle-shape {
  background-color: var(--avacolor) !important;
}
.loading {
  color: var(--avacolor) !important;
}
#scrollingChat {
    padding: 2rem 0;
}

