.alter-assets-tabs {
  margin-bottom: 16px;
}

.alter-assets-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: stretch;
  gap: 12px;
  margin: 10px 0 18px;
}

.alter-assets-filter-form,
.alter-assets-settings-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}

.alter-assets-filter-form {
  display: grid;
  gap: 10px;
  justify-content: start;
}

.alter-assets-filter-form.no-product-filter {
  grid-template-columns: minmax(260px, 520px);
}

.alter-assets-filter-form.has-product-filter {
  grid-template-columns: minmax(260px, 520px) minmax(180px, 260px);
}

.alter-assets-toolbar-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
}

.alter-assets-action-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.alter-assets-toolbar .alter-assets-graphic-search,
.alter-assets-toolbar .alter-assets-graphic-select {
  margin: 0;
}

.alter-assets-toolbar .alter-assets-settings-form .submit {
  margin: 0;
  padding: 0;
}

.alter-assets-toolbar .button {
  min-height: 36px;
  padding: 0 12px;
}

.alter-assets-per-page-control {
  width: 126px;
}

.alter-assets-per-page-control input[type="number"] {
  width: 100%;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #1d2327;
  font-size: 13px;
  font-weight: 600;
}

.alter-assets-starter-guide {
  max-width: 1180px;
  margin: 18px 0 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-left: 4px solid #2271b1;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.alter-assets-starter-copy {
  max-width: 860px;
}

.alter-assets-starter-kicker {
  margin: 0 0 6px;
  color: #2271b1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alter-assets-starter-guide h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.alter-assets-starter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.alter-assets-starter-step {
  padding: 14px;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 10px;
}

.alter-assets-starter-step.is-ok {
  background: #f6fff8;
  border-color: #8bcf9f;
}

.alter-assets-starter-step.is-todo {
  background: #fffaf0;
  border-color: #e0c46c;
}

.alter-assets-starter-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.alter-assets-starter-step-head span {
  padding: 2px 8px;
  background: #f0f0f1;
  border-radius: 999px;
  color: #50575e;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.alter-assets-starter-step.is-ok .alter-assets-starter-step-head span {
  background: #dff6e4;
  color: #115c26;
}

.alter-assets-starter-step.is-todo .alter-assets-starter-step-head span {
  background: #fff0c2;
  color: #6b5300;
}

.alter-assets-starter-step p {
  margin: 10px 0 0;
}

.alter-assets-starter-active-note {
  margin: 18px 0 0;
  padding: 10px 12px;
  background: #f0f6fc;
  border-left: 4px solid #72aee6;
}

@media (max-width: 960px) {
  .alter-assets-starter-grid {
    grid-template-columns: 1fr;
  }
}

.alter-assets-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alter-assets-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #f0f0f1;
  color: #1d2327;
}

.alter-assets-badge.status-downloaded {
  background: #edfaef;
  color: #116329;
}

.alter-assets-badge.status-update_available {
  background: #fff8e5;
  color: #8a5b00;
}

.alter-assets-badge.status-failed {
  background: #fff1f1;
  color: #8a2424;
}

.alter-assets-badge.status-enabled {
  background: #edfaef;
  color: #116329;
}

.alter-assets-badge.status-disabled {
  background: #f0f0f1;
  color: #50575e;
}

.alter-assets-asset-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alter-assets-asset-copy {
  min-width: 0;
}

.alter-assets-font-asset-cell {
  display: block;
  min-width: 280px;
  max-width: 420px;
}

.wp-list-table.alter-assets-font-table {
  table-layout: auto;
}

.wp-list-table.alter-assets-font-table th,
.wp-list-table.alter-assets-font-table td {
  vertical-align: top;
}

.wp-list-table.alter-assets-font-table .column-asset {
  width: 36%;
  min-width: 320px;
}

.wp-list-table.alter-assets-font-table .column-font_details {
  width: 26%;
  min-width: 260px;
}

.wp-list-table.alter-assets-font-table .column-local_status {
  width: 12%;
  min-width: 130px;
}

.wp-list-table.alter-assets-font-table .column-local_version {
  width: 10%;
  min-width: 90px;
}

.wp-list-table.alter-assets-font-table .column-actions {
  width: 16%;
  min-width: 190px;
}

.alter-assets-font-name-row,
.alter-assets-font-preview-row {
  display: block;
  width: 100%;
}

