/* The assistant (#sinora-ai), round two — AX on the Design canvas, the founder's notes
 * of 2026-09-24. Markup: the assistant in tools/sections-v2-markup.mjs; behaviour:
 * sinora-ai.js. The section's frame, headline and questions stay in
 * sinora-sections-v2.css; this is the card, the conversation in it, and chat mode.
 *
 * The concierge's dialog (#snx-chat) is no longer portaled, so none of the widget's
 * own dialog rules (all under .sinora-concierge__overlay--portaled) reach it; every
 * part of it is drawn here. Rules go through :is(#sinora-ai, .sai-full) so that they
 * hold both in the card and in chat mode, and above the redesign layer's
 * `#sinoraSiteContent :is(button, input…)` rules (1,3,0).
 *
 * Motion: the sample's messages glide in (sinora-ai.js), the mark's rim turns only
 * while someone is writing, nothing loops by itself; all of it is off under
 * prefers-reduced-motion. */

@media screen {

/* ─────────────────────────────── the card ─────────────────────────────── */
#sinora-ai .snx-ai__stage { align-self: stretch; justify-content: center; }
#sinora-ai .sai-card {
  position: relative; width: 100%; max-width: 560px; height: clamp(560px, calc(100svh - 200px), 700px);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 26px; background: #111110; border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 70px rgba(0, 0, 0, .45);
  /* the page never anchors its scrolling on a message: a growing conversation must not move it */
  overflow-anchor: none;
}
.sai-head, .sai-fhead { display: flex; align-items: center; gap: 12px; }
.sai-head { flex: none; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .025); }
.sai-who { flex: 1; min-width: 0; }
:is(#sinora-ai, .sai-full) .sai-who p { margin: 0; }
.sai-motto { color: #e6ba5a; font-size: 11px; font-weight: 700; line-height: 1.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snx--tr .sai-motto { font-weight: 600; letter-spacing: .01em; }
.sai-name { color: #f8f6f2; font-family: Inter, system-ui, sans-serif; font-size: 14.5px; font-weight: 700; line-height: 1.35; letter-spacing: .02em; white-space: nowrap; }
.sai-status { display: flex; align-items: center; gap: 6px; color: #a7a39a; font-size: 11.5px; line-height: 1.5; }
.sai-status i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #5be38a; box-shadow: 0 0 6px rgba(91, 227, 138, .55); }

/* the SINORA AI mark: the logo's own S on a dark disc, a gold rim that turns while
   someone is writing, and a glint on its shoulder */
.sai-mark {
  --m: 46px; --s: calc(.0946 * var(--m) / 46px);
  position: relative; flex: none; width: var(--m); height: var(--m); display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(120% 120% at 32% 18%, #2a261e, #0e0d0b 68%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -6px 12px rgba(201, 169, 97, .08), 0 6px 16px rgba(0, 0, 0, .45);
}
.sai-mark--full { --m: 40px; }
.sai-mark::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1.25px; pointer-events: none;
  background: conic-gradient(from 20deg, rgba(240, 222, 176, .95), rgba(201, 169, 97, .28) 22%, rgba(232, 212, 168, .08) 48%, rgba(201, 169, 97, .28) 74%, rgba(240, 222, 176, .95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: saiRim 10s linear infinite paused;
}
.sai-mark::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(201, 169, 97, .16), rgba(201, 169, 97, 0)); }
.sai-spark {
  position: absolute; top: 3px; inset-inline-end: 3px; z-index: 2; width: 7px; height: 7px; pointer-events: none;
  background: radial-gradient(closest-side, #fff3cf, rgba(247, 215, 133, .6) 45%, rgba(247, 215, 133, 0));
  opacity: .35; transform: scale(.75);
  animation: saiSpark 6s ease-in-out infinite paused;
}
:is(#sinora-ai, .sai-full).sai-busy .sai-mark::before, :is(#sinora-ai, .sai-full).sai-busy .sai-spark { animation-play-state: running; }
@keyframes saiRim { to { transform: rotate(360deg); } }
@keyframes saiSpark { 0%, 70%, 100% { opacity: .3; transform: scale(.7); } 80% { opacity: 1; transform: scale(1.15); } }
.sai-s { position: relative; z-index: 1; width: calc(207px * var(--s)); height: calc(296px * var(--s)); overflow: hidden; transform: translate(-.5px, .5px); }
:is(#sinora-ai, .sai-full) .sai-s img { position: absolute; left: calc(-66px * var(--s)); top: calc(-30px * var(--s)); width: calc(1200px * var(--s)); height: calc(370px * var(--s)); max-width: none; }
.sai-s img + img { filter: drop-shadow(0 0 3px rgba(230, 186, 90, .4)); }

/* «چت مود» / «Sohbet modu», and the exit */
:is(#sinora-ai, .sai-full) :is(.sai-mode, .sai-exit) {
  display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 15px; flex: none;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #dedbd3;
  font-family: inherit; font-size: 12.5px; line-height: 1; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color 200ms ease, color 200ms ease, transform 100ms ease-out;
}
:is(#sinora-ai, .sai-full) :is(.sai-mode, .sai-exit):hover { border-color: rgba(230, 186, 90, .45); color: #f8f6f2; }
:is(#sinora-ai, .sai-full) :is(.sai-mode, .sai-exit):active { transform: scale(.96); }
:is(.sai-mode, .sai-exit) svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the line under the card: the assistant is on; the sample's pause control */
#sinora-ai .sai-under { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin: 8px 0 0; color: #8a867d; font-size: 12px; line-height: 1.5; }
.snx--tr .sai-under { letter-spacing: .02em; }
.sai-under > i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #5be38a; box-shadow: 0 0 6px rgba(91, 227, 138, .55); }
#sinora-ai.snx .sai-pause { width: 44px; height: 44px; border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; color: #b9b5ab; }
#sinora-ai.snx .sai-pause[hidden] { display: none; }
.sai-pause svg { width: 13px; height: 13px; }

/* ───────────────── the conversation (the concierge's dialog, kept whole) ───────────────── */
.sai-body, .sai-fbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
:is(#sinora-ai, .sai-full) #snx-chat {
  --tail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M12 0C12 9 7 14 0 16C6 16 10 15 12 13Z'/%3E%3C/svg%3E");
  --spring: linear(0, .0502, .1647, .3042, .4447, .573, .6827, .7723, .8425, .8956, .9344, .9618, .9804, .9925, .9998, 1.0039, 1.0058, 1.0063, 1.006, 1.0053, 1.0044, 1.0035, 1.0027, 1.002, 1.0015, 1);
  position: relative; inset: auto; z-index: auto; flex: 1; min-height: 0; width: auto; height: auto; max-height: none;
  display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: #f4f1ea; opacity: 1; visibility: visible; pointer-events: auto; transition: none;
}
.snx--fa #snx-chat { font-family: IranSans, Tahoma, sans-serif; }
.snx--tr #snx-chat { font-family: Inter, system-ui, sans-serif; }
/* its own title and close button: the card and chat mode carry their own */
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__overlay-header { display: none; }

/* the sample, until the visitor takes over */
:is(#sinora-ai, .sai-full) #snx-chat .sai-demo {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  -webkit-mask: linear-gradient(to bottom, transparent 0, #000 44px); mask: linear-gradient(to bottom, transparent 0, #000 44px);
}
.sai-list { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 12px; }
#sinora-ai.sai-live #snx-chat .sai-demo, .sai-full #snx-chat .sai-demo { display: none; }
#sinora-ai:not(.sai-live) #snx-chat .sinora-concierge__overlay-body { display: none; }

.sai-row { display: flex; flex-direction: column; gap: 3px; max-width: 86%; }
.sai-row--me { align-self: flex-end; align-items: flex-end; }
.sai-row--ai { align-self: flex-start; align-items: flex-start; }
/* the visitor always on the right and SINORA always on the left, in both languages (founder,
   2026-09-24): in Persian, right is the start */
.snx--fa .sai-row--me { align-self: flex-start; align-items: flex-start; }
.snx--fa .sai-row--ai { align-self: flex-end; align-items: flex-end; }
.sai-row__name { padding-inline: 8px; color: #8a867d; font-size: 11px; line-height: 1.4; }
.sai-row--ai + .sai-row--me, .sai-row--me + .sai-row--ai { margin-top: 6px; }

/* one bubble style for the sample and the real conversation: iMessage, in the brand's colours */
:is(.sai-bub, #snx-chat .sinora-concierge__message:not(.sinora-concierge__media)) {
  position: relative; max-width: 100%; padding: 9px 14px; border-radius: 20px; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font-size: 14px; font-weight: 400; line-height: 1.75; text-align: start; overflow-wrap: anywhere;
}
.snx--fa :is(.sai-bub, #snx-chat .sinora-concierge__message) { -webkit-text-stroke: .2px currentColor; }
.snx--tr :is(.sai-bub, #snx-chat .sinora-concierge__message) { font-size: 14.5px; font-weight: 450; line-height: 1.5; letter-spacing: -.005em; }
:is(.sai-row--me .sai-bub, #snx-chat .sinora-concierge__message--user) { background: #2b2925; color: #f4f1ea; }
:is(.sai-row--ai .sai-bub, #snx-chat .sinora-concierge__message--bot:not(.sinora-concierge__media)) { background: linear-gradient(180deg, #d3b878 0%, #c3a262 100%); color: #1b150a; }
/* the tail sits on the speaker's side: the assistant at the start, the visitor at the end */
:is(.sai-bub, #snx-chat .sinora-concierge__message)::before { content: none; display: none; }
:is(.sai-bub:not(.sai-bub--dots), #snx-chat .sinora-concierge__message:not(.sinora-concierge__media))::after {
  content: ""; position: absolute; bottom: 0; width: 12px; height: 16px;
  -webkit-mask: var(--tail) center / 100% 100% no-repeat; mask: var(--tail) center / 100% 100% no-repeat;
}
:is(.sai-row--ai .sai-bub, #snx-chat .sinora-concierge__message--bot)::after { background: #c3a262; }
:is(.sai-row--me .sai-bub, #snx-chat .sinora-concierge__message--user)::after { background: #2b2925; }
:is(.sai-row--ai .sai-bub, #snx-chat .sinora-concierge__message--bot)::after { left: -5px; right: auto; transform: none; }
:is(.sai-row--me .sai-bub, #snx-chat .sinora-concierge__message--user)::after { right: -5px; left: auto; transform: scaleX(-1); }
/* in a run of one speaker's bubbles only the last keeps its tail */
#snx-chat .sinora-concierge__message--bot:has(+ .sinora-concierge__message--bot)::after,
#snx-chat .sinora-concierge__message--user:has(+ .sinora-concierge__message--user)::after { display: none; }
.sai-bub__rest { color: transparent; -webkit-text-stroke-color: transparent; }
.sai-bub--dots { display: flex; gap: 4px; padding: 12px 14px; }
.sai-bub--dots i { width: 6px; height: 6px; border-radius: 50%; background: #a7a39a; animation: saiBob 1.2s ease-in-out infinite; }
.sai-row--ai .sai-bub--dots i { background: #3a2f17; }
.sai-bub--dots i:nth-child(2) { animation-delay: .15s; }
.sai-bub--dots i:nth-child(3) { animation-delay: .3s; }
#sinora-ai.is-paused .sai-bub--dots i { animation-play-state: paused; }
@keyframes saiBob { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* the real conversation: short, it sits by the composer, as in Messages; long, it scrolls */
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__overlay-body {
  flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; background: none; scrollbar-width: thin; scrollbar-color: rgba(230, 186, 90, .3) transparent;
}
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__thread {
  margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 10px; overflow: visible;
}
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__message { max-width: 86%; margin: 0; animation: saiPop 420ms var(--spring) both; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__message--bot { align-self: flex-start; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__message--user { align-self: flex-end; }
:is(#sinora-ai, .sai-full).snx--fa #snx-chat :is(.sinora-concierge__message--bot, .sinora-concierge__media, .sinora-concierge__typing) { align-self: flex-end; }
:is(#sinora-ai, .sai-full).snx--fa #snx-chat .sinora-concierge__message--user { align-self: flex-start; }
#snx-chat .sinora-concierge__message--bot + .sinora-concierge__message--user,
#snx-chat .sinora-concierge__message--user + .sinora-concierge__message--bot { margin-top: 8px; }
#snx-chat .sai-greet { animation: none; }
@keyframes saiPop { 0% { opacity: 0; transform: translateY(8px) scale(.96); } 100% { opacity: 1; transform: none; } }
/* the widget's structured answers: a title, paragraphs, a checklist */
#snx-chat .sinora-concierge__message--bot :is(.sinora-concierge__bubble-title, .sinora-concierge__bubble-body, .sinora-concierge__bubble-text, strong, b, a) { color: #1b150a; }
#snx-chat .sinora-concierge__bubble-title { display: block; margin: 0 0 2px; font-weight: 700; }
#snx-chat .sinora-concierge__bubble-body { margin: 0; }
#snx-chat .sinora-concierge__bubble-body + .sinora-concierge__bubble-body { margin-top: 6px; }
#snx-chat .sinora-concierge__bubble-checklist { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
#snx-chat .sinora-concierge__bubble-checklist li { display: flex; align-items: baseline; gap: 8px; }
#snx-chat .sinora-concierge__bubble-bullet { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #3a2f17; color: transparent; font-size: 0; transform: translateY(-2px); }
#snx-chat .sinora-concierge__media { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; max-width: 86%; padding: 0; background: none; }
#snx-chat .sinora-concierge__media::after { content: none; }
#snx-chat .sinora-concierge__media-img { display: block; max-width: 100%; max-height: 260px; border-radius: 16px; }

/* the assistant is writing: three dots in its own bubble */
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__typing {
  position: relative; align-self: flex-start; display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 40px; min-height: 0; margin: 8px 0 0; padding: 0; border: 0; border-radius: 20px;
  background: linear-gradient(180deg, #d3b878 0%, #c3a262 100%); color: transparent; font-size: 0; line-height: 0;
}
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__typing[hidden] { display: none; }
#snx-chat .sinora-concierge__typing::before { content: none; display: none; }
#snx-chat .sinora-concierge__typing::after {
  content: ""; position: static; width: 30px; height: 7px; margin: 0; border: 0; border-radius: 0; opacity: 1; transform: none;
  background: radial-gradient(circle at 3.5px 50%, #3a2f17 3.5px, transparent 4px) 0 0 / 11.5px 7px repeat-x;
  animation: saiType 1.2s ease-in-out infinite;
}
@keyframes saiType { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* what the widget can still show below the thread: an error, the contact form, the hand-off */
:is(#sinora-ai, .sai-full) #snx-chat :is(.sinora-concierge__error, .sinora-concierge__capture, .sinora-concierge__handoff, .sinora-concierge__handoff-note)[hidden] { display: none; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__error {
  margin: 4px 18px 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(240, 120, 90, .25);
  background: rgba(240, 120, 90, .08); color: #f0b3a4; font-size: 13px; line-height: 1.7;
}
:is(#sinora-ai, .sai-full) #snx-chat :is(.sinora-concierge__capture, .sinora-concierge__handoff) {
  margin: 4px 18px 12px; padding: 14px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .035);
}
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__capture-title { margin: 0 0 10px; color: #e6ba5a; font-size: 13px; font-weight: 700; line-height: 1.5; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__consent { display: flex; align-items: flex-start; gap: 10px; color: #dedbd3; font-size: 13px; line-height: 1.7; cursor: pointer; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__consent a { color: #e6ba5a; text-decoration: underline; text-underline-offset: 3px; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__checkbox { width: 18px; height: 18px; flex: none; margin: 3px 0 0; accent-color: #e6ba5a; }
:is(#sinora-ai, .sai-full) #snx-chat [data-sc-contact-fields] { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
:is(#sinora-ai, .sai-full) #snx-chat [data-sc-contact-fields][hidden] { display: none; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__field { display: flex; flex-direction: column; gap: 4px; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__field label { color: #b9b5ab; font-size: 12px; line-height: 1.5; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__field input {
  height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: #0b0b0a;
  color: #f8f6f2; font: inherit; font-size: 14px; outline: 0;
}
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__field input:focus { border-color: rgba(230, 186, 90, .55); box-shadow: 0 0 0 4px rgba(230, 186, 90, .1); }
:is(#sinora-ai, .sai-full) #snx-chat :is(.sinora-concierge__capture, .sinora-concierge__handoff) .sinora-concierge__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid #f5d28a; background: linear-gradient(115deg, #f7d785, #e6b454 66%, #c38d35); color: #171309;
  font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 1px rgba(255, 233, 175, .4);
}
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__btn:disabled { opacity: .45; cursor: default; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__btn::before, :is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__btn--whatsapp::after { content: none; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__handoff-note { margin: 10px 0 0; color: #a7a39a; font-size: 12.5px; line-height: 1.7; }

/* four of the questions, once the visitor has taken over, until they have asked */
:is(#sinora-ai, .sai-full) #snx-chat .sai-chips { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 16px 10px; }
:is(#sinora-ai, .sai-full) #snx-chat .sai-chips[hidden] { display: none; }
:is(#sinora-ai, .sai-full) #snx-chat :is(.sai-chips button, .sinora-concierge__chip) {
  min-height: 44px; margin: 0; padding: 8px 14px; border-radius: 22px; border: 1px solid rgba(214, 184, 120, .3); background: rgba(214, 184, 120, .06);
  color: #e9e2d2; font-family: inherit !important; font-size: 13px; font-weight: 400; line-height: 1.5; text-align: start; box-shadow: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease, transform 100ms ease-out;
}
:is(#sinora-ai, .sai-full) #snx-chat :is(.sai-chips button, .sinora-concierge__chip):hover:not(:disabled) { border-color: rgba(214, 184, 120, .55); background: rgba(214, 184, 120, .1); color: #f8f6f2; }
:is(#sinora-ai, .sai-full) #snx-chat :is(.sai-chips button, .sinora-concierge__chip):active:not(:disabled) { transform: scale(.97); }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__chip:disabled { opacity: .5; cursor: default; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__chip::after { content: none; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__action--cta { border-color: #f5d28a; background: linear-gradient(115deg, #f7d785, #e6b454 66%, #c38d35); color: #171309; }

/* the composer: the widget's own field and send button */
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__overlay-footer {
  flex: none; margin: 0; padding: 10px 14px 14px; border: 0; border-top: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .02);
}
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__overlay-chips { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; margin: 0 0 8px; padding: 0; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__overlay-chips:empty { display: none; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__composer-row {
  display: flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; padding: 4px; padding-inline-start: 16px;
  border-radius: 24px; border: 1px solid rgba(255, 255, 255, .12); background: #0b0b0a;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__composer-row:focus-within { border-color: rgba(230, 186, 90, .5); box-shadow: 0 0 0 4px rgba(230, 186, 90, .08); }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__input {
  flex: 1 1 auto; min-width: 0; height: auto; min-height: 36px; margin: 0; padding: 6px 0; border: 0; border-radius: 0; outline: 0;
  background: transparent; background-image: none; box-shadow: none; color: #f8f6f2; font-size: 15px; line-height: 1.6; text-align: start;
}
.snx--fa #snx-chat .sinora-concierge__input { font-family: IranSans, Tahoma, sans-serif !important; }
.snx--tr #snx-chat .sinora-concierge__input { font-family: Inter, system-ui, sans-serif !important; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__input::placeholder { color: #8a867d; opacity: 1; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__input:is(:focus, :focus-visible) { outline: 0; box-shadow: none; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__composer-row .sinora-concierge__btn {
  width: 44px; min-width: 44px; height: 44px; min-height: 44px; flex: none; margin: -2px; padding: 4px;
  display: grid; place-items: center; border-radius: 50%; border: 0; box-shadow: none;
  background: rgba(255, 255, 255, .08) content-box; color: #8a867d; font-size: 0; overflow: hidden; cursor: pointer;
  transition: background 250ms ease, color 250ms ease, border-color 250ms ease, transform 100ms ease-out;
}
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__composer-row:has(.sinora-concierge__input:not(:placeholder-shown)) .sinora-concierge__btn:not(:disabled) {
  background: linear-gradient(115deg, #f7d785, #e6b454 66%, #c38d35) content-box; color: #171309;
}
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__composer-row .sinora-concierge__btn::before { content: none; display: none; }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__composer-row .sinora-concierge__btn::after {
  content: ""; width: 18px; height: 18px; margin: 0; background: currentColor; transform: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5m-6 6 6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5m-6 6 6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__composer-row .sinora-concierge__btn:active:not(:disabled) { transform: scale(.94); }
:is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__composer-row .sinora-concierge__btn:disabled { cursor: default; }
#sinora-ai.is-session-limited #snx-chat .sinora-concierge__composer-row, #sinora-ai.is-session-limited .snx-faq__q { opacity: .5; }
/* the local preview says its answers are samples */
:is(#sinora-ai, .sai-full) #snx-chat .sai-note { margin: 8px 0 0; color: #8a867d; font-size: 11.5px; line-height: 1.5; text-align: center; }
:is(#sinora-ai, .sai-full) #snx-chat .sai-note[hidden] { display: none; }

:is(#sinora-ai, .sai-full) :is(.sai-mode, .sai-exit, .sai-chips button, .sinora-concierge__chip, .sinora-concierge__btn, .sinora-concierge__checkbox):focus-visible {
  outline: 2px solid #f5d28a; outline-offset: 3px;
}

/* kept for the widget and the hero: never seen, never tabbed to */
.snx-ai__resting { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ───────────── «چت مود»: the same conversation, the whole screen ───────────── */
.sai-full {
  position: fixed; inset: 0; z-index: 10060; height: 100dvh; display: flex; flex-direction: column;
  background: radial-gradient(60% 40% at 50% 0%, rgba(214, 166, 73, .08), rgba(214, 166, 73, 0)), #090a09;
  color: #f8f6f2; text-align: start; -webkit-font-smoothing: antialiased;
}
.sai-full[hidden] { display: none; }
.sai-full *, .sai-full *::before, .sai-full *::after { box-sizing: border-box; }
.sai-full.snx--fa { font-family: IranSans, Tahoma, sans-serif; }
.sai-full.snx--tr { font-family: Inter, system-ui, sans-serif; }
.sai-fhead {
  flex: none; padding: 14px max(20px, calc((100% - 820px) / 2)); padding-top: max(14px, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.sai-full .sai-fbody { width: 100%; max-width: 820px; margin: 0 auto; }
.sai-full #snx-chat .sinora-concierge__thread { padding: 22px 20px 14px; gap: 10px; }
.sai-full #snx-chat .sinora-concierge__message { max-width: 78%; font-size: 15.5px; padding: 11px 16px; }
.sai-full #snx-chat .sai-chips { padding-inline: 20px; }
.sai-full #snx-chat .sinora-concierge__overlay-footer { padding: 10px 16px max(14px, env(safe-area-inset-bottom)); border-top: 0; background: none; }
.sai-full #snx-chat .sinora-concierge__input { font-size: 16px; }
/* the page under chat mode stays still */
html.sai-locked, html.sai-locked body { overflow: hidden !important; }

/* ─────────────────────────────── sizes ─────────────────────────────── */
@media (max-width: 1199.98px) {
  #sinora-ai .sai-card { height: clamp(540px, calc(100svh - 190px), 680px); }
  /* the floating WhatsApp button would sit on the composer: it steps aside while the
     card is on screen, as it does for the widget's own dialog */
  body.sai-in-view :is(#floating-wa, .whatsapp-float) { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
}
@media (max-width: 1023.98px) {
  #sinora-ai .snx-ai__stage { align-items: center; }
  #sinora-ai .sai-card { max-width: 600px; height: clamp(520px, calc(100svh - 200px), 640px); }
}
@media (max-width: 767.98px) {
  #sinora-ai .snx-ai__stage { align-items: stretch; }
  #sinora-ai .sai-card { max-width: none; height: clamp(480px, calc(100svh - 220px), 600px); }
  /* the button keeps its name as its label; the icon is enough beside the name */
  #sinora-ai .sai-mode { width: 44px; height: 44px; padding: 0; justify-content: center; }
  #sinora-ai .sai-mode span { display: none; }
  #sinora-ai .sai-mode svg { width: 16px; height: 16px; }
  .sai-head { padding: 12px 14px; }
  .sai-list, :is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__thread { padding-inline: 14px; }
  :is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__overlay-footer { padding-inline: 12px; }
  :is(#sinora-ai, .sai-full) #snx-chat .sai-chips { padding-inline: 12px; }
  .sai-fhead { padding-inline: 14px; }
  .sai-full #snx-chat .sinora-concierge__message { max-width: 86%; font-size: 15px; }
  .sai-full .sai-exit span { display: inline; }
}
@media (max-width: 374.98px) {
  .sai-motto { font-size: 10.5px; }
  .sai-name { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .sai-mark::before, .sai-spark, .sai-bub--dots i, #snx-chat .sinora-concierge__typing::after { animation: none; }
  :is(#sinora-ai, .sai-full) #snx-chat .sinora-concierge__message { animation: none; }
  #sinora-ai.snx .sai-pause { display: none; }
}
@media (prefers-contrast: more) {
  #sinora-ai .sai-card { border-color: rgba(255, 255, 255, .45); }
  .sai-status, .sai-row__name, .sai-under, :is(#sinora-ai, .sai-full) #snx-chat .sai-note { color: #dedbd3; }
}

}
