/* ERProxenos · Εξυπηρέτηση (web/support.js): φούσκα κάτω δεξιά και παράθυρο συζήτησης, πάνω από κάθε σελίδα.
   Κάτω από τα modal (z-index 20/30), πάνω από την κάτω μπάρα του κινητού (15). Τα μηνύματα χρησιμοποιούν τα .cmsg του Βοηθού. */
.sup-root { position: fixed; right: 24px; bottom: 24px; z-index: 18; display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  --sec: var(--brand); --chat-me-ink: var(--brand-ink); --fill: var(--chip); }
.sup-bubble {
  display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-lg);
  transition: transform .12s var(--ease-out), background .15s;
}
.sup-bubble:hover { background: var(--brand-press); }
.sup-bubble:active { transform: scale(.94); }
.sup-bubble:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 3px; }
/* Στον Βοηθό AI η φούσκα θα σκέπαζε το κουμπί αποστολής: φαίνεται μόνο αν είναι ήδη ανοιχτό το παράθυρο. */
:root[data-section="assistant"] .sup-root:not(.open) { display: none; }

.sup-panel {
  order: -1; display: flex; flex-direction: column; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px));
  background: var(--panel); border-radius: 16px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); overflow: hidden;
}
.sup-panel[hidden] { display: none; }
.sup-panel.in { animation: sup-in .22s var(--ease-out) both; transform-origin: bottom right; }
@keyframes sup-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.sup-head { display: flex; align-items: center; gap: 4px; padding: 14px 10px 12px 18px; border-bottom: 1px solid var(--line); }
.sup-head > div { flex: 1; min-width: 0; }
.sup-head b { font-size: 15px; letter-spacing: -.01em; }
.sup-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.sup-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.sup-icon:hover { background: var(--hover); color: var(--ink); }

.sup-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.sup-log .cmsg.bot .cbubble { font-size: 14px; }
.sup-log .cmsg.me .cbubble { font-size: 14px; max-width: 86%; }
.sup-log .cbody { min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sup-log .cstatus[hidden] { display: none; }

.sup-welcome p { margin: 0 0 14px; color: var(--muted); line-height: 1.5; font-size: 14px; }
.sup-tips { display: flex; flex-direction: column; gap: 8px; }
.sup-tip { text-align: left; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.sup-tip:hover { border-color: var(--border-strong); background: var(--hover); }

.sup-card { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; font-size: 13.5px; }
.sup-card-t { font-weight: 600; }
.sup-diff { overflow-wrap: anywhere; }
.sup-why { font-size: 13px; }
.sup-card .actions { margin: 4px 0 0; gap: 8px; }
.sup-result:empty { display: none; }

.sup-foot { padding: 10px 12px 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.sup-field { display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--border-strong); border-radius: 14px; padding: 6px 6px 6px 12px; background: var(--panel); }
.sup-field:focus-within { border-color: var(--brand); }
.sup-field textarea, .sup-field textarea:focus { box-shadow: none; border-radius: 0; }
.sup-field textarea { flex: 1; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font: inherit; font-size: 14.5px; line-height: 1.45; padding: 6px 0; max-height: 140px; }
.sup-send { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: var(--brand); color: var(--brand-ink); cursor: pointer; }
.sup-send:disabled { opacity: .45; cursor: default; }
.sup-human { justify-self: center; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--brand); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.sup-human:hover { background: var(--hover); }
/* «Μίλα με άνθρωπο» και τηλέφωνα της Softnet σε μία γραμμή· στο στενό παράθυρο σπάνε σε δύο. */
.sup-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 4px; row-gap: 2px; }
.sup-call { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.sup-call a { color: var(--brand); text-decoration: none; font-variant-numeric: tabular-nums; }
.sup-call a:hover { text-decoration: underline; }
.sup-charge { flex-basis: 100%; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.4; }

/* Κινητό: πάνω από την κάτω μπάρα· ανοιχτό = όλη η οθόνη. */
@media (max-width: 860px) {
  .sup-root { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sup-bubble { width: 52px; height: 52px; }
  .sup-root.open { inset: 0; right: 0; bottom: 0; z-index: 19; }
  .sup-root.open .sup-bubble { display: none; }
  .sup-root.open .sup-panel { width: 100vw; height: 100dvh; border-radius: 0; box-shadow: none; padding-bottom: env(safe-area-inset-bottom); }
  .sup-panel.in { transform-origin: bottom center; }
}
@media (prefers-reduced-motion: reduce) { .sup-panel.in { animation: none; } .sup-bubble { transition: none; } }
