.chat-footer input {
  flex-grow: 1;
  border: none;
  padding: 10px;
  border-radius: 20px !important;
  margin-right: 10px;
  color: black;
  font-family: system-ui;
  font-size: 16px;
  line-height: 24px;
}

@media (min-width: 1350px) and (max-width: 1500px) and (min-height: 600px) and (max-height: 900px) {
  .chat-container {
    max-width: 25% !important;
    min-width: 25% !important;
    height: calc(90% - 120px) !important;
    left: 72% !important;
    bottom: 10% !important;
    z-index: 1003;
  }

  #toggle-chat {
    left: 94% !important;
  }
}

@media only screen and (max-width: 600px) {
  .chat-container {
    max-width: 90% !important;
    min-width: 90% !important;
    height: calc(90% - 100px) !important;
    left: 5% !important;
    bottom: 12% !important;
    z-index: 1003;
  }

  #toggle-chat {
    left: 82% !important;
  }

  .powered-by {
    margin-bottom: -20px;
  }
}

#chat-container {
  display: none;
}
/** chat container **/

.chat-container {
  padding: 20px;
  max-width: 20%;
  min-width: 20%;
  margin: 20px auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100% - 40px);
  position: fixed;
  left: 78%;
  bottom: 8%;
  max-height: 700px;
  justify-content: space-between;
  z-index: 1003;
  /* Using jQuery animate for fullscreen toggle; disable CSS transitions here */
}