.alter-assets-font-name-row {
  margin: 0 0 10px;
}

.alter-assets-font-title {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.alter-assets-font-preview-row .alter-assets-font-preview {
  display: flex;
  width: min(360px, 100%);
  height: auto;
  min-height: 86px;
  flex: 0 0 auto;
  box-sizing: border-box;
  margin: 0;
}

.wp-list-table .column-font_details {
  width: 28%;
  min-width: 220px;
}

.alter-assets-font-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  color: #50575e;
}

.alter-assets-font-detail-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.alter-assets-font-detail-label {
  color: #646970;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.alter-assets-font-detail-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.alter-assets-font-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.alter-assets-version-pair {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #50575e;
}

.alter-assets-thumb {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #dcdcde;
  background: #fff;
}

.alter-assets-thumb-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #646970;
  background:
    linear-gradient(135deg, #f6f7f7 0%, #eef1f2 100%);
}

.alter-assets-font-preview {
  display: inline-flex;
  align-items: stretch;
  justify-content: flex-start;
  background:
    linear-gradient(135deg, #f6f0e7 0%, #f3f7fa 100%);
  color: #1d2327;
  padding: 10px 12px;
  width: 176px;
  height: 88px;
  flex: 0 0 176px;
  overflow: hidden;
}

.alter-assets-font-preview-large {
  width: min(320px, 100%);
  height: auto;
  min-height: 176px;
  border-radius: 14px;
  border: 1px solid #dcdcde;
  margin: 0 0 16px;
  padding: 18px 20px;
  flex: 0 0 auto;
}

.alter-assets-font-samples {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.alter-assets-font-sample {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.alter-assets-font-sample-1 {
  font-size: 16px;
}

.alter-assets-font-sample-2 {
  font-size: 20px;
}

.alter-assets-font-sample-3 {
  font-size: 15px;
  opacity: 0.78;
}

.alter-assets-font-preview-large .alter-assets-font-samples {
  gap: 10px;
}

.alter-assets-font-preview-large .alter-assets-font-sample-1 {
  font-size: 26px;
}

.alter-assets-font-preview-large .alter-assets-font-sample-2 {
  font-size: 34px;
}

.alter-assets-font-preview-large .alter-assets-font-sample-3 {
  font-size: 24px;
}

.alter-assets-detail-preview {
  margin: 0 0 16px;
}

.alter-assets-detail-thumb {
  display: block;
  width: min(320px, 100%);
  max-height: 240px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid #dcdcde;
  background: #fff;
  padding: 8px;
}

.alter-assets-details {
  margin-top: 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
}

.alter-assets-panel {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
}

.alter-assets-panel-header {
  margin-bottom: 14px;
}

.alter-assets-upload-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.alter-assets-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.alter-assets-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alter-assets-field-label {
  display: block;
  margin: 0 0 4px;
}

.alter-assets-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 12px;
  max-height: 220px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  background: #f8f9f9;
}

.alter-assets-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.alter-assets-upload-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alter-assets-local-table {
  margin-top: 8px;
}

.alter-assets-subtabs {
  margin: 0 0 16px;
}

.alter-assets-library-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.alter-assets-local-filter-row {
  margin: 0 0 16px;
}

.alter-assets-graphic-library {
  padding: 16px 0 24px;
}

.alter-assets-graphic-library > h2 {
  margin: 0 0 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.alter-assets-graphic-filters {
  display: grid;
  grid-template-columns: minmax(240px, 520px) minmax(170px, 220px) minmax(170px, 220px);
  gap: 14px;
  align-items: stretch;
  margin: 0 0 22px;
}

.alter-assets-graphic-filters.no-categories .alter-assets-graphic-select {
  grid-column: 2;
}

.alter-assets-graphic-search,
.alter-assets-graphic-select {
  display: flex;
  position: relative;
  min-width: 0;
}

.alter-assets-graphic-search input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 0 42px 0 14px;
  border-color: #dcdcde;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.alter-assets-graphic-search button {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 42px;
  height: calc(100% - 2px);
  border: 0;
  background: transparent;
  color: #1d2327;
  cursor: pointer;
}

.alter-assets-graphic-search .dashicons {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.alter-assets-graphic-select {
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  background: #fff;
}

.alter-assets-graphic-select span {
  color: #646970;
  font-size: 10px;
  font-weight: 600;
}

.alter-assets-graphic-select select {
  width: 100%;
  max-width: none;
  min-height: 22px;
  padding: 0 24px 0 0;
  border: 0;
  background-color: transparent;
  box-shadow: none;
  color: #1d2327;
  font-size: 13px;
  font-weight: 600;
}

.alter-assets-toolbar .alter-assets-graphic-search input[type="search"] {
  min-height: 36px;
  padding: 0 36px 0 12px;
  font-size: 13px;
}

.alter-assets-toolbar .alter-assets-graphic-search button {
  width: 36px;
}

.alter-assets-toolbar .alter-assets-graphic-search .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.alter-assets-toolbar .alter-assets-graphic-select {
  min-height: 36px;
  padding: 3px 9px;
}

.alter-assets-toolbar .alter-assets-graphic-select span {
  font-size: 9px;
}

.alter-assets-toolbar .alter-assets-graphic-select select,
.alter-assets-toolbar .alter-assets-per-page-control input[type="number"] {
  min-height: 18px;
  font-size: 12px;
}

.alter-assets-graphic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 236px));
  gap: 18px;
  align-items: stretch;
  justify-content: start;
}

