/* Ported from Unlimited Elements "Mobile Conversion Menu" as used on https://ixmenu.com/glera/ (GPL). */
.mt-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
}

[dir=rtl] .mt-chat {
  right: auto;
  left: 20px;
}

.mt-chat svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.mt-chat__container {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

.mt-chat__cta-wrapper {
  z-index: 1;
}

.mt-chat__cta {
  display: block;
  position: relative;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mt-accent, #a8731f);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  overflow: hidden;
  transition: all 400ms ease-in-out;
}

.mt-chat__cta span {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mt-chat__cta-open {
  opacity: 1;
  transition: opacity .4s ease-in-out .4s;
}

.mt-chat__cta-close {
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease-in-out;
}

.mt-chat__cta.ue-open .mt-chat__cta-close {
  opacity: 1;
  pointer-events: all;
  transition: opacity .4s ease-in-out .4s;
}

.mt-chat__cta.ue-open .mt-chat__cta-open {
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease-in-out;
}

.ue-floating-chat-blink .mt-chat__cta {
  animation: mt-chat-blink 2s ease-in-out infinite;
}

.ue-floating-chat-blink .mt-chat__cta.ue-open {
  animation: none;
}

@keyframes mt-chat-blink {
  0% { box-shadow: 0 0 0 0 var(--mt-accent, #a8731f); }
  70% { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.mt-chat__wrapper {
  display: none;
  z-index: 0;
}

.mt-chat__wrapper.ue-show {
  display: block;
}

.mt-chat__items {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  margin: 5px 0;
  list-style: none;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
}

.mt-chat__items.ue-show {
  opacity: 1;
}

.mt-chat__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5em;
  margin-bottom: 8px;
}

.mt-chat__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mt-accent, #a8731f);
  color: #fff;
  font-size: 24px;
  text-decoration: none;
}

.mt-chat__item a:hover,
.mt-chat__item a:focus-visible {
  filter: brightness(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .ue-floating-chat-blink .mt-chat__cta {
    animation: none;
  }

  .mt-chat__cta,
  .mt-chat__cta span,
  .mt-chat__cta.ue-open .mt-chat__cta-open,
  .mt-chat__cta.ue-open .mt-chat__cta-close,
  .mt-chat__cta-open,
  .mt-chat__cta-close,
  .mt-chat__items {
    transition: none;
  }
}
