/* Shared visual picker grid (image thumbnail buttons) */

.visual-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.visual-picker-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 2px solid rgba(104, 66, 170, 0.35);
  border-radius: 10px;
  background: rgba(16, 24, 36, 0.6);
  color: rgba(165, 179, 203, 0.85);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s;
}
.visual-picker-btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.visual-picker-btn span {
  display: block;
  width: 100%;
  padding: 5px 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.visual-picker-btn:hover {
  border-color: rgba(165, 179, 203, 0.55);
  transform: translateY(-1px);
}
.visual-picker-btn.is-active {
  border-color: rgba(104, 66, 170, 0.9);
  box-shadow: 0 0 0 1px rgba(104, 66, 170, 0.5), 0 2px 8px rgba(104, 66, 170, 0.25);
  color: #fff;
}
.visual-picker-btn.is-active img {
  opacity: 1;
}
.visual-picker-btn:not(.is-active) img {
  opacity: 0.25;
}
.visual-picker-btn.is-text-only {
  justify-content: center;
  padding: 8px;
}
.visual-picker-btn.is-text-only span {
  font-size: 0.8rem;
  padding: 0;
}
/* Text-only grid (no images) */
.visual-picker-grid.is-text-only {
  grid-template-columns: repeat(2, 1fr);
}
.visual-picker-grid.is-text-only .visual-picker-btn {
  justify-content: center;
  padding: 8px 6px;
}
.visual-picker-grid.is-text-only .visual-picker-btn span {
  font-size: 0.78rem;
  padding: 0;
}

.visual-picker-grid.is-icon-small .visual-picker-btn img {
  width: 75%;
}
