/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");


:root {
  --accent: #8b0335;
  --background: #fcfcfc;
  --background-bubble: #f5f5f5;
  --text-primary: #1f1f1f;
  --shadow-color: rgba(0, 0, 0, .15);
  --shadow-bubble: 0 1px 4px var(--shadow-color);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f1f1f1;
  /* background-color: #f1fbf4; */

}

.navbar {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
  position: fixed;
  top: 0;
  width: 100%;
  text-align: center;
}

.navbar li {
  display: inline-block;
}

.navbar li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.navbar li a:hover:not(.active) {
  background-color: #722f37;
}


.active {
  background-color: #722f37;
}

.bg-image {
  /* background-image: url('../images/wine-backrground-image.png'); */
  background-image: url('../images/WineShopNeuralHQ.png');
  position: absolute;
  height: 100%;
  width: 50%;
  z-index: -1;
  right: 0px;
  /* Add the blur effect */
  /* filter: blur(8px); */
  /* -webkit-filter: blur(8px); */

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Position text in the middle of the page/image */
.bg-text {
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/opacity/see-through */
  color: white;
  font-weight: bold;
  border: 3px solid #722f37;
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  /* z-index: 2; */
  height: 70%;
  width: 40%;
  padding: 20px;
  text-align: center;
}

.footer {
  position: fixed;
  left: 50%;
  bottom: 0.2vh;
  width: 100vw;
  height: 7vh;
  background-color: rgb(119, 116, 116);
  opacity: 0.7;
  color: white;
  text-align: center;
  width: 50%;
  border-radius: 10px 0px 10px 0px;
}

.footer .copyright {
  text-align: center;
  vertical-align: middle;
  margin-top: 1em;
  font-size: 15px;
}

.profile-pic-incoming {
  width: 42px;
  height: 42px;
}

.chatbot-toggler {
  position: fixed;
  bottom: 10%;
  right: 3%;
  outline: none;
  border: none;
  height: 50px;
  width: 50px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #722f37;
  transition: all 0.2s ease;
}

body.show-chatbot .chatbot-toggler {
  transform: rotate(90deg);
}

.chatbot-toggler span {
  color: #fff;
  position: absolute;
}

.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child {
  opacity: 0;
}

body.show-chatbot .chatbot-toggler span:last-child {
  opacity: 1;
}

.chatbot {
  position: absolute;
  /* top: 1.5vh; */
  right: 50vw;
  /* bottom: 7vh; */
  width: 50%;
  height: 99vh;
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: bottom right;
  box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
    0 32px 64px -48px rgba(0, 0, 0, 0.5);
  transition: all 0.1s ease;
}

body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #f2f2f2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 20px 20px 0px 20;
}

.chatbot-header .logo-container {
  display: flex;
  align-items: center;
}

.chatbot-header img {
  width: 42px;
  height: 42px;
  margin-right: 10px;
  border-radius: 100%;
}

.chatbot-header h2 {
  margin: 0;
  color: #8c0335;
  font-size: 1.1vw;
}



.provider-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;


}

.provider-container button {

  padding: 8px 18px;
  border-radius: 40px;
  color: #8b0335;
  /* border: none; */
  font-size: 0.8vw;
  cursor: pointer;
  border: 2px solid #8b0355;
  transition: all 0.1s;
  /* background-color: #fff; */
  background: #f2f2f2;
  box-sizing: 0 0 8px rgba(0, 0, 0, 0.3);
}

.provider-container button:hover {
  background-color: #8b0335;
  color: #fff;
}

.provider-container label {
  margin-bottom: 6px;
  /* Adjust the margin as needed */
}

.provider-container .select-container {
  width: 100%;
  /* Ensure the select takes full width */
}

.chatbot header span {
  position: absolute;
  right: 15px;
  top: 50%;
  display: none;
  cursor: pointer;
  transform: translateY(-50%);
}

header h2 {
  font-size: 1.2rem;
}

.chatbot .chatbox {
  width: 100%;

}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
  width: 6px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 25px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}

/* .chatbox .chat {

  list-style: none;
} */

.chatbox .outgoing {
  display: flex;

  margin: 1.5vw auto;
  justify-content: flex-start;
  max-width: 95%;


}

.chatbox .outgoing p {
  margin-left: auto;
}

.chatbox .incoming span {
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: default;
  text-align: center;
  line-height: 32px;
  align-self: flex-end;
  background: #f1e2e7;
  border-radius: 4px;
  margin: 0 10px 7px 0;

}

.chatbox .chat p {
  white-space: pre-wrap;
  padding: 9px 16px;
  border-radius: 10px 10px 0 10px;
  max-width: 75%;
  color: #000;
  font-size: .9vw;
  background: #f1e2e7;
}

.chatbox .incoming p {
  border-radius: 10px 10px 10px 0;
}

