#mychat {
  position: fixed;
  right: 20px;
  left: auto;
  bottom: 20px;
  z-index: 9999;
  font-family: system-ui, Arial, sans-serif;
}

#mychat .chat-window {
  width: 400px;
  height: 95vh;
  background: #fff;
  border: 1px solid #e6e9f1;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#mychat.open .chat-window {
  display: flex;
}

#mychat #chatToggle {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: #2b7ff5;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(43, 127, 245, 0.45);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mychat.open #chatToggle {
  display: none;
}

.chat-header {
  position: relative;
  background: linear-gradient(135deg,#45c3ff, #2b7ff5);
  color: #f9fbff;
  padding: 14px 18px;
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-header .title {
  font-weight: 700;
  font-size: 19px;
  margin: 0;
}

.chat-header .subtitle {
  opacity: 0.9;
  font-size: 14px;
  margin: 0;
}

.chat-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(10, 19, 43, 0.35);
  color: #f9fbff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close:hover {
  background: rgba(10, 19, 43, 0.55);
}


.chat-messages {
  flex: 1;
  padding: 14px;
  overflow: auto;
  background: #f7f8fb;
}

.chat-messages .msg, .msg.bot.typing {
  max-width: 100%;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 16px;
    font-size: 14px;
  word-wrap: break-word;
}

.chat-messages .msg.user {
  margin-inline-start: auto;
  background: #2B7FF5;
  color: #fff;
  border-top-left-radius: 4px;
  max-width: 100%;
}

.chat-messages .msg.bot {
  margin: 8px 0;
    margin-inline-end: auto;
    max-width: 100%;
    padding: 10px 13px;
    border-radius: 16px;
    border-top-right-radius: 4px;
    background: #ffffff;
    color: #101330;
    border: 1px solid #e3e7f3;
    font-size: 14px;
    line-height: 1.5;
}

.chat-messages .msg.bot img {
    height: 100px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
    width: 28%;
}

.chat-messages .msg.bot a {
  color: #FFF;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  font-size: 13px;
  border-radius: 30px;
}

.chat-messages .msg.bot a:hover {
  text-decoration: underline;
}

.chat-messages .msg.bot h2,
.chat-messages .msg.bot h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #101330;
}
.product_infos {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 68%;
}
.product_infos p{
  margin: 0;
}

.result_product {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e6f2;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.result_product p.product_name {
    font-weight: 700;
    font-size: 13px;
    line-height: 15px;
}
.result_product p.product_price {
    font-weight: 700;
    font-size: 13px;
}
.result_product p.product_description {
    max-height: 30px;
    min-height: 30px;
    overflow: hidden;
    font-size: 12px;
    line-height: 14px;
}
.result_product a.product_btn{
  background-color: #2B7FF5;
    color: white;
    padding: 3px 15px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-size: 13px;
}
.chat-messages .typing {
  opacity: .6;
  font-size: 18px;
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #eceff3;
  background: #fff;
}

.chat-input input {
  flex: 1;
  height: 44px;
  border: 1px solid #e6e9f1;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
}

.chat-input input:focus {
  outline: none;
  border-color: #e74266;
}

.chat-input button {
  background: #2B7FF5;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  height: 44px;
  font-family: inherit;
}

.chat-input button:hover {
  background: #cf3c5c;
}

@media (max-width: 768px) {
  #mychat {
    right: 10px;
    bottom: 10px;
  }

  #mychat .chat-window {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    max-width: 400px;
  }
}
.result_products {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    gap: 5px;
}
.result_product{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 5px;
  column-gap: 5px;
  flex-wrap: wrap;
}