.alter-assets-graphic-add-card,
.alter-assets-graphic-card {
  min-height: 224px;
  border: 0;
  border-radius: 4px;
}

.alter-assets-graphic-add-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 22px;
  background: #46b978;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.45;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.alter-assets-graphic-add-card:hover,
.alter-assets-graphic-add-card:focus-visible {
  background: #35aa6a;
  box-shadow: 0 16px 34px rgba(35, 128, 77, 0.22);
  transform: translateY(-1px);
}

.alter-assets-graphic-add-plus {
  position: relative;
  width: 54px;
  height: 54px;
}

.alter-assets-graphic-add-plus::before,
.alter-assets-graphic-add-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.alter-assets-graphic-add-plus::after {
  width: 4px;
  height: 54px;
}

.alter-assets-graphic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
  background: #fff;
}

.alter-assets-graphic-card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.alter-assets-graphic-card-actions .alter-assets-action-form {
  display: block;
}

.alter-assets-graphic-card-actions .button-link-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: #fff;
  color: #d63638;
  font-size: 0;
  text-decoration: none;
}

.alter-assets-graphic-card-actions .button-link-delete:hover,
.alter-assets-graphic-card-actions .button-link-delete:focus {
  background: #f0f0f1;
  color: #b32d2e;
}

.alter-assets-graphic-card-actions .button-link-delete::before {
  content: "\f182";
  font-family: dashicons;
  font-size: 20px;
  line-height: 1;
}

.alter-assets-graphic-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
  margin-top: 20px;
}

.alter-assets-graphic-card-media img {
  display: block;
  width: 100%;
  max-height: 118px;
  object-fit: contain;
}

.alter-assets-graphic-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 118px;
  color: #646970;
  background: rgba(255, 255, 255, 0.48);
}

.alter-assets-graphic-placeholder .dashicons {
  width: 28px;
  height: 28px;
  font-size: 28px;
}

.alter-assets-graphic-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.alter-assets-graphic-card-footer strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #1d2327;
  font-size: 13px;
}

.alter-assets-graphic-edit {
  color: #1d2327;
  line-height: 1;
}