.chatData {
  display: flex;
  
}

.chatbox .chat p.error {
  color: #721c24;
  background: #f8d7da;
}

.chatbox .incoming p {
  color: #000;
  background: #f5f5f5;
  /* background: #f2f2f2; */
}

.chatbot .chat-input {
  display: flex;
  gap: 5px;
  position: absolute;
  bottom: 8vh;
  width: 100%;
  background: #fff;
  padding: 5px 20px;
  border-top: 1px solid #ddd;
  border-radius: 20px;
  height: 3vh;

}

.chat-input textarea {
  height: 55px;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  max-height: 180px;
  padding: 10px 15px 10px 0;
  font-size: 0.95vw;
}

.chat-input span {
  /* align-self: flex-end; */
  color: #722f37;
  cursor: pointer;
  /* height: 55px; */
  display: flex;
  align-items: center;
  visibility: hidden;
  font-size: 1.35rem;
  margin-top: 3.5vh;
}
.chat-input textarea:valid~span {
  visibility: visible;
}

#predefined-options-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 10px;
  margin: 15px;
  position: absolute;
  bottom: 12.5vh;
  left: 0;
  width: 48vw;

}

/* Added styles for uniformity */
#predefined-options-list li {
  background-color: #f0f0f0;
  /* Background color for better visibility */
  border: 1px solid #ccc;
  /* Optional: add a border for distinction */
  padding: 6px 10px;
  /* Padding for inner spacing */
  text-align: center;
  /* Center-align the text */
  min-height: 50px;
  /* Set a minimum height for each option */
  display: flex;
  /* Use flexbox for better alignment */
  align-items: center;
  /* Center items vertically */
  justify-content: center;
  /* Center items horizontally */
  box-sizing: border-box;
  /* Ensure padding is included in total width/height */
  font-size: 0.9vw;

}

/* !New added */


#options-list {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin: 10px 15px 10px 15px;

  position: absolute;

  bottom: 11.5vh;


  right: 0;

}

/* Individual option items */
#options-list li {
  display: inline-block;
  padding: 0.30vw 0.65vw;
  border-radius: 40px !important;
  border: 2px solid #8b0355;
  transition: all 0.1s;
  background-color: #fff;
  font-size: 13px;
}

/* Hover effect for list items */
#options-list li:hover {
  background-color: #8b0355;
  color: #fff;
}

/* Active state for selected item */
#options-list li:active {
  background-color: #8b0355;
  /* Darker background when active */
  transform: scale(0.98);
  /* Slightly scale down */
}

.hidden {
  display: none;
  /* Hide elements by adding this class */
}

.chat.incoming.option {
  cursor: pointer;
  /* Make it clear that the list items are clickable */
}


.chatbot .chatbox {

  height: calc(80% - 90px);

  padding: 10px;

  box-sizing: border-box;


}

.chat .incoming:nth-child(1) {
  display: flex;
}

/* ! ABove new */
.option {
  padding: 4px;
  border: #7f0e36 2px solid;
  border-radius: 15px;
  background-color: #f9ecf0;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  text-align: center;
  align-items: center;
  font-size: 12px;
  width: auto;

}

.option:hover {
  background-color: #b36e79;
}


/* Product Container Image Card */

/* #product-container {
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease;
  gap: 20px;
  width: 100%;
} */

.product-carousel {
  position: relative;
  padding: .9vw;
  margin-top: 0.3vw;
  display: flex;
  justify-content: center;
  overflow-x: auto; 
  width: 100%;
}

.carousel-button {
  background-color: #8b0355;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  position: absolute;
  z-index: 10;
}

.prev,
.next {
  background-color: #8b0355;
  text-decoration: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prev {
  left: 10px;
  display: block;
}

.next {
  right: 10px;
}

.product-carousel-inner {
  position: relative;
  display: flex;
  justify-content: space-around; /* Pick one layout method */
  gap: 0.9vw;
  scroll-behavior: smooth; /* Smooth scroll behavior for snapping */
  
  overflow-y: hidden; /* Hide vertical overflow */
  overflow-x: scroll; /* Enable horizontal scrolling */
  height: 30.5vw; /* Ensure this fits your layout */
  width: 95%; /* Ensures carousel takes the correct width */
  margin: auto;
  margin-top: 2vh;
  padding: 3px;

  scroll-snap-type: x mandatory; /* Snap only when close to an item */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */
  scrollbar-width: none; /* Hide scrollbar in Firefox */
  -ms-overflow-style: none; /* Hide scrollbar in IE */

  /* Optional: For webkit-based browsers */
  &::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari */
  }

}


.product-carousel-inner::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 calc(100% / 2.05) !important;
  height: 28vw;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  padding: 13px 10px;
  border-radius: 16px;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;

}
.product-card {
  border-left: 1px dotted rgba(0,0,0,0.3);
}

