/* Ask about your chart: dedicated chart-grounded chat panel for kundali.html.
   Brand: Vedic Astrology. Reuses ira-avatar.png. Bilingual EN/HI handled in ask-chart.js. */
.askchart-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #bfa065, #d4b978);
  color: #1f1b16;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(191, 160, 101, 0.45);
}
.askchart-cta:hover { filter: brightness(1.06); }
.askchart-cta img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

.askchart-suggest { margin: 12px 0 4px; }
.askchart-suggest[hidden] { display: none; }
.askchart-suggest-title {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  color: #1e3a6e;
  margin-bottom: 8px;
}
.askchart-suggest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.askchart-wa {
  display: inline-block;
  margin-top: 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  color: #1c7a35;
  text-decoration: underline;
}
.askchart-wa:hover { color: #145c27; }

.askchart-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(400px, calc(100vw - 36px));
  height: min(600px, calc(100vh - 120px));
  min-height: 420px;
  display: flex;
  flex-direction: column;
  background: #faf6ee;
  border: 1px solid #e4d9c2;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(30, 58, 110, 0.28);
  z-index: 9999;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
}
.askchart-panel[hidden] { display: none; }
.askchart-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #1e3a6e;
  color: #fff;
}
.askchart-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; }
.askchart-head .t { flex: 1; line-height: 1.25; }
.askchart-head .t b { display: block; font-size: 15px; }
.askchart-head .t span { font-size: 12px; opacity: 0.85; }
.askchart-x {
  border: 0; background: transparent; color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.askchart-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.askchart-msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.askchart-msg.ira { align-self: flex-start; background: #fff; border: 1px solid #e4d9c2; color: #1f1b16; border-bottom-left-radius: 4px; }
.askchart-msg.user { align-self: flex-end; background: #1e3a6e; color: #fff; border-bottom-right-radius: 4px; }
.askchart-msg.thinking { opacity: 0.65; font-style: italic; }
.askchart-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 8px; }
.askchart-chip {
  border: 1px solid #bfa065;
  background: #fff;
  color: #1e3a6e;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
}
.askchart-chip:hover { background: #f4ead2; }
.askchart-form { display: flex; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid #e4d9c2; background: #fff; }
.askchart-form input {
  flex: 1;
  border: 1px solid #d8cba8;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #faf6ee;
}
.askchart-form button {
  border: 0; border-radius: 999px; padding: 10px 18px;
  background: #1e3a6e; color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.askchart-form button:disabled { opacity: 0.5; cursor: default; }
.askchart-mic {
  flex: 0 0 auto !important;
  width: 42px; height: 42px; padding: 0 !important;
  border-radius: 50% !important;
  background: #f0e9d6 !important; color: #1e3a6e !important;
  font-size: 18px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.askchart-mic::before { content: "\1F3A4"; }
.askchart-mic.listening { background: #c0392b !important; color: #fff !important; animation: askchart-pulse 1.2s infinite; }
.askchart-mic.listening::before { content: "\23F9"; }
@keyframes askchart-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
.askchart-foot {
  padding: 8px 14px 12px;
  background: #fff;
  font-size: 12.5px;
  color: #6d675f;
  text-align: center;
  border-top: 1px dashed #e4d9c2;
}
.askchart-foot a { color: #1e3a6e; font-weight: 700; }
@media (max-width: 480px) {
  .askchart-panel { right: 10px; bottom: 10px; width: calc(100vw - 20px); }
}