.alter-assets-graphic-edit .dashicons {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.alter-assets-graphic-empty {
  margin: 22px 0;
  color: #646970;
}

.alter-assets-empty-state {
  padding: 28px 24px;
  border: 1px dashed #c3c4c7;
  border-radius: 14px;
  background: linear-gradient(135deg, #fafbfb 0%, #f4f6f6 100%);
  color: #50575e;
}

.alter-assets-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.alter-assets-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dcdcde;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.alter-assets-card-media .alter-assets-thumb {
  width: 100%;
  height: 180px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.alter-assets-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alter-assets-card-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}

.alter-assets-card-title {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.alter-assets-card-subtitle {
  display: block;
  color: #646970;
  font-size: 12px;
  line-height: 1.35;
}

.alter-assets-card-meta,
.alter-assets-card-meta-row {
  font-size: 12px;
  color: #646970;
}

.alter-assets-card-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.alter-assets-technology-card .alter-assets-card-top {
  align-items: flex-start;
}

.alter-assets-technology-card .alter-assets-card-meta-row {
  flex-direction: column;
  gap: 6px;
}

.alter-assets-technology-description {
  min-height: 58px;
  margin: 0;
  color: #50575e;
  line-height: 1.45;
}

.alter-assets-technology-description.is-muted {
  color: #8c8f94;
  font-style: italic;
}

.alter-assets-card-statuses {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.alter-assets-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alter-assets-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f0f6fc;
  color: #0a4b78;
  font-size: 12px;
  font-weight: 600;
}

.alter-assets-chip-removable {
  gap: 6px;
  padding-right: 6px;
}

.alter-assets-chip-remove {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.alter-assets-panel.alter-assets-minimal-library {
  margin: 0;
  padding: 14px 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.alter-assets-minimal-library .alter-assets-library-header {
  margin: 0 0 18px;
}

.alter-assets-minimal-library .alter-assets-library-header h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.alter-assets-local-tile-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 236px));
  gap: 18px;
  align-items: stretch;
  justify-content: start;
}

.alter-assets-local-tile {
  position: relative;
  min-height: 224px;
  gap: 12px;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.alter-assets-local-tile:hover {
  box-shadow: none;
  transform: none;
}

.alter-assets-local-tile,
.alter-assets-local-tile .alter-assets-actions .button,
.alter-assets-local-tile .alter-assets-actions a.button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.alter-assets-local-tile .alter-assets-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
  margin-top: 18px;
}

.alter-assets-local-tile .alter-assets-card-media .alter-assets-thumb {
  width: 100%;
  height: 118px;
  max-height: 118px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.alter-assets-local-tile .alter-assets-thumb-placeholder {
  background: rgba(255, 255, 255, 0.48);
  color: #646970;
}

.alter-assets-local-tile .alter-assets-card-body {
  gap: 10px;
  min-height: 0;
}

.alter-assets-local-tile .alter-assets-card-top {
  gap: 12px;
  align-items: flex-start;
  margin-top: auto;
}

.alter-assets-local-tile .alter-assets-card-title {
  color: #1d2327;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.alter-assets-local-tile .alter-assets-card-meta {
  margin-top: 3px;
}

.alter-assets-product-tile-id {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  box-sizing: border-box;
  background: #fff;
  color: #646970;
  font-size: 13px;
  line-height: 1;
}

.alter-assets-variant-tile-id {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  box-sizing: border-box;
  background: #fff;
  color: #646970;
  font-size: 13px;
  line-height: 1;
}

.alter-assets-product-tile {
  min-height: 0;
}

.alter-assets-product-tile-action {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  margin: 0;
}

.alter-assets-product-tile-action .alter-assets-action-form {
  margin: 0;
}

.alter-assets-product-tile-action .button-link-delete {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d63638;
  font-size: 0;
  text-decoration: none;
}

.alter-assets-product-tile-action .button-link-delete:hover,
.alter-assets-product-tile-action .button-link-delete:focus {
  background: #f0f0f1;
  color: #b32d2e;
}

.alter-assets-product-tile-action .button-link-delete::before {
  content: "\f182";
  font-family: dashicons;
  font-size: 20px;
  line-height: 1;
}

.alter-assets-template-tile-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.alter-assets-template-tile-actions .alter-assets-action-form {
  margin: 0;
}

.alter-assets-template-tile-actions .alter-assets-variant-edit,
.alter-assets-template-tile-actions .button-link-delete {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
}

.alter-assets-template-tile-actions .alter-assets-variant-edit {
  color: #1d2327;
}

.alter-assets-template-tile-actions .button-link-delete {
  color: #d63638;
  font-size: 0;
}

.alter-assets-template-tile-actions .alter-assets-variant-edit:hover,
.alter-assets-template-tile-actions .alter-assets-variant-edit:focus,
.alter-assets-template-tile-actions .button-link-delete:hover,
.alter-assets-template-tile-actions .button-link-delete:focus {
  background: #f0f0f1;
}

.alter-assets-template-tile-actions .alter-assets-variant-edit:hover,
.alter-assets-template-tile-actions .alter-assets-variant-edit:focus {
  color: #135e96;
}

.alter-assets-template-tile-actions .button-link-delete:hover,
.alter-assets-template-tile-actions .button-link-delete:focus {
  color: #b32d2e;
}

.alter-assets-template-tile-actions .button-link-delete::before {
  content: "\f182";
  font-family: dashicons;
  font-size: 20px;
  line-height: 1;
}

.alter-assets-template-tile .alter-assets-card-body {
  gap: 5px;
}

.alter-assets-logo-block-list {
  display: grid;
  max-width: 980px;
  gap: 28px;
}

.alter-assets-logo-block {
  overflow: hidden;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  background: #fff;
}

.alter-assets-logo-block-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #dcdcde;
}

.alter-assets-logo-block-header h3 {
  margin: 2px 0 4px;
  font-size: 15px;
  line-height: 1.25;
}

.alter-assets-logo-block-header .description {
  margin: 0;
}

.alter-assets-logo-block-label {
  display: inline-flex;
  color: #646970;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.alter-assets-logo-block-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.alter-assets-logo-block-actions .alter-assets-action-form {
  margin: 0;
}

.alter-assets-logo-block-actions .alter-assets-variant-edit,
.alter-assets-logo-block-actions .button-link-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
}

.alter-assets-logo-block-actions .alter-assets-variant-edit {
  color: #1d2327;
}

.alter-assets-logo-block-actions .button-link-delete {
  color: #d63638;
  font-size: 0;
}

.alter-assets-logo-block-actions .alter-assets-variant-edit:hover,
.alter-assets-logo-block-actions .alter-assets-variant-edit:focus,
.alter-assets-logo-block-actions .button-link-delete:hover,
.alter-assets-logo-block-actions .button-link-delete:focus {
  background: #f0f0f1;
}

.alter-assets-logo-block-actions .button-link-delete::before {
  content: "\f182";
  font-family: dashicons;
  font-size: 20px;
  line-height: 1;
}

.alter-assets-logo-preview-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 56px 32px;
  background: #d9d9d9;
}

