/* NBICCS Live Chat - standalone responsive layout */
.nbiccs-live-chat-page{background:#f4f7fb;min-height:100vh;}
.public-chat-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 7%;background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:20;box-shadow:0 4px 18px rgba(15,23,42,.06)}
.public-chat-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#123;font-weight:800}.public-chat-brand img{width:44px;height:44px;object-fit:contain}.public-chat-main{max-width:960px;margin:0 auto;padding:28px 16px 60px}.public-chat-intro{text-align:center;margin-bottom:22px}.public-chat-intro h1{font-size:clamp(28px,5vw,46px);margin:12px 0 8px;color:#0f172a}.public-chat-intro p{color:#475569;font-size:16px;line-height:1.7}.live-pill{display:inline-flex;padding:7px 14px;border-radius:999px;background:#dcfce7;color:#166534;font-weight:800;font-size:13px}
.nb-chat-start-card,.nb-chat-shell{background:#fff;border:1px solid #e5e7eb;border-radius:24px;box-shadow:0 20px 55px rgba(15,23,42,.10);overflow:hidden}.nb-chat-start-card{padding:24px;max-width:760px;margin:0 auto}.nb-chat-start-card h2{margin:0 0 6px;color:#0f172a}.nb-chat-start-card p{margin:0 0 20px;color:#64748b}.nb-chat-start-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.nb-chat-start-form label{font-weight:800;color:#334155;font-size:14px}.nb-chat-start-form input,.nb-chat-start-form textarea,.nb-chat-form textarea{width:100%;box-sizing:border-box;margin-top:7px;border:1px solid #cbd5e1;border-radius:14px;padding:13px 14px;font:inherit;background:#fff;color:#0f172a}.nb-chat-start-form textarea{min-height:110px;resize:vertical}.nb-chat-start-form .full{grid-column:1/-1}.nb-chat-start-form .btn{grid-column:1/-1;justify-content:center;min-height:48px}.nb-chat-form-note{grid-column:1/-1;color:#b45309;font-weight:700}.nb-chat-shell{max-width:860px;margin:0 auto;display:flex;flex-direction:column;height:68vh;min-height:480px}.layout .nb-chat-shell{max-width:100%;height:calc(100vh - 190px);min-height:440px}.nb-chat-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px;background:linear-gradient(135deg,#0b7a3b,#15a65b);color:#fff}.nb-chat-head strong{display:block;font-size:17px}.nb-chat-head span{display:block;opacity:.9;font-size:13px}.nb-chat-status{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.3);padding:7px 12px;border-radius:999px;font-weight:800}.nb-chat-messages{flex:1;overflow-y:auto;padding:18px;background:#f8fafc}.nb-chat-empty{text-align:center;color:#64748b;padding:26px}.nb-chat-bubble{max-width:78%;margin:0 0 12px;padding:12px 14px;border-radius:18px;background:#e2e8f0;color:#0f172a;box-shadow:0 4px 12px rgba(15,23,42,.05);word-wrap:break-word}.nb-chat-bubble.mine{margin-left:auto;background:#0b7a3b;color:#fff;border-bottom-right-radius:6px}.nb-chat-bubble.theirs{margin-right:auto;border-bottom-left-radius:6px}.nb-chat-bubble small{display:block;margin-top:6px;opacity:.75;font-size:11px}.nb-chat-form{display:flex;gap:10px;padding:14px;background:#fff;border-top:1px solid #e5e7eb}.nb-chat-form textarea{margin:0;min-height:50px;max-height:120px;resize:vertical}.nb-chat-form .btn{min-width:120px}.nb-chat-admin-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:18px}.nb-thread-list{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:14px;max-height:calc(100vh - 170px);overflow:auto}.nb-thread-list h2{margin:0 0 12px}.nb-thread-item{display:block;text-decoration:none;color:#0f172a;border:1px solid #e5e7eb;border-radius:16px;padding:12px;margin-bottom:10px;background:#f8fafc}.nb-thread-item.active{border-color:#0b7a3b;background:#ecfdf5}.nb-thread-item strong,.nb-thread-item span,.nb-thread-item small{display:block}.nb-thread-item span{color:#64748b;font-size:13px;margin-top:4px}.nb-thread-item small{color:#0b7a3b;font-weight:800;margin-top:6px}.floating-live-chat{position:fixed;right:18px;bottom:18px;z-index:9999;background:#0b7a3b;color:#fff;text-decoration:none;border-radius:999px;padding:13px 18px;font-weight:900;box-shadow:0 18px 35px rgba(15,23,42,.25)}
@media(max-width:900px){.nb-chat-admin-layout{grid-template-columns:1fr}.nb-thread-list{max-height:300px}.public-chat-header{padding:12px 14px}.public-chat-brand span{font-size:14px}.nb-chat-start-form{grid-template-columns:1fr}.nb-chat-shell{height:72vh;min-height:430px}.nb-chat-form{align-items:stretch}.nb-chat-bubble{max-width:90%}}
@media(max-width:560px){.public-chat-main{padding:20px 10px 90px}.nb-chat-start-card{padding:18px;border-radius:18px}.nb-chat-shell{border-radius:18px;height:75vh;min-height:420px}.nb-chat-head{padding:14px}.nb-chat-messages{padding:12px}.nb-chat-form{flex-direction:column}.nb-chat-form .btn{width:100%;min-height:46px}.floating-live-chat{left:12px;right:12px;text-align:center}.public-chat-header .btn{padding:8px 10px;font-size:13px}.public-chat-brand img{width:38px;height:38px}}

/* NBICCS Live Chat Enhancements: attachment, auto response and online status */
.nb-chat-file{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:110px;border:1px dashed #94a3b8;border-radius:14px;padding:12px 13px;font-weight:800;color:#0f172a;background:#f8fafc;cursor:pointer;white-space:nowrap}.nb-chat-file input{display:none}.nb-chat-help{display:block;color:#64748b;font-weight:600;margin-top:6px;font-size:12px}.nb-chat-attachment{display:block;margin-top:9px;padding:9px 10px;border-radius:12px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);color:inherit;text-decoration:none;font-weight:800}.nb-chat-bubble.theirs .nb-chat-attachment{background:#fff;border-color:#cbd5e1;color:#0b7a3b}.nb-chat-bubble.bot{background:#fff7ed;color:#7c2d12;border:1px solid #fed7aa}.nb-online{color:#16a34a}.nb-offline{color:#64748b}.nb-thread-item .nb-online::before{content:'● ';}.nb-thread-item .nb-offline::before{content:'● ';}
@media(max-width:560px){.nb-chat-file{width:100%;box-sizing:border-box}.nb-chat-form{gap:8px}.nb-chat-start-form input[type=file]{width:100%;border:1px dashed #94a3b8;border-radius:14px;padding:12px;background:#f8fafc}}

/* Final cleanup: hide old live-chat subtitle text if any cached template still renders it */
.public-chat-intro p{display:none!important;}

/* Live Chat readability update — 03 August 2026 */
.live-pill{font-size:14px!important}
.nb-chat-start-form label{font-size:15px!important}
.nb-chat-start-form input,.nb-chat-start-form textarea,.nb-chat-form textarea{font-size:16px!important}
.nb-chat-head strong{font-size:18px!important}
.nb-chat-head span,.nb-thread-item span{font-size:14px!important}
.nb-chat-status{font-size:14px!important}
.nb-chat-bubble{font-size:15px!important;line-height:1.55!important}
.nb-chat-bubble small{font-size:12.5px!important}
.nb-chat-help{font-size:13px!important}
.nb-thread-item small{font-size:13px!important}
.floating-live-chat{font-size:15px!important}