.chat-header {
  background-color: white;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.header-right > button:not(:first-child) {
  margin-left: 5px;
}

/* Override absolute positioning for new chat button in header-right */
.header-right .lionstack-ai-new-chat-button {
  position: static !important;
  margin-right: 0 !important;
  top: auto !important;
  right: auto !important;
}

.ai-assistant-logo {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 8px;
  padding: 8px;
}

.header-text {
  margin: 0;
}

.header-text h1 {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: -16px;
}

.status {
  margin: 0;
  font-size: 14px;
  color: #4caf50;
}

.lionstack-ai-new-chat-button,
.lionstack-ai-fullscreen-button,
.lionstack-ai-chat-close-button {
  background-color: #f0f0f0;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.lionstack-ai-new-chat-button:hover,
.lionstack-ai-fullscreen-button:hover {
  background-color: #e0e0e0;
}

.lionstack-ai-chat-close-button:hover {
  background-color: transparent;
}

.chat-body {
  flex-grow: 1;
  overflow-y: auto;
  font-family: system-ui;
  font-size: 16px;
  line-height: 24px;
  max-height: 100%;
  position: relative;
}

.timestamp {
  text-align: center;
  color: #999;
  font-size: 12px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.message {
  max-width: 80%;
  margin-bottom: 20px;
  clear: both;
}

.user-message {
  float: right;
  color: white;
  padding: 10px;
  border-radius: 15px;
  width: 260px;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: break-spaces;
}

.ai-message {
  display: -webkit-box; /* Váltás flexbox rendszerre az elemek melletti elrendezéshez */
  align-items: center; /* Középre igazítja az elemeket függőlegesen */
  margin-bottom: 20px; /* Tartja a távolságot a következő üzenetek között */
}

#ai-assistant-input {
  background-color: white;
  height: 40px;
}

#ai-assistant-input:focus {
  border: 1px solid black;
}

.chat-bubble p {
  margin-top: 5px;
  margin-bottom: 5px;
  width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: break-spaces;
}

.chat-bubble {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 15px;
  border: 1px solid rgb(229, 231, 235);
  flex-grow: 1; /* Biztosítja, hogy a buborék kitöltse a rendelkezésre álló helyet */
  color: black;
}

.message-logo {
  width: 33px;
  height: 33px;
  margin-right: 10px;
  border-radius: 25px;
  padding: 6px;
}

.message-logo-outside {
  width: 34px; /* Állítsd be a logó méretét */
  height: auto;
  margin-right: 10px; /* Távolság a logó és a chat buborék között */
  border-radius: 25px;
}

.chat-footer {
  display: flex;
  border-top: 1px solid #e0e0e0;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
}



.chat-footer input[type="text"]::placeholder {
  color: #888;
  opacity: 1;
  font-family: system-ui;
  font-size: 16px;
  line-height: 24px;
}

.send-button {
  /*background-color: #1685a3 !important;*/
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1; /* Kezdeti, alacsonyabb opacitás */
  transition: opacity 0.3s; /* Sima átmenet az opacitás változásához */
}

.send-button:hover {
  opacity: 0.5; /* Teljes opacitás, amikor az egér a gomb fölött van */
}

.powered-by {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 10px;
}

.powered-by img {
  width: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

.user-message p {
  margin-top: 5px;
  margin-bottom: 5px;
}

.toggle-chat {
  /*background-color: transparent;*/
  /*background-image: url("/wp-content/plugins/chat-assistant/assets/img/assistant-bg.jpg");*/
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  position: fixed;
  bottom: 21px;
  right: 21px;
  z-index: 1003;
  background: linear-gradient(90deg, rgba(255, 126, 95, 1) 0%, rgba(232, 154, 91, 1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-chat img {
  width: 50%;
  height: 50%;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.3s, opacity 0.3s;
}

/*Pulsing img effect*/
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/*Pulsing img effect*/

.typing-dots .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: black;
  animation: typing 1.5s infinite;
}

@keyframes typing {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

.typing-indicator {
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: left;
  align-items: center;
  display: none; /* Kezdetben ne jelenjen meg */
}

.typing-indicator span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #9b9b9b;
  margin: 0 3px;
  animation: typing 1s infinite ease;
}

@keyframes typing {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

.lionstack-ai-questions-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    padding: 10px;
    z-index: 1;
}

.lionstack-ai-help-text {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.lionstack-ai-question-button {
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    color: #000000;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    text-align: left;
    line-break: auto;
    text-align: center;
}

.lionstack-ai-question-button:hover,
.lionstack-ai-question-button:focus,
.lionstack-ai-question-button:active {
  background-color: #FF9800;
}

.lionstack-ai-new-chat-button {
    background-color: #333333;
    background-image: none !important;
    border: none;
    color: #fff;
    padding: 5px 8px;
    margin-right: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    font-family: system-ui;
    font-weight: 600;
    position: absolute;
    top: 19px;
    right: 35px;
    line-height: 1.5 !important;
}

.lionstack-ai-chat-close-button {
    background: none;
    border: none;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    position: absolute;
    top: 3px;
    right: 11px;
    line-height: 1;
    padding: 0 !important;
    transition: 0.3s ease;
}

.lionstack-ai-initial-message-container {
    position: fixed;
    bottom: 110px;
    right: 100px;
    background-color: white;
    border-radius: 15px;
    padding: 10px 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    display: block;
    z-index: 1004;
    max-width: 250px;
    animation: lionstack-ai-slideIn 0.8s ease-out;
}


.lionstack-ai-bubble1 {
    position: absolute;
    top: 63px;
    right: -20px;
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}


.lionstack-ai-bubble2 {
    position: absolute;
    top: 45px;
    right: -5px;
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.lionstack-ai-bubble3 {
    top: -6px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.lionstack-ai-close-button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    bottom: 1px;
}

/* Töltő karika stílus */
.loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.loading-indicator .loader {
  border: 4px solid #f3f3f3; /* Világos szürke */
  border-top: 4px solid #3498db; /* Kék szín */
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

/* Forgás animáció */
/* Inline töltő karika stílus */
.loading-inline {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle; /* Igazítás a szöveg középvonalához */
  border: 4px solid #f3f3f3; /* Világos szürke */
  border-top: 4px solid #3498db; /* Kék szín */
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 1s linear infinite;
}

/* Forgás animáció */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.chat-container.fullscreen {
  max-width: 100%;
  z-index: 1004;
  left: 20px;
  width: 98%;
  top: 50px;
  max-height: 87%;
}