#move-ing-assistent-root {
  --mia-blue: #3659a4;
  --mia-aqua: #73c8d5;
  --mia-ink: #31343b;
  --mia-soft: #eef8fa;
  font-family: Lato, Arial, sans-serif;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999999;
}

#move-ing-assistent-root * { box-sizing: border-box; }

.mia-launcher {
  align-items: center;
  background: var(--mia-blue);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(33, 56, 105, .25);
  color: #fff;
  cursor: pointer;
  display: flex;
  font: 700 16px/1 Lato, Arial, sans-serif;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px 0 16px;
}

.mia-launcher:hover, .mia-launcher:focus-visible { background: #284681; color: #fff; }
.mia-launcher:focus-visible, .mia-close:focus-visible, .mia-quick button:focus-visible, .mia-form input:focus-visible, .mia-form button:focus-visible { outline: 3px solid #f4cb45; outline-offset: 2px; }
.mia-launcher svg { fill: currentColor; height: 26px; width: 26px; }

.mia-panel {
  background: #fff;
  border: 1px solid rgba(54, 89, 164, .14);
  border-radius: 22px;
  bottom: 70px;
  box-shadow: 0 20px 55px rgba(25, 40, 75, .22);
  display: flex;
  flex-direction: column;
  max-height: min(650px, calc(100vh - 110px));
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .18s ease, transform .18s ease;
  visibility: hidden;
  width: min(390px, calc(100vw - 28px));
}

.mia-open .mia-panel { opacity: 1; pointer-events: auto; transform: none; visibility: visible; }
.mia-open .mia-launcher { visibility: hidden; }

.mia-header {
  align-items: center;
  background: linear-gradient(135deg, var(--mia-blue), #4773be);
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px 16px 14px 20px;
}

.mia-header div { display: flex; flex-direction: column; }
.mia-header strong { font-family: Jura, Lato, sans-serif; font-size: 20px; line-height: 1.2; }
.mia-header span { font-size: 14px; opacity: .9; }
.mia-close { background: transparent; border: 0; border-radius: 50%; color: #fff; cursor: pointer; font: 300 32px/1 Arial, sans-serif; height: 42px; padding: 0; width: 42px; }
.mia-close:hover { background: rgba(255,255,255,.14); color: #fff; }

.mia-messages { background: linear-gradient(#f8fbfd, #fff); flex: 1 1 auto; min-height: 210px; overflow-y: auto; padding: 18px 16px 8px; }
.mia-message { border-radius: 16px; clear: both; font-size: 15px; line-height: 1.48; margin: 0 0 12px; max-width: 88%; padding: 11px 13px; }
.mia-message a { color: var(--mia-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.mia-bot { background: var(--mia-soft); border-bottom-left-radius: 5px; color: var(--mia-ink); float: left; }
.mia-user { background: var(--mia-blue); border-bottom-right-radius: 5px; color: #fff; float: right; }

.mia-quick { background: #fff; display: flex; gap: 7px; overflow-x: auto; padding: 8px 14px 10px; scrollbar-width: thin; }
.mia-quick button { background: #fff; border: 1px solid var(--mia-aqua); border-radius: 999px; color: var(--mia-blue); cursor: pointer; flex: 0 0 auto; font: 700 13px/1.2 Lato, Arial, sans-serif; padding: 8px 11px; }
.mia-quick button:hover { background: var(--mia-soft); }

.mia-form { align-items: center; border-top: 1px solid #e7ebf2; display: flex; gap: 8px; padding: 10px 12px 6px; }
.mia-form input { background: #fff; border: 1px solid #cfd7e6; border-radius: 999px; color: var(--mia-ink); flex: 1; font: 400 16px/1.3 Lato, Arial, sans-serif; min-width: 0; padding: 11px 14px; }
.mia-form input:focus { border-color: var(--mia-blue); outline: 0; }
.mia-form button { align-items: center; background: var(--mia-aqua); border: 0; border-radius: 50%; color: #17365d; cursor: pointer; display: flex; flex: 0 0 44px; font: 700 22px/1 Arial, sans-serif; height: 44px; justify-content: center; padding: 0; }
.mia-form button:hover { background: #59b8c7; color: #17365d; }
.mia-privacy { color: #667085; font-size: 12px; line-height: 1.35; margin: 0; padding: 2px 16px 12px; text-align: center; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; width: 1px; }

@media (max-width: 520px) {
  #move-ing-assistent-root { bottom: 14px; right: 14px; }
  .mia-launcher-label { display: none; }
  .mia-launcher { height: 58px; justify-content: center; padding: 0; width: 58px; }
  .mia-panel { bottom: 0; max-height: calc(100vh - 28px); position: fixed; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .mia-panel { transition: none; }
}

