.sp-tariff {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--white);
}
.sp-tariff-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f2f6fd;
  color: var(--blue);
}
.sp-tariff-icon .ui-icon {
  width: 24px;
  height: 24px;
}
.sp-tariff-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.sp-tariff-main {
  font-size: 16px;
  line-height: 1.6;
}
.sp-tariff-detail,
.sp-tariff-note {
  color: #717171;
  font-size: 14px;
  line-height: 1.6;
}
.sp-tariff-value {
  color: var(--blue);
  font-size: 16px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sp-tariff-link {
  color: var(--blue);
  background: #e7effc;
}
.sp-tariff-link:hover {
  color: var(--blue);
  background: #dce7fa;
}
.sp-tariff-link .ui-icon {
  width: 18px;
  height: 18px;
}
@media (max-width: 599px) {
  .sp-tariff {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }
  .sp-tariff-icon {
    display: none;
  }
  .sp-tariff-link {
    justify-self: start;
  }
}

.data-table--products {
  --table-min-width: 1116px;
}

.sp-toolbar-start,
.sp-selection {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.sp-selection {
  gap: 12px;
}
.sp-filter-icon {
  position: relative;
}

.sp-filter-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  right: -2px;
  top: -3px;
}
.sp-selection-clear {
  height: 42px;
  padding: 0 20px;
  gap: 10px;
  font-size: 16px;
  color: var(--text);
  background: var(--gray);
}
.sp-selection-clear .ui-icon {
  width: 16px;
  height: 16px;
}
.sp-col-check {
  width: 36px;
}
.sp-col-name {
  width: 250px;
}
.sp-col-photo {
  width: 96px;
}
.sp-col-status {
  width: 156px;
}
.sp-col-stock {
  width: 132px;
}
.sp-col-price {
  width: 110px;
}
.sp-col-category {
  width: 176px;
}
.sp-col-actions {
  width: 120px;
}
.data-table .sp-col-check,
.data-table .sp-checkbox-cell {
  padding-left: 8px;
  padding-right: 8px;
}
.data-table .sp-col-photo {
  text-align: center;
}
.sp-name a {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  display: block;
}
.sp-code {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.sp-photo img {
  width: 64px;
  height: 70px;
  object-fit: contain;
  margin: auto;
}
.sp-status {
  font-size: 14px;
  line-height: 1.4;
}
.sp-status-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
}
.sp-status-active {
  color: #2f9600;
  background: rgb(47 150 0 / 9%);
}
.sp-status-inactive {
  color: var(--muted);
  background: var(--inner);
}
.sp-status-pending {
  color: var(--blue);
  background: #e7effc;
}
.sp-status-rejected {
  color: #b50000;
  background: rgb(181 0 0 / 8%);
}
.sp-stock {
  color: #2f9600;
  line-height: 1.5;
  font-size: 14px;
}
.sp-stock-unavailable {
  color: #ff8205;
}
.sp-price {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sp-category {
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.sp-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.sp-row-actions a,
.sp-row-actions button {
  position: relative;
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px;
  border-radius: 999px;
}
.sp-row-actions a:hover,
.sp-row-actions button:hover {
  color: var(--blue);
}
.sp-row-actions .ui-icon {
  width: 20px;
  height: 20px;
}
.sp-action-tooltip {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--text);
  color: var(--white);
  box-shadow: 0 4px 14px rgb(0 0 0 / 14%);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.sp-action-tooltip::before {
  content: "";
  position: absolute;
  inset: 100% 0 -8px;
}
.sp-action-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 12px;
  border: 5px solid transparent;
  border-bottom: 0;
  border-top-color: var(--text);
}
.sp-row-actions > :is(:hover, :focus-visible):not([data-tooltip-dismissed]) .sp-action-tooltip {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.sp-filter-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.sp-filter-group {
  margin: 0;
  border: 0;
  padding: 0 0 26px;
  min-width: 0;
  display: grid;
  gap: 14px;
}
.sp-filter-group:last-child {
  padding-bottom: 0;
}
.sp-filter-group legend {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  padding: 0;
  margin-bottom: 16px;
}
.sp-filter-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 27px;
}
.sp-group-reset {
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  min-height: 27px;
}
.sp-group-reset .ui-icon {
  width: 16px;
  height: 16px;
}
.sp-group-reset:hover {
  color: var(--blue);
}
.sp-check-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
  cursor: pointer;
}
.sp-check-label input {
  margin-top: 2px;
  flex-shrink: 0;
}
.sp-price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sp-price-fields label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  border-radius: 999px;
  background: var(--inner);
  padding: 0 18px;
}
.sp-price-fields input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text);
  appearance: textfield;
  -moz-appearance: textfield;
}
.sp-price-fields input::-webkit-inner-spin-button {
  appearance: none;
}
.sp-price-fields input:focus-visible,
.sp-price-fields label:focus-within {
  outline: none;
}
.sp-more-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  min-height: 28px;
}
.sp-more-toggle:hover {
  color: var(--blue);
}
.sp-more-toggle .ui-icon {
  width: 16px;
  height: 16px;
}
.sp-more-toggle[aria-expanded="true"] .ui-icon {
  transform: rotate(180deg);
}
.sp-more-options {
  display: grid;
  gap: 14px;
}
.sp-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: 0 0 22px;
  margin-top: 1px;
}
.sp-color-light-gray {
  background: #e6e6e6;
}
.sp-color-dark-gray {
  background: #8e8e8e;
}
.sp-color-white {
  background: #ffffff;
  border: 1px solid #8e8e8e;
}
.sp-color-black {
  background: #212121;
}
.sp-reset-filters,
.sp-reset-filters:hover {
  color: var(--muted);
}
.sp-reset-filters .ui-icon {
  width: 17px;
  height: 17px;
}
.sp-import-modal {
  max-width: 620px;
}
.sp-import-form {
  display: grid;
  gap: 20px;
  padding: 0 28px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sp-import-form p {
  line-height: 1.65;
}
#sp-feed:focus,
#sp-feed:focus-visible {
  outline: none;
  box-shadow: none;
}
.sp-file-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.sp-file-field label {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
}
.sp-file-field label:hover {
  background: var(--gray);
}
.sp-file-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.sp-file-field input:focus {
  outline: none;
}
#sp-file-name {
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1;
}

.sp-send {
  justify-self: center;
  min-width: 145px;
  margin-top: 4px;
}
.sp-confirm-modal .modal-head {
  padding-bottom: 16px;
}
.sp-confirm-modal > p {
  padding: 0 28px;
}
.sp-confirm-actions {
  padding: 24px 28px 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.sp-confirm-actions .btn {
  min-width: 120px;
}
@media (max-width: 1199px) {
  .sp-toolbar-start {
    gap: 16px;
  }
}
@media (max-width: 599px) {
  .sp-toolbar-start {
    gap: 12px;
  }
  .sp-filter-trigger {
    margin-right: auto;
  }
  .sp-selection {
    gap: 12px;
  }
  .sp-selection .btn {
    padding: 0 20px;
  }
  .sp-import-form {
    padding: 0 20px 22px;
    gap: 18px;
  }
  .sp-confirm-modal > p {
    padding: 0 20px;
  }
  .sp-confirm-actions {
    padding: 22px 20px;
  }
  .sp-confirm-actions .btn {
    min-width: 112px;
  }
  .sp-file-field {
    gap: 10px;
  }
  #sp-file-name {
    flex-basis: 100%;
  }
}
@media (max-width: 389px) {
  .sp-selection {
    gap: 10px;
  }
  .sp-selection .btn {
    font-size: 14px;
  }
}
