.zc-native-chat{--zc-chat-navy:#101d35;--zc-chat-blue:#2764d8;--zc-chat-gold:#dda126;box-sizing:border-box;position:fixed;z-index:99991;inset:auto max(var(--zc-contact-desktop-x,24px),env(safe-area-inset-right,0px)) calc(max(var(--zc-contact-desktop-y,24px),env(safe-area-inset-bottom,0px)) + 68px) auto;width:min(370px,calc(100% - 32px));max-height:min(720px,calc(100dvh - 120px));margin:0;padding:0;border:1px solid #dbe3f1;border-radius:22px;background:#fff;color:#12203a;box-shadow:0 26px 70px rgba(12,30,63,.23);overflow:hidden;font-family:IRANSans,IRANSansX,Tahoma,sans-serif}.zc-native-chat.is-desktop-left{right:auto;left:max(var(--zc-contact-desktop-x,24px),env(safe-area-inset-left,0px))}.zc-native-chat.is-desktop-right{right:max(var(--zc-contact-desktop-x,24px),env(safe-area-inset-right,0px));left:auto}
.zc-native-chat::backdrop{display:none}.zc-native-chat__shell{display:grid;grid-template-rows:auto minmax(68px,1fr) auto auto;max-height:inherit}.zc-native-chat header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 22px 18px;color:#fff;background:radial-gradient(circle at 8% 0,rgba(221,161,38,.38),transparent 38%),linear-gradient(135deg,#172847,var(--zc-chat-navy))}.zc-native-chat header>div{min-width:0}.zc-native-chat header small{color:#f1bb50;font-size:11px;font-weight:800}.zc-native-chat h2{margin:5px 0 6px;color:#fff;font:800 18px/1.6 IRANSans,IRANSX,Tahoma,sans-serif}.zc-native-chat header p{margin:0;color:#cbd6e9;font-size:12px;line-height:1.8}.zc-native-chat .zc-native-chat__close{display:grid!important;place-items:center;flex:0 0 36px;width:36px!important;height:36px!important;margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.28)!important;border-radius:50%!important;color:#fff!important;background:rgba(255,255,255,.08)!important;box-shadow:none!important;cursor:pointer;font:300 26px/1 Arial!important}.zc-native-chat__close span{display:block;transform:translateY(-1px)}
.zc-native-chat.has-conversation header{align-items:center;padding:10px 14px}.zc-native-chat.has-conversation header small{display:none}.zc-native-chat.has-conversation h2{margin:0;font-size:15px;line-height:1.5}.zc-native-chat.has-conversation header p{margin-top:2px;font-size:10px;line-height:1.5}.zc-native-chat.has-conversation .zc-native-chat__close{flex-basis:30px;width:30px!important;height:30px!important;font-size:21px!important}
.zc-native-chat__messages{min-height:68px;max-height:300px;padding:14px;overflow:auto;background:#f6f9fe;scrollbar-gutter:stable}.zc-native-chat__messages:empty{display:grid;place-items:center;min-height:68px;max-height:68px;padding:6px 14px}.zc-native-chat__messages:empty::before{content:'هنوز پیامی ثبت نشده است. پرسش خود را بنویسید تا گفت‌وگو شروع شود.';display:block;margin:0 auto;max-width:260px;color:#66758e;text-align:center;font-size:12px;line-height:1.75}.zc-native-chat__message{box-sizing:border-box;width:86%;margin:0 0 10px;padding:10px 12px;border:1px solid #e4e9f2;border-radius:15px;background:#fff;box-shadow:0 6px 18px rgba(25,55,106,.06)}.zc-native-chat__message.is-customer{margin-inline-start:auto;border-color:#cfdcf1;background:#eff5ff}.zc-native-chat__message.is-system{border-color:#f0d398;background:#fff9ea}.zc-native-chat__message header{padding:0;background:none;color:#12203a}.zc-native-chat__message header strong{font-size:11px}.zc-native-chat__message time{color:#758198;font-size:10px}.zc-native-chat__message>div{margin-top:6px;line-height:1.8;overflow-wrap:anywhere}.zc-native-chat__message footer{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.zc-native-chat__file{display:flex;align-items:center;gap:6px;color:#174f9b;text-decoration:none}.zc-native-chat__file img{width:72px;height:54px;border-radius:8px;object-fit:cover}
.zc-native-chat__message>div a{color:#1456a0;font-weight:700;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.zc-native-chat__account-note{position:absolute;z-index:3;top:16px;left:62px;display:block;padding:0;border:0;background:transparent}.zc-native-chat__account-note p,.zc-native-chat__account-note a:not(:first-child){display:none}.zc-native-chat__account-note div{display:flex}.zc-native-chat__account-note a{display:inline-flex;align-items:center;min-height:30px;padding:3px 9px;border:1px solid rgba(255,255,255,.46);border-radius:9px;color:#fff;background:rgba(255,255,255,.1);font-size:10px;font-weight:800;text-decoration:none}.zc-native-chat__account-note a:hover{background:rgba(255,255,255,.2)}.zc-native-chat.has-conversation .zc-native-chat__account-note{top:10px;left:54px}.zc-native-chat.has-conversation .zc-native-chat__account-note a{min-height:26px;padding:2px 8px}
.zc-native-chat form{min-height:0;max-height:350px;overflow-y:auto;overscroll-behavior:contain;padding:13px 14px 15px;border-top:1px solid #e1e8f2;background:#fff;scrollbar-gutter:stable}.zc-native-chat__profile{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:9px}.zc-native-chat__profile[hidden]{display:none}.zc-native-chat__profile p{min-width:0;margin:0}.zc-native-chat__profile p:last-child:nth-child(odd){grid-column:1/-1}.zc-native-chat label{display:block;margin:0 0 5px;color:#203656;font-size:11px;font-weight:800}.zc-native-chat label span{color:#9d5e00}.zc-native-chat label small{color:#7c899e;font-size:10px;font-weight:500}.zc-native-chat input:not([type=file]),.zc-native-chat textarea{box-sizing:border-box;width:100%;border:1px solid #cbd6e6;border-radius:11px;padding:9px 11px;background:#fff;color:#12203a;font:inherit;transition:border-color .15s ease,outline-color .15s ease}.zc-native-chat textarea{min-height:54px;resize:vertical}.zc-native-chat.has-conversation textarea{min-height:46px;max-height:100px}.zc-native-chat input:hover,.zc-native-chat textarea:hover{border-color:#9fb2cf}.zc-native-chat input:not([type=file]):focus,.zc-native-chat textarea:focus,.zc-native-chat input:not([type=file]):focus-visible,.zc-native-chat textarea:focus-visible{border-color:#6f8fbd!important;outline:1px solid rgba(39,100,216,.7)!important;outline-offset:1px!important;box-shadow:none!important}.zc-native-chat [aria-invalid=true]{border-color:#b42318!important;box-shadow:none!important}.zc-native-chat input[aria-invalid=true]:focus,.zc-native-chat textarea[aria-invalid=true]:focus{outline-color:rgba(180,35,24,.65)!important}.zc-native-chat__field-error{display:block;min-height:0;margin-top:4px;color:#a32727;font-size:10px;line-height:1.7}.zc-native-chat__field-error:empty{display:none}
.zc-native-chat__composer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.zc-native-chat__attach{display:flex!important;align-items:center;min-height:42px;margin:0!important;padding:8px 11px;border:1px dashed #9eb3d2;border-radius:11px;cursor:pointer}.zc-native-chat__attach input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.zc-native-chat__composer button{min-height:42px;padding:8px 20px;border:0;border-radius:12px;background:linear-gradient(145deg,#f0b23a,var(--zc-chat-gold));color:#152440;font:800 12px/1 IRANSans,IRANSX,Tahoma,sans-serif;cursor:pointer}.zc-native-chat__status,.zc-native-chat__files{min-height:0;margin:0 0 7px;color:#3b5b87;font-size:11px;line-height:1.7}.zc-native-chat__status:empty{display:none}.zc-native-chat__files{margin:7px 0 0}.zc-native-chat__status:not(:empty){padding:7px 9px;border-radius:8px;background:#eef5ff}.zc-native-chat__status.is-error{color:#a32727;background:#fff1f0}.zc-native-chat__trap{position:absolute!important;inset-inline-start:-9999px!important}.zc-native-chat :focus-visible{outline:2px solid #f2ae2c;outline-offset:2px}
@media(max-width:782px){.zc-native-chat{position:fixed!important;z-index:2147483000!important;inset:0!important;width:100vw!important;max-width:none!important;height:var(--zc-chat-mobile-height,100dvh)!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;transform:none!important}.zc-native-chat__shell{width:100%;height:var(--zc-chat-mobile-height,100dvh);max-height:none}.zc-native-chat__shell>header{padding-top:max(12px,env(safe-area-inset-top,0px))}.zc-native-chat.has-conversation .zc-native-chat__close{flex-basis:44px;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}.zc-native-chat__messages{max-height:none}.zc-native-chat form{max-height:40dvh;padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}.zc-native-chat.has-conversation form{max-height:27dvh}.zc-native-chat__profile{grid-template-columns:1fr}.zc-native-chat__profile p:last-child:nth-child(odd){grid-column:auto}}
.zc-native-chat.is-mobile-fullscreen{position:fixed!important;z-index:2147483647!important;inset:0!important;width:100vw!important;max-width:none!important;height:var(--zc-chat-mobile-height,100dvh)!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;transform:none!important}.zc-native-chat.is-mobile-fullscreen .zc-native-chat__shell{width:100%;height:var(--zc-chat-mobile-height,100dvh);max-height:none}.zc-native-chat.is-mobile-fullscreen .zc-native-chat__shell>header{padding-top:max(12px,env(safe-area-inset-top,0px))}.zc-native-chat.is-mobile-fullscreen.has-conversation .zc-native-chat__close{flex-basis:44px;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}.zc-native-chat.is-mobile-fullscreen .zc-native-chat__messages{max-height:none}.zc-native-chat.is-mobile-fullscreen form{max-height:40dvh;padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}.zc-native-chat.is-mobile-fullscreen.has-conversation form{max-height:27dvh}.zc-native-chat.is-mobile-fullscreen .zc-native-chat__profile{grid-template-columns:1fr}.zc-native-chat.is-mobile-fullscreen .zc-native-chat__profile p:last-child:nth-child(odd){grid-column:auto}
@media(max-width:420px){.zc-native-chat header{padding:14px 16px 12px}.zc-native-chat.has-conversation header{padding:8px 12px}.zc-native-chat form{padding:9px 12px}.zc-native-chat__profile{grid-template-columns:1fr}.zc-native-chat__profile p:last-child:nth-child(odd){grid-column:auto}.zc-native-chat__composer{align-items:stretch}.zc-native-chat__composer>*{flex:1;justify-content:center}}
@media(prefers-reduced-motion:reduce){.zc-native-chat *{scroll-behavior:auto!important;transition:none!important}}@media(forced-colors:active){.zc-native-chat,.zc-native-chat input,.zc-native-chat textarea,.zc-native-chat button{border:2px solid CanvasText}.zc-native-chat :focus-visible{outline-color:Highlight}}

/* Compact messenger composer. */
.zc-native-chat__sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.zc-native-chat__composer{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;grid-template-areas:"send message attach";align-items:end;gap:7px;margin-top:0;direction:ltr}
.zc-native-chat__composer textarea{grid-area:message;direction:rtl;height:42px;min-height:42px!important;max-height:128px!important;margin:0;padding:9px 12px;overflow-y:hidden;resize:none;line-height:22px}
.zc-native-chat__attach,.zc-native-chat__composer button{display:grid!important;place-items:center;box-sizing:border-box;width:42px!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0!important;border-radius:50%!important;cursor:pointer}
.zc-native-chat__attach{grid-area:attach;border:1px solid #b7c7df!important;background:#fff;color:#27446e}
.zc-native-chat__composer button{grid-area:send;border:0!important;background:linear-gradient(145deg,#f0b23a,var(--zc-chat-gold))!important;color:#152440!important}
.zc-native-chat__attach svg,.zc-native-chat__composer button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.zc-native-chat__attach:hover{border-color:#6f8fbd!important;background:#f5f8fd}
.zc-native-chat__files{margin:5px 49px 0 0}
@media(max-width:420px){.zc-native-chat__composer{grid-template-columns:40px minmax(0,1fr) 40px;gap:6px}.zc-native-chat__attach,.zc-native-chat__composer button{width:40px!important;height:40px!important;min-height:40px!important}.zc-native-chat__composer textarea{height:40px;min-height:40px!important;padding-block:8px}}

/* Keep the composer isolated from form rules loaded by individual pages/builders. */
.zc-native-chat .zc-native-chat__composer input.zc-native-chat__file-input{display:none!important;position:absolute!important;width:0!important;height:0!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important}
.zc-native-chat .zc-native-chat__composer button.zc-native-chat__attach{grid-area:attach!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;margin:0!important;padding:0!important;border:1px solid #b7c7df!important;border-radius:50%!important;color:#27446e!important;background:#fff!important;box-shadow:none!important;font-size:0!important;line-height:1!important;cursor:pointer!important}
.zc-native-chat .zc-native-chat__composer button.zc-native-chat__attach:hover{border-color:#6f8fbd!important;background:#f5f8fd!important}.zc-native-chat .zc-native-chat__composer button.zc-native-chat__attach:focus-visible{border-color:#2764d8!important;outline:2px solid rgba(39,100,216,.45)!important;outline-offset:2px!important}.zc-native-chat .zc-native-chat__composer button.zc-native-chat__attach.has-file{border-color:#b87900!important;color:#6f4700!important;background:#fff5d8!important}
.zc-native-chat .zc-native-chat__composer #zc-native-message{grid-area:message!important;display:block!important;box-sizing:border-box!important;direction:rtl!important;width:100%!important;height:42px;min-width:0!important;min-height:42px!important;max-height:128px!important;margin:0!important;padding:9px 12px!important;overflow-y:hidden;resize:none!important;border:1px solid #cbd6e6!important;border-radius:11px!important;background:#fff!important;color:#12203a!important;font:inherit!important;line-height:22px!important;box-shadow:none!important;appearance:none!important;-webkit-appearance:none!important}
.zc-native-chat .zc-native-chat__composer #zc-native-message:focus,.zc-native-chat .zc-native-chat__composer #zc-native-message:focus-visible{border-color:#6f8fbd!important;outline:1px solid rgba(39,100,216,.7)!important;outline-offset:1px!important;box-shadow:none!important}
.zc-native-chat__message>div a{word-break:break-all;overflow-wrap:anywhere}
.zc-native-chat__message.is-pending{opacity:.78}.zc-native-chat__message.is-failed{border-color:#e4a3a3;background:#fff5f5}.zc-native-chat__delivery{display:inline-flex;align-items:center;gap:5px;margin-inline-start:auto;color:#65738a;font-size:10px}.zc-native-chat__delivery.is-sent{color:#2271b1;font-size:14px}.zc-native-chat__delivery.is-failed{color:#a32727}.zc-native-chat__delivery.is-sending i{width:10px;height:10px;border:2px solid #b7c4d7;border-top-color:#2271b1;border-radius:50%;animation:zc-native-spin .75s linear infinite}@keyframes zc-native-spin{to{transform:rotate(360deg)}}.zc-native-chat__status:empty{display:block;margin:0;padding:0}@media(prefers-reduced-motion:reduce){.zc-native-chat__delivery.is-sending i{animation:none!important}}
@media(max-width:420px){.zc-native-chat .zc-native-chat__composer button.zc-native-chat__attach{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important}.zc-native-chat .zc-native-chat__composer #zc-native-message{height:40px;min-height:40px!important;padding:8px 12px!important}}
