.ec-ai-chat-wrap{ position: relative; }
.ec-ai-chat-bubble{
  position: fixed;
  left: 18px;
  bottom: 18px;
  height: 56px;
  padding: 0 14px;
  min-width: 56px;
  border-radius: 999px;
  border: 0;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  font-size: 16px;
  background: #e00000;
  color: #000;
  cursor: pointer;
  z-index: 999999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ec-ai-chat-bubble__icon{ font-size: 22px; line-height: 1; }
.ec-ai-chat-bubble__txt{ font-weight: 700; letter-spacing: .2px; }
.ec-ai-chat-panel{
  position: fixed;
  left: 18px;
  bottom: 86px;
  width: 372px;
  max-width: calc(100vw - 36px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  overflow: hidden;
  display: none;
  z-index: 999999;
  border: 1px solid rgba(0,0,0,.08);
}
.ec-ai-chat-panel.is-open{ display: flex; flex-direction: column; }
.ec-ai-chat-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #e00000;
  color: #000;
}
.ec-ai-chat-close{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.ec-ai-chat-output{
  padding: 12px;
  overflow: auto;
  flex: 1;
  background: #fafafa;
}
.ec-ai-chat-upload{
  padding: 10px 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
}
.ec-ai-chat-upload__btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  cursor: pointer;
  user-select: none;
}
.ec-ai-chat-upload__input{ display:none; }
.ec-ai-chat-upload__help{
  margin-top: 8px;
  font-size: 12px;
  opacity: .75;
}
.ec-ai-chat-upload__privacy{
  margin-top: 6px;
  font-size: 11px;
  opacity: .65;
}
.ec-ai-chat-inputrow{
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
}
.ec-ai-chat-input{
  flex: 1;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  outline: none;
}
.ec-ai-chat-send{
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  background: #e00000;
  color: #000;
}
.ec-ai-chat-footnote{
  padding: 8px 12px 12px;
  font-size: 12px;
  opacity: .7;
  background: #fff;
}
.ec-ai-chat-msg{ display: flex; margin-bottom: 10px; }
.ec-ai-chat-msg--user{ justify-content: flex-end; }
.ec-ai-chat-msg--bot{ justify-content: flex-start; }
.ec-ai-chat-bubblemsg{
  max-width: 85%;
  padding: 9px 11px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
}
.ec-ai-chat-msg--user .ec-ai-chat-bubblemsg{ background: #f0f6ff; }
.ec-ai-chat-products{ margin-top: 8px; display: grid; gap: 8px; }
.ec-ai-chat-product{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 10px;
}
.ec-ai-chat-product__title{ font-weight: 600; text-decoration: none; }
.ec-ai-chat-product__price{ margin-top: 6px; font-size: 13px; opacity: .85; }
