/* Floating WhatsApp Button Styles */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Position on left side */
    z-index: 9999;
  }
  
  .whatsapp-button {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .whatsapp-button:hover {
    background-color: #1ea952;
    transform: scale(1.1);
  }
  
  .whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: white;
  }
  
  /* Chat Box Styles */
  .chat-box {
    position: absolute;
    bottom: 80px;
    left: 0; /* Position chat box on the left side */
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform-origin: bottom left; /* Adjust origin for animation */
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s;
  }
  
  .chat-box.active {
    transform: scale(1);
    opacity: 1;
  }
  
  .chat-header {
    background-color: #075E54;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
  }
  
  .profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
  }
  
  .header-info {
    flex-grow: 1;
  }
  
  .account-name {
    font-weight: bold;
    margin: 0;
    font-size: 16px;
  }
  
  .status-message {
    font-size: 12px;
    margin: 2px 0 0 0;
    opacity: 0.8;
  }
  
  .close-button {
    background: transparent;
    border: none;
    color: white;
    font-size: 22px; /* Increased from 20px */
    cursor: pointer;
    padding: 0 8px;   /* Added horizontal padding for better click area */
    line-height: 1;
  }
  
  
  .chat-body {
    padding: 15px;
    background-color: #E5DDD5;
    height: 250px;
    overflow-y: auto;
  }
  
  .message {
    background-color: white;
    padding: 10px;
    border-radius: 7px;
    margin-bottom: 10px;
    max-width: 80%;
    position: relative;
  }
  
  /* Adjust the chat bubble arrow to point from the left */
  .message:after {
    content: '';
    position: absolute;
    left: -8px; /* This is already correct for left-side */
    top: 10px;
    border: 8px solid transparent;
    border-right-color: white;
    border-left: 0;
  }
  
  .chat-footer {
    display: flex;
    padding: 10px;
    background-color: #F0F0F0;
  }
  
  .chat-input {
    flex-grow: 1;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    margin-right: 10px;
    font-size: 14px;
  }
  
  .send-button {
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Notification Styles */
  .notification {
    position: absolute;
    top: -10px;
    right: -5px;
    background-color: #FF3B30;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
  }
  
  .notification.active {
    opacity: 1;
    transform: scale(1);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 480px) {
    .chat-box {
      width: calc(100vw - 40px);
      left: -10px;
    }
  }

  /* Adjusted Font Sizes and General Improvements */

/* Chat Header */
.account-name {
  font-weight: 600;
  margin: 0;
  font-size: 14px; /* Reduced from 16px */
}

.status-message {
  font-size: 11px; /* Reduced from 12px */
  margin: 2px 0 0 0;
  opacity: 0.75;
}

/* Chat Body Messages */
.message {
  background-color: white;
  padding: 8px 10px; /* Slightly smaller padding */
  font-size: 13px;   /* Reduced font size */
  border-radius: 7px;
  margin-bottom: 8px;
  max-width: 80%;
  position: relative;
  line-height: 1.4;
}

/* Chat Footer Input */
.chat-input {
  flex-grow: 1;
  border: none;
  border-radius: 20px;
  padding: 8px 12px; /* Reduced padding */
  margin-right: 8px;
  font-size: 13px;   /* Reduced font size */
}

/* Send Button Icon */
.send-button svg {
  width: 18px;
  height: 18px;
}

/* Notification Bubble */
.notification {
  font-size: 11px; /* Reduced from 12px */
}

/* Optional: reduce font size for entire chat */
.chat-box, .chat-box * {
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
}
