/* CPD Support – top strip + chat modal on public pages. Site palette (navy gradient, #7fb1d1 accent) with a glassy, modern finish. */
.sup-strip{position:relative;z-index:101;background:radial-gradient(600px 80px at 85% 0%,rgba(127,177,209,.35),transparent 70%),linear-gradient(120deg,#0b1220 0%,#13233b 58%,#1b3550 100%);color:#c7d3e0;font-size:13px;border-bottom:1px solid rgba(159,208,239,.15)}
.sup-strip-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:42px}
.sup-strip-text{display:inline-flex;align-items:center;gap:8px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sup-strip-text i{flex:none;width:8px;height:8px;border-radius:50%;background:#7ee2b8;box-shadow:0 0 0 0 rgba(126,226,184,.7);animation:sw-pulse 2.2s infinite}
.sup-strip-text b{color:#fff;letter-spacing:.01em}
.sup-strip-btn{flex:none;display:inline-flex;align-items:center;gap:8px;padding:6px 15px 6px 6px;border:1px solid rgba(159,208,239,.35);border-radius:999px!important;background:rgba(255,255,255,.08);color:#fff;font:inherit;font-size:13px;font-weight:700;cursor:pointer;backdrop-filter:blur(6px);transition:background .15s,border-color .15s,transform .15s}
.sup-strip-btn:hover{background:rgba(255,255,255,.16);border-color:rgba(159,208,239,.6);transform:translateY(-1px)}
.sup-strip-btn svg{width:24px;height:24px;padding:4px;border-radius:50%;background:linear-gradient(135deg,#9fd0ef,#7fb1d1);fill:none;stroke:#0b1220;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@keyframes sw-pulse{70%{box-shadow:0 0 0 9px rgba(126,226,184,0)}100%{box-shadow:0 0 0 0 rgba(126,226,184,0)}}

html.sw-lock,html.sw-lock body{overflow:hidden}
.sw-overlay{position:fixed;inset:0;z-index:1000;background:rgba(11,18,32,.5);backdrop-filter:blur(4px);opacity:0;transition:opacity .2s}
.sw-overlay.is-open{opacity:1}
.sw{position:fixed;z-index:1001;right:24px;top:58px;width:min(430px,calc(100vw - 32px));max-height:calc(100vh - 82px);display:flex;flex-direction:column;border-radius:24px;overflow:hidden;background:#f5f6f8;border:1px solid rgba(159,208,239,.25);box-shadow:0 40px 90px rgba(11,18,32,.45);font-family:inherit;color:#334155;opacity:0;transform:translateY(-12px) scale(.98);transition:opacity .2s,transform .2s}
.sw.is-open{opacity:1;transform:none}
.sw[hidden],.sw-overlay[hidden]{display:none}
.sw *{box-sizing:border-box}
.sw-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 18px 20px;color:#e6edf5;background:radial-gradient(420px 160px at 90% -20%,rgba(127,177,209,.45),transparent 65%),linear-gradient(120deg,#0b1220 0%,#13233b 58%,#1b3550 100%)}
.sw-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(159,208,239,.5),transparent)}
.sw-brand{display:flex;align-items:center;gap:12px;min-width:0}
.sw-logo{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#9fd0ef,#7fb1d1);box-shadow:0 8px 20px rgba(127,177,209,.35)}
.sw-logo svg{width:22px;height:22px;fill:none;stroke:#0b1220;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.sw-head strong{display:block;color:#fff;font-size:17px;letter-spacing:-.01em}
.sw-head small{display:flex;align-items:center;gap:6px;font-size:12px;color:#9fd0ef}
.sw-head small i{flex:none;width:7px;height:7px;border-radius:50%;background:#7ee2b8}
.sw-close{flex:none;width:36px;height:36px;border:1px solid rgba(255,255,255,.15);border-radius:12px;background:rgba(255,255,255,.06);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.sw-close:hover{background:rgba(255,255,255,.16)}
.sw-body{display:grid;gap:11px;padding:18px;overflow:auto}
.sw-intro{margin:0;padding:13px 15px;border-radius:18px 18px 18px 6px;background:#fff;border:1px solid #e6e9ee;font-size:14px;line-height:1.55;color:#0f172a;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.sw label{display:grid;gap:5px;font-size:11.5px;font-weight:700;color:#334155}
.sw-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sw input:not([type=file]),.sw select,.sw textarea{width:100%;padding:11px 13px;border:1.5px solid #e6e9ee;border-radius:12px;background:#fff;color:#0f172a;font:inherit;font-size:15px;font-weight:400;outline:none;transition:border-color .15s,box-shadow .15s}
.sw input:focus,.sw select:focus,.sw textarea:focus{border-color:#7fb1d1;box-shadow:0 0 0 3px rgba(127,177,209,.22)}
.sw input[readonly]{background:#f5f6f8;color:#64748b}
.sw textarea{resize:vertical;min-height:92px;line-height:1.5}
.sw-attach{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:#64748b}
.sw-attach-btn{display:inline-flex!important;align-items:center;padding:7px 13px;border:1.5px dashed #b9cfe2;border-radius:999px;background:#fff;color:#2b5875!important;font-size:12.5px!important;cursor:pointer;transition:border-color .15s,background .15s}
.sw-attach-btn:hover{border-color:#7fb1d1;background:#eef4f9}
.sw-attach-btn input,.sw-clip input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.sw-attach-btn:focus-within,.sw-clip:focus-within{outline:2px solid #7fb1d1;outline-offset:2px}
.sw-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.sw-error{padding:9px 12px;border-radius:10px;background:#fef2f2;border:1px solid #fecaca;color:#991b1b;font-size:13px}
.sw-send{padding:14px;border:0;border-radius:14px;background:linear-gradient(120deg,#0b1220,#1b3550 70%,#2b5875);color:#fff;font:inherit;font-weight:800;font-size:15px;cursor:pointer;box-shadow:0 12px 26px rgba(11,18,32,.28),inset 0 1px 0 rgba(255,255,255,.12);transition:transform .15s}
.sw-send:hover{transform:translateY(-1px)}
.sw-send:disabled,.sw-send-icon:disabled{opacity:.6;cursor:wait}
.sw-note{margin:0;font-size:11.5px;color:#64748b;text-align:center}

.sw-chat{display:flex;flex-direction:column;min-height:0;flex:1}
.sw-chat[hidden],.sw-start[hidden]{display:none}
.sw-ticketbar{display:flex;justify-content:space-between;gap:10px;padding:9px 16px;background:#eef4f9;border-bottom:1px solid #e6e9ee;font-size:12px;font-weight:700;color:#2b5875}
.sw-ticketbar a{color:#2b5875}
.sw-messages{flex:1;min-height:240px;max-height:52vh;overflow:auto;display:grid;align-content:start;gap:12px;padding:18px 16px;background:linear-gradient(180deg,#f5f6f8,#fff)}
.sw-msg{display:grid;gap:3px;max-width:84%}
.sw-msg.is-me{justify-self:end;justify-items:end}
.sw-bubble{padding:11px 14px;border-radius:18px;background:#fff;border:1px solid #e6e9ee;font-size:14px;line-height:1.55;color:#0f172a;overflow-wrap:anywhere;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.sw-msg.is-staff .sw-bubble{border-bottom-left-radius:5px}
.sw-msg.is-me .sw-bubble{background:linear-gradient(130deg,#13233b,#1b3550 60%,#2b5875);border-color:transparent;color:#e6edf5;border-bottom-right-radius:5px;box-shadow:0 8px 20px rgba(11,18,32,.18)}
.sw-bubble b{display:block;font-size:11.5px;color:#2b5875;margin-bottom:2px}
.sw-bubble p{margin:0}
.sw-msg time{font-size:10.5px;color:#94a3b8;padding:0 4px}
.sw-files{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.sw-file{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:10px;background:#eef4f9;color:#0f172a;font-size:12.5px;text-decoration:none;max-width:100%}
.sw-msg.is-me .sw-file{background:rgba(159,208,239,.18);color:#fff}
.sw-file small{opacity:.7}
.sw-file.is-image{padding:0;overflow:hidden}
.sw-file.is-image img{display:block;width:120px;height:90px;object-fit:cover;border-radius:10px}
.sw-composer{display:grid;gap:6px;padding:12px;background:#fff;border-top:1px solid #e6e9ee}
.sw-composer-row{display:flex;align-items:flex-end;gap:8px}
.sw-composer textarea{min-height:44px;max-height:140px;resize:none;padding:11px 13px}
.sw-clip{flex:none;display:grid!important;place-items:center;width:42px;height:44px;border-radius:12px;background:#eef4f9;font-size:18px!important;cursor:pointer}
.sw-send-icon{flex:none;width:46px;height:44px;border:0;border-radius:12px;background:linear-gradient(120deg,#0b1220,#2b5875);color:#9fd0ef;font-size:17px;cursor:pointer;box-shadow:0 8px 18px rgba(11,18,32,.25)}
.sw-chosen{font-size:12px;color:#2b5875;padding:0 4px}
.sw-new{justify-self:center;border:0;background:none;color:#64748b;font:inherit;font-size:12px;text-decoration:underline;cursor:pointer}

@media(max-width:640px){
  .sup-strip-text span{display:none}
  .sup-strip-inner{min-height:40px}
  .sw{inset:auto 0 0 0;top:auto;width:100%;max-height:92vh;max-height:92dvh;border-radius:24px 24px 0 0;transform:translateY(30px)}
  .sw-row{grid-template-columns:1fr}
  .sw-messages{max-height:none}
}
