[data-sarvari-chat].sct{--sct-purple:#52005b;position:fixed;left:24px;bottom:24px;z-index:9998;direction:rtl;font-family:inherit;font-size:13px;line-height:1.7;color:#2e2531;text-align:right;isolation:isolate}
.sct,.sct *{box-sizing:border-box}
.sct button,.sct textarea{font:inherit;margin:0;letter-spacing:normal;text-transform:none;box-shadow:none}
.sct button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0;min-width:0;min-height:0;background:none;border:0;color:inherit;line-height:1;transition:background .18s,transform .18s}
.sct button:focus-visible,.sct textarea:focus-visible{outline:2px solid #aa75b0;outline-offset:4px}
.sct [hidden]{display:none!important}
.sct .sct-launcher{width:56px;height:56px;border-radius:50%;background:var(--sct-purple);color:#fff;box-shadow:0 5px 20px #35003e24;border:1px solid #ffffff40}
.sct .sct-launcher:hover{background:#6a1172;transform:translateY(-2px)}
.sct-panel{position:absolute;bottom:72px;left:0;width:352px;max-width:calc(100vw - 40px);height:480px;max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);min-height:240px;display:flex;flex-direction:column;border:1px solid #eee7ef;border-radius:17px;background:#fff;box-shadow:0 12px 55px #2f153426;overflow:hidden}
.sct-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 20px 18px;border-bottom:1px solid #f1edf2;background:#fff}
.sct-header strong{display:block;font-size:14px;font-weight:600;color:#402345;line-height:1.8}
.sct-header span{display:block;color:#8e7e91;font-size:10px;margin-top:2px}
.sct .sct-close{height:32px;width:32px;color:#97899a;border-radius:50%}
.sct .sct-close:hover{background:#f6f1f7;color:var(--sct-purple)}
.sct-log{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 16px;display:flex;flex-direction:column;gap:10px;background:#fdfcfd;scrollbar-width:thin;scrollbar-color:#ddd0df transparent}
.sct-intro{margin:6px 0!important;padding:0 6px;color:#85748a;font-size:12px;line-height:2.2}
.sct-message{flex:none;max-width:87%;padding:10px 13px;border-radius:13px;font-size:12px;line-height:2;overflow-wrap:anywhere;text-align:start;unicode-bidi:plaintext}
.sct-message p{margin:0!important;font:inherit!important;line-height:inherit!important;white-space:pre-wrap;color:inherit}
.sct-message--visitor{align-self:flex-start;background:var(--sct-purple);color:#fff;border-bottom-right-radius:4px}
.sct-message--admin{align-self:flex-end;background:#f0eaf2;color:#49354e;border-bottom-left-radius:4px}
.sct-status{flex:none;padding:0 16px;min-height:7px;font-size:10px;line-height:1.9;color:#8c7c8f;background:#fff}
.sct-status:not(:empty){padding-top:8px;padding-bottom:7px}
.sct-status--error{color:#a54650}
.sct-form{flex:none;margin:0!important;padding:10px 12px 12px;display:flex;align-items:flex-end;gap:8px;background:#fff;border-top:1px solid #f2edf3}
.sct .sct-input{display:block;flex:1;min-width:0;width:100%;height:41px;min-height:41px;max-height:96px;padding:9px 11px;border:1px solid transparent!important;background:#f7f4f8!important;border-radius:11px;resize:none;color:#403246;line-height:1.8;font-size:12px;overflow-y:auto;box-shadow:none!important}
.sct .sct-input::placeholder{color:#a194a5;opacity:1}
.sct .sct-input:focus{border-color:#dfd1e3!important;outline:0}
.sct .sct-send{flex:none;width:40px;height:40px;border-radius:11px;background:var(--sct-purple);color:#fff;transform:none}
.sct .sct-send:hover:not(:disabled){background:#6a1172}
.sct .sct-send:disabled{background:#eae3ed;color:#b5a7bb;cursor:default}
.sct[data-sending] .sct-send{opacity:.65}
@media(max-width:767px){
 [data-sarvari-chat].sct{left:16px;bottom:82px;bottom:calc(82px + env(safe-area-inset-bottom,0px))}
 .sct .sct-launcher{width:51px;height:51px}
 .sct-panel{bottom:65px;width:340px;max-width:calc(100vw - 32px);height:460px;max-height:calc(100vh - 190px);max-height:min(65dvh,calc(100dvh - 190px));min-height:220px;border-radius:16px}
 .sct-header{padding:16px 17px 14px}
 .sct .sct-input{font-size:16px;line-height:1.5;padding-top:8px;padding-bottom:8px}
}
@media(prefers-reduced-motion:reduce){.sct button{transition:none}.sct .sct-launcher:hover{transform:none}}
