.store-switcher-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 360px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  z-index: 1050;
  display: none;
  overflow: hidden;
}

.store-switcher-panel.open {
  display: block;
}

.store-switcher-search {
  padding: 8px 12px 9px;
  border-bottom: 1px solid #f0f0f0;
  line-height: 0;
}

.store-switcher-search input {
  width: 100%;
  height: 32px;
  padding: 4px 11px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  line-height: 24px !important;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.store-switcher-search input:focus {
  border-color: #da2634;
  box-shadow: 0 0 0 2px rgba(218, 38, 52, 0.1);
}

.store-switcher-search input::placeholder {
  color: rgba(0, 0, 0, 0.25);
}

.store-switcher-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 4px 0;
}

.store-switcher-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 22px;
  transition: background 0.2s;
}

.store-switcher-item:hover {
  background: #f5f5f5;
}

.store-switcher-item.selected {
  background: #fff1f0;
  color: #da2634;
  font-weight: 500;
}

.store-switcher-item-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-switcher-item-id {
  color: rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.store-switcher-item.selected .store-switcher-item-id {
  color: #da2634;
}

.store-switcher-item-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 20px;
  width: 76px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.store-switcher-item-status .dot {
  display: none;
}

.status-open { color: #389e0d; background: #d9f7be; border-color: #95de64; }
.status-open .dot { background: #389e0d; }

.status-nonstop-ie { color: #52c41a; background: #f6ffed; border-color: #b7eb8f; }
.status-nonstop-ie .dot { background: #52c41a; }

.status-unopened { color: #8c8c8c; background: #fafafa; border-color: #d9d9d9; }
.status-unopened .dot { background: #8c8c8c; }

.status-suspended { color: #d46b08; background: #fff7e6; border-color: #ffd591; }
.status-suspended .dot { background: #d46b08; }

.status-stop-ie { color: #fa8c16; background: #feffe6; border-color: #ffe58f; }
.status-stop-ie .dot { background: #fa8c16; }

.status-seasonal { color: #faad14; background: #feffe6; border-color: #fadb14; }
.status-seasonal .dot { background: #faad14; }

.status-closed { color: #cf1322; background: #fff2f0; border-color: #ffa39e; }
.status-closed .dot { background: #cf1322; }

.status-cyclic { color: #ff4d4f; background: #fff2f0; border-color: #ffccc7; }
.status-cyclic .dot { background: #ff4d4f; }

.status-sudden { color: #ff7875; background: #fff2f0; border-color: #ffccc7; }
.status-sudden .dot { background: #ff7875; }

.store-switcher-empty {
  padding: 32px 0;
  text-align: center;
  color: rgba(0, 0, 0, 0.25);
  font-size: 14px;
}

.store-switcher-footer {
  padding: 8px 12px;
  border-top: 1px solid #f0f0f0;
  color: rgba(0, 0, 0, 0.45);
  font-size: 12px;
  line-height: 23px;
  text-align: right;
}

.store-switcher-list::-webkit-scrollbar {
  width: 6px;
}

.store-switcher-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.store-switcher-list::-webkit-scrollbar-track {
  background: transparent;
}

#store-switcher-btn.ant-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

#store-switcher-btn .anticon-down {
  margin-left: 2px;
  font-size: 10px;
  transition: transform 0.2s;
}

#store-switcher-btn.open .anticon-down {
  transform: rotate(180deg);
}

#current-store-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
}

#current-store-name .cs-id {
  color: rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

#current-store-name .store-switcher-item-status {
  font-size: 12px;
  line-height: 18px;
  padding: 0 6px;
}
