/* Hide Tawk bubble/widget until user clicks "Talk to an agent" */
body:not(.cdc-chat-active) .tawk-min-container,
body:not(.cdc-chat-active) .tawk-button,
body:not(.cdc-chat-active) #tawk-bubble-container,
body:not(.cdc-chat-active) iframe[title*="chat widget"],
body:not(.cdc-chat-active) iframe[title*="Chat"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cdc-chat-launcher {
  position: fixed;
  z-index: 9998;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #1199fa;
  color: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(17, 153, 250, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cdc-chat-launcher:hover {
  background: #0d7fd4;
  transform: translateY(-1px);
}

.cdc-chat-launcher svg {
  flex-shrink: 0;
}

.cdc-chat-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--common-primary, #1199fa);
  color: #fff;
  font-family: inherit;
  font-size: calc(0.875rem * var(--mantine-scale, 1));
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.cdc-chat-inline-btn:hover {
  filter: brightness(1.08);
}

@media (max-width: 640px) {
  .cdc-chat-launcher {
    left: 12px;
    bottom: 12px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .cdc-chat-launcher span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
