/* SGX Nova Assistant v2.3.1 – Frontend styles */

#sgx-nova-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483647;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Bubble */
#sgx-nova-chat .sgx-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--sgx-brand, #c40000);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* important so avatar is perfectly round */
  padding: 0;
}

#sgx-nova-chat .sgx-bubble-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#sgx-nova-chat .sgx-bubble-initials {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

/* Panel */
#sgx-nova-chat .sgx-panel {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 360px;
  max-width: calc(100vw - 40px);
  max-height: 520px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
#sgx-nova-chat .sgx-header {
  padding: 12px 16px;
  background: var(--sgx-brand, #c40000);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Messages */
#sgx-nova-chat .sgx-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 8px;
  background: #f7f7f8;
}

/* Footer */
#sgx-nova-chat .sgx-footer {
  padding: 12px 14px 16px; /* nice breathing room at the bottom */
  background: #ffffff;
  border-top: 1px solid #e3e3e7;
}

/* Input row */
#sgx-nova-chat .sgx-input-row {
  display: flex;
  gap: 8px;
}

#sgx-nova-chat .sgx-input-row input[type="text"],
#sgx-nova-chat .sgx-input-row textarea {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #d0d0dd;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
}

#sgx-nova-chat .sgx-input-row button {
  border-radius: 999px;
  border: 0;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  background: var(--sgx-brand, #c40000);
  color: #ffffff;
  cursor: pointer;
}

/* Message bubbles */
#sgx-nova-chat .sgx-msg {
  max-width: 80%;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.35;
}

#sgx-nova-chat .sgx-msg-user {
  margin-left: auto;
  background: #ffffff;
  border: 1px solid #dedee5;
}

#sgx-nova-chat .sgx-msg-bot {
  margin-right: auto;
  background: #f0f0ff;
  border: 1px solid #dedeeff;
}

/* Service auto-flow chips */

#sgx-nova-chat .sgx-service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

/* Strong, brand-colored chips */
#sgx-nova-chat .sgx-service-chip {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--sgx-brand, #c40000);
  color: #222222;
  font-weight: 600;
  cursor: pointer;
}

#sgx-nova-chat .sgx-service-chip:hover {
  background: var(--sgx-brand, #c40000);
  color: #ffffff;
}

/* Hover/active feedback */
#sgx-nova-chat .sgx-service-chip:hover {
  background: var(--sgx-brand, #c40000);
  color: #ffffff;
}


/* Plans layout (for [sgx_nova_plans]) */
.sgx-nova-plans {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
}

.sgx-nova-plan {
  flex: 1 1 200px;
  border: 1px solid #e1e1e8;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.sgx-nova-plan h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.sgx-nova-plan-price {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sgx-nova-plan-desc {
  font-size: 14px;
  color: #555;
}
