/* SCOTPLUS V61 - isolated responsive visitor support widget */
#spSupportLauncher,#spSupportDialog{display:none!important}
.sp-livechat{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(22px + env(safe-area-inset-bottom));z-index:2147481000;font-family:Inter,system-ui,-apple-system,sans-serif;color:#0a2845}
.sp-livechat *{box-sizing:border-box}
.sp-livechat button,.sp-livechat input{font:inherit}
.sp-livechat-launch{display:flex;align-items:center;gap:8px;min-height:56px;border:1px solid #72c9e6;background:linear-gradient(115deg,#034c81,#052441);color:#fff;padding:5px 17px 5px 6px;border-radius:40px;box-shadow:0 10px 30px #00243d5c;cursor:pointer;font-weight:700;transition:transform .2s,box-shadow .2s}
.sp-livechat-launch:hover{transform:translateY(-3px);box-shadow:0 13px 35px #003a5c8a}
.sp-livechat-bot{display:grid;place-items:center;position:relative;flex:none;width:45px;height:45px;border:3px solid #83e7ff;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff,#a4d7e4 65%,#4c91a8);box-shadow:0 0 0 3px #ffffff35;font-size:27px;line-height:1}
.sp-livechat-dot{position:absolute;bottom:0;right:1px;height:11px;width:11px;border-radius:50%;background:#91a0af;border:2px solid #053152}
.sp-livechat-dot.is-online{background:#13d84d}
.sp-livechat-panel{width:min(380px,calc(100vw - 24px));height:min(590px,calc(100dvh - 110px));min-height:340px;background:#fff;border:1px solid #cde2f2;box-shadow:0 20px 55px #00162c55;border-radius:23px;overflow:hidden;display:flex;flex-direction:column;margin-bottom:11px}
.sp-livechat-panel[hidden]{display:none!important}
.sp-livechat-header{display:flex;align-items:center;gap:11px;padding:14px 14px;background:linear-gradient(120deg,#064976,#082546 70%,#018876);color:#fff}
.sp-livechat-header strong{display:block;font-size:15px}.sp-livechat-header small{font-size:12px;color:#c4e8f3}
.sp-livechat-header .sp-livechat-bot{width:40px;height:40px;font-size:24px}
.sp-livechat-close{margin-left:auto;border:0;background:#ffffff19;color:#fff;border-radius:10px;width:32px;height:32px;cursor:pointer;font-size:24px}
.sp-livechat-messages{flex:1;overflow:auto;padding:16px 13px;background:#f7fafd;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.sp-livechat-bubble{max-width:88%;padding:11px 13px;border-radius:15px 15px 15px 4px;background:#e9f1f8;color:#173350;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.sp-livechat-bubble.mine{background:#d7f4e6;align-self:flex-end;border-radius:15px 15px 4px 15px}
.sp-livechat-bubble time{display:block;margin-top:4px;text-align:right;font-size:10px;color:#557384}
.sp-livechat-quick{display:flex;gap:7px;flex-wrap:wrap;padding:10px 12px;background:#fff;border-top:1px solid #e9eef4}
.sp-livechat-quick button{border:1px solid #d8e6f1;background:#fff;color:#114776;padding:7px 10px;border-radius:22px;font-size:11px;cursor:pointer}
.sp-livechat-form{display:flex;gap:8px;padding:11px;background:#fff;border-top:1px solid #e2edf4}
.sp-livechat-form input{width:100%;flex:1;min-width:0;outline:0;border:1px solid #d2e2ed;border-radius:22px;padding:11px 13px;font-size:13px;color:#1a354a}
.sp-livechat-form input:focus-visible{outline:2px solid #1497ca;outline-offset:1px}
.sp-livechat-form button{border:0;border-radius:50%;width:42px;height:42px;flex:none;background:#0571a8;color:#fff;cursor:pointer}
.sp-livechat-note{padding:0 13px 11px;background:#fff;color:#587184;font-size:11px}
.sp-livechat-alert{padding:7px 12px;color:#aa1f27;font-size:12px;background:#fff}
@media(max-width:600px){.sp-livechat{right:10px;bottom:calc(12px + env(safe-area-inset-bottom))}.sp-livechat-panel{width:calc(100vw - 20px);height:min(75dvh,610px);border-radius:20px}.sp-livechat-launch{min-height:53px;padding-right:13px}.sp-livechat-bot{width:41px;height:41px}}
@media(prefers-reduced-motion:reduce){.sp-livechat-launch{transition:none}}

.sp-livechat-bot img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}

/* V61.3 explicit location permission UX */
.sp-livechat-location{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:8px 12px 4px;background:#fff;border-top:1px solid #edf1f5}
.sp-livechat-location button{font-size:12px;color:#075c76;background:#eef9fd;border:1px solid #b7dce7;border-radius:20px;padding:7px 10px;cursor:pointer}
.sp-livechat-location button:disabled{opacity:.55;cursor:wait}
.sp-livechat-location small{color:#6c7c8e;font-size:10px;flex:1;min-width:130px}
@media(max-width:600px){.sp-livechat-panel{max-height:calc(100dvh - 85px)}.sp-livechat-location small{font-size:9px}}

/* SCOTPLUS V61.6 – safe download links and file attachment action */
#spLiveChat .sp-livechat-form {display:flex;align-items:center;gap:7px}
#spLiveChat .sp-livechat-attach-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:39px;height:41px;border:1px solid rgba(12,104,135,.26);border-radius:11px;background:#eff9fc;color:#074f67;font-size:20px;cursor:pointer;line-height:1}
#spLiveChat .sp-livechat-attach-button:hover,#spLiveChat .sp-livechat-attach-button:focus-within{background:#ddf8ef;border-color:#14c493}
#spLiveChat .sp-livechat-file{display:block;max-width:100%;overflow-wrap:anywhere;border-radius:9px;padding:9px 11px;background:rgba(8,98,121,.11);color:#0a5470!important;text-decoration:none;font-weight:700;font-size:12px}
#spLiveChat .sp-livechat-bubble.mine .sp-livechat-file{color:#e9fff7!important;background:rgba(0,35,49,.26)}
#spLiveChat .sp-livechat-filehelp{font-size:10px;line-height:1.4;color:#51717d;padding:1px 15px 5px}
#spLiveChat .sp-livechat-attach-button:has(input:disabled){opacity:.5;pointer-events:none}
@media(max-width:440px){#spLiveChat .sp-livechat-form{gap:5px}#spLiveChat .sp-livechat-attach-button{width:36px;height:38px;font-size:18px}}

/* V61.7 — expressive bot eyes, unobtrusive motion & compact professional chat */
#spLiveChat .sp-bot-animated{isolation:isolate;overflow:visible}
#spLiveChat .sp-bot-animated .sp-bot-eye{position:absolute;top:38%;width:4px;height:4px;border-radius:100%;background:#34fcfa;box-shadow:0 0 4px 1px #08d7d4;z-index:2;transform:translate(var(--sp-eye-x,0px),var(--sp-eye-y,0px));transition:transform 70ms ease-out;pointer-events:none}
#spLiveChat .sp-bot-animated .sp-bot-eye-left{left:35%}
#spLiveChat .sp-bot-animated .sp-bot-eye-right{left:56%}
#spLiveChat .sp-livechat-launch .sp-livechat-bot{animation:sp-chat-bot-bob 4s ease-in-out infinite}
@keyframes sp-chat-bot-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
#spLiveChat .sp-livechat-panel{border-radius:18px;box-shadow:0 22px 54px rgba(1,24,49,.32)}
#spLiveChat .sp-livechat-messages{gap:8px;padding:16px 13px;scrollbar-width:thin}
#spLiveChat .sp-livechat-bubble{padding:10px 12px;line-height:1.45}
#spLiveChat .sp-livechat-quick{padding:8px 12px}
#spLiveChat .sp-livechat-alert:empty{display:none}
#spLiveChat .sp-livechat-filehelp{display:none}
#spLiveChat .sp-livechat-form{padding:10px 12px}
#spLiveChat .sp-livechat-note{padding:0 12px 12px;line-height:1.4}
@media(prefers-reduced-motion:reduce){#spLiveChat .sp-livechat-launch .sp-livechat-bot{animation:none}#spLiveChat .sp-bot-animated .sp-bot-eye{transition:none}}


/* SCOTPLUS V62.3 – public widget UI only; message/API JavaScript unchanged. */
#spLiveChat .sp-bot-animated .sp-bot-eye{display:none!important}
#spLiveChat .sp-livechat-bot{overflow:hidden;border:2px solid rgba(154,239,250,.95);background:#eaf8ff;box-shadow:inset 0 1px 3px #fff,0 0 0 3px rgba(255,255,255,.16);}
#spLiveChat .sp-livechat-bot img{width:100%;height:100%;object-fit:cover;object-position:center;transform:none!important;filter:none;}
#spLiveChat .sp-livechat-launch{position:relative;min-height:61px;padding:6px 21px 6px 7px;gap:12px;border:1px solid #34cdd0;border-radius:999px;background:linear-gradient(112deg,#026f87 0%,#043a63 48%,#062447 100%);box-shadow:0 10px 30px rgba(0,38,62,.25),0 2px 8px rgba(0,148,161,.17);font-size:15px;font-weight:800;letter-spacing:.01em;}
#spLiveChat .sp-livechat-launch .sp-livechat-bot{width:49px;height:49px;animation:sp-chat-bot-bob 4.5s ease-in-out infinite;}
#spLiveChat .sp-livechat-launch:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(0,33,65,.3);}
#spLiveChat .sp-livechat-dot{width:11px;height:11px;bottom:1px;right:0;border:2px solid #063a55;}
#spLiveChat .sp-livechat-panel{width:min(398px,calc(100vw - 24px));height:min(626px,calc(100dvh - 100px));min-height:340px;border:1px solid #c9e1f0;border-radius:22px;box-shadow:0 22px 60px rgba(6,32,56,.23);background:#fff;}
#spLiveChat .sp-livechat-header{min-height:79px;padding:12px 15px;gap:12px;background:linear-gradient(112deg,#063d67 0%,#082944 63%,#009584 100%);}
#spLiveChat .sp-livechat-header .sp-livechat-bot{height:47px;width:47px;}
#spLiveChat .sp-livechat-header strong{font-size:15px;line-height:1.25;letter-spacing:.005em;}
#spLiveChat .sp-livechat-header small{display:block;margin-top:5px;font-size:11px;color:#d9f7f5;}
#spLiveChat .sp-livechat-close{display:grid;place-items:center;height:35px;width:35px;border-radius:12px;background:rgba(255,255,255,.13);font-size:24px;}
#spLiveChat .sp-livechat-close:hover{background:rgba(255,255,255,.23);}
#spLiveChat .sp-livechat-messages{background:linear-gradient(170deg,#f7fbff,#f3f8fc);padding:14px 13px;gap:9px;}
#spLiveChat .sp-livechat-bubble{max-width:88%;padding:11px 13px;background:#e7f0f7;border:1px solid rgba(100,153,176,.08);border-radius:16px 16px 16px 5px;color:#13324a;line-height:1.52;font-size:13px;box-shadow:0 1px 2px #1a49600b;}
#spLiveChat .sp-livechat-bubble.mine{background:#d8f5e8;border-radius:16px 16px 5px 16px;align-self:flex-end;}
#spLiveChat .sp-livechat-bubble time{font-size:10px;color:#577789;}
#spLiveChat .sp-livechat-quick{gap:7px;padding:10px 12px;border-top:1px solid #dcebf4;background:#fff;}
#spLiveChat .sp-livechat-quick button{border:1px solid #cadfeb;border-radius:22px;padding:7px 10px;font-size:11px;background:#fcfeff;color:#07507c;white-space:nowrap;}
#spLiveChat .sp-livechat-quick button:hover{background:#eaf8ff;border-color:#8dcadf;}
#spLiveChat .sp-livechat-form{margin:0;padding:10px 11px;gap:7px;align-items:center;background:#fff;border-top:1px solid #e6f0f5;}
#spLiveChat .sp-livechat-form input[name="message"]{height:46px;border-radius:26px;border:1px solid #b8d4e6;background:#fdfefe;box-shadow:inset 0 1px 2px rgba(16,76,106,.04);padding:0 15px;font-size:13px;transition:border-color .15s,box-shadow .15s;}
#spLiveChat .sp-livechat-form input[name="message"]:focus{outline:none;border-color:#159fd3;box-shadow:0 0 0 3px rgba(38,169,222,.13);}
#spLiveChat .sp-livechat-form input[name="message"]::placeholder{color:#718699;opacity:1;}
#spLiveChat .sp-livechat-form button[type="submit"]{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:50%;background:linear-gradient(145deg,#00acb3,#07558b);border:1px solid rgba(255,255,255,.35);box-shadow:0 3px 9px rgba(8,110,136,.2);transition:transform .15s,filter .15s;}
#spLiveChat .sp-livechat-form button[type="submit"]:hover{filter:brightness(1.09);transform:translateY(-1px);}
#spLiveChat .sp-livechat-form button[type="submit"]:disabled{opacity:.55;cursor:wait;transform:none;}
#spLiveChat .sp-livechat-form .sp-livechat-attach-button{flex:0 0 43px;height:46px;width:43px;display:grid;place-items:center;border-radius:16px;background:#f3faff;border:1px solid #c2ddec;box-shadow:none;}
#spLiveChat .sp-livechat-form .sp-livechat-attach-button span{font-size:20px;transform:rotate(-25deg);line-height:1;}
#spLiveChat .sp-livechat-note{padding:0 14px 12px;line-height:1.45;font-size:10px;color:#647f92;}
#spLiveChat .sp-livechat-alert:empty{display:none;}
#spLiveChat .sp-livechat-file{display:block;overflow-wrap:anywhere;word-break:break-word;}
@media(max-width:600px){
 #spLiveChat.sp-livechat{right:10px;bottom:calc(12px + env(safe-area-inset-bottom));}
 #spLiveChat .sp-livechat-panel{width:min(398px,calc(100vw - 20px));height:min(80dvh,620px);max-height:calc(100dvh - 91px);border-radius:19px;}
 #spLiveChat .sp-livechat-launch{min-height:55px;padding:5px 16px 5px 6px;font-size:14px;}
 #spLiveChat .sp-livechat-launch .sp-livechat-bot{width:43px;height:43px;}
 #spLiveChat .sp-livechat-header{min-height:72px;padding:10px 12px;}
 #spLiveChat .sp-livechat-quick{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;}
 #spLiveChat .sp-livechat-quick button{flex:0 0 auto;}
 #spLiveChat .sp-livechat-form{padding:9px 10px;gap:6px;}
 #spLiveChat .sp-livechat-form .sp-livechat-attach-button{height:43px;flex-basis:38px;width:38px;}
 #spLiveChat .sp-livechat-form input[name="message"]{height:43px;}
 #spLiveChat .sp-livechat-form button[type="submit"]{height:43px;width:43px;flex-basis:43px;}
}
@media(prefers-reduced-motion:reduce){#spLiveChat .sp-livechat-launch .sp-livechat-bot{animation:none!important}}

/* V62.6: high-fidelity customer chat polish. Intentionally scoped to widget. */
#spLiveChat .sp-livechat-panel{width:min(410px,calc(100vw - 20px));height:min(650px,calc(100dvh - 105px));background:#f8fbfe;border:1px solid #d1e9f3;border-radius:24px;box-shadow:0 24px 55px rgba(2,34,56,.30),0 3px 12px rgba(14,67,90,.12);}
#spLiveChat .sp-livechat-header{padding:14px 17px;min-height:78px;background:linear-gradient(113deg,#06395f 0%,#062d4b 58%,#008a7c 100%)}
#spLiveChat .sp-livechat-header .sp-livechat-bot{width:53px;height:53px}
#spLiveChat .sp-livechat-header strong{font-size:15px;font-weight:800;letter-spacing:.01em}
#spLiveChat .sp-livechat-header small{font-size:11px;line-height:1.5}
#spLiveChat .sp-livechat-launch{gap:12px;min-height:64px;background:linear-gradient(115deg,#04718b,#062845 65%,#03213b);border:2px solid #25cbd0;box-shadow:0 11px 27px rgba(0,50,84,.32);font-size:16px}
#spLiveChat .sp-livechat-launch .sp-livechat-bot{height:52px;width:52px}
#spLiveChat .sp-livechat-messages{background:linear-gradient(165deg,#f7fbff 0%,#f0f7fc 100%);gap:10px;padding:17px 14px 18px}
#spLiveChat .sp-livechat-bubble{max-width:85%;padding:12px 14px;font-size:13px;line-height:1.53;border:1px solid #dbeaf1;border-radius:16px 16px 16px 5px;background:#e7f1fa;color:#0d3049;box-shadow:0 1px 2px rgba(0,53,92,.035)}
#spLiveChat .sp-livechat-bubble.mine{background:#d8f7e9;border-color:#c0ebd7;border-radius:16px 16px 5px 16px}
#spLiveChat .sp-livechat-quick{padding:11px 13px 9px;gap:7px;background:#fff;border-top:1px solid #dfedf4}
#spLiveChat .sp-livechat-quick button{padding:8px 11px;font-size:11px;font-weight:600;border:1px solid #c9deec;background:#fff;border-radius:999px}
#spLiveChat .sp-livechat-form{gap:8px;background:#fff;border-top:0;padding:10px 13px 8px}
#spLiveChat .sp-livechat-form input[name="message"]{height:48px;border-radius:99px;background:#fff;border:1px solid #bcd5e7;box-shadow:0 1px 4px rgba(9,78,119,.05);padding:0 16px;font-size:13px}
#spLiveChat .sp-livechat-form input[name="message"]:focus{border-color:#17a1c7;box-shadow:0 0 0 3px rgba(37,155,196,.13)}
#spLiveChat .sp-livechat-form .sp-livechat-attach-button{height:48px;width:45px;flex:0 0 45px;border-radius:17px;border-color:#c5dce8;background:#f1f9fe;color:#0b5f83;box-shadow:none}
#spLiveChat .sp-livechat-form .sp-livechat-attach-button span{display:flex;align-items:center;justify-content:center;transform:none}
#spLiveChat .sp-livechat-form button[type="submit"]{height:48px;width:48px;flex-basis:48px;border-radius:50%;background:linear-gradient(130deg,#00bfa7,#006b9d);box-shadow:0 3px 10px #008ea444}
#spLiveChat .sp-livechat-note{background:#fff;color:#6b8191;padding:4px 14px 13px;font-size:10px;line-height:1.6}
#spLiveChat .sp-livechat-file{line-height:1.65;background:rgba(4,87,127,.11)!important;color:#06516e!important;font-size:12px;font-weight:700;border-radius:12px;padding:10px 12px;text-decoration:none}
#spLiveChat .sp-livechat-bubble.mine .sp-livechat-file{background:rgba(7,106,106,.16)!important;color:#064d54!important}
#spLiveChat .sp-livechat-bubble time{font-size:10px;color:#6a889b;margin-top:7px}
#spLiveChat .sp-bot-animated .sp-bot-eye{display:none!important}
@media(max-width:600px){#spLiveChat .sp-livechat-panel{width:calc(100vw - 20px);height:min(78dvh,640px);max-height:calc(100dvh - 89px)}#spLiveChat .sp-livechat-launch{min-height:56px}#spLiveChat .sp-livechat-launch .sp-livechat-bot{height:44px;width:44px}#spLiveChat .sp-livechat-form{gap:6px;padding:9px 10px 7px}#spLiveChat .sp-livechat-form .sp-livechat-attach-button{width:39px;flex-basis:39px;height:43px}#spLiveChat .sp-livechat-form input[name="message"],#spLiveChat .sp-livechat-form button[type="submit"]{height:43px}#spLiveChat .sp-livechat-form button[type="submit"]{width:43px;flex-basis:43px}}
@media(prefers-reduced-motion:reduce){#spLiveChat .sp-livechat-bot{animation:none!important}}
