.mbpf-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #0a1929;
}

.mbpf-chat__toggle {
  border: 0;
  border-radius: 999px;
  background: #2a8b9c;
  color: #fff;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(10, 25, 41, 0.18);
  white-space: nowrap;
}

.mbpf-chat__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(22rem, calc(100vw - 2rem));
  height: 28rem;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(10, 25, 41, 0.12);
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(10, 25, 41, 0.18);
  overflow: hidden;
}

.mbpf-chat__panel[hidden] {
  display: none !important;
}

.mbpf-chat__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: #0a1929;
  color: #fff;
}

.mbpf-chat__header-title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.mbpf-chat__header strong {
  font-size: 0.95rem;
}

.mbpf-chat__notice {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

.mbpf-chat__privacy-link {
  color: #9dd9e8;
  text-decoration: underline;
}

.mbpf-chat__minimize {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  font-size: 1.5rem;
  font-weight: 300;
}

.mbpf-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #f7f9fb;
}

.mbpf-chat__message {
  display: flex;
  margin-bottom: 0.75rem;
}

.mbpf-chat__message--user {
  justify-content: flex-end;
}

.mbpf-chat__bubble {
  max-width: 85%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.mbpf-chat__message--assistant .mbpf-chat__bubble {
  background: #fff;
  border: 1px solid rgba(10, 25, 41, 0.08);
}

.mbpf-chat__message--user .mbpf-chat__bubble {
  background: #2a8b9c;
  color: #fff;
}

.mbpf-chat__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(10, 25, 41, 0.08);
  background: #fff;
}

.mbpf-chat__form textarea {
  resize: none;
  border: 1px solid rgba(10, 25, 41, 0.15);
  border-radius: 0.7rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.mbpf-chat__form button {
  border: 0;
  border-radius: 0.7rem;
  background: #2a8b9c;
  color: #fff;
  padding: 0 1rem;
  font-weight: 600;
  cursor: pointer;
}

.mbpf-chat__form button:disabled,
.mbpf-chat__form textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

@media (max-width: 480px) {
  .mbpf-chat {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .mbpf-chat__panel {
    width: min(22rem, calc(100vw - 1.5rem));
    height: min(28rem, calc(100vh - 6rem));
  }
}
