/* SX WhatsApp button. Site rules: no bold, no shadows, AR + EN. */
#sxw-root{--sxw-c:#048238;--sxw-ink:#14201a;--sxw-muted:#5d6a63;--sxw-line:#dfe7e2;--sxw-soft:#f3f6f4;--sxw-me:#dff3e7;position:fixed;bottom:20px;z-index:100001;font-family:"Barlow",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.6;color:var(--sxw-ink)}
#sxw-root[lang="ar"]{font-family:"Almarai",Tahoma,system-ui,sans-serif}
#sxw-root.is-right{right:20px}
#sxw-root.is-left{left:20px}
#sxw-root *,#sxw-root *::before,#sxw-root *::after{box-sizing:border-box;font-family:inherit;font-weight:400!important;letter-spacing:normal;text-transform:none;box-shadow:none!important;text-shadow:none}
#sxw-root [hidden]{display:none!important}
#sxw-root :where(button,input,textarea){all:unset;box-sizing:border-box;font-family:inherit;font-size:inherit;line-height:inherit;color:inherit}
#sxw-root :where(button){cursor:pointer}
#sxw-root a{text-decoration:none}
#sxw-root button:focus-visible,#sxw-root a:focus-visible,#sxw-root input:focus-visible,#sxw-root textarea:focus-visible{outline:2px solid var(--sxw-c);outline-offset:2px}
#sxw-root .sxw-i{display:block;width:24px;height:24px;flex:0 0 auto;fill:currentColor}
#sxw-root .sxw-i.is-line{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Button */
#sxw-root .sxw-fab{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:60px;height:60px;border-radius:999px;background:var(--sxw-c);color:#fff;border:2px solid #fff;transition:transform .2s ease,filter .2s ease}
#sxw-root .sxw-fab:hover{filter:brightness(1.08)}
#sxw-root .sxw-fab:active{transform:scale(.96)}
#sxw-root .sxw-fab .sxw-i{width:30px;height:30px}
#sxw-root .sxw-fab-img{display:block;width:44px;height:44px;border-radius:999px;object-fit:cover}
#sxw-root .sxw-fab-l{display:none;font-size:15.5px;white-space:nowrap}
@media (min-width:641px){
	#sxw-root .sxw-fab.has-label{width:max-content;padding-inline:16px 22px}
	#sxw-root .sxw-fab.has-label .sxw-fab-l{display:block}
}
#sxw-root.is-left .sxw-fab,#sxw-root.is-left .sxw-teaser,#sxw-root.is-left .sxw-panel{margin-right:auto}
#sxw-root.is-right .sxw-fab,#sxw-root.is-right .sxw-teaser,#sxw-root.is-right .sxw-panel{margin-left:auto}
#sxw-root .sxw-teaser{width:max-content}
#sxw-root .sxw-fab{flex:0 0 auto;min-width:60px;padding:0}

/* Teaser above the button */
#sxw-root .sxw-teaser{position:relative;max-width:300px;margin-bottom:12px;padding:14px 40px 14px 16px;background:#fff;border:1px solid var(--sxw-line);border-radius:16px;font-size:14.5px;line-height:1.65;animation:sxwUp .35s ease}
#sxw-root[dir="rtl"] .sxw-teaser{padding:14px 16px 14px 40px}
#sxw-root .sxw-teaser-k{font-size:12.5px;color:var(--sxw-c);margin-bottom:4px}
#sxw-root .sxw-teaser-t{display:block;color:var(--sxw-ink);text-align:start}
#sxw-root .sxw-teaser-a{display:inline-block;margin-top:6px;color:var(--sxw-c);text-decoration:underline!important}
#sxw-root .sxw-teaser-x{position:absolute;top:10px;inset-inline-end:10px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:999px;color:var(--sxw-muted)}
#sxw-root .sxw-teaser-x:hover{background:var(--sxw-soft)}
#sxw-root .sxw-teaser-x .sxw-i{width:16px;height:16px}

