/* MEROVAQ assistant (V20): robot launcher in the bottom corner + prepared-answers chat. Scoped under .mva. */
.mva { --mva-navy: #0d2b63; --mva-blue: #155af2; --mva-aqua: #52d8dd; --mva-ink: #14223b; --mva-soft: #f4f7fc; --mva-line: #e1e8f3;
  position: fixed; right: 18px; bottom: 16px; z-index: 9000; font-family: inherit; color: var(--mva-ink); }
.mva.mva-rtl { right: auto; left: 18px; direction: rtl; }
.mva *, .mva *::before, .mva *::after { box-sizing: border-box; }

/* launcher: the robot standing on a bright round base, name tag underneath */
.mva-launch { position: relative; display: block; width: 84px; height: 104px; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mva-launch::before { content: ''; position: absolute; left: 8px; right: 8px; bottom: 12px; height: 66px; border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #ffffff 0%, #e6f7f9 55%, #bfe9ee 100%); box-shadow: 0 14px 30px rgba(9, 29, 59, .32), 0 0 0 3px #ffffff, 0 0 0 5px var(--mva-aqua); transition: transform .2s ease; }
.mva-launch:hover::before, .mva-launch:focus-visible::before { transform: scale(1.06); }
.mva-launch:focus-visible { outline: none; }
.mva-launch:focus-visible::before { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--mva-blue), 0 14px 30px rgba(9, 29, 59, .35); }
.mva-stage { position: absolute; left: 0; right: 0; bottom: 20px; height: 92px; display: block; pointer-events: none; }
/* the robot is dark by design: lift its exposure and rim so it reads clearly on the light page */
.mva-img, .mva-canvas { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 92px; width: auto; display: block;
  filter: drop-shadow(0 8px 10px rgba(9, 29, 59, .26)); }
.mva-canvas { width: 84px; height: 104px; bottom: -6px; }
.mva-stage.mva-live .mva-img { opacity: 0; }
.mva-tag { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); white-space: nowrap; padding: 4px 11px; border-radius: 999px;
  background: var(--mva-navy); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; border: 2px solid #fff; box-shadow: 0 6px 14px rgba(9, 29, 59, .25); }
.mva-open .mva-tag { opacity: 0; }
@keyframes mva-breathe { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -2px); } }
.mva-stage:not(.mva-live) .mva-img { animation: mva-breathe 3.2s ease-in-out infinite; }
@keyframes mva-hop2 { 0%, 100% { transform: translate(-50%, 0); } 35% { transform: translate(-50%, -9px); } 60% { transform: translate(-50%, 0); } 78% { transform: translate(-50%, -3px); } }
.mva-stage.mva-hop:not(.mva-live) .mva-img { animation: mva-hop2 .7s ease; }

/* hint bubble */
.mva-hint { position: absolute; bottom: 100px; right: 4px; display: flex; align-items: center; gap: 8px; width: max-content; max-width: min(250px, 70vw);
  padding: 10px 10px 10px 15px; border-radius: 16px 16px 4px 16px; background: #fff; color: var(--mva-ink); font-size: 14px; font-weight: 700; line-height: 1.3;
  border: 1px solid var(--mva-line); box-shadow: 0 16px 34px rgba(9, 29, 59, .18); cursor: pointer; }
.mva-rtl .mva-hint { right: auto; left: 4px; border-radius: 16px 16px 16px 4px; padding: 10px 15px 10px 10px; }
.mva-hint[hidden] { display: none; }
.mva-hint-x { border: 0; background: var(--mva-soft); color: var(--mva-ink); width: 26px; height: 26px; border-radius: 50%; font-size: 17px; line-height: 1; cursor: pointer; flex: none; }

/* panel: a clean, professional support chat */
.mva-panel { position: absolute; right: 0; bottom: 118px; width: min(384px, calc(100vw - 32px)); max-height: min(600px, calc(100vh - 150px));
  display: flex; flex-direction: column; background: #fff; border-radius: 22px; border: 1px solid rgba(13, 43, 99, .08);
  box-shadow: 0 30px 70px -12px rgba(9, 29, 59, .38), 0 4px 14px rgba(9, 29, 59, .08); overflow: hidden; }
