@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(204, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(204, 0, 0, 0);
  }
}

#agm-chat-button {
  animation: pulse 2s infinite;
}
  #agm-lightbox {
      display: none;
      position: fixed;
      z-index: 2000;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.85);
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }

    #agm-lightbox img {
      max-width: 90%;
      max-height: 80%;
      border: 4px solid white;
      border-radius: 10px;
    }

    #agm-lightbox button {
      margin-top: 20px;
      padding: 8px 14px;
      background: #cc0000;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-weight: bold;
    }

#agm-chat-button {
  position: fixed;
  bottom: 100px;
  right: 40px;
  background: white;
  border: 2px solid #000000;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  background-image: url('https://generalpen.it/img/logo-1691578666.jpg');
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  z-index: 1000;
}

#agm-chat-window {
  position: fixed;
  bottom: 170px;
  right: 40px;
  width: 320px;
  height: 500px;
  background: #fff;
  border: 2px solid #000000;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;
}

#agm-chat-header {
  background-color: #000000;
  color: white;
  padding: 10px;
  font-weight: bold;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

#agm-chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

#agm-chat-input {
  display: flex;
  border-top: 1px solid #ccc;
}

#agm-chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  border-bottom-left-radius: 10px;
}

#agm-chat-input button {
  background: #cc0000;
  color: white;
  border: none;
  padding: 10px 12px;
  font-size: 16px;
  cursor: pointer;
}

.agm-bubble {
  margin: 5px 0;
  padding: 8px 10px;
  border-radius: 12px;
  max-width: 90%;
  clear: both;
  opacity: 0;
  animation: fadeIn 2.5s forwards;
}

.agm-user {
  background: #000000;
  color: white;
  align-self: flex-end;
  margin-left: auto;
  text-align: right;
}

.agm-ai {
  background: #f0f0f0;
  color: black;
  align-self: flex-start;
  margin-right: auto;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.agm-product {
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.agm-product img {
  width: 50px;
  height: auto;
  border: 1px solid #ccc;
  cursor: pointer;
}

.agm-product-info {
  font-size: 13px;
  max-width: 200
}