#mahil-chat { --mc-blue: var(--theme-color, #3c72fc); position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 10000; font-family: "Kumbh Sans", Arial, sans-serif; font-size: 14px; line-height: 1.55; color: #eaf0ff; color-scheme: dark; }
#mahil-chat *, #mahil-chat *::before, #mahil-chat *::after { box-sizing: border-box; }
#mahil-chat [hidden] { display: none !important; }
#mahil-chat button, #mahil-chat input { font: inherit; }
#mahil-chat button { cursor: pointer; transition: background .2s, transform .2s; }
#mahil-chat button:disabled { cursor: default; opacity: .45; }
#mahil-chat button:focus-visible, #mahil-chat a:focus-visible, #mahil-chat input:focus-visible { outline: 2px solid #9bc4ff; outline-offset: 3px; }
#mahil-chat svg { width: 25px; height: 25px; display: block; }
#mahil-chat .mc-launcher { position: relative; display: flex; align-items: center; gap: 11px; height: 60px; padding: 0 23px 0 15px; border: 1px solid #729bff; border-radius: 30px; color: white; background: linear-gradient(125deg, #3c72fc, #3247d6); box-shadow: 0 6px 30px #174ec35c; font-weight: 700; }
#mahil-chat .mc-launcher:hover { transform: translateY(-3px); background: #2859da; }
#mahil-chat .mc-launch-icon { display: grid; place-items: center; }
#mahil-chat .mc-online { position: absolute; top: 1px; right: 10px; width: 11px; height: 11px; border-radius: 50%; background: #5de4b4; border: 2px solid #0d1931; }
#mahil-chat .mc-panel { position: absolute; bottom: 76px; right: 0; width: 380px; height: 555px; max-height: calc(100vh - 124px); max-height: calc(100dvh - 124px); display: flex; flex-direction: column; overflow: hidden; background: #0c1526; border: 1px solid #344565; border-radius: 22px; box-shadow: 0 24px 80px #0009; animation: mc-appear .2s ease-out; }
#mahil-chat .mc-header { display: flex; align-items: center; gap: 11px; padding: 20px 16px; background: linear-gradient(120deg, #172c56, #102044); border-bottom: 1px solid #ffffff0f; }
#mahil-chat .mc-avatar { display: grid; place-items: center; flex-shrink: 0; width: 43px; height: 43px; border-radius: 14px; color: #fff; background: #3c72fc; box-shadow: 0 4px 16px #3c72fc33; }
#mahil-chat .mc-heading { flex: 1; }
#mahil-chat .mc-heading h2 { margin: 0 0 3px; color: #fff; font-size: 16px; line-height: 1.3; font-weight: 700; letter-spacing: 0; }
#mahil-chat .mc-heading > span { color: #b9c9e5; font-size: 11px; }
#mahil-chat .mc-heading i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #5de4b4; }
#mahil-chat .mc-icon-button { background: transparent; border: 0; color: #c5d3ed; border-radius: 8px; padding: 0; width: 30px; height: 34px; font-size: 24px; }
#mahil-chat .mc-icon-button:hover { background: #ffffff14; color: white; }
#mahil-chat .mc-intro { padding: 10px 16px; text-align: center; color: #a4b7d6; font-size: 11px; border-bottom: 1px solid #ffffff08; }
#mahil-chat .mc-messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px; scrollbar-width: thin; scrollbar-color: #344565 transparent; }
#mahil-chat .mc-message { margin-bottom: 18px; max-width: 94%; }
#mahil-chat .mc-message-label { display: block; color: #92a6c8; font-size: 9px; letter-spacing: 1px; margin: 0 3px 6px; font-weight: 700; }
#mahil-chat .mc-bubble { padding: 12px 14px; border-radius: 3px 15px 15px; background: #18263c; color: #e0e8f6; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; }
#mahil-chat .mc-user { margin-left: auto; }
#mahil-chat .mc-user .mc-message-label { text-align: right; }
#mahil-chat .mc-user .mc-bubble { background: #315fda; color: white; border-radius: 15px 3px 15px 15px; }
#mahil-chat .mc-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
#mahil-chat .mc-actions a { font-size: 11px; color: #a8c6ff; text-decoration: none; padding: 5px 9px; border: 1px solid #344b72; border-radius: 7px; }
#mahil-chat .mc-actions a:hover { background: #233555; color: white; }
#mahil-chat .mc-typing { padding: 0 20px 10px; color: #9fb0cc; font-size: 11px; }
#mahil-chat .mc-typing span { display: inline-block; width: 5px; height: 5px; background: #85aaff; border-radius: 50%; margin-right: 3px; animation: mc-dot 1s infinite; }
#mahil-chat .mc-typing span:nth-child(2) { animation-delay: .15s; }
#mahil-chat .mc-typing span:nth-child(3) { animation-delay: .3s; margin-right: 7px; }
#mahil-chat .mc-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
#mahil-chat .mc-suggestions button { border: 1px solid #354b72; border-radius: 20px; background: #101e34; color: #bed2ff; padding: 6px 10px; font-size: 11px; }
#mahil-chat .mc-suggestions button:hover:not(:disabled) { background: #243c65; }
#mahil-chat .mc-form { display: flex; align-items: center; gap: 8px; padding: 10px; margin: 0 14px; border-radius: 13px; background: #17243a; border: 1px solid #34435d; }
#mahil-chat .mc-form:focus-within { border-color: #759bff; }
#mahil-chat .mc-form input { flex: 1; min-width: 0; width: 100%; height: 30px; border: 0; background: transparent; color: white; padding: 0 3px; margin: 0; border-radius: 0; box-shadow: none; font-size: 13px; }
#mahil-chat .mc-form input::placeholder { color: #9aaac4; }
#mahil-chat .mc-form input:focus-visible { outline: none; }
#mahil-chat .mc-send { display: grid; place-items: center; flex-shrink: 0; width: 35px; height: 35px; border: 0; border-radius: 10px; color: white; background: #3c72fc; padding: 0; }
#mahil-chat .mc-footer { padding: 10px; font-size: 10px; text-align: center; color: #91a1bb; }
#mahil-chat .mc-footer a { color: #b8c9e9; text-decoration: underline; text-underline-offset: 2px; }
#mahil-chat .mc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
/* Keep the site's back-to-top control clear of the chat launcher. */
.scroll-top { bottom: 102px; }
@keyframes mc-dot { 0%, 70%, 100% { transform: translateY(0); opacity: .4; } 35% { transform: translateY(-4px); opacity: 1; } }
@keyframes mc-appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
  #mahil-chat { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
  #mahil-chat .mc-panel { width: calc(100vw - 28px); bottom: 70px; max-height: calc(100vh - 102px); max-height: calc(100dvh - 102px - env(safe-area-inset-bottom)); border-radius: 18px; }
  #mahil-chat .mc-launcher { height: 54px; padding: 0 18px 0 14px; }
  #mahil-chat .mc-form input { font-size: 16px; }
  #mahil-chat .mc-header { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { #mahil-chat *, #mahil-chat *::before, #mahil-chat *::after { animation: none !important; transition: none !important; } }
@media print { #mahil-chat { display: none; } }
