/* Operion AI assistant widget */
.op-chat { --c-navy: #00142D; --c-blue: #2C6FE8; --c-blue2: #3782F7; --c-line: #DCE6F5; --c-ink2: #46566F; font-family: Tajawal, Poppins, system-ui, sans-serif; }
.op-chat__fab { position: fixed; z-index: 91; inset-inline-end: max(18px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 68px); display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border: 0; border-radius: 26px; cursor: pointer; color: #fff; background: linear-gradient(135deg, #2459CC, #3782F7); box-shadow: 0 14px 30px -10px rgba(36, 89, 204, .7), 0 2px 6px rgba(0, 0, 0, .12); font: 700 14.5px/1 Tajawal, Poppins, sans-serif; transition: transform .3s, box-shadow .3s; }
.op-chat__fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.op-chat__fab:hover { transform: translateY(-2px); }
.op-chat__fab-label { white-space: nowrap; }
.op-chat--open .op-chat__fab { display: none; }
.op-chat--hint .op-chat__fab { animation: op-chat-pop .9s ease 2; }
@keyframes op-chat-pop { 50% { transform: translateY(-6px) scale(1.04); } }
.op-chat__panel { position: fixed; z-index: 92; inset-inline-end: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; color: var(--c-navy); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0, 20, 45, .45), 0 0 0 1px rgba(0, 20, 45, .06); }
.op-chat__panel[hidden] { display: none; }
.op-chat__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: #fff; background: linear-gradient(120deg, #00142D, #12305E 60%, #2459CC); }
.op-chat__head b { display: block; font-size: 15.5px; }
.op-chat__head small { display: block; font-size: 12px; opacity: .8; }
.op-chat__head > div { flex: 1; }
.op-chat__dot { width: 9px; height: 9px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .2); }
.op-chat__x { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.op-chat__log { flex: 1; overflow-y: auto; padding: 14px; background: #F4F8FE; display: flex; flex-direction: column; gap: 8px; }
.op-chat__msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.65; white-space: pre-wrap; word-wrap: break-word; }
.op-chat__msg a { color: inherit; text-decoration: underline; }
.op-chat__msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--c-line); border-start-start-radius: 4px; }
.op-chat__msg--me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, var(--c-blue), var(--c-blue2)); border-start-end-radius: 4px; }
.op-chat__typing { color: var(--c-ink2); animation: op-chat-blink 1s infinite; }
@keyframes op-chat-blink { 50% { opacity: .35; } }
.op-chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: #F4F8FE; }
.op-chat__chips:empty { display: none; }
.op-chat__chips button { border: 1px solid #BFD3F6; background: #fff; color: var(--c-blue); border-radius: 16px; padding: 6px 11px; font: 600 12.5px Tajawal, sans-serif; cursor: pointer; }
.op-chat__chips button:hover { background: #EAF1FE; }
.op-chat__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--c-line); }
.op-chat__form textarea { flex: 1; resize: none; border: 1px solid var(--c-line); border-radius: 12px; padding: 10px 12px; font: 14.5px/1.5 Tajawal, sans-serif; color: var(--c-navy); max-height: 120px; outline: none; }
.op-chat__form textarea:focus { border-color: var(--c-blue2); box-shadow: 0 0 0 3px rgba(55, 130, 247, .15); }
.op-chat__form button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--c-blue); color: #fff; cursor: pointer; display: grid; place-items: center; }
.op-chat__form button svg { width: 20px; height: 20px; fill: currentColor; }
[dir="rtl"] .op-chat__form button svg { transform: scaleX(-1); }
.op-chat__note { margin: 0; padding: 0 14px 10px; font-size: 11px; color: var(--c-ink2); line-height: 1.5; }
.op-chat__note a { color: #1FA36B; font-weight: 700; }
.ob-menu-open .op-chat, .op-entry-on .op-chat { display: none; }
@media (max-width: 640px) {
	.op-chat__fab { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 64px); inset-inline-end: max(14px, env(safe-area-inset-right)); height: 50px; padding: 0 14px; }
	.op-chat__fab-label { display: none; }
	.op-chat__panel { inset: auto 0 0 0; width: 100%; height: min(88vh, 100dvh); border-radius: 18px 18px 0 0; }
}
@media print { .op-chat { display: none; } }
