.support-chat { position: fixed; inset-inline-start: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 1000; color: #17221d; font: 500 14px/1.5 'IBM Plex Sans Arabic', sans-serif; }
.support-chat__launcher { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgb(255 255 255 / 30%); border-radius: 50%; background: #167c53; color: #fff; box-shadow: 0 3px 12px rgb(0 0 0 / 18%); cursor: pointer; }
.support-chat__launcher img { width: 22px; height: 22px; filter: brightness(0) invert(1); pointer-events: none; }
.support-chat__launcher:hover, .support-chat__launcher:focus-visible { background: #0f6845; }
.support-chat__launcher:focus-visible, .support-chat__close:focus-visible, .support-chat__composer button:focus-visible { outline: 3px solid #d6a94f; outline-offset: 2px; }
.support-chat__panel { position: absolute; inset-inline-start: 0; bottom: 58px; width: min(360px, calc(100vw - 24px)); height: min(500px, calc(100vh - 110px)); overflow: hidden; border: 1px solid #d6ded9; border-radius: 8px; background: #fff; box-shadow: 0 12px 36px rgb(0 0 0 / 22%); }
.support-chat__panel:not([hidden]) { display: grid; grid-template-rows: auto 1fr auto; }
.support-chat__header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 10px 14px; background: #145f43; color: #fff; }
.support-chat__header strong, .support-chat__header span { display: block; }
.support-chat__header strong { font-size: 16px; }
.support-chat__header span { margin-top: 2px; color: #dcebe5; font-size: 12px; }
.support-chat__header i { display: inline-block; width: 7px; height: 7px; margin-inline-end: 4px; border-radius: 50%; background: #6ee7a5; }
.support-chat__close { width: 36px; height: 36px; border: 0; background: transparent; color: #fff; font: 400 28px/1 sans-serif; cursor: pointer; }
.support-chat__messages { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 14px; background: #f4f7f5; }
.support-chat__message { width: fit-content; max-width: 85%; margin: 0; padding: 9px 11px; border-radius: 7px; overflow-wrap: anywhere; white-space: pre-wrap; }
.support-chat__message--bot { align-self: flex-start; border: 1px solid #dce4df; background: #fff; }
.support-chat__message--user { align-self: flex-end; background: #d9eee5; }
.support-chat__form { padding: 10px; border-top: 1px solid #d6ded9; background: #fff; }
.support-chat__composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.support-chat__composer button { min-width: 62px; height: 42px; border: 0; border-radius: 5px; background: #167c53; color: #fff; font: 700 13px/1 'IBM Plex Sans Arabic', sans-serif; cursor: pointer; }
.support-chat__composer button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 767px) {
  .support-chat { inset-inline-start: max(12px, env(safe-area-inset-right)); bottom: calc(80px + env(safe-area-inset-bottom)); }
  .support-chat__launcher { width: 44px; height: 44px; }
  .support-chat__launcher img { width: 21px; height: 21px; }
  .support-chat__panel { position: fixed; inset: auto 8px calc(136px + env(safe-area-inset-bottom)) 8px; width: auto; height: min(480px, calc(100dvh - 152px - env(safe-area-inset-bottom))); }
}
@media (prefers-reduced-motion: no-preference) { .support-chat__panel:not([hidden]) { animation: support-chat-in 150ms ease-out; } }
@keyframes support-chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.souqi-copy-order { min-height: 42px; margin-top: 12px; padding: 0 18px; border: 1px solid #167c53; border-radius: 6px; background: #fff; color: #0f6845; font: 700 14px/1 'IBM Plex Sans Arabic', sans-serif; cursor: pointer; }
.souqi-copy-order:hover, .souqi-copy-order:focus-visible { background: #e8f5ef; }
.souqi-copy-order:focus-visible { outline: 3px solid #d6a94f; outline-offset: 2px; }
.souqi-memory-button { position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 10px; border: 0; background: transparent; color: inherit; font: 700 12px/1 'IBM Plex Sans Arabic', sans-serif; cursor: pointer; }
.souqi-memory-button > span:first-child { font: 700 22px/1 sans-serif; }
.souqi-memory-button b { position: absolute; inset: 0 auto auto 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #167c53; color: #fff; font: 700 10px/17px sans-serif; }
.souqi-memory-overlay { position: fixed; inset: 0; z-index: 10000; }
.souqi-memory-overlay[hidden] { display: none; }
.souqi-memory-backdrop { position: fixed; inset: 0; width: 100%; border: 0; background: rgb(15 25 20 / 48%); cursor: default; }
.souqi-memory-panel { position: fixed; top: 0; right: 0; bottom: 0; display: grid; grid-template-rows: auto 1fr; width: min(400px, 92vw); background: #fff; color: #17221d; box-shadow: 0 0 32px rgb(0 0 0 / 22%); font: 500 14px/1.5 'IBM Plex Sans Arabic', sans-serif; }
.souqi-memory-panel header { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 14px 18px; border-bottom: 1px solid #d6ded9; }
.souqi-memory-panel header strong, .souqi-memory-panel header span { display: block; }
.souqi-memory-panel header strong { font-size: 20px; }
.souqi-memory-panel header span { color: #637069; font-size: 12px; }
.souqi-memory-panel header button { width: 38px; height: 38px; border: 0; background: transparent; color: #17221d; font: 400 28px/1 sans-serif; cursor: pointer; }
.souqi-memory-content { overflow-y: auto; padding: 6px 18px 24px; }
.souqi-memory-content section { padding: 16px 0; border-bottom: 1px solid #e4e9e6; }
.souqi-memory-content h2 { margin: 0 0 10px; font-size: 16px; }
.souqi-memory-empty { margin: 0; color: #637069; }
.souqi-memory-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; min-height: 58px; border-top: 1px solid #edf0ee; }
.souqi-memory-item a { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.souqi-memory-item img { width: 48px; height: 48px; object-fit: contain; }
.souqi-memory-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.souqi-memory-item button { width: 34px; height: 34px; border: 0; background: transparent; color: #637069; font: 400 24px/1 sans-serif; cursor: pointer; }
.souqi-memory-open { overflow: hidden; }
.souqi-favorite-product { min-height: 40px; margin: 8px 0 2px; padding: 0 12px; border: 1px solid #aebbb4; border-radius: 6px; background: #fff; color: #17221d; font: 700 13px/1 'IBM Plex Sans Arabic', sans-serif; cursor: pointer; }
.souqi-favorite-product.is-selected { border-color: #167c53; background: #e8f5ef; color: #0f6845; }
.souqi-memory-button:focus-visible, .souqi-memory-panel button:focus-visible, .souqi-favorite-product:focus-visible { outline: 3px solid #d6a94f; outline-offset: 2px; }
@media (max-width: 600px) { .souqi-memory-button > span:nth-child(2) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .souqi-memory-button { width: 42px; justify-content: center; padding: 0; } }