.alter-assets-logo-block.is-square .alter-assets-logo-preview-stage {
  min-height: 340px;
}

.alter-assets-logo-block.is-horizontal .alter-assets-logo-preview-stage {
  min-height: 260px;
}

.alter-assets-logo-preview-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.alter-assets-logo-block.is-square .alter-assets-logo-preview-frame {
  width: min(260px, 72vw);
  aspect-ratio: 1 / 1;
}

.alter-assets-logo-block.is-horizontal .alter-assets-logo-preview-frame {
  width: min(560px, 82vw);
  aspect-ratio: 3 / 1;
}

.alter-assets-logo-preview-frame img {
  display: block;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
}

.alter-assets-logo-empty-preview {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #8c8f94;
  font-size: 12px;
}

.alter-assets-logo-empty-preview .dashicons {
  font-size: 28px;
  width: 28px;
  height: 28px;
}

.alter-assets-local-tile .alter-assets-card-statuses {
  gap: 6px;
  justify-content: flex-end;
}

.alter-assets-local-tile .alter-assets-badge {
  padding: 2px 8px;
  font-size: 11px;
}

.alter-assets-local-tile .alter-assets-card-meta-row {
  display: none;
}

.alter-assets-local-tile .alter-assets-actions {
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.alter-assets-local-tile .alter-assets-actions .alter-assets-action-form {
  margin: 0;
}

.alter-assets-local-tile .alter-assets-actions .button:not(.button-link-delete),
.alter-assets-local-tile .alter-assets-actions a.button {
  min-height: 30px;
  padding: 2px 10px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.74);
  color: #1d2327;
  font-size: 12px;
  line-height: 24px;
}

.alter-assets-local-tile .alter-assets-actions .button:not(.button-link-delete):hover,
.alter-assets-local-tile .alter-assets-actions a.button:hover,
.alter-assets-local-tile .alter-assets-actions .button:not(.button-link-delete):focus,
.alter-assets-local-tile .alter-assets-actions a.button:focus {
  border-color: transparent;
  background: #fff;
  color: #135e96;
}

.alter-assets-local-tile .alter-assets-actions .button-link-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d63638;
  font-size: 0;
  text-decoration: none;
}

.alter-assets-local-tile .alter-assets-actions .button-link-delete::before {
  content: "\f182";
  font-family: dashicons;
  font-size: 20px;
  line-height: 1;
}

.alter-assets-variant-tile .alter-assets-technology-description {
  min-height: 0;
  max-height: none;
  overflow: visible;
  margin: 0;
  color: #50575e;
  font-size: 12px;
  line-height: 1.45;
}

