.mpcb-root {
  --mpcb-wine: #7f342c;
  --mpcb-cream: #efe5d4;
  --mpcb-gold: #c89b4a;
  --mpcb-text: #3f4448;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999998;
  font-family: "Josefin Sans", Arial, sans-serif;
}
.mpcb-launcher {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid var(--mpcb-gold);
  border-radius: 0;
  background: var(--mpcb-wine);
  box-shadow: 0 14px 38px rgba(40, 18, 14, 0.22);
  color: #fff;
  cursor: pointer;
  font:
    700 11px/1 "Josefin Sans",
    Arial,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mpcb-launcher svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.mpcb-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid #cbbda5;
  background: #f7f0e4;
  box-shadow: 0 24px 70px rgba(42, 20, 16, 0.28);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.mpcb-root.is-open .mpcb-panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.mpcb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 18px;
  background: var(--mpcb-wine);
  color: #fff;
}
.mpcb-head strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mpcb-head span {
  display: block;
  margin-top: 5px;
  color: #e6d6c0;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mpcb-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.mpcb-messages {
  overflow-y: auto;
  padding: 20px;
}
.mpcb-message {
  max-width: 86%;
  margin: 0 0 13px;
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.mpcb-message--bot {
  border: 1px solid #d7cab6;
  background: #fff;
  color: var(--mpcb-text);
}
.mpcb-message--user {
  margin-left: auto;
  background: var(--mpcb-wine);
  color: #fff;
}
.mpcb-message a {
  color: var(--mpcb-wine);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mpcb-message--user a {
  color: #fff;
}
.mpcb-quick {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px 14px;
}
.mpcb-quick button {
  flex: none;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #bfae94;
  border-radius: 0;
  background: transparent;
  color: var(--mpcb-wine);
  cursor: pointer;
  font:
    700 10px/1 "Josefin Sans",
    Arial,
    sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mpcb-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 16px 8px;
  border-top: 1px solid #d7cab6;
  background: #fff;
}
.mpcb-form textarea {
  min-height: 46px;
  max-height: 110px;
  resize: none;
  border: 1px solid #bfae94;
  border-radius: 0;
  padding: 13px;
  background: #fff;
  color: var(--mpcb-text);
  font:
    14px/1.4 "Josefin Sans",
    Arial,
    sans-serif;
}
.mpcb-form button {
  min-width: 86px;
  border: 0;
  border-radius: 0;
  background: var(--mpcb-wine);
  color: #fff;
  cursor: pointer;
  font:
    700 10px/1 "Josefin Sans",
    Arial,
    sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mpcb-form button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.mpcb-privacy {
  margin: 0;
  padding: 0 16px 13px;
  background: #fff;
  color: #777;
  font-size: 9px;
  line-height: 1.45;
}
.mpcb-honeypot {
  position: absolute !important;
  left: -9999px !important;
}
.mpcb-launcher:focus-visible,
.mpcb-close:focus-visible,
.mpcb-quick button:focus-visible,
.mpcb-form textarea:focus-visible,
.mpcb-form button:focus-visible {
  outline: 3px solid var(--mpcb-gold);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .mpcb-root {
    right: 14px;
    bottom: 14px;
  }
  .mpcb-launcher {
    min-height: 54px;
    padding: 0 16px;
  }
  .mpcb-panel {
    position: fixed;
    inset: 12px;
    width: auto;
    height: auto;
    max-height: none;
  }
  .mpcb-root.is-open .mpcb-launcher {
    visibility: hidden;
  }
  .mpcb-message {
    max-width: 91%;
  }
}
