.widget-size {
  width: 32px;
  height: 32px;
  line-height: 32px;
}

.fs-12 {
  font-size: 12px;
}

.admin-table-thumb {
  width: 64px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #111827;
  flex: 0 0 auto;
}

.admin-product-name {
  max-width: 360px;
}

.admin-user-avatar {
  width: 42px;
  height: 42px;
  object-fit: cover;
}

.admin-profile-avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.admin-codearea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}

.admin-preview-product {
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  padding: 14px;
  background: var(--bs-body-bg);
}

.admin-preview-product img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: #111827;
  margin-bottom: 12px;
}

.admin-inline-editor {
  position: relative;
  display: inline-block;
}

.admin-inline-editor > summary {
  list-style: none;
  cursor: pointer;
}

.admin-inline-editor > summary::-webkit-details-marker {
  display: none;
}

.admin-inline-editor-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(720px, 78vw);
  padding: 16px;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  background: var(--bs-body-bg);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.admin-sticky-actions {
  z-index: 10;
  box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.08);
}

button.badge {
  cursor: pointer;
}

.admin-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
}

.admin-loading-overlay[hidden] {
  display: none;
}

.admin-loading-card {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  padding: 20px;
  background: var(--bs-body-bg);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.admin-loading-spinner {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bs-primary-bg-subtle);
}

.admin-loading-card strong {
  display: block;
  color: var(--bs-heading-color);
  font-size: 17px;
  font-weight: 700;
}

.admin-loading-card p {
  margin: 6px 0 8px;
  color: var(--bs-secondary-color);
  font-size: 13px;
  line-height: 1.45;
}

.admin-loading-card small {
  color: var(--bs-primary);
  font-size: 12px;
  font-weight: 700;
}

.admin-is-loading {
  cursor: wait;
}

@media (max-width: 767.98px) {
  .admin-inline-editor-panel {
    position: fixed;
    inset: auto 12px 12px;
    width: auto;
    max-height: 80vh;
    overflow-y: auto;
  }

  .admin-product-name {
    max-width: 210px;
  }
}