.alter-assets-variant-tile .alter-assets-technology-description.is-muted {
  color: #8c8f94;
}

.alter-assets-variant-tile .alter-assets-actions {
  justify-content: flex-end;
}

.alter-assets-variant-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  color: #1d2327;
  text-decoration: none;
}

.alter-assets-variant-edit:hover,
.alter-assets-variant-edit:focus {
  background: #f0f0f1;
  color: #135e96;
}

.alter-assets-variant-edit .dashicons {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.alter-assets-modal-open {
  overflow: hidden;
}

.alter-assets-modal[hidden] {
  display: none !important;
}

.alter-assets-modal [hidden] {
  display: none !important;
}

.alter-assets-modal {
  position: fixed;
  top: 32px;
  right: 0;
  bottom: 0;
  left: 160px;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100vw - 160px);
  min-height: calc(100vh - 32px);
  padding: 24px;
  background: rgba(17, 24, 39, 0.72);
}

body.folded .alter-assets-modal {
  left: 36px;
  width: calc(100vw - 36px);
}

.alter-assets-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

@media (max-width: 782px) {
  .alter-assets-modal,
  body.folded .alter-assets-modal {
    top: 46px;
    left: 0;
    width: 100vw;
    min-height: calc(100vh - 46px);
  }
}

.alter-assets-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.28);
  padding: 22px 22px 18px;
}

.alter-assets-graphic-modal-dialog {
  width: min(600px, 100%);
  padding: 0;
  border-radius: 2px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.alter-assets-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.alter-assets-graphic-modal-header {
  align-items: center;
  margin: 0;
  padding: 12px 18px;
  background: #303235;
  color: #fff;
}

.alter-assets-graphic-modal-header .alter-assets-modal-title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

.alter-assets-graphic-modal-header .button-link {
  color: #fff;
}

.alter-assets-graphic-modal-header .dashicons {
  width: 28px;
  height: 28px;
  font-size: 28px;
}

.alter-assets-modal-title {
  margin: 0 0 6px;
}

.alter-assets-modal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 20px;
}

.alter-assets-modal-preview {
  display: flex;
  flex-direction: column;
}

.alter-assets-modal-preview-box,
.alter-assets-modal-preview-placeholder {
  border: 1px solid #dcdcde;
  border-radius: 16px;
  min-height: 220px;
  background: linear-gradient(135deg, #f8fafb 0%, #eef3f3 100%);
}

.alter-assets-modal-preview-box {
  overflow: hidden;
}

.alter-assets-modal-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.alter-assets-modal-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #646970;
}

.alter-assets-modal-preview-placeholder .dashicons {
  font-size: 28px;
  width: 28px;
  height: 28px;
}

.alter-assets-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.alter-assets-graphic-modal-form {
  gap: 0;
}

.alter-assets-graphic-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px 20px;
}

.alter-assets-graphic-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  overflow: hidden;
  border: 1px dashed #1d2327;
  background: #fff;
  color: #3c434a;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.alter-assets-graphic-dropzone.is-dragging,
.alter-assets-graphic-dropzone:hover {
  border-color: #00d982;
  background: #f6fff8;
}

.alter-assets-graphic-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.alter-assets-graphic-dropzone-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 18px;
  font-size: 14px;
}

.alter-assets-graphic-dropzone-copy .dashicons {
  width: 36px;
  height: 36px;
  color: #1d2327;
  font-size: 36px;
}

.alter-assets-graphic-dropzone-copy small {
  color: #50575e;
  font-size: 13px;
  line-height: 1.45;
}

.alter-assets-graphic-dropzone .alter-assets-modal-preview-box {
  position: relative;
  display: block;
  width: 100%;
  height: 140px;
  min-height: 140px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.alter-assets-graphic-dropzone .alter-assets-modal-preview-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
}

.alter-assets-graphic-replace-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(29, 35, 39, 0.78);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.alter-assets-graphic-dropzone:hover .alter-assets-graphic-replace-hint,
.alter-assets-graphic-dropzone:focus-within .alter-assets-graphic-replace-hint {
  opacity: 1;
  transform: translateY(0);
}

.alter-assets-graphic-title-input {
  width: 100%;
  max-width: none;
  min-height: 40px;
  padding: 0 12px;
  font-size: 14px;
}

