.sv-cost-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 18px 24px;
}

.sv-cost-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 0 0 2px;
}

.sv-cost-toolbar-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.sv-cost-toolbar-copy > i {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid #d7e4f5;
  border-radius: 7px;
  background: #f7fbff;
  color: #2563eb;
  font-size: .9rem;
}

.sv-cost-toolbar-copy p {
  margin: 0;
  color: #5d6b82;
  font-size: .88rem;
}

.sv-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #1d5fd7;
  border-radius: 7px;
  background: #1f6feb;
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 15px 0 12px;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(31, 111, 235, .16);
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.sv-save-button i {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, .16);
  font-size: .9rem;
}

.sv-save-button:hover,
.sv-save-button:focus {
  border-color: #174ea6;
  background: #185abc;
  color: #fff;
  box-shadow: 0 10px 20px rgba(31, 111, 235, .22);
  transform: translateY(-1px);
}

.sv-save-button:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(31, 111, 235, .18);
}

.sv-cost-card {
  overflow: hidden;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}

.sv-cost-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 52px 20px;
  color: #657084;
  text-align: center;
}

.sv-cost-empty i {
  color: #94a3b8;
  font-size: 2rem;
}

.sv-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 10px 12px;
  border-bottom: 1px solid #e8eef6;
  background: #fbfdff;
}

.sv-bulk-group {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sv-bulk-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #26364d;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.sv-bulk-group label i {
  color: #2563eb;
}

.sv-bulk-control,
.sv-money-input {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: stretch;
}

.sv-bulk-control {
  grid-template-columns: 34px 132px auto;
}

.sv-bulk-input,
.sv-money-input .form-control {
  min-width: 0;
  min-height: 36px;
  border-left: 0;
  border-radius: 0 !important;
  color: #07142b;
  font-weight: 800;
  box-shadow: none;
}

.sv-bulk-input:focus,
.sv-money-input .form-control:focus {
  border-color: #94bfff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.sv-currency-prefix {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 7px 0 0 7px !important;
  border: 1px solid #cbd6e4;
  background: #eef3f9;
  color: #24354f;
  font-weight: 800;
  font-size: .9rem;
}

.sv-apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 126px;
  min-height: 36px;
  margin-left: 0 !important;
  border: 1px solid #b9d2ff;
  border-radius: 0 7px 7px 0 !important;
  background: #fff;
  color: #1d4ed8;
  font-size: .82rem;
  font-weight: 800;
  box-shadow: none;
  white-space: nowrap;
}

.sv-apply-button:hover,
.sv-apply-button:focus {
  border-color: #8fb7ff;
  background: #eef5ff;
  color: #1746a2;
  box-shadow: none;
}

.sv-cost-list {
  max-height: calc(100dvh - 218px);
  overflow-y: auto;
}

.sv-cost-list-head,
.sv-cost-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 176px 176px;
  align-items: center;
  gap: 16px;
}

.sv-cost-list-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 14px;
  border-bottom: 1px solid #dce5f0;
  background: #fff;
  color: #55667f;
  font-size: .76rem;
  font-weight: 900;
}

.sv-cost-list-head span:not(:first-child) {
  text-align: right;
}

.sv-cost-row {
  padding: 10px 14px;
  border-bottom: 1px solid #e8eef6;
  background: #fff;
}

.sv-cost-row:last-child {
  border-bottom: 0;
}

.sv-cost-row:hover {
  background: #f8fbff;
}

.sv-cost-row[hidden] {
  display: none;
}

.sv-product-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.sv-product-thumb {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #dbe6f3;
  border-radius: 7px;
  object-fit: contain;
  background: #f8fafc;
  cursor: zoom-in;
}

.sv-product-empty-thumb {
  display: grid;
  place-items: center;
  color: #94a3b8;
  cursor: default;
}

.sv-product-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sv-asin-pill {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  padding: 1px 6px;
  border: 1px solid #dce8f7;
  border-radius: 999px;
  background: #f8fbff;
  color: #4f5f76;
  font-size: .68rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sv-product-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #07142b;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sv-price-editor {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 4px;
}

.sv-mobile-label {
  display: none;
}

.sv-money-input {
  width: 156px;
}

.sv-image-hover-preview {
  position: fixed;
  z-index: 1080;
  display: none;
  pointer-events: none;
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .22);
  padding: 4px;
}

.sv-image-hover-preview img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.sv-cost-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  border-top: 1px solid #e8eef6;
  background: #fbfdff;
}

.sv-cost-page-list {
  display: flex;
  align-items: center;
  gap: 3px;
}

.sv-cost-page-button,
.sv-cost-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border: 1px solid #cfe0ff;
  border-radius: 7px;
  background: #f8fbff;
  color: #2563eb;
  font-size: .8rem;
  font-weight: 800;
}

.sv-cost-page-number.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.sv-cost-page-button:hover:not(:disabled),
.sv-cost-page-number:hover:not(.active) {
  border-color: #9cc2ff;
  background: #eaf3ff;
}

.sv-cost-page-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.sv-cost-page-gap {
  min-width: 22px;
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 900px) {
  .sv-cost-page {
    padding: 10px 12px 24px;
  }

  .sv-cost-toolbar {
    display: grid;
  }

  .sv-save-button {
    justify-content: center;
    width: 100%;
  }

  .sv-bulk-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sv-bulk-group {
    grid-template-columns: 1fr;
  }

  .sv-bulk-control {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px 0;
  }

  .sv-bulk-control .sv-apply-button {
    grid-column: 1 / -1;
    border-radius: 7px !important;
  }

  .sv-cost-list-head {
    display: none;
  }

  .sv-cost-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sv-price-editor {
    justify-items: stretch;
  }

  .sv-mobile-label {
    display: block;
    color: #55667f;
    font-size: .74rem;
    font-weight: 900;
  }

  .sv-money-input {
    width: 100%;
  }
}
