#woochat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1e2a3a;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 99998;
  transition: transform 0.2s, background 0.2s;
}
#woochat-bubble:hover { background: #2d3f57; transform: scale(1.08); }
#woochat-bubble svg   { width: 26px; height: 26px; fill: #fff; }

#woochat-window {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 500px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.2s;
}
#woochat-window.wc-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

#woochat-header {
  background: #1e2a3a;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: sans-serif;
}
#woochat-header span { font-size: 15px; font-weight: 600; }
#woochat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}
#woochat-close:hover { opacity: 1; }

#woochat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: sans-serif;
  font-size: 14px;
  background: #f5f7fa;
}

.wc-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.wc-msg.bot  { background: #fff; color: #1e2a3a; align-self: flex-start; box-shadow: 0 1px 4px rgba(0,0,0,0.08); border-bottom-left-radius: 4px; }
.wc-msg.user { background: #1e2a3a; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.wc-msg.typing { color: #999; font-style: italic; }

/* Lists inside bot replies (product lists, options, etc.) */
.wc-msg .wc-line { margin: 0 0 6px; }
.wc-msg .wc-line:last-child { margin-bottom: 0; }
.wc-msg ul.wc-list {
  list-style: none;
  margin: 6px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wc-msg ul.wc-list li {
  position: relative;
  padding: 8px 10px 8px 26px;
  background: #f5f7fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.92em;
}
.wc-msg ul.wc-list li::before {
  content: "•";
  position: absolute;
  left: 10px;
  top: 8px;
  color: #1e2a3a;
  font-weight: 700;
}

#woochat-footer {
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
  background: #fff;
}
#woochat-input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 14px;
  outline: none;
  font-family: sans-serif;
}
#woochat-input:focus { border-color: #1e2a3a; }
#woochat-send {
  background: #1e2a3a;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#woochat-send:hover { background: #2d3f57; }
#woochat-send svg { width: 17px; height: 17px; fill: #fff; }
