.muv-assistant-root {
  -webkit-font-smoothing: antialiased;
  color: var(--ink, #1A1714);
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-weight: 300;
  line-height: 1.65;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 260;
}

.muv-assistant-toggle {
  align-items: center;
  background: var(--ink, #1A1714);
  border: 1px solid rgba(26, 23, 20, 0.08);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(26, 23, 20, 0.18);
  color: var(--cream, #F5F1EA);
  display: inline-flex;
  gap: 10px;
  min-height: 58px;
  padding: 0 18px;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.muv-assistant-toggle:hover {
  background: var(--ember, #D4522A);
  box-shadow: 0 20px 44px rgba(212, 82, 42, 0.24);
  transform: translateY(-1px);
}

.muv-assistant-toggle:focus-visible,
.muv-assistant-send:focus-visible,
.muv-assistant-chip:focus-visible,
.muv-assistant-input:focus-visible,
.muv-assistant-close:focus-visible {
  outline: 2px solid var(--ember, #D4522A);
  outline-offset: 2px;
}

.muv-assistant-toggle-icon {
  align-items: center;
  background: rgba(245, 241, 234, 0.14);
  border-radius: 999px;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.muv-assistant-toggle-label {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.muv-assistant-toggle-title {
  font-size: 14px;
  font-weight: 400;
}

.muv-assistant-toggle-subtitle {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  opacity: 0.72;
  text-transform: uppercase;
}

.muv-assistant-panel {
  background: rgba(245, 241, 234, 0.97);
  border: 1px solid rgba(26, 23, 20, 0.1);
  border-radius: 18px;
  bottom: 76px;
  box-shadow: 0 28px 80px rgba(26, 23, 20, 0.22);
  display: flex;
  flex-direction: column;
  max-height: min(72vh, 640px);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
  width: min(390px, calc(100vw - 32px));
}

.muv-assistant-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.muv-assistant-header {
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(43, 74, 60, 0.12), rgba(212, 82, 42, 0.12));
  border-bottom: 1px solid rgba(26, 23, 20, 0.08);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 18px 18px 16px;
}

.muv-assistant-header-copy {
  min-width: 0;
}

.muv-assistant-header-title {
  color: var(--ink, #1A1714);
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.muv-assistant-header-text {
  color: rgba(26, 23, 20, 0.78);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
}

.muv-assistant-close {
  align-items: center;
  background: rgba(26, 23, 20, 0.06);
  border-radius: 999px;
  color: var(--ink, #1A1714);
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.muv-assistant-messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 16px 16px 8px;
}

.muv-assistant-message {
  display: flex;
}

.muv-assistant-message.is-user {
  justify-content: flex-end;
}

.muv-assistant-bubble {
  border-radius: 16px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  max-width: 88%;
  padding: 12px 14px;
  white-space: pre-wrap;
}

.muv-assistant-message.is-assistant .muv-assistant-bubble {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 23, 20, 0.08);
  color: var(--ink, #1A1714);
}

.muv-assistant-message.is-user .muv-assistant-bubble {
  background: var(--ink, #1A1714);
  color: var(--cream, #F5F1EA);
  font-weight: 400;
}

.muv-assistant-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px 0;
}

.muv-assistant-chip {
  background: rgba(26, 23, 20, 0.05);
  border: 1px solid rgba(26, 23, 20, 0.08);
  border-radius: 999px;
  color: rgba(26, 23, 20, 0.86);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  padding: 9px 12px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.muv-assistant-chip:hover {
  background: rgba(212, 82, 42, 0.08);
  border-color: rgba(212, 82, 42, 0.18);
  color: var(--ink, #1A1714);
}

.muv-assistant-form {
  border-top: 1px solid rgba(26, 23, 20, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
}

.muv-assistant-input-row {
  display: flex;
  gap: 10px;
}

.muv-assistant-input {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 23, 20, 0.12);
  border-radius: 14px;
  color: var(--ink, #1A1714);
  flex: 1 1 auto;
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  min-height: 46px;
  padding: 0 14px;
}

.muv-assistant-send {
  background: var(--ember, #D4522A);
  border-radius: 14px;
  color: #fff;
  flex: 0 0 auto;
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  min-height: 46px;
  padding: 0 16px;
  transition: background 160ms ease, transform 160ms ease;
}

.muv-assistant-send:hover {
  background: var(--ember-2, #B8431E);
}

.muv-assistant-send:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.muv-assistant-note {
  color: rgba(26, 23, 20, 0.62);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

.muv-assistant-typing {
  align-items: center;
  color: rgba(26, 23, 20, 0.62);
  display: none;
  font-size: 12px;
  font-weight: 400;
  gap: 8px;
  padding: 0 16px 10px;
}

.muv-assistant-typing.is-visible {
  display: flex;
}

.muv-assistant-typing-dots {
  display: inline-flex;
  gap: 4px;
}

.muv-assistant-typing-dots span {
  animation: muvAssistantBounce 900ms infinite ease-in-out;
  background: rgba(26, 23, 20, 0.48);
  border-radius: 999px;
  display: inline-block;
  height: 6px;
  width: 6px;
}

.muv-assistant-typing-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.muv-assistant-typing-dots span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes muvAssistantBounce {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 640px) {
  .muv-assistant-root {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }

  .muv-assistant-toggle {
    justify-content: center;
    width: 100%;
  }

  .muv-assistant-panel {
    bottom: 74px;
    left: 0;
    right: 0;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .muv-assistant-toggle,
  .muv-assistant-panel,
  .muv-assistant-send,
  .muv-assistant-chip {
    transition: none;
  }

  .muv-assistant-typing-dots span {
    animation: none;
  }
}
