/*
  NST Website ChatBox Final
  iMessage-inspired, NST branded, Android 4.4-17 adaptive.
  Keep this file in: /nst-chatbox/nst-imessage-chatbox.css
*/
#nstChatWidgetRoot{position:fixed;right:22px;bottom:92px;z-index:999999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,"Noto Sans Bengali",sans-serif}
#nstChatWidgetRoot *{box-sizing:border-box}
.nst-chat-launcher{border:0;cursor:pointer;display:flex;align-items:center;gap:10px;min-width:178px;padding:12px 14px;border-radius:999px;background:#fff;color:#111827;box-shadow:0 16px 42px rgba(15,23,42,.18)}
.nst-chat-launcher-icon{width:42px;height:42px;border-radius:50%;display:block;text-align:center;line-height:42px;color:#fff;background:#0a84ff;font-size:20px;box-shadow:0 8px 22px rgba(10,132,255,.34)}
.nst-chat-launcher-text{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}
.nst-chat-launcher-text strong{font-size:14px;font-weight:800}
.nst-chat-launcher-text small{font-size:12px;color:#6b7280}
.nst-chat-box{position:absolute;right:0;bottom:74px;width:390px;max-width:calc(100vw - 24px);height:640px;max-height:calc(100vh - 120px);display:flex;flex-direction:column;overflow:hidden;border-radius:30px;background:#f2f2f7;color:#111827;box-shadow:0 26px 80px rgba(15,23,42,.24);border:1px solid rgba(209,213,219,.85);transform:translateY(16px) scale(.96);opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.nst-chat-box.is-open{transform:translateY(0) scale(1);opacity:1;pointer-events:auto}
.nst-chat-header{min-height:76px;padding:14px 14px 12px;display:flex;align-items:center;gap:11px;background:#fafafa;border-bottom:1px solid rgba(209,213,219,.75)}
.nst-chat-avatar{width:44px;height:44px;border-radius:50%;display:block;text-align:center;line-height:44px;color:#fff;background:#0a84ff;font-size:12px;font-weight:900;letter-spacing:-.03em;flex:0 0 auto}
.nst-chat-title{min-width:0;flex:1;display:flex;flex-direction:column}
.nst-chat-title strong{font-size:15px;font-weight:800;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nst-chat-title span{margin-top:3px;font-size:12px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nst-chat-close{width:34px;height:34px;border:0;cursor:pointer;border-radius:50%;background:#e5e5ea;color:#374151;font-size:24px;line-height:1;flex:0 0 auto}
.nst-chat-body{flex:1;overflow-y:auto;padding:14px;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
.nst-chat-date{width:max-content;margin:0 auto 14px;padding:5px 10px;border-radius:999px;background:#e5e5ea;color:#6b7280;font-size:11px;font-weight:700}
.nst-msg{display:flex;margin:9px 0}.nst-msg-agent{justify-content:flex-start}.nst-msg-user{justify-content:flex-end}
.nst-bubble{max-width:82%;padding:10px 13px;border-radius:20px;font-size:14px;line-height:1.42;word-wrap:break-word;white-space:pre-wrap}
.nst-msg-agent .nst-bubble{background:#e5e5ea;color:#111827;border-bottom-left-radius:7px}
.nst-msg-user .nst-bubble{background:#0a84ff;color:#fff;border-bottom-right-radius:7px}
.nst-visitor-form{margin-top:12px;padding:13px;border-radius:24px;background:#fff;border:1px solid rgba(229,231,235,.95)}
.nst-visitor-form label{display:block;margin-bottom:11px}.nst-visitor-form label span{display:block;margin-bottom:5px;color:#374151;font-size:12px;font-weight:800}
.nst-visitor-form input,.nst-visitor-form textarea{width:100%;border:1px solid #d1d5db;outline:none;border-radius:15px;padding:11px 12px;background:#fff;color:#111827;font-size:14px;font-family:inherit}
.nst-visitor-form textarea{resize:vertical;min-height:78px}.nst-visitor-form input:focus,.nst-visitor-form textarea:focus{border-color:#0a84ff;box-shadow:0 0 0 3px rgba(10,132,255,.12)}
.nst-help-text{display:block;margin-top:5px;color:#6b7280;font-size:11.5px;line-height:1.35}.nst-check{display:flex!important;align-items:flex-start;gap:8px}.nst-check input{width:16px!important;height:16px;margin-top:2px}.nst-check span{margin:0!important;color:#374151!important;font-weight:600!important;line-height:1.35}
.nst-start-btn{width:100%;border:0;cursor:pointer;margin-top:3px;padding:12px 14px;border-radius:17px;background:#0a84ff;color:#fff;font-size:14px;font-weight:900;box-shadow:0 12px 28px rgba(10,132,255,.26)}
.nst-conversation{padding-bottom:4px}.nst-chat-footer{padding:10px;display:flex;align-items:center;gap:8px;background:#fafafa;border-top:1px solid rgba(209,213,219,.75)}
.nst-icon-btn,.nst-send-btn{flex:0 0 auto;width:34px;height:34px;border:0;cursor:pointer;border-radius:50%;display:block;text-align:center;line-height:34px;font-weight:900}.nst-icon-btn{background:#e5e5ea;color:#374151;font-size:22px}.nst-reply-input{flex:1;min-width:0;height:38px;border:1px solid #d1d5db;outline:none;border-radius:999px;padding:0 14px;background:#fff;color:#111827;font-size:14px}.nst-send-btn{background:#0a84ff;color:#fff;font-size:20px}.nst-send-btn:disabled{background:#c7c7cc;cursor:not-allowed}
.nst-chat-warning{margin:8px 0;padding:9px 11px;border-radius:15px;background:#fff7ed;color:#9a3412;font-size:12px;line-height:1.4}.nst-chat-success{margin:8px 0;padding:9px 11px;border-radius:15px;background:#ecfdf5;color:#166534;font-size:12px;line-height:1.4}.nst-hidden{display:none!important}
@media(max-width:520px){#nstChatWidgetRoot{right:14px!important;bottom:88px!important}.nst-chat-launcher{min-width:auto;padding:10px}.nst-chat-launcher-text{display:none}.nst-chat-box{position:fixed;left:8px!important;right:8px!important;bottom:8px!important;width:auto;height:min(720px,calc(100vh - 16px));max-height:calc(100vh - 16px);border-radius:24px}.nst-bubble{max-width:88%}}
@media(max-width:340px){#nstChatWidgetRoot{right:10px!important;bottom:82px!important}.nst-chat-box{left:0!important;right:0!important;bottom:0!important;height:100vh;max-height:100vh;border-radius:0}.nst-chat-header{min-height:68px}.nst-chat-title span{display:none}}
