.fw-variation-grid-wrap {
  margin: 0 0 18px 0;
}

.fw-vg-attribute {
  margin: 0 0 16px 0;
}

.fw-vg-attribute-title {
  font-weight: 600;
  margin: 0 0 8px 0;
}

.fw-vg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.fw-vg-tile {
  appearance: none;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform .06s ease, border-color .12s ease, opacity .12s ease;
}

.fw-vg-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.30);
}

.fw-vg-swatch {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.15);
  flex: 0 0 auto;
}

.fw-vg-swatch-none {
  background: repeating-linear-gradient(
    45deg,
    rgba(0,0,0,.08),
    rgba(0,0,0,.08) 6px,
    rgba(0,0,0,.02) 6px,
    rgba(0,0,0,.02) 12px
  );
}

.fw-vg-label {
  line-height: 1.2;
}

.fw-vg-tile.is-selected {
  border-color: rgba(0,0,0,.65);
  box-shadow: 0 0 0 2px rgba(0,0,0,.08);
}

.fw-vg-tile.is-disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none !important;
}

.fw-vg-help {
  margin-top: 6px;
}

.fw-vg-clear {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  opacity: .75;
}

.fw-vg-clear:hover {
  opacity: 1;
}

/* Optional: hide the default selects while keeping them for Woo logic */
form.variations_form.fw-vg-hide-selects table.variations {
  display: none !important;
}
