.sepahan-ai-bot-root{position:fixed;z-index:999999;bottom:18px;font-family:Tahoma,Arial,sans-serif;color:var(--sepbot-text,#1f2937);direction:rtl}.sepahan-bot-right{right:18px}.sepahan-bot-left{left:18px}.sepbot-fab{width:62px;height:62px;border:0;border-radius:22px;background:radial-gradient(circle at 30% 20%,#fff3 0 20%,transparent 21%),linear-gradient(135deg,var(--sepbot-primary,#c7a45a),#e5c77d);box-shadow:0 16px 42px rgba(0,0,0,.22);cursor:pointer;color:#fff;display:grid;place-items:center;transition:.18s;position:relative;overflow:hidden}.sepbot-fab:hover{transform:translateY(-2px);box-shadow:0 22px 52px rgba(0,0,0,.28)}.sepbot-fab svg{width:32px;height:32px;fill:currentColor}.sepbot-fab-close{display:none}.sepahan-ai-bot-root.is-open .sepbot-fab-open{display:none}.sepahan-ai-bot-root.is-open .sepbot-fab-close{display:grid}.sepbot-window{position:absolute;bottom:76px;width:372px;max-width:calc(100vw - 30px);height:min(545px,72vh);max-height:calc(100vh - 155px);background:rgba(255,255,255,.985);border:1px solid rgba(203,213,225,.9);border-radius:24px;box-shadow:0 22px 65px rgba(15,23,42,.22);overflow:hidden;display:none;flex-direction:column;backdrop-filter:blur(14px)}.sepahan-bot-right .sepbot-window{right:0}.sepahan-bot-left .sepbot-window{left:0}.sepbot-window.is-open{display:flex;animation:sepbotIn .18s ease both}@keyframes sepbotIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}.sepbot-head{background:linear-gradient(135deg,var(--sepbot-primary,#c7a45a),#d8bc74);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:13px 15px;flex:0 0 auto}.sepbot-title{display:flex;align-items:center;gap:10px;min-width:0}.sepbot-avatar{width:40px;height:40px;border-radius:15px;background:rgba(255,255,255,.16);display:grid;place-items:center;flex:0 0 auto}.sepbot-avatar svg{width:25px;height:25px;fill:#fff}.sepbot-head strong{display:block;font-size:16px;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px}.sepbot-head small{opacity:.92;font-size:12px}.sepbot-close{border:0;background:rgba(255,255,255,.18);color:#fff;border-radius:13px;width:34px;height:34px;cursor:pointer;display:grid;place-items:center;flex:0 0 auto}.sepbot-close svg{width:20px;height:20px;fill:currentColor}.sepbot-messages{flex:1;overflow:auto;padding:14px;background:linear-gradient(180deg,#fff,#f8fafc);min-height:0}.sepbot-msg{display:flex;margin-bottom:10px;min-width:0}.sepbot-msg p{margin:0;line-height:1.9;border-radius:18px;padding:10px 13px;max-width:86%;font-size:13.5px;box-shadow:0 4px 12px rgba(15,23,42,.035);overflow-wrap:anywhere;word-break:break-word}.sepbot-msg a{color:inherit;text-decoration:underline;text-underline-offset:3px;font-weight:900}.sepbot-msg.bot p{background:var(--sepbot-bubble,#f4efe4);color:var(--sepbot-text,#1f2937);border-top-right-radius:7px}.sepbot-msg.user{justify-content:flex-end}.sepbot-msg.user p{background:var(--sepbot-secondary,#172033);color:#fff;border-top-left-radius:7px}.sepbot-form{display:flex;gap:7px;padding:11px;border-top:1px solid #e5e7eb;background:#fff;flex:0 0 auto}.sepbot-form input{flex:1;border:1px solid #dbe3ef;border-radius:15px;padding:11px 12px;outline:none;background:#fff;color:#111827;min-width:0}.sepbot-form input:focus{border-color:var(--sepbot-primary,#c7a45a);box-shadow:0 0 0 4px rgba(199,164,90,.13)}.sepbot-form button,.sepbot-info-card button{border:0;background:var(--sepbot-primary,#c7a45a);color:#fff;border-radius:15px;padding:0 13px;font-weight:950;cursor:pointer;white-space:nowrap}.sepbot-info{padding:0 11px;background:#fff;flex:0 0 auto}.sepbot-info-card{margin:10px 0 0;background:#fff8e8;border:1px solid #efd28b;border-radius:17px;padding:10px;display:grid;gap:7px}.sepbot-info-card b{font-size:12.5px;color:#6b4f16}.sepbot-info-card input{border:1px solid #e2e8f0;border-radius:12px;padding:9px;outline:none;min-width:0}.sepbot-wait p{opacity:.75}.sepbot-theme-dark .sepbot-window{background:rgba(17,24,39,.985);border-color:rgba(71,85,105,.85);color:#e5e7eb}.sepbot-theme-dark .sepbot-messages{background:linear-gradient(180deg,#111827,#0f172a)}.sepbot-theme-dark .sepbot-form,.sepbot-theme-dark .sepbot-info{background:#111827;border-color:#334155}.sepbot-theme-dark .sepbot-form input,.sepbot-theme-dark .sepbot-info-card input{background:#0f172a;border-color:#334155;color:#f8fafc}.sepbot-theme-dark .sepbot-msg.bot p{background:#263244;color:#f8fafc}.sepbot-theme-dark .sepbot-info-card{background:#1f2937;border-color:#45556d}.sepbot-theme-dark .sepbot-info-card b{color:#fde68a}@media(prefers-color-scheme:dark){.sepbot-theme-auto .sepbot-window{background:rgba(17,24,39,.985);border-color:rgba(71,85,105,.85);color:#e5e7eb}.sepbot-theme-auto .sepbot-messages{background:linear-gradient(180deg,#111827,#0f172a)}.sepbot-theme-auto .sepbot-form,.sepbot-theme-auto .sepbot-info{background:#111827;border-color:#334155}.sepbot-theme-auto .sepbot-form input,.sepbot-theme-auto .sepbot-info-card input{background:#0f172a;border-color:#334155;color:#f8fafc}.sepbot-theme-auto .sepbot-msg.bot p{background:#263244;color:#f8fafc}.sepbot-theme-auto .sepbot-info-card{background:#1f2937;border-color:#45556d}.sepbot-theme-auto .sepbot-info-card b{color:#fde68a}}@media(max-width:640px){.sepahan-ai-bot-root{right:12px!important;left:12px!important;bottom:12px}.sepbot-window{width:auto;left:0!important;right:0!important;height:68vh;max-height:calc(100vh - 125px);bottom:70px;border-radius:22px}.sepbot-fab{width:57px;height:57px;border-radius:20px}.sepbot-msg p{max-width:91%;font-size:13px}.sepbot-head strong{max-width:190px}}@media(max-height:650px){.sepbot-window{height:68vh;max-height:calc(100vh - 120px);bottom:68px}.sepbot-messages{padding:10px}.sepbot-head{padding:10px 12px}.sepbot-form{padding:9px}}

/* Sepahan Bot v2.2.1 refinements */
.sepahan-ai-bot-root{z-index:2147483000!important;font-family:var(--sepbot-font-family),inherit,Tahoma,Arial,sans-serif!important;isolation:isolate}.sepahan-ai-bot-root *{box-sizing:border-box;font-family:inherit!important}.sepbot-window{width:348px!important;height:min(486px,64vh)!important;max-height:calc(100vh - 190px)!important;bottom:74px!important;z-index:2147483001!important}.sepbot-fab{z-index:2147483002!important;width:58px!important;height:58px!important;border-radius:20px!important}.sepbot-head{padding:11px 13px!important}.sepbot-head strong{font-size:15px!important}.sepbot-avatar{width:36px!important;height:36px!important;border-radius:13px!important}.sepbot-messages{padding:12px!important}.sepbot-msg p{font-size:13.3px!important;line-height:1.85!important;max-width:84%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}.sepbot-form input{font-size:13px!important}.sepbot-form button,.sepbot-info-card button{font-size:13px!important}.sepahan-bot-right{right:92px!important}.sepahan-bot-left{left:92px!important}.sepahan-bot-right.sepahan-has-floating-contact{right:96px!important}.sepahan-bot-left.sepahan-has-floating-contact{left:96px!important}.sepbot-fab{background:linear-gradient(135deg,var(--sepbot-secondary,#172033),var(--sepbot-primary,#c7a45a))!important}.sepbot-fab:after{content:"";position:absolute;inset:9px;border:1px solid rgba(255,255,255,.22);border-radius:16px;pointer-events:none}@media(max-width:640px){.sepahan-ai-bot-root{bottom:14px!important}.sepahan-ai-bot-root.sepahan-bot-right{right:14px!important;left:auto!important}.sepahan-ai-bot-root.sepahan-bot-left{left:14px!important;right:auto!important}.sepbot-window{width:calc(100vw - 28px)!important;max-width:360px!important;height:62vh!important;max-height:calc(100vh - 145px)!important;bottom:68px!important}.sepahan-bot-right .sepbot-window{right:0!important;left:auto!important}.sepahan-bot-left .sepbot-window{left:0!important;right:auto!important}.sepbot-msg p{max-width:90%!important}.sepbot-fab{width:56px!important;height:56px!important}}@media(max-height:720px) and (min-width:641px){.sepbot-window{height:min(430px,58vh)!important;max-height:calc(100vh - 170px)!important}.sepbot-messages{padding:10px!important}.sepbot-head small{display:none!important}}@media(max-width:420px){.sepbot-window{max-width:calc(100vw - 24px)!important;height:60vh!important}.sepbot-head strong{max-width:170px!important}}


/* Sepahan v2: align AI bot and contact FAB, reduce scroll jank */
.sepahan-ai-bot-root{bottom:18px!important;contain:layout style!important;pointer-events:none!important;}
.sepahan-ai-bot-root .sepbot-fab,.sepahan-ai-bot-root .sepbot-window{pointer-events:auto!important;}
.sepbot-fab{width:56px!important;height:56px!important;border-radius:20px!important;will-change:transform!important;}
.sepbot-window{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;contain:layout style paint!important;}
.sepbot-messages{overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;}
.sepahan-bot-right,.sepahan-bot-right.sepahan-has-floating-contact{right:18px!important;}
.sepahan-bot-left,.sepahan-bot-left.sepahan-has-floating-contact{left:18px!important;}
@media(max-width:640px){.sepahan-ai-bot-root{bottom:16px!important}.sepbot-fab{width:56px!important;height:56px!important}.sepahan-bot-right.sepahan-has-floating-contact{right:82px!important}.sepahan-bot-left.sepahan-has-floating-contact{left:82px!important}}


/* Sepahan v2.0.1 chat persistence/delete + RTL start fields + mobile menu priority */
.sepbot-head-actions{display:flex;align-items:center;gap:7px;margin-inline-start:auto}
.sepbot-clear{border:0;background:rgba(255,255,255,.14);color:#fff;border-radius:12px;padding:7px 10px;font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap}
.sepbot-clear:hover{background:rgba(255,255,255,.24)}
.sepbot-form input,.sepbot-info-card input{direction:rtl!important;text-align:right!important;unicode-bidi:plaintext!important}
.sepbot-form input::placeholder,.sepbot-info-card input::placeholder{text-align:right!important;direction:rtl!important}
@media(max-width:1024px){
  #offcanvas-right,#offcanvas-right.open,#offcanvas-right[data-open="1"],.sepahan-mobile-menu,.sepahan-mobile-mega,.sepahan-mega-menu,.sepahan-nav-mobile,.mobile-menu,.mega-menu,.mega-sub-menu{z-index:2147483600!important;position:relative}
  #offcanvas-right{position:fixed!important}
  .sepahan-ai-bot-root,.nikan-contact-fab{z-index:2147482500!important}
  body:has(#offcanvas-right.open) .sepahan-ai-bot-root,body:has(#offcanvas-right[data-open="1"]) .sepahan-ai-bot-root,body:has(#offcanvas-right.open) .nikan-contact-fab,body:has(#offcanvas-right[data-open="1"]) .nikan-contact-fab{z-index:1!important;pointer-events:none!important;opacity:.25!important}
}
@media(max-width:420px){.sepbot-clear{font-size:11px;padding:6px 8px}.sepbot-head-actions{gap:5px}.sepbot-head strong{max-width:135px!important}}


/* Sepahan v2.0.2: admin-only conversation deletion + stronger mobile mega menu priority */
.sepbot-clear{display:none!important}
@media(max-width:1024px){
  body.menu-open .sepahan-ai-bot-root,body.mobile-menu-open .sepahan-ai-bot-root,body.offcanvas-open .sepahan-ai-bot-root,body.mega-menu-open .sepahan-ai-bot-root,
  body.menu-open .nikan-contact-fab,body.mobile-menu-open .nikan-contact-fab,body.offcanvas-open .nikan-contact-fab,body.mega-menu-open .nikan-contact-fab{z-index:10!important;pointer-events:none!important;opacity:.18!important}
  .elementor-nav-menu--dropdown,.elementor-menu-toggle.elementor-active + .elementor-nav-menu--dropdown,.elementor-nav-menu--dropdown.elementor-nav-menu__container,
  .jet-mega-menu,.jet-mobile-menu,.hfe-nav-menu__layout-horizontal,.hfe-nav-menu__layout-vertical,.ast-mobile-popup-drawer,.dialog-widget-content,
  .sepahan-mobile-menu,.sepahan-mobile-mega,.sepahan-mega-menu,.mega-menu,.mega-sub-menu{z-index:2147483600!important}
}

/* Sepahan v2.2.7: floating contact + AI bot coordination */
.sepahan-ai-bot-root.is-open{z-index:2147483300!important}
.nikan-contact-fab.is-open{z-index:2147483290!important}
body.sepahan-contact-open .sepahan-ai-bot-root:not(.is-open) .sepbot-fab{opacity:.22!important;pointer-events:none!important;filter:grayscale(1)!important;transform:scale(.92)!important}
body.sepahan-bot-open .nikan-contact-fab:not(.is-open) .nikan-contact-toggle{opacity:.22!important;pointer-events:none!important;filter:grayscale(1)!important;transform:scale(.92)!important}
body.sepahan-contact-open .sepahan-ai-bot-root:not(.is-open) .sepbot-window,
body.sepahan-bot-open .nikan-contact-fab:not(.is-open) .nikan-contact-list{display:none!important}
.sepahan-ai-bot-root.sepahan-contact-opposite-side{right:18px;left:auto}
@media(max-width:640px){.sepahan-ai-bot-root.sepahan-contact-same-side.sepahan-bot-right{right:82px!important;left:auto!important}.sepahan-ai-bot-root.sepahan-contact-same-side.sepahan-bot-left{left:82px!important;right:auto!important}}
