/* Ask Arsalan AI: original compact dock with an integrated document control. */
#ay-chat { max-height: calc(100dvh - 120px); }
#ay-chat [hidden] { display: none !important; }
#ay-chat .chat__header .flex-1 { min-width: 0; }
#ay-chat .chat__log { flex: 1 1 auto; min-height: 60px; scrollbar-width: thin; scrollbar-color: #D7D3DF transparent; }
#ay-chat .chat__msg { flex-shrink: 0; overflow-wrap: anywhere; }
#ay-chat .chat__suggestions { flex-shrink: 0; }
#ay-chat .chat__form { flex: 0 0 auto; padding: 9px 10px; gap: 8px; }
#ay-chat #ay-chat-input { border: 0 !important; border-radius: 0 !important; padding: 9px 0 !important; background: transparent; box-shadow: none !important; line-height: 1.4; }
#ay-chat #ay-chat-input:focus { box-shadow: none !important; }
#ay-chat .chat__attach { flex: 0 0 38px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #E9E5F2; border-radius: 50%; background: #F6F3FF; color: #4F2BE8; padding: 0; cursor: pointer; transition: background .15s, border-color .15s; }
#ay-chat .chat__attach:hover, #ay-chat .chat__attach.has-document { background: #EEE8FF; border-color: #D6C9FF; }
#ay-chat button:focus-visible, #ay-chat summary:focus-visible { outline: 2px solid #4F2BE8; outline-offset: 3px; }
#ay-chat button:disabled { cursor: wait; opacity: .5; }
#ay-chat .chat__send { flex-shrink: 0; }
#ay-chat .chat__file { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; margin: 0 14px 10px; padding: 9px 11px; border: 1px solid #E4DCFA; border-radius: 12px; background: #F8F6FF; color: #4F2BE8; }
#ay-chat .chat__file > svg { flex-shrink: 0; }
#ay-chat .chat__file-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
#ay-chat #ay-chat-document-status { font-size: 12px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #2A233F; }
#ay-chat .chat__file-state { font-size: 10.5px; color: #82798F; line-height: 1.4; }
#ay-chat .chat__file-remove { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; border: 0; border-radius: 50%; background: transparent; color: #82798F; font: inherit; font-size: 12px; cursor: pointer; }
#ay-chat .chat__file-remove:hover { background: #ECE5FA; color: #4F2BE8; }
#ay-chat .chat__footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 0 18px 12px; flex: 0 0 auto; }
#ay-chat .chat__details { min-width: 0; flex: 1; font-size: 10.5px; line-height: 1.5; color: #8A8A92; }
#ay-chat .chat__details summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; border-radius: 3px; }
#ay-chat .chat__details summary::-webkit-details-marker { display: none; }
#ay-chat .chat__details summary:hover, #ay-chat .chat__details[open] summary { color: #4F2BE8; }
#ay-chat .chat__details p { margin: 7px 0 0; font-size: 11px; line-height: 1.6; color: #7A7A82; }
#ay-chat .chat__reset { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; border: 0; background: none; padding: 0; color: #8A8A92; font-family: inherit; font-size: 10.5px; line-height: 1.5; cursor: pointer; }
#ay-chat .chat__reset:hover { color: #4F2BE8; }
@media (max-width: 600px) {
  #ay-chat { max-height: calc(100dvh - 100px); }
  #ay-chat .chat__header { padding: 14px; gap: 9px; }
  #ay-chat .chat__log { padding: 14px; }
  #ay-chat .chat__suggestions { padding: 0 14px 12px; gap: 6px; }
  #ay-chat .chat__suggestion { font-size: 11px; padding: 8px 10px; }
  #ay-chat .chat__attach { width: 40px; height: 40px; flex-basis: 40px; }
  #ay-chat #ay-chat-input { font-size: 16px; }
  #ay-chat .chat__footer { padding-right: 14px; padding-left: 14px; }
}


/* Readable response headings and a safe, clickable Calendly invitation. */
#ay-chat .chat__heading { font-weight: 800; color: #1A1A22; }
#ay-chat .chat__msg strong { font-weight: 800; }
#ay-chat .chat__booking { display: inline-flex; align-items: center; justify-content: center; margin-top: 5px; padding: 8px 12px; border: 1px solid #DCD3FF; border-radius: 999px; background: #fff; color: #4F2BE8; text-decoration: none; font-size: 12px; font-weight: 700; line-height: 1.35; white-space: normal; }
#ay-chat .chat__booking:hover { background: #F1EDFF; border-color: #4F2BE8; }
#ay-chat .chat__booking:focus-visible { outline: 2px solid #4F2BE8; outline-offset: 3px; }


.chat__resource{color:var(--color-accent,#6246ea);font-weight:600;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;}
.chat__resource:hover{opacity:.8;}
