.mca-root {
  --mca-navy: #123047;
  --mca-blue: #246b8e;
  --mca-mint: #dff4ee;
  --mca-ink: #17313f;
  --mca-border: #d8e1e6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
}

.mca-launcher {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--mca-navy);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(18, 48, 71, .28);
  font-size: 25px;
}

.mca-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(390px, calc(100vw - 28px));
  height: min(640px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid var(--mca-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(18, 48, 71, .25);
}

.mca-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px;
  background: var(--mca-navy);
  color: #fff;
}

.mca-header strong,
.mca-header span { display: block; }
.mca-header strong { font-size: 16px; }
.mca-header span { margin-top: 2px; font-size: 12px; opacity: .82; }

.mca-close {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.mca-messages {
  box-sizing: border-box;
  height: calc(100% - 132px);
  overflow-y: auto;
  padding: 18px;
  background: #f7fafb;
}

.mca-message-group { margin-bottom: 16px; }
.mca-message {
  box-sizing: border-box;
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 14px;
  color: var(--mca-ink);
  font-size: 14px;
  line-height: 1.48;
  white-space: pre-line;
}
.mca-bot { background: #fff; border: 1px solid var(--mca-border); }
.mca-user { margin: 0 0 16px auto; background: var(--mca-blue); color: #fff; }

.mca-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.mca-action {
  display: inline-block;
  border: 1px solid var(--mca-blue);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--mca-blue);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
}
.mca-action:hover,
.mca-action:focus { background: var(--mca-mint); color: var(--mca-navy); }

.mca-question-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--mca-border);
  background: #fff;
}
.mca-question-form input {
  min-width: 0;
  border: 1px solid var(--mca-border);
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 14px;
}
.mca-question-form button,
.mca-submit-lead {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--mca-navy);
  color: #fff;
  cursor: pointer;
}

.mca-lead-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--mca-border);
  border-radius: 14px;
  background: #fff;
  color: var(--mca-ink);
  font-size: 12px;
}
.mca-lead-form label { display: grid; gap: 4px; }
.mca-lead-form input,
.mca-lead-form textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--mca-border);
  border-radius: 8px;
  padding: 8px;
  font: inherit;
}
.mca-lead-form textarea { min-height: 74px; resize: vertical; }
.mca-lead-form .mca-check { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 7px; }
.mca-lead-form .mca-check input { width: auto; margin-top: 2px; }
.mca-form-status { margin: 0; color: #8a2d24; }
.mca-honeypot { position: absolute !important; left: -10000px !important; }

.screen-reader-text {
  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) {
  .mca-root { right: 14px; bottom: 14px; }
  .mca-panel { position: fixed; inset: 10px; width: auto; height: auto; }
}

@media (max-width: 768px) {
  .trp-language-switcher.trp-floating-switcher {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mca-root * { scroll-behavior: auto !important; }
}
