.pc-set-price-list {
  width: 100%;
  color: #15240a;
  font-family: 'Instrument Sans', Arial, sans-serif;
}

.pc-set-price-list-controls {
  position: sticky;
  top: 50px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.pc-set-price-list-search {
  position: relative;
  flex: 1;
  min-width: 0;
}

.pc-set-price-list-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 44px 14px 42px;
  border: none;
  border-radius: 999px;
  outline: none;
  background: rgba(255,255,255,0.85);
  color: #15240a;
  font: inherit;
  font-size: 16px;
  box-shadow:
    0 2px 10px rgba(0,0,0,0.08),
    0 10px 24px rgba(0,0,0,0.06);
  -webkit-appearance: none;
}

.pc-set-price-list-search input::placeholder {
  color: rgba(21,36,10,0.52);
}

.pc-set-price-list-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.pc-set-price-list-search-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #15240a;
  pointer-events: none;
  transform: translateY(-50%);
}

.pc-set-price-list-clear {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(21,36,10,0.1);
  color: #15240a;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.pc-set-price-list-clear.is-visible {
  display: flex;
}

.pc-set-price-list-filter-wrap {
  position: relative;
  flex: 0 0 auto;
}

.pc-set-price-list-filter-toggle {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #15240a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.06),
    0 8px 20px rgba(0,0,0,0.06);
}

.pc-set-price-list-filter-toggle.is-active {
  background: #a8b842;
  color: #fff;
}

.pc-set-price-list-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  max-height: 70vh;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.08),
    0 12px 28px rgba(0,0,0,0.08);
  display: none;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  z-index: 30;
}

.pc-set-price-list-filter-panel.is-open {
  display: flex;
}

.pc-set-price-list-filter-panel button {
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #15240a;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-set-price-list-filter-panel button:hover {
  background: #f5f5ee;
}

.pc-set-price-list-filter-panel button.is-active {
  background: #a8b842;
  color: #fff;
}

.pc-set-price-list-filter-check {
  width: 14px;
  color: transparent;
  font-weight: 800;
}

.pc-set-price-list-filter-panel button.is-active .pc-set-price-list-filter-check {
  color: currentColor;
}

.pc-set-price-list-table-wrap {
  width: 100%;
  margin-top: 18px;
  overflow-x: visible;
}

.pc-set-price-list-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: rgba(245,245,238,0.92);
}

.pc-set-price-list-table th,
.pc-set-price-list-table td {
  border: 1px solid rgba(21,36,10,0.16);
  padding: 10px 8px;
  color: #15240a;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.pc-set-price-list-table thead th {
  background: rgba(255,255,255,0.72);
  font-weight: 700;
  text-align: left;
}

.pc-set-price-list-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.54);
}

.pc-set-price-list-table tbody tr:hover {
  background: rgba(168,184,66,0.12);
}

.pc-set-price-list-table th:nth-child(1),
.pc-set-price-list-table td:nth-child(1) {
  width: 86px;
  text-align: center;
}

.pc-set-price-list-table th:nth-child(3),
.pc-set-price-list-table td:nth-child(3) {
  width: 138px;
}

.pc-set-price-list-table th:nth-child(4),
.pc-set-price-list-table td:nth-child(4) {
  width: 118px;
  text-align: center;
}

.pc-set-price-list-name {
  color: #a8b842;
  font-weight: 800;
  text-decoration: none;
}

.pc-set-price-list-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pc-set-price-list-price {
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid rgba(168,184,66,0.55);
  border-radius: 7px;
  background: #15240a;
  color: #f5f5ee;
  font-family: 'Inconsolata', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.94rem;
  line-height: 1.15;
  white-space: nowrap;
}

.pc-set-price-list-price.is-loading,
.pc-set-price-list-price.is-unavailable {
  min-width: 0;
  border-color: transparent;
  background: transparent;
  color: rgba(21,36,10,0.62);
  font-family: inherit;
  font-size: 0.88rem;
  font-style: italic;
}

.pc-set-price-list-empty,
.pc-set-price-list-loading {
  padding: 18px;
  color: #15240a;
  text-align: center;
  font-weight: 700;
}

.pc-set-price-list-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483640;
  width: 190px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(245,245,238,0.98);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-9999px, -9999px);
  transition: opacity .12s ease;
}

.pc-set-price-list-preview.is-visible {
  opacity: 1;
}

.pc-set-price-list-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (max-width: 700px) {
  .pc-set-price-list-controls {
    top: 0;
  }

  .pc-set-price-list-search input {
    padding: 12px 40px 12px 38px;
    font-size: 14px;
  }

  .pc-set-price-list-search-icon {
    left: 18px;
  }

  .pc-set-price-list-table th,
  .pc-set-price-list-table td {
    padding: 8px 5px;
    font-size: 12px;
  }

  .pc-set-price-list-table th:nth-child(1),
  .pc-set-price-list-table td:nth-child(1) {
    width: 58px;
  }

  .pc-set-price-list-table th:nth-child(3),
  .pc-set-price-list-table td:nth-child(3) {
    width: 82px;
  }

  .pc-set-price-list-table th:nth-child(4),
  .pc-set-price-list-table td:nth-child(4) {
    width: 74px;
  }

  .pc-set-price-list-price {
    min-width: 52px;
    padding: 4px 5px;
    font-size: 0.8rem;
  }

  .pc-set-price-list-preview {
    display: none;
  }
}
