
:root {
  --tc-webchat-launcher-bubble-color: #0c646e;
}

/* Widget Position Adjustments (Moved Down 40px) */
#embedded_messenger {
  position: fixed;
  z-index: 2147483002;
  bottom: 40px !important;
  right: 2rem;
  height: 513px;
  box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.15) !important;
  border-radius: 20px 20px 0px 0px;
}

#embedded_messenger.active {
  bottom: 40px !important;
  margin-right: 36px;
  width: 375px;
  overflow: hidden;
}

#embedded_messenger iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 20px 20px 0px 0px;
  border: 0;
}

.tc--b-widget-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  z-index: 2;
  right: var(--tc-webchat-launcher-spacing-right, 20px);
  bottom: 40px !important; /* moved down */
  gap: 1.5rem;
}

.tc--b-widget-launcher--circle {
  --__tc-webchat-launcher-bubble-width: var(--tc-webchat-launcher-bubble-width, 65px);
  --__tc-webchat-launcher-bubble-height: var(--tc-webchat-launcher-bubble-height, 65px);
  --__tc-webchat-launcher-content-bg-color: var(--tc-webchat-launcher-content-bg-color, #f6f9fb);
  --__tc-webchat-launcher-text-color: var(--tc-webchat-launcher-text-color, black);
}

.tc--b-widget-launcher--square {
  --__tc-webchat-launcher-bubble-width: var(--tc-webchat-launcher-bubble-width, 290px);
  --__tc-webchat-launcher-bubble-height: var(--tc-webchat-launcher-bubble-height, 56px);
  --__tc-webchat-launcher-content-bg-color: var(--tc-webchat-launcher-content-bg-color, "transparent");
  --__tc-webchat-launcher-text-color: var(--tc-webchat-launcher-text-color, white);
}

.tc--b-widget-launcher__bubble {
  background-color: var(--tc-webchat-launcher-bubble-color);
  width: var(--__tc-webchat-launcher-bubble-width, --tc-webchat-launcher-bubble-width);
  height: var(--__tc-webchat-launcher-bubble-height, --tc-webchat-launcher-bubble-height);
  box-shadow: 0px 3px 5px 3px #00000026;
  transition: box-shadow 0.2s ease-in-out;
  display: flex;
  align-items: center;
  position: relative;
}

.tc--b-widget-launcher__bubble,
.tc--b-widget-launcher__bubble:focus,
.tc--b-widget-launcher__bubble:focus-within {
  border: none;
  outline: none;
}

.tc--b-widget-launcher--square .tc--b-widget-launcher__bubble {
  padding: 0.5rem 1rem;
  border-radius: 15px 15px 0px 0px;
}

.tc--b-widget-launcher--circle .tc--b-widget-launcher__bubble {
  padding: 0;
  border-radius: 50%;
}

.tc--b-widget-launcher__img {
  height: 100%;
  max-height: 100%;
  object-fit: cover;
}

.tc--b-widget-launcher--circle .tc--b-widget-launcher__img {
  width: 100%;
  max-width: 100%;
  border-radius: 50%;
}

.tc--b-widget-launcher__content {
  background-color: var(--__tc-webchat-launcher-content-bg-color, --tc-webchat-launcher-content-bg-color);
  color: var(--__tc-webchat-launcher-text-color, --tc-webchat-launcher-text-color);
  order: -1;
  flex: 1;
}

.tc--b-widget-launcher--circle .tc--b-widget-launcher__content {
  position: absolute;
  right: calc(100% + 1.5rem);
  z-index: 1;
  padding: 0.7rem;
  border-radius: 12px;
  box-shadow: 0px 2px 4px 0px #2222221a;
}

.tc--b-widget-launcher--circle .tc--b-widget-launcher__content::before {
  display: block;
}

.tc--b-widget-launcher__content::before {
  position: absolute;
  content: "";
  right: -0.5rem;
  background-color: inherit;
  transform: translateY(-50%) rotateZ(-45deg) skew(10deg, 10deg);
  z-index: -1;
  top: 50%;
  box-shadow: 2px 4px 5px -2px #2222221a;
  display: none;
  border: .7rem solid transparent;
}

.tc--b-widget-launcher__text {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  margin: 0;
  text-align: left;
}

.tc--b-widget-launcher__last-msg {
  position: absolute;
  z-index: 1;
  right: 0;
  top: calc(-0.7 * var(--__tc-webchat-launcher-bubble-height, --tc-webchat-launcher-bubble-height));
  background-color: #f6f9fb;
  border-radius: 5px;
}

.tc--b-widget-launcher__last-msg:before {
  z-index: 1;
  content: "";
  position: absolute;
  bottom: -0.6rem;
  right: -0.5rem;
  transform: translateX(calc(-0.5 * var(--__tc-webchat-launcher-bubble-height, --tc-webchat-launcher-bubble-height))) rotate(45deg);
  box-sizing: border-box;
  border: .7rem solid transparent;
  box-shadow: 5px 5px 5px 0px #2222221a;
  border-bottom-color: #f6f9fb;
  border-right-color: #f6f9fb;
}

.tc--b-widget-launcher__last-msg_text {
  width: max-content;
  max-width: 24ch;
  padding: 8px;
  border-radius: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Muli", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  color: #494d4f;
  margin: 0;
  box-shadow: 0px 2px 4px 0px #2222221a;
  animation-duration: 0.3s;
}

.tc--b-widget-launcher--square .tc--b-widget-launcher__last-msg_text {
  animation-name: tactful__new-message-in-square;
}

.tc--b-widget-launcher--circle .tc--b-widget-launcher__last-msg_text {
  animation-name: tactful__new-message-in-circle;
}

.tc--b-widget-launcher--circle .tc--b-widget-launcher__last-msg {
  animation-name: tactful__new-message-in-circle;
  animation-duration: 0.5s;
}

.tc--b-widget-launcher--square .tc--b-widget-launcher__last-msg {
  animation-name: tactful__new-message-in-square-tail;
  animation-duration: 0.3s;
}

.tc--b-widget-launcher-counter-badge {
  position: absolute;
  bottom: -1px;
  left: -5px;
  padding: 5px 10px;
  border-radius: 50%;
  background: #e84a5f;
  color: white;
  height: 20px;
  width: 20px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-content: flex-end;
  align-items: center;
  justify-content: center;
  animation-name: tactful__counter-badge-scale;
  animation-duration: 0.3s;
}

@keyframes tactful__new-message-in-circle {
  0% {
    margin-right: -50px;
    opacity: 0;
  }
  100% {
    margin-right: 0;
    opacity: 1;
  }
}

@keyframes tactful__new-message-in-square {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  20% {
    transform: translateY(20%);
    opacity: 0;
  }
  50% {
    transform: translateY(50%);
    opacity: 0.5;
  }
  80% {
    transform: translateY(80%);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

@keyframes tactful__counter-badge-scale {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes tactful__new-message-in-square-tail {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