/* Window */
#sxw-root .sxw-panel{display:flex;flex-direction:column;width:380px;height:min(640px,calc(100vh - 120px));margin-bottom:14px;background:#fff;border:1px solid #d3ddd7;border-radius:20px;overflow:hidden;animation:sxwUp .25s ease}
#sxw-root .sxw-head{display:flex;align-items:center;gap:12px;padding:14px 12px 14px 16px;background:var(--sxw-c);color:#fff}
#sxw-root[dir="rtl"] .sxw-head{padding:14px 16px 14px 12px}
#sxw-root .sxw-av{width:40px;height:40px;border-radius:999px;background:#fff;object-fit:contain;flex:0 0 auto;border:1px solid rgba(255,255,255,.6)}
#sxw-root .sxw-av.is-icon{display:flex;align-items:center;justify-content:center;color:var(--sxw-c)}
#sxw-root .sxw-who{flex:1;min-width:0}
#sxw-root .sxw-name{font-size:16px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sxw-root .sxw-status{display:flex;align-items:center;gap:6px;font-size:12.5px;opacity:.92}
#sxw-root .sxw-dot{width:8px;height:8px;border-radius:999px;background:#f2c46b;flex:0 0 auto}
#sxw-root .sxw-dot.is-on{background:#8ff0b4}
#sxw-root .sxw-x{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:999px;color:#fff}
#sxw-root .sxw-x:hover{background:rgba(255,255,255,.16)}
#sxw-root .sxw-x .sxw-i{width:20px;height:20px}
#sxw-root .sxw-ann{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:10px 16px;background:#fff8e8;border-bottom:1px solid #f1e3bf;font-size:13.5px;line-height:1.6;color:#5f4a17}
#sxw-root .sxw-ann-a{color:var(--sxw-c)!important;text-decoration:underline!important}

#sxw-root .sxw-body{flex:1;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:10px;padding:16px;background:var(--sxw-soft)}
#sxw-root .sxw-msg{max-width:86%;padding:10px 14px;border-radius:16px;font-size:14.5px;line-height:1.75;animation:sxwIn .2s ease;overflow-wrap:anywhere}
#sxw-root .sxw-msg.is-bot{align-self:flex-start;background:#fff;border:1px solid var(--sxw-line);border-start-start-radius:6px}
#sxw-root .sxw-msg.is-me{align-self:flex-end;background:var(--sxw-me);border:1px solid #cbe9d6;border-start-end-radius:6px;white-space:pre-line}
#sxw-root .sxw-msg.is-wide{max-width:100%;width:100%}
#sxw-root .sxw-p{white-space:pre-line}
#sxw-root .sxw-typing{display:flex;gap:4px;padding:14px 16px}
#sxw-root .sxw-typing i{width:7px;height:7px;border-radius:999px;background:#9fb0a7;animation:sxwDot 1s infinite ease-in-out}
#sxw-root .sxw-typing i:nth-child(2){animation-delay:.15s}
#sxw-root .sxw-typing i:nth-child(3){animation-delay:.3s}

#sxw-root .sxw-chips{display:flex;flex-wrap:wrap;gap:8px;align-self:stretch;animation:sxwIn .2s ease}
#sxw-root .sxw-chip{display:inline-flex;align-items:center;padding:7px 14px;border:1px solid var(--sxw-c);border-radius:999px;background:#fff;color:var(--sxw-c)!important;font-size:14px;line-height:1.5;text-align:start;transition:background .15s,color .15s}
#sxw-root .sxw-chip:hover,#sxw-root .sxw-chip.is-main{background:var(--sxw-c);color:#fff!important}
#sxw-root .sxw-chip.is-main:hover{filter:brightness(1.08)}

#sxw-root .sxw-wa,#sxw-root .sxw-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;padding:10px 16px;border-radius:12px;background:var(--sxw-c);color:#fff!important;font-size:15.5px;text-align:center;transition:filter .15s}
#sxw-root .sxw-wa:hover,#sxw-root .sxw-btn:hover{filter:brightness(1.08)}
#sxw-root .sxw-btn[disabled]{opacity:.7;cursor:default}
#sxw-root .sxw-btn.is-busy span{opacity:.6}

