.talkjs-support-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  background: #0c8ce9;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(22, 119, 255, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.talkjs-support-chat-launcher.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.talkjs-support-chat-launcher:hover {
  background: #005a9c;
  transform: scale(1.04);
}

.talkjs-support-chat-launcher:focus-visible {
  outline: 2px solid #005a9c;
  outline-offset: 3px;
}

.talkjs-support-chat-launcher__icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  position: relative;
  background-image: url("https://kalaway.com/wp-content/uploads/2026/04/chat.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.talkjs-support-chat-launcher__icon::before,
.talkjs-support-chat-launcher__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0;
}
.talkjs-support-chat-launcher.is-open .talkjs-support-chat-launcher__icon {
  background-image: none;
}
.talkjs-support-chat-launcher.is-open .talkjs-support-chat-launcher__icon::before {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg);
}
.talkjs-support-chat-launcher.is-open .talkjs-support-chat-launcher__icon::after {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.talkjs-support-chat-launcher__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.talkjs-support-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: min(420px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 132px));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
  background: #fff;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.talkjs-support-chat-widget.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.talkjs-support-chat-chatbox {
  width: 100%;
  height: 100%;
  display: block;
}

.talkjs-support-chat-captcha {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.talkjs-support-chat-launcher.has-error {
  width: auto;
  min-width: 64px;
  max-width: min(280px, calc(100vw - 48px));
  height: auto;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 16px;
  flex-direction: column;
  gap: 6px;
}

.talkjs-support-chat-launcher__error {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  text-align: center;
  max-width: 220px;
}

/* Loaded after TalkJS default.css — see talkjs-support-chat.php enqueue order */
t-chatbox.talkjs-support-chat-chatbox
  .t-theme-message[t-sender="currentUser"]
  .t-message-body {
  background-color: #3b8ae7;
  border-color: #3b8ae7;
}