.tbs-points-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tbs-points-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tbs-points-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tbs-points-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.tbs-point-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.tbs-point-product {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--td-component-stroke, #e7e7e7);
  border-radius: 14px;
  background: var(--td-bg-color-container, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.tbs-point-product-media {
  height: 148px;
  background:
    radial-gradient(circle at 80% 15%, rgba(0, 82, 217, 0.18), transparent 34%),
    linear-gradient(135deg, #f3f7ff, #eef4ff 45%, #fff8e8);
}

.tbs-point-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tbs-point-product-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--td-brand-color, #0052d9);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.tbs-point-product-body {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.tbs-point-product-title-row,
.tbs-point-product-meta,
.tbs-point-admin-card-head,
.tbs-point-admin-actions,
.tbs-point-code-actions,
.tbs-points-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tbs-point-product-name {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--td-text-color-primary, #1f2329);
  font-size: 17px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tbs-point-product-desc {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: var(--td-text-color-secondary, #666);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tbs-point-product-meta {
  margin-top: auto;
}

.tbs-point-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--td-error-color, #d54941);
}

.tbs-point-price strong {
  font-size: 24px;
  line-height: 1;
}

.tbs-point-price-label,
.tbs-point-stock,
.tbs-point-admin-id,
.tbs-point-code-tip,
.tbs-point-code-delete-help {
  color: var(--td-text-color-placeholder, #8b8b8b);
  font-size: 12px;
}

.tbs-point-records {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--td-component-stroke, #e7e7e7);
}

.tbs-point-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.tbs-point-admin-card {
  border-radius: 12px;
}

.tbs-point-admin-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tbs-point-admin-metrics span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--td-bg-color-secondarycontainer, #f5f5f5);
  color: var(--td-text-color-secondary, #666);
  font-size: 12px;
}

.tbs-points-dialog-footer {
  justify-content: flex-end;
  margin-top: 18px;
}

.tbs-point-codes-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}

.tbs-point-code-actions {
  margin-top: 16px;
}

.tbs-point-code-delete-help {
  margin-top: 8px;
  text-align: right;
}

.tbs-point-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 0;
  text-align: center;
}

.tbs-point-success-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: rgba(47, 159, 91, 0.12);
  color: var(--td-success-color, #2f9f5b);
  font-size: 30px;
  font-weight: 800;
}

.tbs-point-success-title {
  color: var(--td-text-color-primary, #1f2329);
  font-size: 18px;
  font-weight: 700;
}

.tbs-point-success-meta {
  color: var(--td-text-color-secondary, #666);
  font-size: 13px;
}

.tbs-point-success-code {
  width: 100%;
  padding: 15px;
  border: 1px dashed var(--td-brand-color-light-active, #7aa7f8);
  border-radius: 10px;
  background: var(--td-brand-color-light, #f2f3ff);
  color: var(--td-brand-color, #0052d9);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .tbs-points-head,
  .tbs-point-code-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tbs-points-actions {
    justify-content: flex-start;
  }

  .tbs-point-grid,
  .tbs-point-admin-grid {
    grid-template-columns: 1fr;
  }

  .tbs-point-product-media {
    height: 170px;
  }

  .tbs-point-codes-import {
    grid-template-columns: 1fr;
  }

  .tbs-point-code-delete-help {
    text-align: left;
  }
}
