:root {
  --chat-bg: #ffffff;
  --chat-border: #f0e3d9;
  --chat-text: #1d120f;
  --chat-muted: rgba(84, 55, 40, 0.7);
  --chat-accent: #f05d23;
}

.chat-widget {
  background: var(--chat-bg);
  border: 1px solid var(--chat-border);
  border-radius: 1.25rem;
  color: var(--chat-text);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(94, 67, 50, 0.12);
}

.chat-widget__header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--chat-border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.chat-widget__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--chat-muted);
  margin: 0 0 0.35rem;
}

.chat-widget__header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
}

.chat-widget__subtitle {
  margin: 0;
  color: var(--chat-muted);
  font-size: 0.9rem;
}

.chat-widget__status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--chat-muted);
  align-self: center;
}

.chat-widget__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.chat-widget__messages {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background: #faf5f0;
  border: 1px solid #f0e3d9;
  line-height: 1.4;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.chat-bubble ul,
.chat-bubble ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.chat-bubble code {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.1rem 0.3rem;
  border-radius: 0.3rem;
  font-size: 0.9em;
}

.chat-bubble pre {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 0.5rem 0 0;
}

.chat-bubble--user {
  align-self: flex-end;
  background: var(--chat-accent);
  color: #1c1307;
  border-color: transparent;
}

.chat-bubble--assistant {
  align-self: flex-start;
}

.chat-bubble--error {
  align-self: stretch;
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: #ffd7de;
}

.chat-widget__form {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--chat-border);
  align-items: stretch;
  flex-wrap: wrap;
}

.chat-widget__form textarea {
  flex: 1;
  resize: none;
  border: 1px solid #e9dbcf;
  background: #fff;
  border-radius: 0.85rem;
  font: inherit;
  color: var(--chat-text);
  padding: 0.8rem 1rem;
  min-height: 48px;
}

.chat-widget__form textarea:focus {
  outline: 2px solid var(--chat-accent);
  border-color: transparent;
}

.chat-widget__form button {
  border: none;
  border-radius: 0.85rem;
  padding: 0 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--chat-accent);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.chat-widget__attach {
  background: rgba(0, 0, 0, 0.05);
  color: inherit;
  padding: 0 1rem;
  flex: 0 0 auto;
}

.chat-widget__form button:active {
  transform: translateY(1px);
}

.chat-bubble__attachment-label {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.chat-bubble img {
  max-width: 100%;
  border-radius: 0.75rem;
  display: block;
}
@media (max-width: 480px) {
  .chat-widget {
    border-radius: 1rem;
  }

  .chat-bubble {
    max-width: 100%;
  }
}

/* Suggested Questions Styling */
.suggested-questions {
  padding: 0.5rem 0.75rem;
  margin: 0.25rem 0;
}

.suggested-questions__title {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.suggested-question {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.suggested-question:hover {
  background: #f3f4f6;
  border-color: var(--chat-accent, #f9b233);
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.suggested-question:active {
  transform: translateY(0);
}

.suggested-question:last-child {
  margin-bottom: 0;
}