.mva-rtl .mva-panel { right: auto; left: 0; }
.mva-panel[hidden] { display: none; }
.mva-head { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 16px 14px 15px 16px;
  background: linear-gradient(135deg, #0d2b63 0%, #123f9c 60%, #155af2 100%); color: #fff; }
.mva-head::after { content: ''; position: absolute; right: -50px; top: -70px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(82, 216, 221, .32), transparent 70%); pointer-events: none; }
.mva-avatar { position: relative; z-index: 1; width: 46px; height: 46px; padding: 4px; border-radius: 50%; flex: none; object-fit: contain;
  background: radial-gradient(circle at 50% 30%, #ffffff, #d6f3f6); box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); }
.mva-ht { position: relative; z-index: 1; flex: 1; min-width: 0; }
.mva-ht h2 { margin: 0; font-size: 16.5px; line-height: 1.2; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.mva-ht p { margin: 3px 0 0; font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .82); }
.mva-close { position: relative; z-index: 1; flex: none; width: 34px; height: 34px; border-radius: 11px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s; }
.mva-close:hover { background: rgba(255, 255, 255, .24); }
.mva-close:focus-visible, .mva-chip:focus-visible, .mva-mail:focus-visible, .mva-link:focus-visible { outline: 3px solid var(--mva-aqua); outline-offset: 2px; }
.mva-log { flex: 1; min-height: 180px; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #f6f9fe, #eef4fb); overscroll-behavior: contain; }
.mva-msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.mva-msg p { margin: 0; }
.mva-bot { align-self: flex-start; background: #fff; color: var(--mva-ink); border: 1px solid #e3eaf5; border-end-start-radius: 5px; box-shadow: 0 1px 2px rgba(9, 29, 59, .05), 0 8px 18px rgba(9, 29, 59, .06); }
.mva-me { align-self: flex-end; background: linear-gradient(135deg, #155af2, #0d4fd6); color: #fff; border-end-end-radius: 5px; font-weight: 700; box-shadow: 0 8px 18px rgba(21, 90, 242, .25); }
.mva-typing p { letter-spacing: .2em; color: #7a879b; }
.mva-link { display: inline-block; margin-top: 8px; color: var(--mva-blue); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* questions: a list of rows with an arrow, not floating pills */
.mva-chips { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: #fff; border-top: 1px solid var(--mva-line); }
.mva-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px 10px 14px; border: 1px solid #d6e2f3; border-radius: 14px;
  background: #fff; color: var(--mva-navy); font: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; text-align: start; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.mva-chip::after { content: '→'; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #eaf2ff; color: var(--mva-blue); font-size: 14px; font-weight: 800; transition: background .2s, color .2s; }
.mva-rtl .mva-chip { text-align: right; }
.mva-rtl .mva-chip::after { content: '←'; }
.mva-chip:hover { border-color: var(--mva-blue); background: #f7faff; box-shadow: 0 6px 16px rgba(21, 90, 242, .12); }
.mva-chip:hover::after { background: var(--mva-blue); color: #fff; }
.mva-more { justify-content: center; border-style: dashed; color: #4a5b74; font-weight: 700; }
.mva-more::after { content: none; }

/* footer: the way to write to a person */
.mva-foot { padding: 12px 14px 14px; background: #f6f9fe; border-top: 1px solid var(--mva-line); }
.mva-note { margin: 0 0 10px; font-size: 12px; line-height: 1.45; color: #5b6a80; text-align: center; }
.mva-mail { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #155af2, #0d2b63);
  color: #fff; font-weight: 800; font-size: 14.5px; text-decoration: none; box-shadow: 0 10px 22px rgba(21, 90, 242, .28); transition: transform .2s, box-shadow .2s; }
.mva-mail::before { content: '✉'; font-size: 16px; }
.mva-mail:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(21, 90, 242, .34); }

@media (max-width: 760px) {
  .mva { right: 10px; bottom: 10px; }
  .mva.mva-rtl { left: 10px; }
  .mva-launch { width: 68px; height: 86px; }
  .mva-launch::before { left: 6px; right: 6px; height: 54px; bottom: 10px; }
  .mva-stage { height: 76px; bottom: 16px; }
  .mva-img { height: 76px; }
  .mva-tag { font-size: 10.5px; padding: 3px 8px; }
  .mva-hint { bottom: 84px; }
  .mva-panel { position: fixed; left: 8px; right: 8px; width: auto; bottom: 102px; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); border-radius: 20px; }
  .mva-rtl .mva-panel { left: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .mva-stage .mva-img, .mva-stage.mva-hop .mva-img { animation: none !important; }
  .mva-launch::before, .mva-chip, .mva-mail { transition: none; }
}
@media print { .mva { display: none; } }
