.chat-toggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(11,37,69,0.35);
}

.chat-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  width: 340px; max-width: calc(100vw - 32px);
  height: 480px; max-height: calc(100vh - 48px);
  background: #FFFFFF; border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  display: flex; flex-direction: column;
  font-family: 'Libre Franklin', system-ui, sans-serif;
}

.chat-header {
  background: var(--navy); color: #FFFFFF; padding: 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 15px;
}
.chat-header button {
  background: none; border: none; color: #FFFFFF; font-size: 22px;
  cursor: pointer; line-height: 1; padding: 0;
}

.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--cream);
}

.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.chat-msg.bot { background: #FFFFFF; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--navy); color: #FFFFFF; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg a { color: inherit; text-decoration: underline; }

.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: var(--cream); }
.chat-quick-replies button {
  background: #FFFFFF; border: 2px solid var(--accent); color: var(--navy);
  font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 20px; cursor: pointer;
}
.chat-quick-replies button:hover { background: var(--accent); }

.chat-input-area { display: flex; border-top: 1px solid var(--border); }
.chat-input-area input {
  flex: 1; border: none; padding: 14px; font-size: 14px; font-family: inherit; outline: none;
}
.chat-input-area button {
  background: var(--accent); color: var(--navy); border: none; font-weight: 700;
  padding: 0 18px; cursor: pointer; font-size: 14px;
}

@media (max-width: 420px) {
  .chat-widget { width: calc(100vw - 24px); right: 12px; bottom: 12px; height: calc(100vh - 100px); }
  .chat-toggle { right: 16px; bottom: 16px; }
}
