 body {
      font-family: Arial, sans-serif;
      margin: 0;
      background: #f4f4f4;
    }
	
	#chat-header {
  background: #1976d2;
  color: white;
  padding: 10px;
  text-align: center;

  font-size:20px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}


.typing-indicator span {
    display: inline-block;
    background-color: #007bff;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 2px;
    animation: bounce 0.6s infinite alternate;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-5px);
    }
}




#chat-button-container {
  position: relative;
  display: inline-block;
}

#chat-tooltip {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

#chat-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

#chat-button-container:hover #chat-tooltip {
  visibility: visible;
  opacity: 1;
}
	
	.typing-indicator {
  font-style: italic;
  color: gray;
  margin: 10px;
  padding: 6px 12px;
  font-size: 13px;
  background: #eeeeee;
  border-radius: 12px;
  animation: fadeInOut 1.5s infinite;
  text-align: left;
  width: fit-content;
}

@keyframes fadeInOut {
  0% { opacity: 0.2; }
  50% { opacity: 1; }
  100% { opacity: 0.2; }
}
	
	
    #chat-button {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background-color: #1976d2;
      color: white;
      border: none;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      font-size: 34px;
      cursor: pointer;
      z-index: 999;
    }
    #chat-container {
      position: fixed;
	  top: auto; /* sadece masaüstünde */
      bottom: 90px;
      right: 20px;
      width: 100%;
      max-width: 400px;
      height: 480px;
      background: white;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0,0,0,0.2);
      display: none;
      flex-direction: column;
      overflow: hidden;
      z-index: 998;
    }
    #chat-box {
	  max-height: 400px; /* örnek */
      flex: 1;
      padding: 15px;
      overflow-y: auto;
	  
    }
	
	#chat-box {
  scroll-behavior: smooth;
}
    .message {
      margin: 10px 0;
      padding: 10px;
      border-radius: 10px;
      max-width: 80%;
      word-wrap: break-word;
    }
	.message {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
    .bot {
      background: #e1f5fe;
      text-align: left;
    }
    .user {
      background: #c8e6c9;
      text-align: right;
      margin-left: auto;
      max-width: 60%;
      word-wrap: break-word;
      border-radius: 10px;
      padding: 10px;
    }
    .options {
      padding: 10px;
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      justify-content: center;
    }
    .options button {
      padding: 8px 12px;
      border: none;
      background: #1976d2;
      color: white;
      border-radius: 6px;
      cursor: pointer;
    }
    .options button:hover {
      background: #0d47a1;
    }
    #clear-btn {
      background: #e53935;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 20px;
      cursor: pointer;
      font-weight: bold;
      margin: 10px auto;
    }
    img.product-img {
      max-width: 180px;
      margin-top: 8px;
      border-radius: 8px;
      cursor: pointer;
    }
	.product-img:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-in-out;
}

    #popup {
      position: fixed;
      display: none;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.8);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
	
 #popup-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#close-popup {
  position: absolute;
  top: 10px;
  right: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 18px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
}

#popup img {
  max-width: 40%;
  max-height: 30%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}


	
	@media screen and (max-width: 600px) {


@media screen and (max-width: 600px) {
  #chat-container {
    top: auto; /* Üst sabitlemeyi kaldırıyoruz */
    bottom: 80px; /* Sohbet butonundan biraz yukarıda başlasın */
    right: 10px;
    left: 10px;
    width: auto;
    height: 76vh;
    max-width: none;
  }
}
  #chat-button {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .message {
    font-size: 14px;
  }

  .options button {
    font-size: 14px;
    padding: 6px 10px;
  }

  img.product-img {
    max-width: 100%;
  }

  #popup img {
    max-width: 95%;
    max-height: 90%;
  }
}

#chat-box .message b,
#chat-box .message strong {
  font-weight: bold;
  color: #1976d2; /* Bu renk, sohbet başlığıyla aynı renktir. */
}

/* Nabız efekti için animasyon */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 180, 255, 0.9); /* Daha parlak bir mavi */
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 180, 255, 0); /* Gölgelik alanını 15px'e çıkarıyoruz */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 180, 255, 0);
    }
}

.pulsing-chat-button {
    animation: pulse 1.5s infinite; /* Animasyon süresini 1.5s'ye düşürerek hızlandırıyoruz */
    background-color: #0096c7; /* Butonun kendi rengini de daha canlı bir mavi yapalım */
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 24px;
    width: 60px;
    height: 60px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: transform 0.2s; /* Butona hover efekti ekliyoruz */
}

.pulsing-chat-button:hover {
    transform: scale(1.05); /* Fare üzerine gelince hafifçe büyüme efekti */
}