/* Request form inside the chat */
#sxw-root .sxw-form{display:flex;flex-direction:column;gap:12px}
#sxw-root .sxw-svc{align-self:flex-start;padding:4px 12px;border-radius:999px;background:#e6f4ec;color:var(--sxw-c);font-size:13.5px}
#sxw-root .sxw-f{display:flex;flex-direction:column;gap:5px}
#sxw-root .sxw-f label{font-size:13px;color:var(--sxw-muted)}
#sxw-root .sxw-in{display:block;width:100%;min-height:42px;padding:9px 12px;border:1px solid #cdd8d1;border-radius:10px;background:#fff;color:var(--sxw-ink);font-size:15px;line-height:1.5}
#sxw-root textarea.sxw-in{min-height:76px;resize:vertical;white-space:pre-wrap}
#sxw-root .sxw-in:focus{border-color:var(--sxw-c);outline:none}
#sxw-root .sxw-in::placeholder{color:#a3aea8}
#sxw-root .sxw-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
#sxw-root .sxw-check{display:flex;align-items:flex-start;gap:10px;font-size:13.5px;line-height:1.6;color:var(--sxw-ink);cursor:pointer}
#sxw-root .sxw-cb{appearance:none;-webkit-appearance:none;flex:0 0 auto;width:20px;height:20px;margin-top:1px;border:1px solid #b9c6be;border-radius:6px;background:#fff;cursor:pointer;display:grid;place-content:center}
#sxw-root .sxw-cb::before{content:"";width:11px;height:6px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translate(1px,-1px);opacity:0}
#sxw-root .sxw-cb:checked{background:var(--sxw-c);border-color:var(--sxw-c)}
#sxw-root .sxw-cb:checked::before{opacity:1}
#sxw-root .sxw-err{padding:8px 12px;border-radius:10px;background:#fdf1f0;border:1px solid #f4d4d0;color:#9b2c22;font-size:13.5px}
#sxw-root .sxw-terms{margin:0;font-size:12.5px;line-height:1.6;color:var(--sxw-muted)}
#sxw-root .sxw-terms a{color:var(--sxw-c);text-decoration:underline!important}
#sxw-root .sxw-sum{display:flex;flex-direction:column;gap:4px;font-size:14px}
#sxw-root .sxw-ltr{unicode-bidi:isolate;text-align:start}

/* Typing box */
#sxw-root .sxw-bar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-top:1px solid var(--sxw-line);background:#fff}
#sxw-root .sxw-text{flex:1;min-width:0;height:44px;padding:0 16px;border-radius:999px;background:var(--sxw-soft);border:1px solid transparent;font-size:15px}
#sxw-root .sxw-text:focus{border-color:var(--sxw-c);outline:none;background:#fff}
#sxw-root .sxw-send{width:44px;height:44px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;border-radius:999px;background:var(--sxw-c);color:#fff}
#sxw-root[dir="rtl"] .sxw-send .sxw-i{transform:scaleX(-1)}
#sxw-root .sxw-foot{padding:0 12px 9px;background:#fff;text-align:center;font-size:11.5px;color:#8a968f}

@keyframes sxwUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes sxwIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes sxwDot{0%,80%,100%{opacity:.35;transform:none}40%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){#sxw-root *{animation:none!important;transition:none!important}}

/* Phones: full screen window */
@media (max-width:640px){
	#sxw-root{bottom:16px}
	#sxw-root.is-right{right:16px}
	#sxw-root.is-left{left:16px}
	#sxw-root .sxw-fab{width:56px;min-width:56px;height:56px}
	#sxw-root .sxw-teaser{max-width:calc(100vw - 32px)}
	#sxw-root.is-open{inset:0;bottom:0}
	#sxw-root.is-open .sxw-fab{display:none}
	#sxw-root .sxw-panel{position:fixed;inset:0;width:100%;height:100%;height:100dvh;margin:0;border:0;border-radius:0}
	#sxw-root .sxw-msg{font-size:15px}
}
html.sxw-lock,html.sxw-lock body{overflow:hidden!important}
