/* All rules scoped to the plugin; no checkout/product overrides. */
#nnv-live-widget,#nnv-support-admin{--nnv-yellow:#ffd23f;--nnv-ink:#181b20;--nnv-line:#dce1e7;--nnv-muted:#616b78;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.5;color:var(--nnv-ink);text-align:left}
#nnv-live-widget *,#nnv-support-admin *{box-sizing:border-box}
#nnv-live-widget [hidden],#nnv-support-admin [hidden]{display:none!important}
#nnv-live-widget button,#nnv-support-admin button{cursor:pointer;font-family:inherit;letter-spacing:normal;text-transform:none}
#nnv-live-widget button:disabled,#nnv-support-admin button:disabled{cursor:not-allowed;opacity:.55}
#nnv-live-widget button:focus-visible,#nnv-support-admin button:focus-visible,#nnv-live-widget a:focus-visible{outline:3px solid #3276bd;outline-offset:3px}
#nnv-live-widget .nnv-launch{position:fixed;bottom:calc(20px + env(safe-area-inset-bottom,0px));left:20px;z-index:999980;display:flex;gap:9px;align-items:center;border:1px solid #d6aa22;border-radius:30px;background:var(--nnv-yellow);color:#111;font-size:16px;font-weight:700;padding:14px 19px;min-height:48px;box-shadow:0 5px 24px #0002;margin:0}
#nnv-live-widget .nnv-badge,#nnv-support-admin .nnv-list-badge{background:#b51f30;color:#fff;font-size:12px;border-radius:16px;padding:2px 7px}
#nnv-live-widget #nnv-live-panel{position:fixed;left:20px;bottom:calc(85px + env(safe-area-inset-bottom,0px));width:min(390px,calc(100vw - 32px));height:min(610px,calc(100dvh - 115px));z-index:999981;background:#fff;border:1px solid #d2d8de;border-radius:16px;box-shadow:0 12px 55px #0003;overflow:hidden;display:flex;flex-direction:column}
#nnv-live-widget .nnv-chat-header{background:#191c21;color:#fff;padding:15px 16px;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}
#nnv-live-widget .nnv-chat-header strong{font-size:17px;color:var(--nnv-yellow)}
#nnv-live-widget .nnv-chat-header small{display:block;font-size:11px;margin-top:4px;color:#e2e6eb}
#nnv-live-widget .nnv-minimize{width:42px;height:42px;min-height:42px;padding:0;border:1px solid #ffffff50;border-radius:8px;background:transparent;color:#fff;font-size:28px;line-height:1;margin:0}
#nnv-live-widget .nnv-chat-intro{padding:10px 14px;background:#fff8dd;font-size:12px;color:#514318;flex-shrink:0}
#nnv-live-widget .nnv-name-label{display:block;padding:8px 14px;font-size:11px;color:var(--nnv-muted);margin:0}
#nnv-live-widget .nnv-visitor-name{width:100%;padding:7px 9px;border:1px solid var(--nnv-line);border-radius:7px;background:#fff;color:#222;font-size:16px;height:auto;box-shadow:none;margin:3px 0 0}
#nnv-live-widget .nnv-messages,#nnv-support-admin .nnv-messages{flex:1;min-height:80px;overflow-y:auto;overscroll-behavior:contain;padding:14px;background:#f4f6f8;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin}
#nnv-live-widget .nnv-bubble,#nnv-support-admin .nnv-bubble{max-width:90%;padding:10px 12px;border:1px solid var(--nnv-line);border-radius:12px;background:#fff;align-self:flex-start;overflow-wrap:anywhere;margin:0;flex-shrink:0}
#nnv-live-widget .nnv-bubble strong,#nnv-support-admin .nnv-bubble strong{font-size:11px;display:block;margin-bottom:4px}
#nnv-live-widget .nnv-bubble div,#nnv-support-admin .nnv-bubble div{white-space:pre-wrap;font-size:14px}
#nnv-live-widget .nnv-bubble time,#nnv-support-admin .nnv-bubble time{display:block;font-size:10px;color:#626b76;margin-top:6px}
#nnv-live-widget .nnv-visitor,#nnv-support-admin .nnv-agent{background:#fff3bf;border-color:#e8ce72;align-self:flex-end}
#nnv-live-widget .nnv-chat-status{font-size:12px;color:#7a4010;padding:4px 12px;margin:0;min-height:24px;background:#fff}
#nnv-live-widget .nnv-compose,#nnv-support-admin .nnv-compose{display:flex;gap:8px;align-items:stretch;background:#fff;padding:10px;border-top:1px solid var(--nnv-line);margin:0;flex-shrink:0}
#nnv-live-widget .nnv-compose textarea,#nnv-support-admin .nnv-compose textarea{flex:1;min-width:0;width:100%;min-height:48px;max-height:130px;resize:vertical;padding:9px;border:1px solid #c9d1da;border-radius:8px;font:16px/1.4 Arial,sans-serif;color:#15191e;background:#fff;margin:0;box-shadow:none}
#nnv-live-widget .nnv-compose button,#nnv-support-admin .nnv-compose button{padding:10px 12px;background:var(--nnv-yellow);border:1px solid #b89218;border-radius:8px;color:#111;font-size:13px;font-weight:700;margin:0}
#nnv-live-widget .nnv-new-chat{margin:8px 12px;padding:10px;background:#ffd23f;color:#111;border:1px solid #b89218;border-radius:7px}
#nnv-live-widget .nnv-chat-footer{font-size:10px;padding:5px 12px;color:var(--nnv-muted);background:#fff}
#nnv-live-widget .nnv-chat-footer a{color:#275d98;text-decoration:underline}
#nnv-live-widget .nnv-sr-only,#nnv-support-admin .nnv-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
#nnv-support-admin{max-width:1450px}
#nnv-support-admin h1{font-weight:700;margin:16px 0}
#nnv-support-admin .nnv-admin-toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;background:#fff;padding:14px;border:1px solid var(--nnv-line);border-radius:10px}
#nnv-support-admin .nnv-admin-toolbar label{display:flex;gap:7px;align-items:center}
#nnv-support-admin .nnv-admin-layout{display:grid;grid-template-columns:300px minmax(0,1fr);height:660px;max-height:80dvh;border:1px solid #cbd2da;border-radius:12px;overflow:hidden;background:#fff}
#nnv-support-admin .nnv-chat-sidebar{min-width:0;overflow:auto;background:#fff;border-right:1px solid var(--nnv-line)}
#nnv-support-admin .nnv-list-filters{padding:12px;background:#f0f2f5;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#nnv-support-admin .nnv-list-filters select{max-width:140px}
#nnv-support-admin .nnv-chat-item{display:block;width:100%;border:0;border-bottom:1px solid #e5e8ed;border-left:4px solid transparent;border-radius:0;padding:13px 12px;text-align:left;background:#fff;color:#222;min-height:80px}
#nnv-support-admin .nnv-chat-item.is-selected{background:#fff8da;border-left-color:#d8ad1e}
#nnv-support-admin .nnv-chat-item strong,#nnv-support-admin .nnv-chat-item small{display:block}
#nnv-support-admin .nnv-chat-item small{color:var(--nnv-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;margin:4px 0}
#nnv-support-admin .nnv-chat-item span{font-size:11px;color:var(--nnv-muted);margin-right:8px}
#nnv-support-admin .nnv-pagination{display:flex;align-items:center;justify-content:space-between;padding:10px;gap:5px}
#nnv-support-admin .nnv-admin-thread{display:flex;flex-direction:column;min-width:0;min-height:0}
#nnv-support-admin .nnv-thread-header{display:flex;gap:8px;flex-direction:column;padding:13px 16px;background:#1c2026;color:#fff;overflow-wrap:anywhere}
#nnv-support-admin .nnv-thread-header a{font-size:12px;color:#ffdc67}
#nnv-support-admin .nnv-thread-actions{display:flex;flex-wrap:wrap;gap:6px;padding:10px;border-bottom:1px solid var(--nnv-line)}
#nnv-support-admin .nnv-thread-actions button{font-size:11px;min-height:32px}
#nnv-support-admin #nnv-admin-status{min-height:22px;color:#5f4b0a}
@media(max-width:782px){
#nnv-support-admin .nnv-admin-layout{grid-template-columns:1fr;height:auto;max-height:none;overflow:visible}
#nnv-support-admin .nnv-chat-sidebar{max-height:260px;border-right:0;border-bottom:1px solid var(--nnv-line);overflow:auto}
#nnv-support-admin .nnv-admin-thread{height:650px;max-height:85dvh;min-height:420px}
#nnv-support-admin .nnv-compose{flex-wrap:wrap}
#nnv-support-admin .nnv-compose button{min-height:44px}
#nnv-support-admin .nnv-admin-toolbar{gap:10px}
#nnv-support-admin .nnv-admin-toolbar .button{min-height:42px}
}
@media(max-width:480px){
#nnv-live-widget .nnv-launch{left:12px;bottom:calc(14px + env(safe-area-inset-bottom,0px));font-size:14px;padding:12px 16px}
#nnv-live-widget #nnv-live-panel{left:8px;right:8px;width:auto;bottom:calc(75px + env(safe-area-inset-bottom,0px));height:min(590px,calc(100dvh - 96px));border-radius:12px}
#nnv-live-widget .nnv-name-label{padding-top:4px;padding-bottom:4px}
#nnv-live-widget .nnv-chat-header{padding:10px 12px}
#nnv-live-widget .nnv-chat-intro{font-size:11px;padding:7px 12px}
}
@media(max-height:500px){#nnv-live-widget .nnv-name-label,#nnv-live-widget .nnv-chat-intro{display:none}#nnv-live-widget #nnv-live-panel{bottom:8px;height:calc(100dvh - 16px)}}
#nnv-support-admin .nnv-push-settings{background:#fff8dc;border:1px solid #dfc365;border-radius:10px;padding:14px;margin-top:14px}
#nnv-support-admin .nnv-push-settings p{margin:8px 0}
#nnv-support-admin .nnv-push-buttons{display:flex;flex-wrap:wrap;gap:8px}
#nnv-support-admin .nnv-push-settings details{margin:12px 0}
#nnv-support-admin .nnv-push-settings summary{cursor:pointer;font-weight:700}
#nnv-support-admin .nnv-push-device{padding:10px 0;border-bottom:1px solid #e5dcae;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#nnv-support-admin .nnv-push-device small{flex:1 1 180px;overflow-wrap:anywhere}
#nnv-support-admin .nnv-bubble a,#nnv-live-widget .nnv-bubble a{color:#175793;text-decoration:underline;overflow-wrap:anywhere}
@media(max-width:782px){#nnv-support-admin .nnv-push-buttons .button{min-height:44px}}

/* v1.1.1 — Buttons stay visible; omit empty status spacing. */
#nnv-support-admin #nnv-push-status:empty{display:none}

/* Supplied brand asset: white backing keeps the dark wordmark readable. */
#nnv-live-widget .nnv-chat-brand{flex:1;min-width:0;margin-right:10px}
#nnv-live-widget .nnv-brand-logo{display:block;width:210px!important;max-width:100%!important;height:52px!important;object-fit:cover;object-position:center;background:#fff;border-radius:6px;border:0;margin:0 0 7px;padding:0;box-shadow:none}
#nnv-live-widget .nnv-minimize{flex-shrink:0}
@media(max-width:360px){#nnv-live-widget .nnv-brand-logo{width:185px!important;height:48px!important}}
