:root{--hy-primary:#2563eb;--hy-primary-hover:#1d4ed8;--hy-bg-light:#f8fafc;--hy-border:#e2e8f0;--hy-text-main:#0f172a;--hy-text-muted:#64748b;--hy-radius:20px;--hy-shadow:0 12px 35px -4px rgba(15, 23, 42, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.08)}#hy-chat-container{position:fixed;bottom:24px;z-index:999999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Vazirmatn","IRANSans",Tahoma,sans-serif;direction:rtl;text-align:right}#hy-chat-container.hy-pos-right{right:24px}#hy-chat-container.hy-pos-left{left:24px}#hy-trigger-btn{width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,var(--hy-primary) 0%,#1e40af 100%);color:#fff;border:none;cursor:pointer;box-shadow:0 8px 24px rgb(37 99 235 / .4);display:flex;align-items:center;justify-content:center;position:relative;transition:transform 0.25s cubic-bezier(.34,1.56,.64,1),box-shadow 0.2s;outline:none}#hy-trigger-btn:hover{transform:scale(1.08);box-shadow:0 12px 28px rgb(37 99 235 / .5)}#hy-trigger-btn:active{transform:scale(.95)}.hy-trigger-icon{display:flex;align-items:center;justify-content:center}.hy-online-pulse{position:absolute;top:2px;right:2px;width:14px;height:14px;background:#10b981;border:2.5px solid #fff;border-radius:50%}#hy-chat-window{position:absolute;bottom:75px;width:380px;height:580px;max-height:calc(100vh - 120px);max-width:calc(100vw - 32px);background:#fff;border-radius:var(--hy-radius);box-shadow:var(--hy-shadow);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgb(226 232 240 / .8);animation:hyFadeSlideUp 0.3s cubic-bezier(.16,1,.3,1) forwards}#hy-chat-container.hy-pos-right #hy-chat-window{right:0}#hy-chat-container.hy-pos-left #hy-chat-window{left:0}@keyframes hyFadeSlideUp{from{opacity:0;transform:translateY(20px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}.hy-chat-header{background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%);color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgb(255 255 255 / .08)}.hy-header-info{display:flex;align-items:center;gap:12px}.hy-header-avatar{width:42px;height:42px;border-radius:50%;background:rgb(255 255 255 / .12);display:flex;align-items:center;justify-content:center;position:relative;border:2px solid rgb(255 255 255 / .2)}.hy-header-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.hy-default-avatar{font-size:22px}.hy-status-dot{position:absolute;bottom:-1px;left:-1px;width:11px;height:11px;background:#10b981;border:2px solid #0f172a;border-radius:50%}.hy-header-titles{display:flex;flex-direction:column}.hy-bot-name{margin:0;font-size:14.5px;font-weight:800;color:#fff;line-height:1.3}.hy-bot-sub{font-size:11.5px;color:#94a3b8}.hy-header-actions{display:flex;align-items:center;gap:4px}.hy-icon-btn{background:#fff0;border:none;color:#94a3b8;padding:6px;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background 0.15s,color 0.15s}.hy-icon-btn:hover{background:rgb(255 255 255 / .12);color:#fff}#hy-chat-messages{flex:1;padding:16px;overflow-y:auto;background:#f8fafc;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth}#hy-chat-messages::-webkit-scrollbar{width:5px}#hy-chat-messages::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.hy-msg{display:flex;flex-direction:column;max-width:86%;animation:hyMsgIn 0.25s ease-out forwards}@keyframes hyMsgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.hy-msg-user{align-self:flex-start;text-align:right}.hy-msg-bot{align-self:flex-end;text-align:right}.hy-bubble{padding:11px 15px;border-radius:16px;font-size:13.5px;line-height:1.6;word-break:break-word}.hy-msg-user .hy-bubble{background:var(--hy-primary);color:#fff;border-bottom-left-radius:4px}.hy-msg-bot .hy-bubble{background:#fff;color:#1e293b;border:1px solid #e2e8f0;box-shadow:0 2px 6px rgb(0 0 0 / .03);border-bottom-right-radius:4px}.hy-bubble strong,.hy-bubble b{font-weight:800}.hy-bubble p{margin:0 0 6px}.hy-bubble p:last-child{margin-bottom:0}.hy-typing-indicator{display:inline-flex;align-items:center;gap:4px;padding:8px 12px}.hy-typing-dot{width:7px;height:7px;background:#94a3b8;border-radius:50%;animation:hyTyping 1.4s infinite ease-in-out both}.hy-typing-dot:nth-child(1){animation-delay:-0.32s}.hy-typing-dot:nth-child(2){animation-delay:-0.16s}@keyframes hyTyping{0%,80%,100%{transform:scale(0)}40%{transform:scale(1)}}.hy-cards-grid{display:flex;flex-direction:column;gap:8px;margin-top:8px;width:100%}.hy-product-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px;display:flex;gap:12px;align-items:center;box-shadow:0 2px 8px rgb(0 0 0 / .04);transition:transform 0.15s,border-color 0.15s}.hy-product-card:hover{transform:translateY(-2px);border-color:#cbd5e1}.hy-card-thumb{width:64px;height:64px;border-radius:8px;object-fit:cover;flex-shrink:0;background:#f1f5f9}.hy-card-info{flex:1;min-width:0}.hy-card-title{font-size:13px;font-weight:700;color:#0f172a;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;text-decoration:none}.hy-card-title:hover{color:var(--hy-primary)}.hy-card-price-row{display:flex;align-items:center;gap:6px;margin-bottom:6px}.hy-card-price{font-size:12.5px;font-weight:800;color:#059669}.hy-card-regular{font-size:11px;color:#94a3b8;text-decoration:line-through}.hy-card-actions{display:flex;gap:6px}.hy-card-btn{padding:4px 10px;font-size:11px;font-weight:700;border-radius:6px;text-decoration:none;text-align:center;cursor:pointer;transition:all 0.15s;border:1px solid #fff0}.hy-card-btn-buy{background:#059669;color:#fff;border-color:#059669}.hy-card-btn-buy:hover{background:#047857}.hy-card-btn-view{background:#f1f5f9;color:#334155;border-color:#e2e8f0}.hy-card-btn-view:hover{background:#e2e8f0}#hy-quick-prompts{padding:8px 12px;background:#fff;border-top:1px solid #f1f5f9;display:flex;gap:6px;overflow-x:auto;white-space:nowrap;scrollbar-width:none}#hy-quick-prompts::-webkit-scrollbar{display:none}.hy-prompt-chip{background:#f1f5f9;color:#334155;padding:6px 12px;border-radius:14px;font-size:12px;font-weight:600;border:1px solid #e2e8f0;cursor:pointer;transition:background 0.15s,border-color 0.15s;flex-shrink:0}.hy-prompt-chip:hover{background:#e0e7ff;color:#1e40af;border-color:#c7d2fe}.hy-chat-footer{background:#fff;border-top:1px solid #e2e8f0;padding:10px 14px 8px}#hy-chat-form{display:flex;align-items:center;gap:8px;background:#f8fafc;border:1px solid #cbd5e1;border-radius:12px;padding:4px 6px 4px 10px;transition:border-color 0.15s,box-shadow 0.15s}#hy-chat-form:focus-within{border-color:var(--hy-primary);box-shadow:0 0 0 3px rgb(37 99 235 / .1);background:#fff}#hy-chat-input{flex:1;border:none;background:#fff0;padding:6px 0;font-size:13.5px;color:#0f172a;resize:none;outline:none;line-height:1.4;max-height:80px;font-family:inherit}#hy-btn-send{width:34px;height:34px;border-radius:8px;background:var(--hy-primary);color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background 0.15s,transform 0.1s}#hy-btn-send:hover{background:var(--hy-primary-hover);transform:scale(1.05)}#hy-btn-send:disabled{background:#94a3b8;cursor:not-allowed;transform:none}.hy-footer-brand{text-align:center;font-size:10px;color:#94a3b8;margin-top:4px}@media (max-width:480px){#hy-chat-container.hy-pos-right,#hy-chat-container.hy-pos-left{bottom:16px;right:16px;left:auto}#hy-chat-window{width:calc(100vw - 32px);height:calc(100vh - 100px);bottom:70px;right:0!important;left:0!important}}