#chatbot-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: none;
  font-family: Panton;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 9999;
}

.chatbot-header {
  background: #0044cc;
  color: white;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* newly added */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  font-weight: bold;
}
#chatbot-body {
  padding: 12px;
  /* changed 16 to 12 */
}
.chat-section {
  margin-bottom: 16px;
  /* changed 16 to 12 */
}
.chat-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  /* chnages 12 to 8 in gap */
}
/* .half {
  flex: 1;
  display: flex;
  flex-direction: column;
} */
input[type=range] {
  width: 100%;
  /* newly added color for the  */
  accent-color: #0044cc;
  margin-top: 4px;
}

input[type=text] {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc; 
}
.chat-section{
  font-size: 14px;
}
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.button-group.two button { flex: 1 1 48%; }
.button-group.three button { flex: 1 1 30%; }
.selectable.active, .selectable-multi.active {
  background-color: #0044cc;
  color: white;

}
button {
  padding: 8px;
  border: none;
  background: #dddfe7;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-family: Panton;
  margin-bottom: 3px;

}
button:hover {
  background: #e0e0e0;
}
.chat-button-icon {
    width: 100px;
    height: 150px;
    position: fixed;
    bottom: 10px;
    right: 10px;
}

#open-chat {
  border: none;
  padding: 0;
  cursor: pointer;
  position: fixed;
  bottom: 10px;
  right: 10px;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 22px;
}

.button-group.noise-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-group.noise-options button {
  flex: 0 0 calc(50% - 4px) !important;
}
.selectable-multi.active {
  background-color: #0044cc !important;
  color: white !important;}

.question-text {
  font-size: 16px;
}
label {
  font-size: 14px;
}

#sliders-section .chat-row {
  margin-top: 8px;
}
.half label {
  display: flex;
  align-items: center;
  font-size: 14px;

}
.half label span:first-child {
  margin-right: 4px;
}
#budget-value, #protection-value {
  margin-left: 0;
  margin-top: 0;
  max-width: 80px; 
}
.question-text {
  font-size: 14px;
  margin-bottom: 8px;
}
button#submit-btn{
  background-color: #00336673;
  color: white;
  padding: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

button[onclick="sendUserQuery()"] {
  background-color: #003366;
  color: white;
  padding: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

button#submit-btn:hover, button[onclick="sendUserQuery()"]:hover {
  background-color: #0044cc;
}

button#submit-btn:focus, button[onclick="sendUserQuery()"]:focus {
  outline: 2px solid #0044cc;
}

.recommendation-container {
  display: flex;
  gap: 8px;
}

.recommendation-image {
  width:40%;
  height: 40%;
  object-fit: cover;
  border-radius: 4px;
}

.recommendation-text {
  flex: 1;
  font-size: 13px; /* Smaller font for chatbot style */
}

.criteria {
  margin-top: 4px;
  padding: 4px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.criteria p {
  margin: 2px 0;
}

.notes {
  margin-top: 4px;
  font-style: italic;
  color: #666;
}
.comparison-section {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #d1cfcc3b;
  font-size: 13px;
}

.comparison-section select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

.comparison-section button {
  padding: 8px;
  border: none;
  background: #dddfe7;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: black;
}

.comparison-section button:hover {
  background: #dddfe7;
}

#comparison-table-container-similar-products-result table, 
#comparison-table-container-other-products-result table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

#comparison-table-container-similar-products-result th, 
#comparison-table-container-similar-products-result td, 
#comparison-table-container-other-products-result th, 
#comparison-table-container-other-products-result td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: left;
  
}

#comparison-table-container-similar-products-result th, 
#comparison-table-container-other-products-result th {
  background-color: #f2f2f2;
}

.comparison-section table th, 
.comparison-section table td {
  font-weight: normal;
}

.dropdown {
  position: relative;
  display: inline-block;
  font-size: 13px;
}

.dropdown-button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
}

.dropdown-button:hover {
  background-color: #3e8e41;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  font-size: 13px;
}

.dropdown-content select {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  overflow-y: auto;
  max-height: 150px;
  font-size: 13px;
}

.show {
  display: block;
}

#thumbs-up, #thumbs-down {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

#thumbs-up {
  color: #dfbe13; 
}

#thumbs-down {
  color: #dfbe13; 
}

#thumbs-up:hover, #thumbs-down:hover {
  transform: scale(1.2);
}

#thumbs-up:active, #thumbs-down:active {
  transform: scale(0.9);
}

.user-question {
  background-color: #f0f0f0;
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 10px;
  text-align: right !important; /* Add this */
  align-items: flex-end !important;
  justify-content: flex-end !important;
}

.user-question .message-container {
  background-color: #f0f0f0;
  padding: 5px;
  border-radius: 10px;
  display: inline-block;
}

.assistant-response {
  background-color: #2764d31a;
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 10px;
  width: fit-content;
  display: flex;
  text-align: left; /* Add this */
  align-items: flex-start !important;
  justify-content: flex-start !important;

}

.typing-indicator {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

#conversation-container {
  padding: 10px;
}

.dot-typing {
  position: relative;
  width: 60px;
  height: 20px;
  margin: 8px 0;
}

.dot-typing::before,
.dot-typing::after,
.dot-typing div {
  content: '';
  display: inline-block;
  position: absolute;
  background: #0044cc;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}

.dot-typing::before {
  left: 0;
  animation-delay: -0.32s;
}

.dot-typing div {
  left: 20px;
  animation-delay: -0.16s;
}

.dot-typing::after {
  left: 40px;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  } 
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.assistant-text {
  display: block;
}
.styled-link {
  color: #007bff;
  text-decoration: underline;
}

