/* Territory Map Builder: build and change a map by sentence, or from a spreadsheet or picture */

.bbi-mbp-chat .bbi-card__head { padding: 14px 16px 8px; }

.bbi-mbp-log { display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; height: 318px; padding: 0 14px; overflow: hidden; }

.bbi-mbp-msg { max-width: 92%; padding: 8px 11px; border-radius: 12px; font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.bbi-mbp-msg--you { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--bbi-grad-brand); color: #fff; }
.bbi-mbp-msg--done,
.bbi-mbp-msg--file { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; }
.bbi-mbp-msg--done span,
.bbi-mbp-msg--file span { min-width: 0; overflow-wrap: anywhere; }
.bbi-mbp-msg--done { border-bottom-left-radius: 4px; background: var(--bbi-good-bg); color: #12925c; }
.bbi-mbp-msg--file { align-self: flex-end; border: 1.5px solid #cfe9db; background: #f4fbf7; color: #17804f; }
.bbi-mbp-msg svg { width: 12px; height: 12px; flex: none; }

.bbi-mbp-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  margin: 12px 12px 0;
  padding: 8px 8px 8px 12px;
  border-radius: 14px;
  border: 1.5px solid rgba(94, 114, 228, 0.35);
  background: #fff;
}

.bbi-mbp-text { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 700; line-height: 1.35; color: var(--bbi-ink); }
.bbi-mbp-ph { font-weight: 600; color: var(--bbi-faint); }

.bbi-mbp-send {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--bbi-grad-cta);
  color: #fff;
  box-shadow: 0 8px 16px -8px rgba(255, 2, 108, 0.6);
}

.bbi-mbp-send svg { width: 15px; height: 15px; }

.bbi-mbp-attach { display: flex; gap: 8px; margin: 10px 12px 0; }

.bbi-mbp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1.5px dashed #d5daec;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--bbi-muted);
  white-space: nowrap;
}

.bbi-mbp-chip svg { width: 13px; height: 13px; }

/* The map */
.bbi-mbp-out .bbi-card__head { padding: 14px 16px 10px; }
.bbi-mbp-count { font-variant-numeric: tabular-nums; }
.bbi-mbp-map { width: 396px; height: 162px; margin: 0 12px; border-radius: 12px; background: linear-gradient(180deg, #eef3fb, #e8eef8); overflow: hidden; }
.bbi-mbp-map svg { display: block; width: 100%; height: 100%; }
.bbi-mbp-map .bbi-map__area { stroke-width: 0.6; transition: fill 0.4s ease; }

.bbi-mbp-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; height: 88px; padding: 12px 16px 0; font-size: 11.5px; font-weight: 700; color: var(--bbi-ink); white-space: nowrap; }
.bbi-mbp-legend span { display: inline-flex; align-items: center; gap: 6px; transition: opacity 0.3s ease; }
.bbi-mbp-legend i { width: 10px; height: 10px; flex: none; border-radius: 3px; }

.bbi-mbp-sheet { margin: 14px 12px 0; border-radius: 12px; border: 1.5px solid #cfe9db; background: #f7fdfa; overflow: hidden; }
.bbi-mbp-sheet__head { display: flex; align-items: center; height: 34px; padding: 0 12px; background: #e9f7ef; font-size: 12px; color: #17804f; }
.bbi-mbp-sheet__head b { font-weight: 800; }
.bbi-mbp-sheet__head small { margin-left: auto; font-size: 11px; font-weight: 700; }

.bbi-mbp-row { display: grid; grid-template-columns: 1fr 1fr 16px; align-items: center; height: 30px; padding: 0 12px; border-top: 1px solid #e1f1e8; font-size: 12px; font-weight: 700; color: var(--bbi-ink); }
.bbi-mbp-row svg { width: 12px; height: 12px; color: var(--bbi-good); opacity: 0; transition: opacity 0.3s ease; }
.bbi-mbp-row.is-done svg { opacity: 1; }
