/* Hide original select dropdowns */
.variations_form .variations select {
  display: none !important;
}

/* Button container */
.variation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 10px;
}

/* Individual variation buttons */
.variation-button {
  padding: 5px 5px;
  border: 2px solid #ddd;
  background: #fff;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 50px;
  text-align: center;
  margin: 0 2px;
}

/* Hover state */
.variation-button:hover:not(:disabled) {
  border-color: #999;
  background: #f5f5f5;
}

/* Selected state */
.variation-button.selected {
  border-color: #333;
  background: #333;
  color: #fff;
}

/* Disabled state */
.variation-button:disabled,
.variation-button.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  position: relative;
  display: none !important;
}

/* Optional: Add strikethrough effect for disabled buttons */
.variation-button:disabled::after,
.variation-button.disabled::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #999;
  transform: rotate(-15deg);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .variation-button {
    flex: 1 0 calc(33.333% - 10px);
    min-width: auto;
  }
}