/* glassmorphic chat */
.an-glass {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 380px;
  height: 560px;
  border-radius: 20px;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

#an-chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #22c55e, #16a34a);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 10000;
}

#an-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

#an-chat-header h3 {
  margin: 0;
  font-size: 18px;
  color: #064e3b;
  font-weight: 600;
}

#an-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #065f46;
}

#an-chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px;
  color: #0f172a;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 15px;
}

#an-input {
  border: none;
  outline: none;
  padding: 12px 16px;
  background: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.25);
  color: #064e3b;
  font-size: 15px;
  width: 100%;
}

/* inline shortcode variant */
.an-inline-chat {
  width: 100%;
  max-width: 680px;
  height: 560px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
}

.an-inline-head {
  padding: 10px 16px;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.3);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.an-inline-box {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-top: 0;
}

.an-inline-input {
  border: 1px solid rgba(255,255,255,0.3);
  border-top: 0;
  padding: 12px 16px;
  border-radius: 0 0 16px 16px;
}
@media(max-width:480px){
  .an-glass{width:95vw;height:70vh;right:2.5vw}
}
