.gwc-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: .75rem 0 1rem;
}

.gwc-swatch {
  appearance: none;
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: .5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;              /* was inline-flex */
  flex-direction: column;     /* stack image over text */
  align-items: center;
  justify-content: center;
  gap: .4rem;                 /* space between image and label */
  line-height: 1.2;
  transition: box-shadow .2s ease, border-color .2s ease, transform .02s ease;
  text-align: center;
}

.gwc-swatch:hover {
  border-color: #cfcfcf;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.gwc-swatch.is-selected {
  border-color: #111;
  box-shadow: 0 0 0 2px #111 inset;
}

.gwc-swatch:focus { outline: none; }

.gwc-swatch .gwc-swatch-img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gwc-swatch .gwc-swatch-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gwc-swatch .gwc-swatch-label {
  font-size: .85rem;
  color: #333;
  white-space: normal;  /* allows wrapping */
  margin-top: 4px;
}