.product-card .product-image {
  height: 15vw;
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
  margin: auto;
}

.product-name,
.product-country,
.product-price {
  overflow: hidden;
  text-overflow: ellipsis;
  margin: .2vw;
}

.product-details {
  height: 6vw;
  margin-top: 2vh;
}

.product-name {
  font-size: 0.91vw;
  color: #212121;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 500;
  margin-top: 1.5vw;
}

.product-country {
  font-size: 0.8vw;
  color: #747576;
  font-weight: 300;
  margin-top: 0.4vw;
}

.product-price {
  font-size: 0.91vw;
  color: #757575;
}

.discover-button {
  display: block;
  width: 100%;
  margin: 0.5vw auto 0 auto;
  padding: 10px 24px;
  background-color: #8b0335;
  color: #fff;
  text-align: center;
  border-radius: 16px;
  text-decoration: none;
  font-size: 0.95vw;
  margin-top: 1.5vh;
}

.finalProduct {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 1vw;
}

.threadId {
  display: none;
  margin-left: 100px;
}

.newConve {
  padding: 4px;
  border: #7f0e36 2px solid;
  border-radius: 15px;
  background-color: #f9ecf0;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  text-align: center;
  align-items: center;
  font-size: 12px;
  width: auto;
}

.newConve:hover {
  background-color: #b36e79;
}

.chatbox {
  scroll-behavior: smooth;
  overflow-y: auto;
}

.chat .incoming .data {
  display: flex;
}

/* For WebKit browsers (Chrome, Safari, Edge) */
/* Custom scrollbar */
.product-carousel {
  scrollbar-width: thin;
  scrollbar-color: darkgray lightgray;
  /* For Firefox */
  overflow-x: hidden;

}



.product-carousel::-webkit-scrollbar-thumb {
  background-color: darkgray;
  /* Color of the scrollbar thumb */
  border-radius: 10px;
  /* Rounded scrollbar thumb */
}

.product-carousel::-webkit-scrollbar-track {
  background-color: lightgray;
  /* Color of the scrollbar track */
  margin-top: 15px;
  /* Space above the scrollbar */
}

/* !Loader css */
/* CSS for thinking animation (loader) */
/* Loader styles for three dots */

.chatbox .incoming .dot-loader {
  display: none;
  /* Hidden by default */
  justify-content: flex-start;
  align-items: center;
  height: 24px;
  color: var(--text-primary);
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 0;
  max-width: 75%;
  background: var(--background-bubble);
  margin-top: 0.4vh;
  margin-left: .5vh;
  padding: 20px 30px;
  box-shadow: var(--shadow-bubble);
  font-family: "Poppins", sans-serif;
  font-size: 15px;
}

.dot-loader {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-top: 2vh;
  margin-left: -2vw;
}

.dot-loader div {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background-color: rgba(108, 122, 137, 1);
  box-shadow: 0 2px 4px var(--shadow-color);
  animation: sequentialWave 1.5s infinite ease-in-out;
}

.dot-loader div:nth-child(1) {
  animation-delay: 0s;
}

.dot-loader div:nth-child(2) {
  animation-delay: 0.1s;
}

.dot-loader div:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes sequentialWave {

  0%,
  100% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-7px);
  }

  50% {
    transform: translateY(0);
  }

  75% {
    transform: translateY(7px);
  }
}

@media screen and (max-width: 1280px) and (min-width:1024px) {
  #predefined-options-list li {
    font-size: .96vw;
  }

  .discover-button {
    margin-top: 0px;
  }

  .product-details {
    margin-top: 1vh;
  }

  .product-card .product-image {
    height: 14.5vw;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    margin: auto;
  }
}



@media screen and (max-width: 1024px) and (min-width: 768px) {
  .chatbot {
    right: 0;
    width: 100%;
    height: 100dvh;
  }


  .chatbox .chat p {
    font-size: 2vw;
  }

  textarea::placeholder {
    font-size: 1.5vw;
    /* Set the desired font size */
  }

  #predefined-options-list {

    width: 97vw;
  }

  .bg-image {
    display: none;
  }

  #options-list li {
    padding: 0.4vw 0.8vw;
    font-size: 1.8vw;
  }

  .product-carousel-inner {
    width: 80%;
    margin: auto;
    margin: auto;
    height:56vw;
    gap: 30px;
  }

  .product-name,
  .product-country,
  .product-price {
    font-size: 1.4vw;
  }


  .product-card {
    flex: 0 0 calc(100% /2.05) !important;
    height: 52vw;

  }

  .product-card .product-image {
    height: 30vw;
  }

  .discover-button {
    margin-top:5vw;
    font-size: 2vw;
    padding:1vw 1.5vw;
  }

  #predefined-options-list li {
    font-size: 2vw;
    padding: .40vw .65vw;
  }
  .logo-container h2 {
    font-size: 2vw;
  }
  #startNewChat{
    font-size: 2vw;
  }
}

