/* 多品牌 / 分店切換器 */
.brand-switcher-slot {
  flex-shrink: 0;
}

.bs-trigger {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  text-align: left;
  max-width: 200px;
}

.bs-trigger:hover {
  background: rgba(232, 93, 117, 0.08);
}

.bs-trigger-brand {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bs-trigger-shop {
  font-size: 14px;
  font-weight: 700;
  color: #e85d75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 200;
}

.bs-panel {
  position: fixed;
  z-index: 201;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  left: 0;
  right: 0;
  bottom: 0;
}

body.is-desktop .bs-panel {
  position: fixed;
  z-index: 300;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
  max-height: min(480px, 70vh);
  display: flex;
  flex-direction: column;
  left: auto;
  right: 24px;
  bottom: auto;
  top: calc(var(--desk-header-h, 56px) + 8px);
  width: 340px;
}

.bs-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.bs-panel-head h3 {
  font-size: 16px;
  font-weight: 700;
}

.bs-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
}

.bs-panel-body {
  overflow-y: auto;
  padding: 12px 16px;
  flex: 1;
}

.bs-brand-group {
  margin-bottom: 16px;
}

.bs-brand-label {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px 8px;
}

.bs-shop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  margin-bottom: 4px;
}

.bs-shop-item:hover {
  background: #fdf2f8;
}

.bs-shop-item.active {
  background: #fce7f3;
  font-weight: 600;
}

.bs-shop-name em {
  font-size: 12px;
  color: #9ca3af;
  font-style: normal;
  font-weight: 500;
}

.bs-check {
  color: #e85d75;
  font-weight: 700;
}

.bs-panel-foot {
  padding: 12px 16px 20px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.bs-create-link {
  display: block;
  text-align: center;
  padding: 12px;
  color: #e85d75;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  background: #fdf2f8;
}

.bs-create-link:hover {
  background: #fce7f3;
}

body.is-desktop .mob-header {
  gap: 16px;
}

body.is-desktop .brand-switcher-slot {
  margin-left: auto;
  margin-right: 8px;
}

body.is-desktop .bs-trigger {
  align-items: flex-end;
  max-width: 280px;
}
