.category-head button {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.category-head button:hover,
.category-head button:focus-visible {
  color: var(--accent);
  background: var(--surface-hover);
}

.catalog-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.catalog-header-actions .secondary-button:hover,
.catalog-header-actions .secondary-button:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  color: var(--ink);
  outline: none;
}

.item-label-editor #openItemLabelPicker {
  align-self: flex-start;
  margin-left: 0;
}

.item-label-editor #itemSelectedLabels:empty {
  display: none;
}

.item-label-editor #itemSelectedLabels:not(:empty) {
  width: 100%;
}

.purchase-price-entry {
  position: relative;
  width: 100%;
}

.purchase-price-entry #purchasePriceInput {
  padding-right: 50px;
  padding-left: 10px;
}

.purchase-price-entry #wishPrice {
  padding-right: 50px;
  padding-left: 10px;
}

.field .purchase-price-entry .select-control {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: auto;
  right: 4px;
  width: 32px;
  min-width: 32px;
  transform: translateY(-50%);
}

.field .purchase-price-entry .select-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  gap: 0;
}

.field .purchase-price-entry .select-trigger:hover,
.field .purchase-price-entry .select-trigger:focus-visible,
.field .purchase-price-entry .select-control.is-open .select-trigger {
  border-color: var(--line-strong);
  background: var(--soft);
}

.purchase-price-entry .select-trigger svg {
  display: none;
}

.purchase-price-entry .select-trigger-text {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  text-align: center;
  overflow: visible;
}

.country-search-wrap {
  position: relative;
  width: 100%;
}

.country-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  width: 100%;
  max-height: 246px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  box-shadow: 0 12px 30px #303b4926;
}

.country-suggestions[data-direction="up"] {
  top: auto;
  bottom: calc(100% + 7px);
}

.country-suggestions-heading {
  padding: 5px 8px 7px;
  color: var(--muted);
  font: 700 8px/1.3 var(--sans);
  letter-spacing: 1px;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 37px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: 500 11px var(--sans);
  cursor: pointer;
}

.country-option:hover,
.country-option:focus-visible,
.country-option.is-active {
  outline: none;
  background: var(--surface-hover);
}

.country-flag {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  font-size: 15px;
}

.country-option-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-option-code {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .5px;
}

.country-suggestions-empty {
  margin: 0;
  padding: 10px 8px;
  color: var(--muted);
  font-size: 10px;
}

.label-filter:hover:not([aria-pressed="true"]),
.label-filter:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  color: var(--ink);
  outline: none;
}

.category-manager-modal.is-editing-single .category-manager-toolbar,
.category-manager-modal.is-editing-single .category-manager-list,
.category-manager-modal.is-editing-single #deleteCategoryPanel {
  display: none;
}

.category-manager-modal.is-editing-single .category-editor {
  margin: 0;
}

@media (max-width: 820px) {
  .welcome-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .catalog-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}
