/* Fonts are served by this server (the page's security policy allows no other source). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/cairo-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/cairo-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/bricolage-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Palette of the Accez website. The website tells the widget which theme it is showing; until then the device setting decides. */
:root {
  --brand: #1C7AAD;
  --brand-hover: #1A74A6;
  --brand-line: #319FD4;
  --primary: #102634;
  --primary-hover: #1E4A63;
  --primary-outline: transparent;
  --page: #F6F8FB;
  --panel: #FFFFFF;
  --heading: #0B1A26;
  --text: #1C2B38;
  --mute: #4E5D6C;
  --line: rgba(16, 38, 52, 0.10);
  --field-line: rgba(16, 38, 52, 0.22);
  --accent: #102634;
  --tint: rgba(16, 38, 52, 0.07);
  --danger: #B42318;
  --shadow: 0 12px 40px rgba(9, 19, 28, 0.28);
  color-scheme: light;
  font-family: Inter, Cairo, system-ui, -apple-system, "Segoe UI", Roboto, "Geeza Pro", Tahoma, sans-serif;
}
:root[data-theme="dark"] {
  --page: #09131C;
  --panel: #0D1723;
  --heading: #FFFFFF;
  --text: #F2F5F8;
  --mute: #95A3B2;
  --line: rgba(255, 255, 255, 0.08);
  --field-line: rgba(255, 255, 255, 0.18);
  --accent: #8AAFC7;
  --primary-outline: #50697A;
  --tint: rgba(138, 175, 199, 0.12);
  --danger: #F97066;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: transparent; color: var(--text); font-size: 16px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button, input, select, textarea { font: inherit; }

.app { position: fixed; inset: 0; }

.toggle {
  position: absolute; right: 18px; bottom: 18px; width: 58px; height: 58px; border: 1px solid var(--primary-outline); border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 22px rgba(16, 38, 52, 0.45); transition: transform 0.15s ease, background 0.15s ease;
}
.toggle:hover { background: var(--primary-hover); transform: scale(1.05); }
.toggle:focus-visible, .icon-btn:focus-visible, .send:focus-visible, .chip:focus-visible { outline: 3px solid var(--brand-line); outline-offset: 2px; }

.panel {
  position: absolute; top: 8px; left: 8px; right: 8px; bottom: 88px; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
}
.head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, #1A74A6 0%, #1C7AAD 100%); border-bottom: 2px solid var(--brand-line); color: #fff; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: #0b1b33; border: 2px solid rgba(255, 255, 255, 0.9); overflow: hidden; flex: none; box-shadow: 0 2px 8px rgba(2, 6, 23, 0.35); }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.who { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.who .name { display: flex; align-items: center; gap: 6px; }
.who strong { font-family: "Bricolage Grotesque", Inter, Cairo, system-ui, sans-serif; font-weight: 400; font-size: 19px; letter-spacing: 0.1px; }
.tick { flex: none; filter: drop-shadow(0 1px 2px rgba(2, 6, 23, 0.3)); }
.who span { display: flex; align-items: center; gap: 6px; font-size: 13.5px; opacity: 0.92; }
.who .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }
.who b { font-weight: 500; }
.icon-btn { background: transparent; border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.15); }

.log { background: var(--page); flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 18px; line-height: 1.45; font-size: 15.5px; overflow-wrap: anywhere; }
.msg p { margin: 0; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: 8px; }
.msg ul { margin: 0; padding-left: 20px; }
.msg a { color: inherit; text-decoration: underline; }
.msg-bot { align-self: flex-start; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-top-left-radius: 6px; }
.msg-user { align-self: flex-end; background: var(--primary); color: #fff; border: 1px solid var(--primary-outline); border-top-right-radius: 6px; }
.msg-note { align-self: center; color: var(--mute); font-size: 13px; background: none; padding: 0; }

.typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; border-top-left-radius: 6px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: blink 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 10px; background: var(--page); }
.chips:empty { display: none; }
.chip { border: 1px solid var(--brand-line); background: var(--panel); color: var(--accent); padding: 8px 14px; border-radius: 999px; font-size: 14px; cursor: pointer; }
.chip:hover { background: var(--tint); }

.composer { display: flex; gap: 10px; align-items: center; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.composer input { flex: 1; min-width: 0; border: 1.5px solid var(--brand-line); border-radius: 999px; padding: 12px 18px; font-size: 16px; outline: none; color: var(--text); background: var(--page); }
.composer input::placeholder, .lead input::placeholder, .lead textarea::placeholder { color: var(--mute); opacity: 0.85; }
.composer input:focus { box-shadow: 0 0 0 3px rgba(49, 159, 212, 0.28); }
.send { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--primary-outline); background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; }
.send:hover, .lead .submit:hover { background: var(--primary-hover); }
.send:disabled { opacity: 0.5; cursor: not-allowed; }

.lead { align-self: stretch; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 8px; }
.lead label { display: grid; gap: 4px; font-size: 13px; color: var(--mute); }
.lead input, .lead select, .lead textarea { border: 1px solid var(--field-line); border-radius: 10px; padding: 9px 11px; font-size: 15px; color: var(--text); background: var(--page); width: 100%; }
.lead textarea { min-height: 64px; resize: vertical; }
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: 2px solid var(--brand-line); border-color: var(--brand-line); }
.lead .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead .err { color: var(--danger); font-size: 13px; margin: 0; }
.lead .submit { border: 1px solid var(--primary-outline); background: var(--primary); color: #fff; padding: 11px 16px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.lead .submit:disabled { opacity: 0.6; cursor: wait; }
.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead .req { color: var(--danger); font-weight: 600; }

/* The site shows this iframe at 400px wide on desktop and full screen on phones, so width alone cannot tell them apart. */
@media (max-width: 767px) and (pointer: coarse) {
  .panel { inset: 0; border-radius: 0; }
  .app.is-open .toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toggle, .log { transition: none; scroll-behavior: auto; }
  .typing i { animation: none; opacity: 0.6; }
}

/* Right-to-left (Arabic): bubbles and fields flip with the document direction. Only the send arrow needs mirroring. */
[dir="rtl"] .send svg { transform: scaleX(-1); }
[dir="rtl"] .msg ul { padding-left: 0; padding-right: 20px; }

/* Arabic uses Cairo, the website's Arabic font. */
[dir="rtl"] { font-family: Cairo, Inter, "Geeza Pro", Tahoma, system-ui, sans-serif; }
[dir="rtl"] .who strong { font-family: Cairo, "Bricolage Grotesque", system-ui, sans-serif; }
[dir="rtl"] .msg, [dir="rtl"] .chip, [dir="rtl"] .composer input, [dir="rtl"] .lead { font-size: 16px; line-height: 1.6; }
[dir="rtl"] .lead label { font-size: 13.5px; }
.lead .note { margin: 0; font-size: 12px; color: var(--mute); line-height: 1.5; }

[dir="rtl"] .msg-bot { border-top-left-radius: 18px; border-top-right-radius: 6px; }
[dir="rtl"] .msg-user { border-top-right-radius: 18px; border-top-left-radius: 6px; }