@media screen and (max-width:768px) and (min-width: 640px) {
  .logo-container h2 {
    font-size: 2.5vw;
  }
  #startNewChat{
    font-size: 4vw;
  }

  .chatbot {
    right: 0;
    width: 100%;

  }
  .chatbox .chat p {
    font-size: 2vw;
  }

  textarea::placeholder {
    font-size: 1.5vw;
    /* Set the desired font size */
  }

  #predefined-options-list {

    width: 97vw;
  }

  .bg-image {
    display: none;
  }

  #options-list li {
    padding: 0.4vw 0.9vw;
    font-size: 2vw;
  }

  .product-carousel-inner {

    width: 60%;
    margin: auto;
    height: 70vw;
  }

  .product-card {
    flex: 0 0 calc(100% / 1) !important;
    height:67vw;

  }

  .product-name,
  .product-country,
  .product-price {

    font-size: 2vw;
    font-weight: 300;

  }

  .product-card .product-image {
    height: 40vw;
  }

  .discover-button {
    margin-top: 8.5vw;
    font-size: 1.5vw;

  }

  #predefined-options-list li {
    font-size: 2vw;
    padding: .40vw .65vw;
  }

  #startNewChat {
    font-size: 1.35vw;
  }

  #threadId {

    display: none;
  }
}

@media screen and (max-width: 640px)  {
  .chatbot {
    right: 0;
    left: 0;
    width: 100%; 
    /* height: calc(var(--vh, 1vh) * 100); */
    height:100dvh ;
  

  }

  #threadId {

    display: none;
  }
  .chat-input{

    bottom: 10px;
 
    height: auto;
    height: 40px;
  }


  .chatbot .chatbox {
    overflow-y: scroll;
  }
  .chatbox .outgoing{
    margin: 3vw auto;
  }
  .chatbox .chat p {
    font-size: 3.4vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .chatbot-header h2,
  .provider-container button {
    -webkit-user-select: none;
    user-select: none;
  }
  .profile-pic-incoming {
    width: 10vw;
    height: 10vw;
    overflow: clip;
  }

  
  .chat-input {
    position: sticky;
    bottom: 0;
    background-color: #fff; /* Or your preferred background color */
    padding: 10px;
    z-index: 100;
  }
  .chat-input textarea::placeholder { 
    font-size: 3.5vw; /* For modern browsers */
  }
  
  .chat-input textarea:-ms-input-placeholder { 
    font-size: 3.5vw; /* For Internet Explorer */
  }
  
  .chat-input textarea::-ms-input-placeholder { 
    font-size: 3.5vw; /* For Edge */
  }
  
  .chat-input   textarea::-webkit-input-placeholder {
    font-size:3.5vw; /* For Chrome, Safari, Opera */
  }
  
  #predefined-options-list {

    width: 94vw;
    right: 12vw;
    left: 0;
  }

  .bg-image {
    display: none;
  }

  #options-list li {
    padding: 0.6vw 1vw;
    font-size: 3vw;
  }


  .product-carousel {
    height: 83vw;
    -webkit-overflow-scrolling: touch;
  }
  .prev {
    left: 5vw;
    display: block;
  }
  
  .next {
    right:5.5vw;
    display: block;
  }

  #finalProduct {
    margin-top: 2vh;
  }

  .product-carousel-inner {
    /* overflow-x: hidden; */
    width: 80%;
    margin: auto;
    height: 83vw;
  
    margin: auto;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
  
  }

  .product-card {
    flex: 0 0 calc(100% / 1) !important;
    height: 78vw;
    -webkit-tap-highlight-color: transparent;
    
   
  }




  .product-card .product-image {
    height: 38vw;
  }

  #predefined-options-list li {
    font-size: 3vw;
    padding: .40vw .65vw;

  }

  .chatbot-header h2 {
    font-size: 3.5vw;
  }

  .product-details {
    margin-top: 1.5vh;

  }

  .product-name,
  .product-price,
  .product-country {
    font-size: 2.8vw;
  }

  .discover-button {
    margin-top: 13vw;
    font-size: 2.5vw;

  }


  h6 {
    display: none;
  }

  .provider-container button {
    font-size: 2.7vw;
    padding: 1.2vw 2.4vw;
  }

  .chat-input textarea {
    font-size: 3.5vw;
  }

  textarea::placeholder {
    font-size: 2.4vw;
    /* Set the desired font size */
  }

  /* !Loader */
  .chatbox .incoming .dot-loader {
    padding: 18px 30px;
    border-radius: 8px 8px 8px 0;
  }


  .dot-loader div {
    width: 8px;
    height: 8px;
    
  }
}