/* Hide the original <select> visually but keep it in the accessibility
   tree and fully functional for WooCommerce's own JS */
.vswatch-select-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.vswatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 6px;
}

/* Color swatches — circles */
.vswatch-group--color .vswatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  outline: 1px solid #e3ded2;
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: transform .15s ease, outline-color .15s ease;
}
.vswatch-group--color .vswatch:hover {
  transform: translateY(-2px);
}
.vswatch-group--color .vswatch--selected {
  outline: 2px solid #B3294E;
  outline-offset: 1px;
}
.vswatch-group--color .vswatch--selected::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff inset;
}
.vswatch-group--color .vswatch:focus-visible {
  outline: 2px solid #B3294E;
}

/* Button-style swatches — Size, Material, etc. */
.vswatch-group--button .vswatch--button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid #e3ded2;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: #232323;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.vswatch-group--button .vswatch--button:hover {
  border-color: #B3294E;
}
.vswatch-group--button .vswatch--button.vswatch--selected {
  background: #B3294E;
  border-color: #B3294E;
  color: #fff;
}
.vswatch-group--button .vswatch--button:focus-visible {
  outline: 2px solid #B3294E;
  outline-offset: 2px;
}
