.whatsapp-connect-container {
  position: fixed;
  z-index: 9999998;

  letter-spacing: 0;
  line-height: 0;
}

.whatsapp-connect-widget-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.whatsapp-connect-link:hover {
  filter: brightness(90%); /* Darken slightly on hover */
}

/* --- Animations --- */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.whatsapp-connect-animation-wrapper.pop {
  animation: bounceIn 0.75s ease forwards;
}

.whatsapp-connect-animation-wrapper.fade-in {
  animation: fadeInUp 1.5s;
}

.whatsapp-connect-animation-wrapper.pulse {
  animation: pulse 2s infinite;
}
/* --- End Animations --- */

/* --- Badge --- */
.whatsapp-connect-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  z-index: 1;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  padding: 2px;
  line-height: 1;
}
/* --- End Badge --- */

/* --- Message --- */
.whatsapp-connect-message {
  background: #fff;
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-right: 10px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
    'Helvetica Neue', sans-serif;
  font-size: 12px;
  line-height: 12px;
  color: #000;
  white-space: nowrap;
}

.whatsapp-connect-message--ice-breaker {
  background: #fff;
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-right: 10px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
    'Helvetica Neue', sans-serif;
  font-size: 12px;
  line-height: 12px;
  color: #000;
  white-space: normal;
  text-align: center;
  pointer-events: none !important;
  max-width: 150px;
  cursor: arrow;
}
/* --- End Message --- */

/* --- WhatsApp Button Component --- */
.whatsapp-connect-button-link {
  /* Layout & Box Model */
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 6px 12px;
  gap: 6px;
  box-sizing: border-box;
  position: relative;

  /* Appearance */
  border-style: hidden;
  outline: none;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer; /* Add pointer cursor */
  transition: filter 0.2s ease; /* Add hover effect */

  /* Default Colors (can be overridden by inline styles) */
  background-color: #25d366;
  color: #ffffff;

  > svg {
    width: 28px;
    height: 28px;
  }
}

.whatsapp-connect-button-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 16px;
  white-space: nowrap; /* Prevent text wrapping */
  text-align: left;
  vertical-align: middle;

  /* Appearance */
  border-style: hidden;
  outline: none;
}
/* --- End WhatsApp Button Component --- */

/* --- WhatsApp Avatar Logo Component --- */
.whatsapp-connect-image-wrapper {
  position: relative; /* Establishes positioning context for the tooltip */
  display: inline-block; /* Adjust as needed (e.g., block) */
  vertical-align: middle; /* Aligns nicely if used inline with text */
}

.whatsapp-connect-image-link {
  display: inline-block; /* Wraps the image tightly */
  line-height: 0; /* Prevents extra space below the image */
}

.whatsapp-connect-image {
  display: block; /* Removes extra space below the image */
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Makes the image round */
  object-fit: cover; /* Ensures the image covers the 50x50 area */
  transition: transform 0.2s ease-in-out;
}

/* Add a subtle hover effect to the image */
.whatsapp-connect-image-link:hover .whatsapp-connect-image {
  transform: scale(1.05);
}

.whatsapp-connect-image-tooltip {
  position: absolute;
  z-index: 9999999; /* Ensure tooltip appears above other elements */
  visibility: hidden; /* Hidden by default */
  opacity: 0; /* Faded out by default */
  transition: opacity 0.3s ease, visibility 0.3s ease;
  top: 50%; /* Vertically center relative to the container */
  transform: translateY(-50%); /* Fine-tune vertical centering */
  pointer-events: none; /* Tooltip doesn't block interaction with the link */
}

/* Show tooltip on container hover */
.whatsapp-connect-image-tooltip--always-visible,
.whatsapp-connect-image-wrapper:hover .whatsapp-connect-image-tooltip,
.whatsapp-connect-image-wrapper:focus-within .whatsapp-connect-image-tooltip {
  /* Show on focus for accessibility */
  visibility: visible;
  opacity: 1;
}

/* Tooltip Positioning */
.whatsapp-connect-image-tooltip--right {
  left: 100%; /* Position to the right of the container */
  margin-left: 10px; /* Add space between image and tooltip */
}

.whatsapp-connect-image-tooltip--left {
  right: 100%; /* Position to the left of the container */
  margin-right: 10px; /* Add space between image and tooltip */
}

/* User provided styles integrated and refined */
.whatsapp-connect-image-tooltip .tooltip-container {
  background-color: #ffffff;
  min-height: 20px; /* Allow height to grow with content */
  width: auto; /* Allow width to adjust */
  max-width: 150px; /* Prevent tooltip from becoming too wide */
  padding: 4px 8px; /* Add some internal spacing */
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Optional: subtle shadow */
  display: flex;
  align-items: center;
}

.whatsapp-connect-image-tooltip .tooltip-text {
  /* Typography */
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
    'Helvetica Neue', sans-serif; /* Added fallback fonts */
  font-size: 12px;
  letter-spacing: normal;
  line-height: 16px; /* Adjusted line-height */
  white-space: nowrap; /* Prevent line breaks */
  /* word-wrap: break-word; Break long words */
  text-align: left;

  /* Appearance */
  border-style: hidden;
  outline: none;
  color: #000000;
  width: 100%; /* Fill the container */
}
/* --- End WhatsApp Avatar Logo Component --- */