/* Holden AI Agent Widget */
.holden-ai-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  height: 64px;
  padding: 0 18px 0 6px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid #e36b2c;
  box-shadow: 0 8px 24px rgba(16, 37, 66, 0.18);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.holden-ai-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(227, 107, 44, 0.35);
}
.holden-ai-toggle img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.holden-ai-toggle-text {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #102542;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.holden-ai-panel {
  position: fixed;
  bottom: 104px;
  right: 24px;
  width: min(380px, calc(100vw - 32px));
  height: 520px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(16, 37, 66, 0.22);
  z-index: 9998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  font-family: Inter, system-ui, sans-serif;
}
.holden-ai-panel.open { display: flex; }
.holden-ai-header {
  background: linear-gradient(135deg, #102542 0%, #1a3a6b 100%);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.holden-ai-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e36b2c;
}
.holden-ai-header h4 { margin: 0; font-size: 16px; font-weight: 700; }
.holden-ai-header p { margin: 2px 0 0; font-size: 12px; opacity: 0.85; }
.holden-ai-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.holden-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.holden-ai-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
}
.holden-ai-msg.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #102542;
  border-bottom-left-radius: 4px;
}
.holden-ai-msg.user {
  align-self: flex-end;
  background: #e36b2c;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.holden-ai-msg a { color: #e36b2c; font-weight: 600; text-decoration: none; }
.holden-ai-msg.user a { color: #fff; text-decoration: underline; }
.holden-ai-input-area {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.holden-ai-input-area input {
  flex: 1;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
}
.holden-ai-input-area input:focus { border-color: #e36b2c; }
.holden-ai-input-area button {
  background: #e36b2c;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
.holden-ai-input-area button:hover { background: #d95d1e; }
.holden-ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
}
.holden-ai-quick button {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  color: #102542;
}
.holden-ai-quick button:hover { border-color: #e36b2c; color: #e36b2c; }
@media (max-width: 480px) {
  .holden-ai-panel { right: 12px; bottom: 96px; width: calc(100vw - 24px); height: 70vh; }
  .holden-ai-toggle { right: 16px; bottom: 16px; height: 56px; padding: 0 14px 0 4px; }
  .holden-ai-toggle img { width: 46px; height: 46px; }
  .holden-ai-toggle-text { font-size: 14px; }
}
