.ttch-contact-launcher {
  --ttch-launcher-ink: #0b1220;
  --ttch-launcher-muted: #5b6472;
  --ttch-launcher-surface: #ffffff;
  --ttch-launcher-border: rgba(15, 23, 42, 0.1);
  --ttch-launcher-brand: #0f766e;
  --ttch-launcher-whatsapp: #25d366;
  bottom: 20px;
  box-sizing: border-box;
  color: var(--ttch-launcher-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: fixed;
  z-index: 2147482999;
}

.ttch-contact-launcher *,
.ttch-contact-launcher *::before,
.ttch-contact-launcher *::after {
  box-sizing: border-box;
}

.ttch-contact-launcher-legacy-hidden {
  display: none !important;
}

.ttch-contact-launcher--right {
  right: 20px;
}

.ttch-contact-launcher--left {
  left: 20px;
}

.ttch-contact-launcher.is-chat-open {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.ttch-contact-launcher__trigger {
  align-items: center;
  appearance: none;
  background: linear-gradient(145deg, #111827, var(--ttch-launcher-brand));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(4, 20, 35, 0.28), 0 4px 12px rgba(4, 20, 35, 0.2);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  height: 64px;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: relative;
  transition: box-shadow 180ms ease, transform 180ms ease;
  width: 64px;
}

.ttch-contact-launcher__trigger:hover {
  box-shadow: 0 20px 46px rgba(4, 20, 35, 0.34), 0 6px 16px rgba(4, 20, 35, 0.24);
  transform: translateY(-2px);
}

.ttch-contact-launcher__trigger:focus-visible,
.ttch-contact-launcher__channel:focus-visible {
  outline: 3px solid rgba(20, 184, 166, 0.42);
  outline-offset: 3px;
}

.ttch-contact-launcher__trigger > svg {
  fill: currentColor;
  height: 28px;
  width: 28px;
}

.ttch-contact-launcher__whatsapp-badge {
  align-items: center;
  background: var(--ttch-launcher-whatsapp);
  border: 2px solid #ffffff;
  border-radius: 999px;
  bottom: -1px;
  color: #ffffff;
  display: flex;
  height: 24px;
  justify-content: center;
  position: absolute;
  right: -2px;
  width: 24px;
}

.ttch-contact-launcher__whatsapp-badge svg {
  fill: currentColor;
  height: 16px;
  width: 16px;
}

.ttch-contact-launcher__unread {
  background: #ef4444;
  border: 2px solid #ffffff;
  border-radius: 999px;
  height: 13px;
  position: absolute;
  right: 1px;
  top: 1px;
  width: 13px;
}

.ttch-contact-launcher__menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--ttch-launcher-border);
  border-radius: 18px;
  bottom: 78px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2), 0 4px 14px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 8px;
  min-width: 228px;
  padding: 10px;
  position: absolute;
}

.ttch-contact-launcher__menu[hidden] {
  display: none;
}

.ttch-contact-launcher--right .ttch-contact-launcher__menu {
  right: 0;
}

.ttch-contact-launcher--left .ttch-contact-launcher__menu {
  left: 0;
}

.ttch-contact-launcher__channel {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--ttch-launcher-ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  gap: 12px;
  line-height: 1.25;
  margin: 0;
  min-height: 54px;
  padding: 8px 12px;
  text-align: left;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  width: 100%;
}

.ttch-contact-launcher__channel:hover {
  background: #f8fafc;
  border-color: var(--ttch-launcher-border);
  color: var(--ttch-launcher-ink);
  transform: translateX(-2px);
}

.ttch-contact-launcher__channel-icon {
  align-items: center;
  background: #e8f5f3;
  border-radius: 11px;
  color: var(--ttch-launcher-brand);
  display: flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.ttch-contact-launcher__channel--whatsapp .ttch-contact-launcher__channel-icon {
  background: #e9fbef;
  color: #148f43;
}

.ttch-contact-launcher__channel-icon svg {
  fill: currentColor;
  height: 21px;
  width: 21px;
}

.ttch-contact-launcher__channel-label {
  color: inherit;
  overflow-wrap: anywhere;
}

@media (max-width: 667px) {
  .ttch-contact-launcher {
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  .ttch-contact-launcher--right {
    right: 16px;
  }

  .ttch-contact-launcher--left {
    left: 16px;
  }

  .ttch-contact-launcher__menu {
    max-width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ttch-contact-launcher__trigger,
  .ttch-contact-launcher__channel {
    transition: none;
  }
}
