/* Dubai (DXB) Journal Publishers — AI + human support widget */
.acad-chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1100;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 4px solid #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, #e45b00, #b84200);
  color: #fff;
  box-shadow: 0 16px 38px rgba(180, 66, 0, .3);
  font: 800 22px/1 "Manrope", Arial, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.acad-chat-launcher:hover { transform: translateY(-4px) rotate(3deg); box-shadow: 0 20px 44px rgba(180, 66, 0, .4); }
.acad-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 1100;
  width: min(390px, calc(100vw - 28px));
  height: min(600px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e9e0d9;
  border-radius: 24px;
  background: #fffdfb;
  color: #23272b;
  box-shadow: 0 28px 80px rgba(35, 39, 43, .28);
  font-family: "Manrope", Arial, sans-serif;
}
.acad-chat-panel[hidden] { display: none; }
.acad-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px; background: radial-gradient(circle at 90% 20%, rgba(228,91,0,.5), transparent 38%), linear-gradient(135deg, #252a2e, #3c444b); color: #fff; }
.acad-chat-header strong { display: block; font-size: 14px; }
.acad-chat-status { display: block; margin-top: 3px; color: rgba(255,255,255,.72); font-size: 11px; }
.acad-chat-close { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(255,255,255,.1); color: #fff; font-size: 22px; cursor: pointer; }
.acad-chat-start { overflow: auto; padding: 23px; }
.acad-chat-start h3 { margin: 0 0 8px; font-size: 21px; }
.acad-chat-start p { margin: 0 0 18px; color: #67717b; font-size: 13px; }
.acad-chat-start label { display: grid; gap: 6px; margin-bottom: 13px; color: #3f4851; font-size: 12px; font-weight: 800; }
.acad-chat-start input { width: 100%; padding: 11px 12px; border: 1px solid #ddd4ce; border-radius: 11px; outline: 0; font: inherit; }
.acad-chat-start input:focus, .acad-chat-composer textarea:focus { border-color: #e45b00; box-shadow: 0 0 0 4px rgba(228,91,0,.11); }
.acad-chat-start button, .acad-chat-send, .acad-chat-human { padding: 10px 14px; border: 0; border-radius: 11px; background: linear-gradient(135deg, #e45b00, #b84200); color: #fff; font-weight: 800; cursor: pointer; }
.acad-chat-start button { width: 100%; margin-top: 4px; }
.acad-chat-error { min-height: 18px; margin-top: 10px; color: #b52d24; font-size: 11px; }
.acad-chat-body { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.acad-chat-messages { flex: 1; overflow: auto; padding: 16px; background: linear-gradient(135deg, #fff5ed, #f4f8f8); }
.acad-chat-message { max-width: 84%; margin: 0 0 10px; padding: 10px 12px; border-radius: 15px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.48; }
.acad-chat-message.assistant, .acad-chat-message.agent { border: 1px solid #e9e0d9; border-bottom-left-radius: 5px; background: #fff; box-shadow: 0 7px 18px rgba(35,39,43,.05); }
.acad-chat-message.agent { border-color: #efbd99; background: #fff6ef; }
.acad-chat-message.visitor { margin-left: auto; border-bottom-right-radius: 5px; background: #292d32; color: #fff; }
.acad-chat-message small { display: block; margin-top: 5px; font-size: 9px; opacity: .62; }
.acad-chat-actions { display: flex; justify-content: flex-end; padding: 8px 12px 0; background: #fffdfb; }
.acad-chat-human { padding: 7px 10px; background: #e7efee; color: #0f655f; font-size: 11px; }
.acad-chat-composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid #e9e0d9; background: #fffdfb; }
.acad-chat-composer textarea { min-height: 43px; max-height: 105px; padding: 10px; border: 1px solid #ddd4ce; border-radius: 11px; color: #23272b; outline: 0; font: inherit; resize: none; }
.acad-chat-send { align-self: end; }
.acad-chat-note { padding: 0 12px 11px; background: #fffdfb; color: #67717b; font-size: 10px; }
.acad-chat-disabled { opacity: .55; pointer-events: none; }
@media (max-width: 600px) { .acad-chat-launcher { right: 14px; bottom: 14px; width: 52px; height: 52px; border-radius: 16px; } .acad-chat-panel { right: 14px; bottom: 78px; height: calc(100vh - 94px); } }
