/* File: assets/chat-style.css */

/* Chat container */
#olc-chat-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  max-width: 90%;
  min-height: 380px;   /* ? ensure it’s tall enough on open */
  max-height: calc(100vh - 48px);   /* never exceed viewport */
  flex-direction: column;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
  z-index: 10000;
}

/* Header */
#olc-chat-header {
  background: #0052cc;
  color: #fff;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#olc-chat-close {
  cursor: pointer;
  font-size: 18px;
}

/* Messages area */
#olc-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f9f9f9;
}

/* Message bubbles */
.olc-chat-msg {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 16px;
  max-width: 80%;
  line-height: 1.4;
}
.olc-chat-msg.bot  { background: #e1e1e1; align-self: flex-start; }
.olc-chat-msg.user { background: #cce4ff; align-self: flex-end; }

/* Input wrapper */
#olc-chat-input-wrapper {
  position: relative;
  padding: 8px;
  border-top: 1px solid #ddd;
  background: #fff;
}
#olc-chat-input {
  width: 100%;
  padding: 10px 48px 10px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  box-sizing: border-box;
  font-size: 14px;
}

/* Send button */
#olc-chat-send {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);

  /* -- Bigger circle -- */
  width: 48px;
  height: 48px;
  border-radius: 50%;

  background: #0052cc;
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}
/* -- Make the icon fill more of the button -- */
#olc-chat-send svg {
  width: 50px;
  height: 50px;
  fill: #fff;
}

/* Toggle bubble */
#olc-chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: #0052cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10001;
}

/* Responsive */
@media (max-width: 360px) {
  #olc-chat-container {
    width: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
  #olc-chat-toggle {
    bottom: 0;
    right: 0;
  }
}
