#chatyar-root{direction:rtl;font-family:Tahoma,Arial,sans-serif}
.cy-widget{--cy-color:#163B58;position:fixed;bottom:22px;right:22px;z-index:999999;font-size:14px}
.cy-launch{background:var(--cy-color);color:#fff;border:0;border-radius:28px;padding:13px 22px;cursor:pointer;box-shadow:0 5px 22px #0002;font-weight:700}
.cy-panel{position:absolute;bottom:62px;right:0;width:330px;max-width:calc(100vw - 32px);height:430px;max-height:70vh;background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 12px 40px #0002;overflow:hidden;display:flex;flex-direction:column}
.cy-panel[hidden]{display:none}
.cy-head{background:var(--cy-color);color:#fff;padding:14px;display:flex;justify-content:space-between;align-items:center}
.cy-close{background:transparent;border:0;color:#fff;font-size:24px;cursor:pointer}
.cy-messages{padding:14px;flex:1;overflow:auto;background:#f8fafc}
.cy-welcome,.cy-message{padding:10px 12px;border-radius:12px;max-width:88%;line-height:1.8;overflow-wrap:anywhere}
.cy-welcome,.cy-agent{background:#e8eef3;color:#182b3a;margin:0 0 10px auto}
.cy-visitor{background:#d9f4e7;color:#173c2b;margin:0 auto 10px 0}
.cy-form{display:flex;flex-direction:column;gap:7px;padding:10px;border-top:1px solid #eee}
.cy-name, .cy-phone,.cy-input{min-width:0;width:100%;box-sizing:border-box;border:1px solid #d5dbe1;border-radius:9px;padding:10px;font:inherit}
.cy-send-row{display:flex;gap:7px}
.cy-send-row .cy-input{flex:1}
.cy-form button{background:var(--cy-color);color:#fff;border:0;border-radius:9px;padding:0 13px;cursor:pointer}
.cy-form button:disabled{opacity:.5}
@media(max-width:480px){.cy-widget{right:12px;bottom:12px}.cy-panel{position:fixed;right:10px;left:10px;bottom:68px;width:auto;height:min(70vh,520px);max-width:none}}

.cy-contact-fields{display:flex;flex-direction:column;gap:7px}
.cy-contact-fields[hidden]{display:none}

.cy-attach-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#64748b}.cy-attach-label{cursor:pointer;color:var(--cy-color);padding:4px 0}.cy-typing{color:#16803c}

.cy-widget .cy-message img{max-width:100%;height:auto;object-fit:contain}
.cy-widget .cy-attach-label{cursor:pointer}
