.three-d-shops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.three-d-shops-card .card-body { padding: 0.75rem; }

.three-d-shops-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #f8f9fa;
  border-radius: 0.375rem;
}

.three-d-shops-thumb-image,
.three-d-shops-lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.three-d-shops-lightbox-image {
  max-height: calc(100vh - 8rem);
  background: #111;
}

.three-d-shops-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.three-d-shops-toolbar .btn,
.three-d-shops-toolbar .form-control,
.three-d-shops-toolbar .form-select {
  margin: 0;
}

.three-d-shops-order { width: 3.25rem; max-width: 3.25rem; }
.three-d-shops-label { width: 8rem; max-width: 100%; }
.three-d-shops-price { width: 100px; max-width: 100px; }
.three-d-shops-narrow { width: 5.5rem; max-width: 100%; }
.three-d-shops-hex { width: 6.5rem; max-width: 100%; }

.three-d-shops-info {
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1;
  border-radius: 50%;
}

.three-d-shops-prompt {
  white-space: pre-wrap;
  max-height: 40vh;
  overflow: auto;
}

.three-d-shops-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 30rem));
  gap: 0.75rem;
}

.three-d-shops-file { max-width: none; min-width: 0; }

.three-d-shops-file h3 {
  overflow-wrap: anywhere;
}

.three-d-shops-component {
  display: grid;
  gap: 0.35rem;
}

.three-d-shops-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
}

details.three-d-shops-fold > summary {
  cursor: pointer;
  list-style: none;
}

details.three-d-shops-fold > summary::-webkit-details-marker { display: none; }

details.three-d-shops-fold > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.4rem;
}

details.three-d-shops-fold[open] > summary::before { content: "▾"; }
