.selection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfb;
  color: #526678;
  font-size: 12px;
}

.selection-toolbar[hidden] { display: none; }
.selection-toolbar strong { color: var(--ink); }

.selection-toolbar__summary {
  display: grid;
  gap: 3px;
  min-width: 150px;
}

.selection-toolbar__status {
  color: var(--muted);
  font-size: 11px;
}

.batch-result {
  position: relative;
  margin: 10px 16px;
  padding: 10px 48px 10px 12px;
  border: 1px solid #cbdadd;
  border-radius: 10px;
  background: #fff;
  color: #385261;
  font-size: 12px;
}

.batch-result[hidden] { display: none; }
.batch-result strong { color: var(--ink); }
.batch-result ul { margin: 7px 0 0; padding-left: 18px; }
.batch-result .is-success { color: #087268; }
.batch-result .is-failed { color: #9f3434; }
.batch-result .is-skipped { color: #7b6a34; }
.batch-result__close {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #c9d8e5;
  border-radius: 50%;
  color: #52647b;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.batch-result__close:hover { color: #8f2f2f; border-color: #d9a9a9; background: #fff7f7; }
.batch-result__detail { margin-top: 10px; padding-top: 9px; border-top: 1px dashed #c7d8e5; }

.selection-toolbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.selection-action {
  appearance: none;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #cbdadd;
  border-radius: 9px;
  background: #fff;
  color: #385261;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.selection-action:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal);
  background: #f1faf8;
}

.selection-action.is-primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.selection-action.is-danger {
  border-color: #d8a5a5;
  color: #9f3434;
  background: #fffafa;
}

.selection-action:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.selection-action:focus-visible,
.selection-clear:focus-visible {
  outline: 3px solid rgba(11, 130, 120, .28);
  outline-offset: 2px;
}

.selection-clear {
  min-height: 34px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.selection-clear:disabled {
  color: #9ba9ad;
  cursor: not-allowed;
}

.selection-column {
  width: 48px;
  min-width: 48px;
  padding-left: 16px !important;
  padding-right: 4px !important;
  text-align: center;
}

.selection-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.selection-checkbox:focus-visible {
  outline: 3px solid rgba(11, 130, 120, .28);
  outline-offset: 2px;
}

.product-row.is-selected td { background: #f0faf7; }
.product-row.is-selected .product-cell b { color: #087268; }

@media (max-width: 900px) {
  .selection-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 12px;
  }

  .selection-toolbar__actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }
}

@media (max-width: 700px) {
  .selection-column {
    width: 42px;
    min-width: 42px;
    padding-left: 12px !important;
  }

  .selection-checkbox {
    width: 20px;
    height: 20px;
  }
}
