/* Sazito Online Support widget */
#szs-root, #szs-root *{box-sizing:border-box;font-family:inherit}
#szs-root{position:fixed;z-index:2147483600;direction:rtl}
#szs-root.szs-pos-bottom-right{right:var(--szs-x,20px);bottom:var(--szs-y,20px)}
#szs-root.szs-pos-bottom-left{left:var(--szs-x,20px);bottom:var(--szs-y,20px)}

.szs-row{display:flex;align-items:center;gap:10px;direction:ltr}
#szs-root.szs-pos-bottom-left .szs-row{flex-direction:row-reverse}
.szs-bubble{direction:rtl;text-align:right}

.szs-fab{width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;background:var(--szs-btn-bg,#2563eb);color:var(--szs-btn-fg,#fff);box-shadow:0 10px 30px rgba(0,0,0,.25);transition:transform .15s ease,box-shadow .15s ease}
.szs-fab:hover{transform:translateY(-2px);box-shadow:0 14px 40px rgba(0,0,0,.3)}
.szs-fab svg{width:28px;height:28px}
.szs-fab.szs-pulse::after{content:'';position:absolute;width:60px;height:60px;border-radius:50%;background:var(--szs-btn-bg,#2563eb);opacity:.5;animation:szs-pulse 1.8s ease-out infinite;z-index:-1}
@keyframes szs-pulse{0%{transform:scale(1);opacity:.5}100%{transform:scale(1.8);opacity:0}}

.szs-bubble{background:var(--szs-bub-bg,#111827);color:var(--szs-bub-fg,#fff);padding:10px 14px;border-radius:14px;max-width:260px;font-size:14px;line-height:1.6;box-shadow:0 10px 30px rgba(0,0,0,.2);opacity:0;transform:translateY(8px);pointer-events:none;transition:.25s;position:relative}
.szs-bubble.szs-show{opacity:1;transform:translateY(0);pointer-events:auto}
.szs-bubble .szs-close{position:absolute;top:-8px;left:-8px;background:#fff;color:#111;border:0;width:22px;height:22px;border-radius:50%;cursor:pointer;font-size:14px;line-height:1;box-shadow:0 4px 10px rgba(0,0,0,.2)}

/* Popup */
.szs-pop{position:fixed;z-index:2147483601;background:#fff;border-radius:18px;width:380px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 100px);box-shadow:0 20px 60px rgba(0,0,0,.3);display:flex;flex-direction:column;overflow:hidden;opacity:0;transform:translateY(20px) scale(.96);transition:.25s;pointer-events:none}
.szs-pop.szs-open{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
#szs-root.szs-pos-bottom-right .szs-pop{right:var(--szs-x,20px);bottom:calc(var(--szs-y,20px) + 80px)}
#szs-root.szs-pos-bottom-left .szs-pop{left:var(--szs-x,20px);bottom:calc(var(--szs-y,20px) + 80px)}

.szs-head{background:var(--szs-head-bg,#2563eb);color:var(--szs-head-fg,#fff);padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.szs-head h3{margin:0;font-size:16px;font-weight:700}
.szs-head .szs-sub{font-size:12px;opacity:.85;margin-top:3px}
.szs-head .szs-x{background:transparent;border:0;color:inherit;font-size:22px;cursor:pointer;line-height:1;padding:4px 8px;border-radius:8px}
.szs-head .szs-x:hover{background:rgba(255,255,255,.15)}
.szs-head .szs-back{background:transparent;border:0;color:inherit;cursor:pointer;font-size:14px;padding:4px 8px;border-radius:8px;display:flex;align-items:center;gap:4px}
.szs-head .szs-back:hover{background:rgba(255,255,255,.15)}

.szs-body{flex:1;overflow-y:auto;padding:16px;background:#f9fafb;color:#111827}
.szs-foot{padding:10px 14px;background:#fff;border-top:1px solid #eee;font-size:11px;text-align:center;color:#888}

.szs-welcome{background:#fff;padding:16px;border-radius:14px;margin-bottom:12px;white-space:pre-wrap;line-height:1.7;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.szs-input,.szs-textarea{width:100%;padding:11px 13px;border:1px solid #d1d5db;border-radius:10px;font-size:14px;background:#fff;color:#111;font-family:inherit;outline:none;transition:border-color .15s}
.szs-input:focus,.szs-textarea:focus{border-color:var(--szs-head-bg,#2563eb)}
.szs-textarea{resize:vertical;min-height:90px}
.szs-btn{display:inline-block;background:var(--szs-head-bg,#2563eb);color:#fff;border:0;padding:11px 18px;border-radius:10px;cursor:pointer;font-size:14px;font-weight:600;transition:filter .15s}
.szs-btn:hover{filter:brightness(1.08)}
.szs-btn-block{width:100%}

.szs-menu{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.szs-menu-item{background:#fff;border:1px solid #e5e7eb;padding:14px;border-radius:12px;cursor:pointer;display:flex;align-items:center;gap:12px;text-align:right;font-size:14px;font-weight:600;color:#111;transition:.15s}
.szs-menu-item:hover{border-color:var(--szs-head-bg,#2563eb);transform:translateX(-2px)}
.szs-menu-item .szs-mi-icon{width:38px;height:38px;border-radius:10px;background:var(--szs-head-bg,#2563eb);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.szs-menu-item .szs-mi-icon svg{width:20px;height:20px}

/* FAQ */
.szs-faq-item{background:#fff;border:1px solid #e5e7eb;border-radius:10px;margin-bottom:8px;overflow:hidden}
.szs-faq-q{padding:12px 14px;cursor:pointer;font-weight:600;display:flex;justify-content:space-between;align-items:center;color:#111}
.szs-faq-q:hover{background:#f3f4f6}
.szs-faq-a{padding:0 14px;max-height:0;overflow:hidden;transition:.25s;line-height:1.8;color:#374151;font-size:13px}
.szs-faq-item.szs-open .szs-faq-a{padding:0 14px 14px;max-height:1200px}
.szs-faq-q .szs-chev{transition:.2s}
.szs-faq-item.szs-open .szs-chev{transform:rotate(180deg)}

/* Inventory */
.szs-search{margin-bottom:10px}
.szs-prod{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:12px;margin-bottom:8px}
.szs-prod-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.szs-prod-name{font-weight:600;color:#111;font-size:14px}
.szs-tag{font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px}
.szs-tag.szs-in{background:#dcfce7;color:#166534}
.szs-tag.szs-out{background:#fee2e2;color:#991b1b}
.szs-eta{font-size:12px;color:#555;margin-top:6px;padding:6px 10px;background:#fef3c7;border-radius:8px}
.szs-prod-actions{margin-top:10px;display:flex;flex-direction:column;gap:6px}
.szs-link{display:inline-block;padding:8px 12px;background:var(--szs-head-bg,#2563eb);color:#fff;border-radius:8px;text-decoration:none;font-size:13px;text-align:center}
.szs-notify-form{margin-top:10px;display:none;flex-direction:column;gap:6px;padding-top:10px;border-top:1px dashed #e5e7eb}
.szs-notify-form.szs-show{display:flex}

.szs-msg{padding:10px;border-radius:8px;font-size:13px;margin-top:8px}
.szs-msg.szs-ok{background:#dcfce7;color:#166534}
.szs-msg.szs-err{background:#fee2e2;color:#991b1b}

/* Live chat */
.szs-chat-body{display:flex;flex-direction:column;padding:0 !important;background:#f9fafb}
.szs-chat-status{padding:10px 14px;font-size:13px;font-weight:600;display:flex;align-items:center;gap:8px;border-bottom:1px solid #e5e7eb;background:#fff}
.szs-chat-status.is-online{color:#16a34a}
.szs-chat-status.is-offline{color:#6b7280}
.szs-chat-status .szs-dot{width:9px;height:9px;border-radius:50%;display:inline-block}
.szs-chat-status .szs-dot.szs-on{background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.18)}
.szs-chat-status .szs-dot.szs-off{background:#9ca3af}
.szs-chat-list{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px}
.szs-cmsg{max-width:80%;padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.6;word-break:break-word}
.szs-cmsg-user{align-self:flex-end;background:var(--szs-head-bg,#2563eb);color:#fff;border-bottom-left-radius:4px}
.szs-cmsg-admin{align-self:flex-start;background:#fff;color:#111;border:1px solid #e5e7eb;border-bottom-right-radius:4px}
.szs-cmsg-ai{align-self:flex-start;background:linear-gradient(135deg,#ede9fe,#dbeafe);color:#111;border:1px solid #c7d2fe;border-bottom-right-radius:4px}
.szs-cmsg-system{align-self:center;background:#fef3c7;color:#92400e;font-size:12px;text-align:center}
.szs-cmsg-who{font-size:11px;font-weight:700;color:#6b7280;margin-bottom:3px}
.szs-typing .szs-tdot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#6366f1;margin:0 1px;animation:szs-blink 1.2s infinite}
.szs-typing .szs-tdot:nth-child(2){animation-delay:.2s}
.szs-typing .szs-tdot:nth-child(3){animation-delay:.4s}
@keyframes szs-blink{0%,80%,100%{opacity:.25}40%{opacity:1}}
.szs-human-bar{display:flex;justify-content:center;padding:8px 10px;background:#fff;border-top:1px solid #f1f5f9}
.szs-human-btn{background:#fff;color:var(--szs-head-bg,#2563eb);border:1px solid var(--szs-head-bg,#2563eb);padding:8px 14px;border-radius:999px;font-size:13px;font-weight:600;cursor:pointer;transition:.15s}
.szs-human-btn:hover:not(:disabled){background:var(--szs-head-bg,#2563eb);color:#fff}
.szs-human-btn.is-active{background:#dcfce7;color:#166534;border-color:#86efac;cursor:default}
.szs-chat-input-wrap{display:flex;gap:6px;padding:10px;background:#fff;border-top:1px solid #e5e7eb}
.szs-chat-input{flex:1}
.szs-chat-send{padding:10px 14px;border-radius:10px}

@media (max-width:480px){
    .szs-pop{width:calc(100vw - 16px);height:calc(100vh - 90px);bottom:80px !important;right:8px !important;left:8px !important}
    .szs-fab{width:56px;height:56px}
    .szs-fab svg{width:26px;height:26px}
}
