/* Territory Map Builder: co-branding with a partner's logo, brand colors and page designs */

.bbi-mbb-panel .bbi-card__head { padding: 14px 16px 6px; }
.bbi-mbb-body { padding: 0 16px; }
.bbi-mbb-body .bbi-eyebrow { margin: 14px 0 7px; }

.bbi-mbb-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  border-radius: 12px;
  border: 1.5px dashed #d5daec;
  background: var(--bbi-surface-2);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.bbi-mbb-slot.is-set { border-style: solid; border-color: #e3e7f3; background: #fff; }
.bbi-mbb-slot__ph { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--bbi-faint); }
.bbi-mbb-slot__ph svg { width: 14px; height: 14px; }

.bbi-mbb-logo { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bbi-mbb-logo svg { width: 22px; height: 22px; flex: none; }
.bbi-mbb-logo span { display: flex; flex-direction: column; line-height: 1; }
.bbi-mbb-logo b { font-size: 13px; font-weight: 900; letter-spacing: 0.05em; color: #1f2a37; }
.bbi-mbb-logo small { margin-top: 2px; font-size: 7.5px; font-weight: 800; letter-spacing: 0.14em; color: #7a849c; }

.bbi-mbb-colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.bbi-mbb-color {
  display: flex;
  height: 30px;
  padding: 3px;
  border-radius: 10px;
  border: 1.5px solid #e3e7f3;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.bbi-mbb-color i { flex: 2; border-radius: 6px 0 0 6px; }
.bbi-mbb-color i + i { flex: 1; border-radius: 0 6px 6px 0; }
.bbi-mbb-color.is-on { border-color: var(--bbi-indigo); box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.16); }

.bbi-mbb-designs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.bbi-mbb-design {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid #e3e7f3;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--bbi-muted);
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.bbi-mbb-design.is-on { border-color: var(--bbi-indigo); background: rgba(94, 114, 228, 0.1); color: #4a5bd0; }

.bbi-mbb-note { display: flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 11.5px; font-weight: 700; color: var(--bbi-muted); }
.bbi-mbb-note svg { width: 13px; height: 13px; flex: none; }

/* The page customers open */
.bbi-mbb-page { --mbb-head: #1c1342; --mbb-accent: #ff026c; overflow: hidden; }

.bbi-mbb-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #fcfcff; border-bottom: 1px solid var(--bbi-line); }
.bbi-mbb-bar i { width: 9px; height: 9px; flex: none; border-radius: 50%; }
.bbi-mbb-bar i:nth-child(1) { background: #ff8fb3; }
.bbi-mbb-bar i:nth-child(2) { background: #ffc078; }
.bbi-mbb-bar i:nth-child(3) { background: #8fe3b8; }
.bbi-mbb-bar span { margin-left: 6px; font-size: 11.5px; font-weight: 700; color: var(--bbi-muted); }

.bbi-mbb-band {
  display: flex;
  align-items: center;
  height: 84px;
  padding: 0 16px;
  background: var(--mbb-head);
  border-bottom: 4px solid var(--mbb-accent);
  transition: background-color 0.45s ease, border-color 0.45s ease;
}

.bbi-mbb-title b { display: block; font-size: 19px; font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; transition: color 0.45s ease; }
.bbi-mbb-title small { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); transition: color 0.45s ease; }

.bbi-mbb-plate {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  margin-left: auto;
  padding: 0 14px;
  border-radius: 10px;
  background: transparent;
  transition: background-color 0.3s ease;
}

.bbi-mbb-plate.is-on { background: #fff; }
.bbi-mbb-plate .bbi-mbb-logo + .bbi-mbb-logo:not(.bbi-hide) { padding-left: 14px; border-left: 1px solid #e3e7f3; }

.bbi-mbb-map { width: 422px; height: 172px; margin: 14px 16px 0; border-radius: 12px; background: linear-gradient(180deg, #eef3fb, #e8eef8); overflow: hidden; }
.bbi-mbb-map .bbi-map__area { stroke-width: 0.6; }

.bbi-mbb-people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 16px 0; }

.bbi-mbb-person {
  display: flex;
  flex-direction: column;
  padding: 9px 12px 10px;
  border-radius: 10px;
  border: 1px solid #e3e7f3;
  border-left: 4px solid var(--mbb-accent);
  background: #fff;
  transition: border-color 0.45s ease, background-color 0.45s ease;
}

.bbi-mbb-person small { font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bbi-muted); }
.bbi-mbb-person b { font-size: 14px; font-weight: 800; line-height: 1.3; color: var(--bbi-ink); }
.bbi-mbb-person span { font-size: 12px; font-weight: 700; color: var(--mbb-head); font-variant-numeric: tabular-nums; transition: color 0.45s ease; }

.bbi-mbb-out { display: flex; gap: 8px; margin: 14px 16px 0; }
.bbi-mbb-fmt svg { width: 11px; height: 11px; }

/* Minimal: white band, the brand color moves to the type. */
.bbi-mbb-page[data-design="minimal"] .bbi-mbb-band { background: #fff; }
.bbi-mbb-page[data-design="minimal"] .bbi-mbb-title b { color: var(--mbb-head); }
.bbi-mbb-page[data-design="minimal"] .bbi-mbb-title small { color: var(--bbi-muted); }
.bbi-mbb-page[data-design="minimal"] .bbi-mbb-person { background: var(--bbi-surface-2); }

/* Bold: the brand color runs through the contact boxes too. */
.bbi-mbb-page[data-design="bold"] .bbi-mbb-band { border-bottom-width: 8px; }
.bbi-mbb-page[data-design="bold"] .bbi-mbb-person { border-color: var(--mbb-head); border-left-color: var(--mbb-accent); background: var(--mbb-head); }
.bbi-mbb-page[data-design="bold"] .bbi-mbb-person small { color: rgba(255, 255, 255, 0.7); }
.bbi-mbb-page[data-design="bold"] .bbi-mbb-person b,
.bbi-mbb-page[data-design="bold"] .bbi-mbb-person span { color: #fff; }

.bbi-mbb-slot .bbi-hide,
.bbi-mbb-plate .bbi-hide { display: none; }
