@charset "UTF-8";

/* AI styl */
  #chatbox-toggle {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background: #0072bc;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  #chatbox {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 340px;
    max-height: 520px;
    background: linear-gradient(to bottom right, #ffffff, #f0f8ff);
    border: 1px solid #ccc;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    font-family: sans-serif;
    display: none;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
  }

  #chatlog {
    height: 320px;
    overflow-y: auto;
    padding: 10px;
    font-size: 14px;
  }

  #chat-input-row {
    display: flex;
    border-top: 1px solid #ddd;
	background-color:#FFFFFF;
  }

  #userInput {
	  flex: 1;
	  resize: none;
	  border: none;
	  padding: 5px;
	  font-size: 14px;
	  border-radius: 0 0 0 10px;
	  line-height: 1.4;
	  min-height: 40px;
	  background-color:#FFFFFF;
	  font-family: inherit;
	}
	
  #sendBtn {
    background: #0072bc;
    color: white;
    border: none;
    padding: 0 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 0 16px 0;
  }

  #sendBtn:hover {
    background: #005b99;
  }

  .msg {
    margin: 8px 0;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .user {
    text-align: right;
  }

  .user .bubble {
    background: #e0f3ff;
    color: #003355;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 16px;
    max-width: 80%;
  }

  .bot {
    text-align: left;
  }

  .bot .bubble {
    background: #0072bc;
    color: white;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 16px;
    max-width: 80%;
  }

  .ai-reply {
    line-height: 1.2;
    font-size: 14px;
    padding: 6px 0;
  }

  .intro-message {
    font-size: 13px;
    color: #444;
    background: #e8f4fc;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    line-height: 1.5;
  }
  
  #chatbox-header {
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	  background: #0072bc;
	  color: white;
	  padding: 8px 12px;
	  font-size: 14px;
	  font-weight: bold;
	}
	
	#chatbox-resize {
	  background: none;
	  border: none;
	  color: white;
	  font-size: 18px;
	  cursor: pointer;
	}
	
	#chatbox.expanded {
	  width: 90vw;
	  height: 80vh;
	  max-height: unset;
	  bottom: 50px;
	  left: 50%;
	  transform: translateX(-50%);
	  display: flex;
	  flex-direction: column;
	}
	
	#chatbox.expanded #chatlog {
	  height: calc(100% - 100px);
	}
	
	.ai-question {
	  background: #eaf4fb;
	  padding: 6px 10px;
	  margin: 10px 0;
	  border-left: 4px solid #0072bc;
	  font-style: italic;
	  font-size: 14px;
	}
	
	.bot-typing .dots span {
	  animation: blink 1.4s infinite steps(1);
	  display: inline-block;
	  opacity: 0;
	}
	
	.bot-typing .dots span:nth-child(1) { animation-delay: 0s; }
	.bot-typing .dots span:nth-child(2) { animation-delay: 0.2s; }
	.bot-typing .dots span:nth-child(3) { animation-delay: 0.4s; }
	
	@keyframes blink {
	  0% { opacity: 0; }
	  50% { opacity: 1; }
	  100% { opacity: 0; }
	}
	
	#chatbox-close {
	  background: none;
	  border: none;
	  color: white;
	  font-size: 18px;
	  cursor: pointer;
	  line-height: 1;
	}

	.product-recommendation {
	  margin-top: 10px;
	  padding-top: 6px;
	  border-top: 1px dashed #ccc;
	}
	
	.product-recommendation h4 {
	  margin: 8px 0;
	  font-size: 14px;
	  color: #003355;
	}
	
	.product-list {
	  display: flex;
	  flex-wrap: wrap;
	  gap: 10px;
	}
	
	.product-item {
	  width: 140px;
	  height: 200px;
	  background: #fff;
	  border: 1px solid #ddd;
	  padding: 6px 4px;
	  border-radius: 5px;
	  font-size: 12px;
	  text-align: center;
	  box-shadow: 1px 1px 4px rgba(0,0,0,0.05);
	  transition: transform 0.2s;
	  display: flex;
	  flex-direction: column;
	  justify-content: space-between;
	}
	
	.product-item:hover {
	  transform: scale(1.02);
	  box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
	}
	
	.category-recommendation {
	  margin: 5px 0px 5px 0px;
	}
	
	.product-title {
	  font-weight: bold;
	  font-size: 12px;
	  color: #005729;
	  min-height: 34px; /* 2 riadky po 16â18px */
	  display: flex;
	  align-items: flex-end;
	  justify-content: center;
	  text-align: center;
	  line-height: 1.2;
	}
	
	.product-image-wrapper {
	  height: 140px; /* vÃ½Å¡ka priestoru na obrÃ¡zok */
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  overflow: hidden;
	}
	
	.product-image-box {
	  width: 130px;
	  height: 130px;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	}
	
	.product-image-chat {
	  max-height: 100%;
	  max-width: 100%;
	  object-fit: contain;
	  display: block;
	}

	.product-brand {
	  color: #666;
	  font-size: 11px;
	}
	
	.product-link {
	  text-decoration: none;
	  color: inherit;
	}
	
	.product-link:hover {
	  text-decoration: none; /* toto zakÃ¡Å¾e underline */
	}
	
	.product-link:hover .product-title {
	  color: #EE8225;
	}
	
	.uppercase-only {
	  text-transform: uppercase;
	  font-weight:bold;
	}	
	
	
	.chatbox-hint {
	  position: fixed;
	  bottom: 80px;
	  left: 80px;
	  background: #fff8e5;
	  border: 1px solid #F09341;
	  border-left: 6px solid #F09341;
	  border-radius: 8px;
	  padding: 10px 12px;
	  font-size: 14px;
	  max-width: 260px;
	  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	  display: flex;
	  gap: 10px;
	  align-items: flex-start;
	  z-index: 999;
	  animation: fadeIn 0.5s ease-in-out;
	}
	
	.chatbox-hint button {
	  background: none;
	  border: none;
	  font-size: 18px;
	  line-height: 1;
	  color: #F09341;
	  cursor: pointer;
	  padding: 0;
	}
	
	#chatbox-hint {
	  position: fixed;
	  bottom: 75px;
	  left: 25px;
	  background: linear-gradient(135deg, #0072bc, #4ea6e3);
	  color: white;
	  padding: 18px 27px 16px 16px;
	  border-radius: 12px 12px 12px 12px;
	  font-size: 14px;
	  max-width: 350px;
	  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	  z-index: 1001;
	  display: none;
	}
	
	#chatbox-hint::after {
	  content: "";
	  position: absolute;
	  bottom: -9px;
	  left: 25px;
	  width: 0;
	  height: 0;
	  border-left: 10px solid transparent;
	  border-right: 10px solid transparent;
	  border-top: 10px solid #0072bc;
	}
	
	#chatbox-hint-close {
	  position: absolute;
	  top: 4px;
	  right: 6px;
	  background: none;
	  border: none;
	  color: white;
	  font-weight: bold;
	  font-size: 16px;
	  cursor: pointer;
	}
	
	#chatbox-hint-text{
	  cursor: pointer;
	}
	
	.ai-reply.intro-message {
	  background: #EAF4FB;
	  padding: 10px 12px;
	  border-radius: 12px;
	  font-size: 14px;
	  margin: 8px;
	  line-height: 1;
	  color: #333;
	  font-style: normal;
	}
	.ai-reply.intro-message em {
	  display: block;
	  margin-bottom: 6px;
	  font-style: normal;
	}
	.ai-reply.intro-message small {
	  font-size: 12px;
	  color: #666;
	}

	
	@media (max-width: 768px) {
	  #chatbox {
		width: 95vw;
		height: 90vh;
		max-height: none;
		bottom: 50px;
		left: 50%;
		transform: translateX(-50%);
		flex-direction: column;
		border-radius: 16px;
	  }
	
	  #chatbox-toggle {
		width: auto;
		height: auto;
		padding: 10px 14px;
		border-radius: 20px;
		font-size: 16px;
	  }
	
	  #chatbox-resize {
		display: none;
	  }
	
	  #chatbox-close {
		display: inline-block;
		font-size: 18px;
		padding: 2px 6px;
		background: none;
		border: none;
		color: white;
		cursor: pointer;
	  }
	
	  #chatbox-header {
		padding: 10px 12px;
		font-size: 15px;
	  }
	
	  #chatlog {
		height: calc(100% - 100px);
		padding: 10px;
		overflow-y: auto;
	  }
	
	  #chat-input-row {
		flex-shrink: 0;
	  }
	  
	  .chatbox-hint {
		left: 50px;
		bottom: 50px;
		max-width: 240px;
		font-size: 13px;
	  }
	  
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

#chatbox-hint {
  animation: hintBounce 0.2s ease-in-out 2;
}


/* loader textu */
.bot-typing {
  margin: 25px 0px 0px 5px; 
  text-align: left;
}

.typing-dots {
  display: flex;
  gap: 10px;
  align-items: center;
  height: 30px;
}

.typing-dot {
  width: 9px;            /* o 50% vÃ¤ÄÅ¡ie ako predtÃ½m */
  height: 9px;
  background-color: #bbb; /* bledosivÃ¡ â mÃ´Å¾eÅ¡ zmeniÅ¥ na #cce7f9 pre bledomodrÃº */
  border-radius: 50%;
  animation: blinkTyping 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blinkTyping {
  0%, 80%, 100% { opacity: 0.2; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.3); }
}
/* loader koniec */
