@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");

.nt_chat_gpt_pop_form_custom_prompt-wrapper *,
.chat-gpt-btn-custom-prompt * {
  font-family: "manrope" !important;
}

/* ============================= */
/* Wrapper */
/* ============================= */

.nt_chat_gpt_pop_form_custom_prompt-wrapper {
  position: fixed;
  top: 20px;
  bottom: 20px;
  right: -470px;
  transition: 0.3s;
  width: 470px;
  max-width: 95%;
  background: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 21px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: inherit;
}

.chat-gpt-btn-custom-prompt {
  position: fixed;
  display: flex;
  right: 20px;
  bottom: 40px;
  z-index: 1;
  width: 90px;
  height: 90px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.chat-gpt-btn-custom-prompt svg.ai-label {
  position: absolute;
  left: 0;
  top: 0;
  width: 90px;
  height: 90px;
  z-index: 3;
  pointer-events: none;
}

.chat-gpt-btn-custom-prompt text.ai-label-text {
  fill: #00a0ff;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-rendering: geometricPrecision;
}

.chat-gpt-btn-custom-prompt img {
  background: #e6e6e6;
  width: 60px;
  height: 60px;
  border-radius: 100%;
  cursor: pointer;
  overflow: hidden;
  color: #fff;
  box-shadow:
    0 4px 20px #00a0ff,
    0 0 0 0 #00a0ff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2147483648;
  animation: assistant-pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes assistant-pulse-ring {
  0%,
  100% {
    box-shadow:
      0 4px 20px #00a0ff,
      0 0 0 0 #00a0ff;
  }

  50% {
    box-shadow:
      0 4px 20px #00a0ff,
      0 0 0 8px rgba(230, 230, 230, 0);
  }
}

.assistant-name {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper.active {
  right: 20px;
}

/* ============================= */
/* Header */
/* ============================= */

.nt_chat_gpt_pop_form_custom_prompt-wrapper .subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  gap: 15px;
  font-size: 15px;
  font-weight: 600;
  background: #6e54c9;
  border-radius: 21px;
  border-bottom: 1px solid #eee;
}

.ai-assistant-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 385px;
  background: #00a0ff;
  border-radius: 21px;
  padding: 10px 20px;
  box-sizing: border-box;
  gap: 10px;
}

.ai-assistant-container .ai-avatar {
  background: #e6e6e6;
  border-radius: 100%;
  max-width: 48px;
}

.ai-assistant-info-group h4 {
  color: white;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.ai-assistant-info-group span {
  position: relative;
  color: white;
  font-size: 13px;
  padding-left: 20px;
}

.ai-assistant-info-group span.active:before {
  content: "";
  background: #8fe671;
  opacity: 0.55;
  width: 14px;
  height: 14px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 100%;
}

.ai-assistant-info-group span.active:after {
  content: "";
  background: #5fff27;
  width: 10px;
  height: 10px;
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 100%;
}

.ai-assistant-info-group span.deactive:before {
  content: "";
  background: #dd3434;
  opacity: 0.55;
  width: 14px;
  height: 14px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 100%;
}

.ai-assistant-info-group span.deactive:after {
  content: "";
  background: #ff2929;
  width: 10px;
  height: 10px;
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 100%;
}

.delete-btn-container {
  cursor: pointer;
  margin-left: auto;
  margin-right: 0;
  opacity: 1;
  transition: 0.2s;
  background: #17cbff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
}

.delete-btn-container:hover {
  background: #8c6ef5;
}

.close-btn-container {
  cursor: pointer;
  margin-right: 20px;
  opacity: 1;
  transition: 0.2s;
  background: #8c6ef5;
  width: 100%;
  max-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
}

.close-btn-container:hover {
  background: #17cbff;
}

/* ============================= */
/* Chat Area */
/* ============================= */

.nt_chat_gpt_pop_form_custom_prompt-wrapper .control-group {
  padding: 35px 25px 20px 20px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* ============================= */
/* Chat Bubbles */
/* ============================= */

.nt_chat_gpt_pop_form_custom_prompt-wrapper .chat-bubble.ai {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 20px 0;
  flex-wrap: wrap;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper .chat-bubble.user {
  display: flex;
  align-items: flex-start;
  flex-direction: row-reverse;
  gap: 20px;
  margin: 0 0 20px 0;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper .chat-bubble.ai img.ai-avatar {
  background: #e6e6e6;
  border-radius: 100%;
  max-width: 40px;
}

span.bubble-icon.bubble-icon--user {
  background: #6e54c9;
  display: flex;
  width: 100%;
  max-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper .chat-bubble span.ai-response {
  background: #ffffff;
  color: black;
  align-self: flex-start;
  padding: 15px 20px 15px 20px;
  font-size: 14px;
  line-height: 19px;
  width: auto;
  max-width: 70%;
  word-wrap: break-word;
  margin: 0;
  box-shadow: 0px 0px 12px #9e9e9e40;
  border-radius: 0px 20px 20px 20px;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper .chat-bubble span.ai-url-btn {
  cursor: pointer;
  margin-left: 60px !important;
  border-radius: 20px 20px 20px 20px !important;
  background: #e9e9e9 !important;
  box-shadow: unset !important;
  padding: 10px 20px 10px 20px !important;
  transition: 0.3s;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper .chat-bubble .url-link {
  color: #00a0ff;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper .chat-bubble span.ai-url-btn:hover {
  background: #17cbff !important;
  color: white !important;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper .chat-bubble.user .user-text {
  background: #6e54c9;
  color: #fff;
  align-self: flex-end;
  padding: 15px 20px 15px 20px;
  border-radius: 20px 0px 20px 20px;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper .chat-bubble.user .date-time {
  margin-top: 20px;
  font-size: 12px;
  color: white;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper .chat-bubble.ai .date-time {
  margin-top: 20px;
  font-size: 12px;
  color: black;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper
  .chat-bubble.ai
  .nt-chat-products-carousel-wrapper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper
  .chat-bubble.ai
  .nt-chat-products-carousel {
  position: relative;
  width: 100%;
}

.nt-chat-products-carousel-wrapper .owl-controls {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.nt-chat-products-carousel-wrapper
  .owl-theme.owl-carousel
  .owl-controls
  .owl-buttons
  div {
  position: absolute;
  margin: 0;
  background: #8c6ef5;
  width: 33px;
  box-sizing: border-box;
  font-family: Arial;
  font-size: 17px;
  color: white;
}

.nt-chat-products-carousel-wrapper .owl-prev {
  left: -15px;
}
.nt-chat-products-carousel-wrapper .owl-next {
  right: -15px;
}

.nt-chat-products-carousel-wrapper
  .owl-theme.owl-carousel
  .owl-controls
  .owl-buttons
  .owl-prev:after {
  height: auto;
  width: auto;
  line-height: 33px;
  margin-left: 0;
  border: unset;
}

.nt-chat-products-carousel-wrapper
  .owl-theme.owl-carousel
  .owl-controls
  .owl-buttons
  .owl-next:before {
  height: auto;
  width: auto;
  line-height: 33px;
  margin-right: 0px;
  border: unset;
}

.nt-chat-typing {
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 15px 20px !important;
  min-width: 60px;
}

.nt-chat-typing span {
  width: 8px;
  height: 8px;
  background: #aaa;
  border-radius: 50%;
  display: inline-block;
  animation: nt-typing-bounce 1.2s infinite ease-in-out;
}

.nt-chat-typing span:nth-child(1) {
  animation-delay: 0s;
}
.nt-chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.nt-chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes nt-typing-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6px);
  }
}

/* ============================= */
/* Submit Area */
/* ============================= */
.nt_chat_gpt_pop_form_custom_prompt-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

form#nt_chat_gpt_pop_form_custom_prompt {
  display: flex;
  background: #6e54c9;
  border-radius: 21px;
  gap: 20px;
  margin: 0;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper .submit-prompt {
  position: relative;
  bottom: unset;
  display: flex;
  align-items: center;
  padding: 0;
  gap: 10px;
  width: auto;
  margin-right: 20px;
}

.input-container {
  width: 100%;
  max-width: 385px;
  border-radius: 21px;
  background: #00a0ff;
  padding: 10px 13px;
  box-sizing: border-box;
}

#nt_chat_gpt_pop_textarea {
  cursor: auto;
  width: 100%;
  transition: 0.2s;
  border-radius: 14px;
  height: 48px;
  border: unset;
  margin: 0;
}

#nt_chat_gpt_pop_textarea::placeholder {
  color: #7b7b7b;
  font-size: 16px;
  padding-left: 20px;
}

#nt_chat_gpt_pop_textarea:focus {
  border-color: #007bff;
}

/* ============================= */
/* Buttons */
/* ============================= */

.nt_chat_gpt_pop_form_custom_prompt-wrapper .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 48px;
  max-width: 48px;
  height: 48px;
  padding: 0;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper .chat-gpt-btn-white {
  background: #8c6ef5;
  border: none;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper .chat-gpt-btn-white:hover {
  background: #00a0ff;
}

#voice_btn {
  background: #8c6ef5;
  border: none;
}

#voice_btn:hover {
  background: #00a0ff;
}

/* ============================= */
/* Scrollbar */
/* ============================= */

.nt_chat_gpt_pop_form_custom_prompt-wrapper .control-group::-webkit-scrollbar {
  width: 6px;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper
  .control-group::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* ============================= */
/* Prouduct Carousel */
/* ============================= */

.nt_chat_gpt_pop_form_custom_prompt-wrapper
  .nt-chat-products-carousel
  .owl-wrapper-outer {
  overflow: visible !important;
}

.nt_chat_gpt_pop_form_custom_prompt-wrapper
  .chat-bubble.ai
  .nt-chat-products-carousel-wrapper {
  overflow: hidden;
}

.nt-chat-products-carousel-wrapper {
  padding: 30px 25px 25px 25px;
  background: #00a0ff14;
  border-radius: 15px;
}

.nt-chat-products-carousel-wrapper {
  position: relative;
}

.nt-chat-products-carousel {
  margin: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: 0.2s;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-arrow-left {
  left: 5px;
}

.carousel-arrow-left:before {
  content: "\2039";
  font-size: 20px;
  color: #fff;
}

.carousel-arrow-right {
  right: 5px;
}

.carousel-arrow-right:before {
  content: "\203a";
  font-size: 20px;
  color: #fff;
}

.nt-chat-products-carousel .owl-dots {
  display: none !important;
}

.nt-chat-product-card {
  width: 100%;
  max-width: 265px;
  box-sizing: border-box;
  border: 1px solid #a5a5a547;
  border-radius: 15px;
  background: #fff;
}

.nt-chat-product-card .product-info-container {
  background: #fbfbfb;
  border-top: 1px solid #a5a5a547;
  padding: 20px;
  border-radius: 0px 0px 15px 15px;
}

.nt-chat-product-card__img-wrap {
  padding: 25px 0 35px;
  display: block;
  text-align: center;
}

.nt-chat-product-card__img {
  width: 100%;
  height: 110px;
  object-fit: contain;
}

.nt-chat-product-card__name a {
  font-size: 14px;
  font-weight: 700;
  color: black;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nt-chat-product-card span.ty-price-num {
  font-size: 18px !important;
  color: #6e54c9;
  font-weight: 700;
  top: 0;
}

.nt-chat-product-card .details_add_to_cart button {
  width: 100%;
  background: #00a0ff;
  border-radius: 10px;
  transition: 0.3s;
}

.nt-chat-product-card .block_avail_status_label strong {
  font-size: 14px;
}

.nt-chat-product-card__cart .details_add_to_cart button span {
  display: block !important;
}

.nt-chat-product-card .details_add_to_cart button:before {
  content: unset;
}

.nt-chat-product-card .details_add_to_cart button span {
  margin: 0px !important;
}

.nt-chat-product-card .details_add_to_cart button:hover {
  background: #6e54c9;
}

.nt-chat-product-card .details_add_to_cart button dfn {
  display: none;
}

.nt-chat-product-card label.ty-control-group__label {
  display: none;
}

.nt-chat-product-card .nt-chat-product-card__cart {
  margin-top: 25px;
}

.nt-chat-product-card span.web_price_label {
  display: none;
}

.nt-chat-product-card__categories {
  margin-top: 15px;
  padding: 30px 25px 25px 25px;
  background: #00a0ff14;
  border-radius: 15px;
  box-sizing: border-box;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
}

.nt-chat-product-card__categories a {
  display: inline-block;
  position: relative;
  width: auto;
  background: #ffffff;
  border: 1px solid #dfdfdf;
  border-radius: 21px;
  padding: 5px 15px;
  box-sizing: border-box;
  color: #8e8e8e;
  font-size: 14px;
  margin: 5px 0;
}

.nt-chat-product-card__categories a:hover {
  background: #00a0ff70;
  color: white;
  border-color: #00a0ff70;
}

.nt-chat-product-card__sku {
  color: #888;
  font-size: 12px;
  margin: 10px 0;
}

.nt-chat-product-card__price {
  margin-top: 6px;
  font-weight: 700;
  color: #e44;
}

.nt-chat-product-card__brand {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 21px;
  max-width: fit-content;
  padding: 4px 10px;
  color: #6b7280;
  font-size: 12px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nt-chat-product-card__brand:hover {
  background: #f2f8fb;
  border: 1px solid #dfdfdf;
  color: #7ea5bc;
}

@media only screen and (max-width: 767px) {
  .nt_chat_gpt_pop_form_custom_prompt-wrapper {
    top: 80px;
  }
}

@media only screen and (max-width: 550px) {
  .nt_chat_gpt_pop_form_custom_prompt-wrapper {
    top: 120px;
  }
}

@media only screen and (max-width: 460px) {
  .nt_chat_gpt_pop_form_custom_prompt-wrapper {
    max-width: 100%;
  }
  .nt_chat_gpt_pop_form_custom_prompt-wrapper.active {
    right: 0;
  }
}

@media only screen and (max-width: 425px) {
  .nt-chat-product-card {
    max-width: 95%;
  }
}
