#sailoChatRoot { position: fixed; z-index: 99998; left: 20px; bottom: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

.sailo-chat-bubble {
  width: 58px; height: 58px; border-radius: 50%;
  background: #ff6b2b !important; border: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  display: flex !important; align-items: center; justify-content: center;
  padding: 0; text-indent: 0; overflow: visible;
}
.sailo-chat-bubble:hover { background: #e85c1f !important; }
.sailo-chat-bubble svg { width: 26px; height: 26px; display: block; }

.sailo-chat-panel {
  display: none;
  position: fixed; left: 20px; bottom: 90px;
  width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 140px);
  background: #fff; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  flex-direction: column; overflow: hidden;
}
.sailo-chat-panel.open { display: flex; }

.sailo-chat-head {
  background: #1a1a1a; color: #fff;
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
}
.sailo-chat-head .title { font-weight: 700; font-size: 15px; }
.sailo-chat-head .subtitle { font-size: 12px; opacity: 0.7; margin-top: 2px; }
.sailo-chat-close { background: none !important; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; }
.sailo-chat-close svg { width: 18px; height: 18px; }

.sailo-chat-messages {
  flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px;
  background: #faf8f5;
}

.sailo-chat-bubble-msg { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }
.sailo-chat-bubble-msg.user { align-self: flex-end; background: #ff6b2b; color: #fff; border-bottom-right-radius: 3px; }
.sailo-chat-bubble-msg.assistant { align-self: flex-start; background: #fff; color: #222; border: 1px solid #eee; border-bottom-left-radius: 3px; }
.sailo-chat-bubble-msg.typing { align-self: flex-start; color: #999; font-style: italic; font-size: 12.5px; }

.sailo-chat-quote {
  align-self: flex-start; width: 100%; background: #fff; border: 1px solid #eee;
  border-radius: 10px; padding: 10px 12px; font-size: 12.5px;
}
.sailo-chat-quote .row { display: flex; justify-content: space-between; padding: 2px 0; color: #777; }
.sailo-chat-quote .row.total { margin: 0; padding: 0; color: #222; font-weight: 700; font-size: 15px; }
.sailo-chat-quote .note { margin-top: 6px; font-size: 11.5px; color: #999; line-height: 1.4; }

.sailo-chat-input-row { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eee; background: #fff; }
.sailo-chat-input { flex: 1; border: 1px solid #ddd; border-radius: 20px; padding: 9px 14px; font-size: 13.5px; outline: none; }
.sailo-chat-input:focus { border-color: #ff6b2b; }
.sailo-chat-send { background: #ff6b2b !important; border: none; border-radius: 50%; width: 38px; height: 38px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0; }
.sailo-chat-send svg { width: 16px; height: 16px; }
.sailo-chat-send:disabled { opacity: 0.5; cursor: default; }

.sailo-chat-wa-footer {
  padding: 8px 14px; text-align: center; font-size: 12px; color: #666;
  border-top: 1px solid #eee; background: #fff;
}
.sailo-chat-wa-footer a { color: #1a9e4f; font-weight: 600; text-decoration: none; }
.sailo-chat-wa-footer a:hover { text-decoration: underline; }

@media (max-width: 420px) {
  .sailo-chat-panel { right: 12px; left: 12px; width: auto; bottom: 84px; }
  #sailoChatRoot { left: 12px; bottom: 12px; }
}
