:root {
  --mcc-ink: #172226;
  --mcc-navy: #0d2b34;
  --mcc-gold: #d5a84c;
  --mcc-sand: #f7f3ea;
  --mcc-white: #ffffff;
  --mcc-muted: #637178;
}

.mcc-ai-root {
  position: fixed;
  z-index: 999999;
  right: 20px;
  bottom: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mcc-ai,
.mcc-ai * {
  box-sizing: border-box;
}

.mcc-ai button,
.mcc-ai input,
.mcc-ai textarea,
.mcc-ai select {
  font: inherit;
}

.mcc-ai__launcher {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: var(--mcc-navy);
  color: var(--mcc-white);
  box-shadow: 0 12px 32px rgba(13, 43, 52, 0.28);
  font-weight: 750;
  cursor: pointer;
}

.mcc-ai__launcher:focus-visible,
.mcc-ai button:focus-visible,
.mcc-ai a:focus-visible,
.mcc-ai input:focus-visible,
.mcc-ai textarea:focus-visible,
.mcc-ai select:focus-visible {
  outline: 3px solid var(--mcc-gold);
  outline-offset: 2px;
}

.mcc-ai__panel {
  width: min(390px, calc(100vw - 24px));
  max-height: min(720px, calc(100vh - 40px));
  margin-bottom: 12px;
  overflow: hidden auto;
  border: 1px solid rgba(23, 34, 38, 0.12);
  border-radius: 20px;
  background: var(--mcc-white);
  box-shadow: 0 20px 60px rgba(13, 43, 52, 0.24);
  color: var(--mcc-ink);
}

.mcc-ai--inline .mcc-ai__panel {
  width: 100%;
  max-width: 760px;
  max-height: none;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(13, 43, 52, 0.12);
}

.mcc-ai__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--mcc-navy);
  color: var(--mcc-white);
}

.mcc-ai__header strong,
.mcc-ai__header span {
  display: block;
}

.mcc-ai__header span {
  margin-top: 2px;
  color: #d7e4e6;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mcc-ai__close {
  border: 0;
  background: transparent;
  color: var(--mcc-white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mcc-ai__disclosure {
  padding: 10px 16px;
  background: var(--mcc-sand);
  color: #48585e;
  font-size: 12px;
  line-height: 1.45;
}

.mcc-ai__messages {
  min-height: 210px;
  max-height: 330px;
  overflow-y: auto;
  padding: 16px;
}

.mcc-ai__message {
  width: fit-content;
  max-width: 86%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.mcc-ai__message--assistant {
  border-bottom-left-radius: 4px;
  background: #eef3f3;
}

.mcc-ai__message--user {
  margin-left: auto;
  border-bottom-right-radius: 4px;
  background: var(--mcc-navy);
  color: var(--mcc-white);
}

.mcc-ai__message--status {
  color: var(--mcc-muted);
  font-size: 13px;
}

.mcc-ai__chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e7ecec;
}

.mcc-ai textarea,
.mcc-ai input,
.mcc-ai select {
  width: 100%;
  border: 1px solid #bdc9cc;
  border-radius: 10px;
  padding: 10px 11px;
  background: var(--mcc-white);
  color: var(--mcc-ink);
}

.mcc-ai__chat-form textarea {
  min-height: 48px;
  resize: vertical;
}

.mcc-ai__chat-form button,
.mcc-ai__handoff button[type="submit"] {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--mcc-gold);
  color: #172226;
  font-weight: 800;
  cursor: pointer;
}

.mcc-ai button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.mcc-ai__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px 16px;
}

.mcc-ai__actions button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--mcc-navy);
  font-weight: 750;
  text-decoration: underline;
  cursor: pointer;
}

.mcc-ai__actions a {
  color: var(--mcc-navy);
  font-weight: 750;
}

.mcc-ai__handoff {
  padding: 18px 16px;
  border-top: 1px solid #e7ecec;
  background: #fbfcfc;
}

.mcc-ai__handoff h3 {
  margin: 0 0 4px;
}

.mcc-ai__handoff p {
  margin: 0 0 14px;
  color: var(--mcc-muted);
  font-size: 13px;
}

.mcc-ai__handoff label {
  display: block;
  margin: 0 0 11px;
  font-size: 13px;
  font-weight: 700;
}

.mcc-ai__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mcc-ai__consent {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px;
  font-weight: 500 !important;
  line-height: 1.4;
}

.mcc-ai__consent input {
  width: auto;
  margin-top: 2px;
}

.mcc-ai__handoff-status {
  margin-top: 10px;
  color: var(--mcc-navy);
  font-size: 13px;
  line-height: 1.4;
}

.mcc-ai__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.mcc-ai__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 520px) {
  .mcc-ai-root {
    right: 12px;
    bottom: 12px;
  }

  .mcc-ai__panel {
    max-height: calc(100vh - 24px);
  }

  .mcc-ai__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mcc-ai *,
  .mcc-ai *::before,
  .mcc-ai *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
