.mk-concierge {
  --mkc-ink: #111111;
  --mkc-paper: #ffffff;
  --mkc-line: rgba(17, 17, 17, 0.14);
  --mkc-muted: #686868;
  --mkc-gold: #e8c840;
  --mkc-teal: #0f766e;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.mk-concierge,
.mk-concierge * {
  box-sizing: border-box;
}

.mk-concierge__fab {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.75rem 0.42rem 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 760;
}

.mk-concierge__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--mkc-gold);
  color: #111111;
  font-size: 0.7rem;
  font-weight: 850;
}

.mk-concierge__panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(360px, calc(100vw - 24px));
  max-height: min(680px, calc(100vh - 102px));
  display: grid;
  grid-template-rows: auto minmax(160px, 1fr) auto auto;
  border: 1px solid var(--mkc-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--mkc-ink);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.mk-concierge__panel[hidden] {
  display: none;
}

.mk-concierge__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--mkc-line);
}

.mk-concierge__title {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 820;
}

.mk-concierge__subtitle {
  display: block;
  margin-top: 0.25rem;
  color: var(--mkc-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.mk-concierge__close {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--mkc-line);
  border-radius: 999px;
  background: #ffffff;
  color: #222222;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.mk-concierge__messages {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mk-concierge__message {
  width: fit-content;
  max-width: 92%;
  padding: 0.72rem 0.8rem;
  border-radius: 8px;
  white-space: pre-wrap;
  font-size: 0.88rem;
  line-height: 1.45;
}

.mk-concierge__message--assistant {
  align-self: flex-start;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: #f6f6f6;
  color: #1d1d1d;
}

.mk-concierge__message--user {
  align-self: flex-end;
  background: #111111;
  color: #ffffff;
}

.mk-concierge__quicks {
  display: flex;
  gap: 0.45rem;
  padding: 0 1rem 0.8rem;
  overflow-x: auto;
}

.mk-concierge__quick {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0.45rem 0.62rem;
  border: 1px solid var(--mkc-line);
  border-radius: 999px;
  background: #ffffff;
  color: #252525;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 720;
}

.mk-concierge__quick:hover,
.mk-concierge__close:hover {
  border-color: rgba(17, 17, 17, 0.36);
}

.mk-concierge__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--mkc-line);
  background: #ffffff;
}

.mk-concierge__input {
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 8px;
  padding: 0.72rem 0.78rem;
  color: #111111;
  font-size: 0.86rem;
  line-height: 1.35;
}

.mk-concierge__input:focus {
  border-color: var(--mkc-gold);
  box-shadow: 0 0 0 3px rgba(232, 200, 64, 0.2);
  outline: none;
}

.mk-concierge__send {
  min-width: 66px;
  border: 0;
  border-radius: 8px;
  background: var(--mkc-teal);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 820;
}

.ai-concierge-inline {
  width: min(100%, 460px);
  display: grid;
  gap: 0.28rem;
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.ai-concierge-inline:hover {
  border-color: rgba(232, 200, 64, 0.62);
}

.ai-concierge-inline__eyebrow {
  color: var(--mkc-gold);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.ai-concierge-inline__text {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  line-height: 1.38;
}

@media (max-width: 640px) {
  .mk-concierge {
    right: 12px;
    bottom: 12px;
  }

  .mk-concierge__panel {
    right: 0;
    bottom: 56px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 92px);
  }

  .mk-concierge__fab {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .mk-concierge__panel {
    animation: mk-concierge-enter 180ms ease-out both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-concierge__panel,
  .mk-concierge__fab,
  .mk-concierge__quick,
  .mk-concierge__send {
    transition: none;
    animation: none;
  }
}

@keyframes mk-concierge-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
