/* Ask SCOOP: robot button above the WhatsApp button, chat panel above both. Hover never turns text blue (house rule). */
.scoop-fab { position: fixed; inset-inline-end: 22px; bottom: 92px; z-index: 61; width: 58px; height: 58px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer; color: #fff; background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  box-shadow: 0 10px 28px rgba(79, 70, 229, .45); transition: transform .18s ease, box-shadow .18s ease; }
.scoop-fab svg { width: 30px; height: 30px; }
.scoop-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 32px rgba(79, 70, 229, .55), 0 0 0 8px rgba(79, 70, 229, .16); }
.scoop-fab:active { transform: scale(.92); }
.scoop-fab::after { content: attr(data-tip); position: absolute; inset-inline-end: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  padding: 6px 12px; background: var(--fg); color: var(--bg); border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.scoop-fab:hover::after, .scoop-fab:focus-visible::after { opacity: 1; }
.scoop__box { position: fixed; inset-inline-end: 22px; bottom: 162px; z-index: 62; inline-size: min(380px, calc(100vw - 32px));
  max-block-size: min(70vh, 560px); display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 18px;
  background: var(--surface, var(--bg)); box-shadow: 0 18px 50px rgba(15, 23, 42, .25); overflow: hidden; }
.scoop__box[hidden] { display: none; }
.scoop__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-weight: 800; border-block-end: 1px solid var(--border); }
.scoop__close { inline-size: 32px; block-size: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.5rem; cursor: pointer; }
.scoop__close:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.scoop__log { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-block-size: 120px; }
.scoop-msg { max-inline-size: 88%; padding: 9px 12px; border-radius: 14px; line-height: 1.5; font-size: .94rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.scoop-msg--me { align-self: flex-end; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; border-end-end-radius: 4px; }
.scoop-msg--bot { align-self: flex-start; background: color-mix(in srgb, var(--fg) 7%, transparent); border-end-start-radius: 4px; }
.scoop-msg--bot.is-note { background: color-mix(in srgb, #f59e0b 14%, transparent); }
.scoop-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 8px; }
.scoop-acts a, .scoop-acts button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: inherit;
  text-decoration: none; font-size: .85rem; font-weight: 700; cursor: pointer; }
.scoop-acts a:hover, .scoop-acts button:hover { opacity: .8; text-decoration: none; color: inherit; }
.scoop-acts input { flex: 1 1 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: inherit; font-size: 16px; }
.scoop-cites { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 8px; }
.scoop-cites a { font-size: .8rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); color: inherit; text-decoration: none; }
.scoop-cites a:hover { opacity: .8; text-decoration: none; color: inherit; }
.scoop__form { display: flex; gap: 8px; padding: 10px; border-block-start: 1px solid var(--border); }
.scoop__input { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 16px; background: var(--bg); color: inherit; max-block-size: 120px; }
.scoop__send { flex: none; inline-size: 40px; block-size: 40px; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); cursor: pointer; display: grid; place-items: center; }
.scoop__send:disabled { opacity: .5; }
.scoop__note { margin: 0; padding: 0 14px 10px; font-size: .78rem; color: var(--text-muted, #64748b); }
.scoop-typing { display: inline-flex; gap: 3px; margin-inline-start: 6px; }
.scoop-typing i { inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; opacity: .4; animation: scoop-dot 1.2s infinite; }
.scoop-typing i:nth-child(2) { animation-delay: .15s; } .scoop-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes scoop-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 600px) { .scoop__box { inset: 8px; inline-size: auto; max-block-size: none; } .scoop-fab::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .scoop-fab, .scoop-typing i { transition: none; animation: none; } }
/* Same floating life as the WhatsApp button (bounce + pulse), in SCOOP's colours; offset so the two never move in step. */
@media (prefers-reduced-motion: no-preference) {
  .scoop-fab { animation: wa-bounce 2.6s ease-in-out .4s infinite, scoop-pulse 2.6s ease-out .4s infinite; }
  .scoop-fab:hover { animation-play-state: paused; }
}
@keyframes scoop-pulse {
  0%   { box-shadow: 0 10px 28px rgba(79, 70, 229, .45), 0 0 0 0 rgba(79, 70, 229, .55); }
  70%  { box-shadow: 0 10px 28px rgba(79, 70, 229, .45), 0 0 0 18px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 10px 28px rgba(79, 70, 229, .45), 0 0 0 0 rgba(79, 70, 229, 0); }
}
@media (max-width: 520px) { .scoop-fab { width: 52px; height: 52px; inset-inline-end: 16px; bottom: 80px; } .scoop-fab svg { width: 26px; height: 26px; } }
/* SCOOP speaks (2026-10-16, Mohammed's pick "Robot speech + wave"): a classic speech bubble pops up ABOVE the robot with
   a pointed tail, and the robot waves while it talks. */
.scoop-cloud { position: fixed; inset-inline-end: 16px; bottom: 166px; z-index: 61; inline-size: max-content; max-inline-size: min(250px, calc(100vw - 40px));
  display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 18px; cursor: pointer;
  background: var(--surface, #fff); color: var(--fg, #0f172a); border: 2px solid #6366f1;
  box-shadow: 0 14px 30px -10px rgba(79, 70, 229, .45);
  opacity: 0; transform: translateY(10px) scale(.6); transform-origin: calc(100% - 30px) 100%; pointer-events: none; }
[dir="rtl"] .scoop-cloud { transform-origin: 30px 100%; }
.scoop-cloud[hidden] { display: none; }
.scoop-cloud.is-in { pointer-events: auto; animation: scoop-pop .55s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.scoop-cloud.is-out { animation: scoop-hide .25s ease forwards; }
@keyframes scoop-pop { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 100% { opacity: 1; transform: none; } }
@keyframes scoop-hide { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px) scale(.85); } }
/* the pointed tail, aimed down at the robot */
.scoop-cloud::after { content: ""; position: absolute; inset-inline-end: 26px; bottom: -10px; inline-size: 16px; block-size: 16px;
  background: inherit; border-right: 2px solid #6366f1; border-bottom: 2px solid #6366f1; border-bottom-right-radius: 4px;
  transform: rotate(45deg); }   /* physical sides on purpose: the same downward pointer in LTR and RTL */
.scoop-cloud__body { display: flex; flex-direction: column; gap: 3px; }
.scoop-cloud__h { font-size: .95rem; font-weight: 800; }
.scoop-cloud__t { font-size: .87rem; line-height: 1.35; color: var(--text-muted, #475569); transition: opacity .25s ease; min-block-size: 1.2em; }
.scoop-cloud__t.is-swap { opacity: 0; }
.scoop-cloud__x { flex: none; inline-size: 22px; block-size: 22px; margin: -6px -6px 0 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--text-muted, #64748b); cursor: pointer; font-size: 1rem; line-height: 1; }
[dir="rtl"] .scoop-cloud__x { margin: -6px 0 0 -6px; }
.scoop-cloud__x:hover { background: color-mix(in srgb, var(--fg, #0f172a) 8%, transparent); }
/* the waving hand on the robot */
.scoop-fab { overflow: visible; }
.scoop-hand { position: absolute; inset-inline-start: -6px; top: -8px; font-size: 20px; line-height: 1; opacity: 0; transform-origin: 70% 80%;
  transition: opacity .2s ease; pointer-events: none; }
.scoop-fab.is-waving .scoop-hand { opacity: 1; animation: scoop-wave 1.6s ease-in-out infinite; }
@keyframes scoop-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(18deg); } 20%, 40% { transform: rotate(-10deg); } }
@media (max-width: 520px) { .scoop-cloud { inset-inline-end: 10px; bottom: 142px; } }
@media (prefers-reduced-motion: reduce) { .scoop-cloud.is-in, .scoop-cloud.is-out { animation: none; opacity: 1; transform: none; } .scoop-fab.is-waving .scoop-hand { animation: none; } }
/* Popular questions (2026-10-16): small cards with an icon, the question and an arrow. */
.scoop-chips { display: flex; flex-direction: column; gap: 8px; margin-block-start: 2px; }
.scoop-chips__h { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted, #64748b); padding-inline-start: 2px; }
.scoop-chip { display: flex; align-items: center; gap: 10px; inline-size: 100%; padding: 10px 12px; border-radius: 12px; cursor: pointer; text-align: start;
  font: inherit; font-size: .9rem; font-weight: 600; color: inherit; background: var(--surface, var(--bg));
  border: 1px solid color-mix(in srgb, #6366f1 22%, var(--border, #e2e8f0)); box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.scoop-chip:hover { transform: translateY(-1px); background: color-mix(in srgb, #6366f1 7%, var(--surface, var(--bg))); box-shadow: 0 6px 16px -8px rgba(79, 70, 229, .45); }
.scoop-chip__i { flex: none; inline-size: 30px; block-size: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(124, 58, 237, .14)); }
.scoop-chip__t { flex: 1; min-inline-size: 0; line-height: 1.3; }
.scoop-chip__go { flex: none; color: #6366f1; font-weight: 800; transition: transform .15s ease; }
.scoop-chip:hover .scoop-chip__go { transform: translateX(3px); }
[dir="rtl"] .scoop-chip__go { transform: scaleX(-1); }
[dir="rtl"] .scoop-chip:hover .scoop-chip__go { transform: scaleX(-1) translateX(3px); }
/* rating under an answer */
.scoop-rate { display: flex; gap: 6px; margin-block-start: 8px; font-size: .82rem; color: var(--text-muted, #64748b); }
.scoop-rate button { border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 2px 9px; cursor: pointer; font-size: .9rem; }
.scoop-rate button:hover { opacity: .8; }
