.tosit-stock-status {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.tosit-stock-status.preview {
  background-color: rgba(108, 117, 125, 0.1);
  border: 1px solid rgba(108, 117, 125, 0.3);
  color: #6c757d;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tosit-stock-status {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* Loading state for when variation is being processed */
.tosit-stock-status.loading {
  opacity: 0.6;
  position: relative;
}

.tosit-stock-status.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 8px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Widget wrapper for better control */
.tosit-stock-status-widget {
  display: inline-block;
}

/* Enhanced visual feedback for status changes */
.tosit-stock-status.status-changing {
  animation: statusPulse 0.6s ease-in-out;
}

@keyframes statusPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
