.td-material-scope-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 10px;
  padding: 3px;
  border: 1px solid #eadde2;
  border-radius: 10px;
  background: #f6f2f4;
}

.td-stamp-picker:has(.td-material-scope-tabs) {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding-right: 0;
  padding-left: 0;
}

.td-material-scope-tab {
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #71636a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.td-material-scope-tab.is-active {
  background: #fff;
  color: #a63965;
  box-shadow: 0 1px 3px rgb(58 34 44 / 12%);
}

.td-material-scope-tab:focus-visible {
  outline: 2px solid #c6527e;
  outline-offset: 1px;
}

.td-asset-pack-panel {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 2px 0 16px;
}

.td-asset-pack-content {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.td-asset-pack-card-grid {
  display: grid;
  width: 100%;
  gap: 12px;
}

.td-asset-pack-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e8dde1;
  border-radius: 12px;
  background: #fff;
  color: #30262a;
  text-align: left;
  cursor: pointer;
}

.td-asset-pack-card:hover,
.td-asset-pack-card:focus-visible {
  border-color: #c6527e;
  box-shadow: 0 0 0 2px rgb(198 82 126 / 12%);
  outline: none;
}

.td-asset-pack-card-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.td-asset-pack-card-preview img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-width: 0;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid #f0e9ec;
  border-radius: 8px;
  background: #faf8f9;
}

.td-asset-pack-card-preview-more {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  border: 1px solid #eadde2;
  border-radius: 8px;
  background: #f8f3f5;
  color: #9f3760;
  font-size: 12px;
  font-weight: 900;
}

.td-asset-pack-card-title {
  display: block;
  width: 100%;
  color: #30262a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.td-asset-pack-card-description {
  display: -webkit-box;
  overflow: hidden;
  width: 100%;
  color: #76686f;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.td-asset-pack-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  width: 100%;
  color: #776970;
  font-size: 11px;
}

.td-asset-pack-badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 1px 6px;
  border: 1px solid #cf5683;
  border-radius: 6px;
  background: #fff;
  color: #b43e6d;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.td-asset-pack-badge.is-purchased {
  border-color: #4a9a72;
  color: #28704e;
}

.td-asset-pack-catalog-more,
.td-asset-pack-items-toggle {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid #d9a7ba;
  border-radius: 9px;
  background: #fff;
  color: #9f3760;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.td-asset-pack-catalog-more:hover,
.td-asset-pack-catalog-more:focus-visible,
.td-asset-pack-items-toggle:hover,
.td-asset-pack-items-toggle:focus-visible {
  border-color: #c6527e;
  background: #fff7fa;
  outline: 2px solid rgb(198 82 126 / 16%);
  outline-offset: 1px;
}

.td-stamp-option.is-purchased {
  border-color: #b8dcca;
}

.td-stamp-option.is-purchased .td-stamp-option-title {
  color: #3f3439;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.td-stamp-purchase-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border: 1px solid #7fbd9d;
  border-radius: 999px;
  background: #edf8f2;
  color: #1e6748;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.td-asset-pack-browser-detail {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #eadde2;
  border-radius: 14px;
  background: #fffafd;
}

.td-asset-pack-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.td-asset-pack-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 7px 4px 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #66575e;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.td-asset-pack-back:hover,
.td-asset-pack-back:focus-visible {
  background: #f5edf0;
  color: #9f3760;
}

.td-asset-pack-back-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.td-asset-pack-summary {
  display: grid;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.td-asset-pack-summary h3 {
  margin: 0;
  color: #30262a;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.td-asset-pack-summary p {
  margin: 0;
  color: #6f6067;
  font-size: 12px;
  line-height: 1.65;
}

.td-asset-pack-overview {
  border-top: 1px solid #eee5e8;
  padding-top: 8px;
}

.td-asset-pack-overview summary {
  color: #9f3760;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.td-asset-pack-overview p {
  margin-top: 8px;
}

.td-asset-pack-summary-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #67575e;
  font-size: 12px;
}

.td-asset-pack-purchase {
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: #bd4674;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.td-asset-pack-purchase:hover,
.td-asset-pack-purchase:focus-visible {
  background: #a63863;
}

.td-asset-pack-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 12px;
}

.td-asset-pack-items-toggle {
  margin-top: 0;
}

.td-asset-pack-item {
  display: grid;
  grid-template-rows: auto minmax(36px, auto);
  align-content: start;
  gap: 8px;
  box-sizing: border-box;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e9e0e3;
  border-radius: 12px;
  background: #fff;
  color: #4c3f44;
  font: inherit;
  cursor: pointer;
}

.td-asset-pack-item:hover,
.td-asset-pack-item:focus-visible {
  border-color: #c6527e;
}

.td-asset-pack-item:disabled {
  cursor: default;
  opacity: .82;
}

.td-asset-pack-item-image {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
}

.td-asset-pack-item-image img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid #f0e9ec;
  border-radius: 9px;
  background: #faf9f9;
}

.td-asset-pack-item-title {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.td-asset-pack-purchase-note {
  margin: 0;
  color: #7a6a71;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.create-desktop-sidebar .td-stamp-picker:has(.td-asset-pack-content) {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.create-desktop-sidebar .td-stamp-picker:has(.td-asset-pack-content) .td-material-scope-tabs {
  position: sticky;
  z-index: 4;
  top: 0;
}

.create-desktop-sidebar .td-stamp-picker:has(.td-asset-pack-content) .td-stamp-search-wrap {
  position: sticky;
  z-index: 4;
  top: 48px;
  padding-bottom: 2px;
  background: #fff;
}

.create-desktop-sidebar .td-stamp-picker:has(.td-asset-pack-content) .td-asset-pack-content {
  overflow: visible;
  padding-right: 0;
  scrollbar-gutter: auto;
}