.alter-assets-graphic-category-field {
  gap: 8px;
}

.alter-assets-graphic-category-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.alter-assets-graphic-category-heading .alter-assets-field-label {
  margin: 0;
  color: #1d2327;
  font-size: 14px;
  font-weight: 500;
}

.alter-assets-graphic-modal-dialog .alter-assets-checkbox-grid {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 4px;
  max-height: 128px;
  padding: 4px;
  border-color: #8c8f94;
  border-radius: 2px;
  background: #fff;
}

.alter-assets-graphic-modal-dialog .alter-assets-checkbox {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-height: 34px;
  padding: 4px 8px;
  background: #f4f4f4;
  color: #1d2327;
  font-size: 13px;
}

.alter-assets-graphic-modal-dialog .alter-assets-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  border-color: #1d2327;
  border-radius: 3px;
}

.alter-assets-graphic-modal-dialog .alter-assets-checkbox input[type="checkbox"]:checked::before {
  width: 23px;
  height: 23px;
  margin: -3px 0 0 -4px;
}

.alter-assets-graphic-modal-dialog .alter-assets-upload-actions {
  justify-content: center;
  padding: 0 20px 22px;
}

.alter-assets-graphic-save-button.button.button-primary {
  width: min(260px, 100%);
  min-height: 40px;
  border: 0;
  background: #00bd74;
  font-size: 15px;
  font-weight: 500;
}

.alter-assets-graphic-save-button.button.button-primary:hover,
.alter-assets-graphic-save-button.button.button-primary:focus {
  background: #00a965;
}

.alter-assets-category-create-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.alter-assets-pending-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alter-assets-field-error {
  margin: 2px 0 0;
  color: #b32d2e;
  font-size: 12px;
  font-weight: 600;
}

.alter-assets-download-dialog {
  width: min(660px, 100%);
}

.alter-assets-download-progress-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  margin: 6px 0 18px;
  background: #edf0f2;
  border-radius: 999px;
}

.alter-assets-download-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  min-width: 2%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00d982 0%, #2271b1 100%);
  transition: width 0.24s ease;
}

.alter-assets-download-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-100%);
  animation: alter-assets-progress-shine 1.25s linear infinite;
}

.alter-assets-download-progress-bar.is-indeterminate {
  animation: alter-assets-progress-indeterminate 1.15s ease-in-out infinite;
}

.alter-assets-download-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.alter-assets-download-status-row span {
  color: #646970;
  white-space: nowrap;
}

.alter-assets-download-meta {
  min-height: 18px;
  color: #646970;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}

.alter-assets-download-message {
  margin: 10px 0 0;
  color: #50575e;
}

.alter-assets-download-log {
  max-height: 120px;
  overflow: auto;
  margin-top: 14px;
  padding: 10px 12px;
  background: #f6f7f7;
  border-radius: 10px;
  color: #50575e;
  font-size: 12px;
  line-height: 1.45;
}

.alter-assets-download-log:empty {
  display: none;
}

.alter-assets-download-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

@keyframes alter-assets-progress-shine {
  to {
    transform: translateX(100%);
  }
}

@keyframes alter-assets-progress-indeterminate {
  0% {
    left: 0;
    transform: translateX(-90%);
  }
  50% {
    left: 50%;
    transform: translateX(-10%);
  }
  100% {
    left: 100%;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .alter-assets-toolbar {
    grid-template-columns: 1fr;
  }

  .alter-assets-filter-form.no-product-filter,
  .alter-assets-filter-form.has-product-filter {
    grid-template-columns: 1fr;
  }

  .alter-assets-toolbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .alter-assets-graphic-filters,
  .alter-assets-graphic-filters.no-categories {
    grid-template-columns: 1fr;
  }

  .alter-assets-graphic-filters.no-categories .alter-assets-graphic-select {
    grid-column: auto;
  }

  .alter-assets-graphic-library > h2 {
    margin-bottom: 24px;
  }

  .alter-assets-graphic-modal-dialog .alter-assets-checkbox-grid {
    grid-template-columns: 1fr;
    max-height: 150px;
  }

  .alter-assets-graphic-modal-body {
    padding: 18px 16px 22px;
  }

  .alter-assets-graphic-dropzone {
    min-height: 150px;
  }

  .alter-assets-modal-layout {
    grid-template-columns: 1fr;
  }
}
