.product-grouping-item:not(:last-child) {
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.swap-cursor {
  cursor: pointer;
  background: #e6f7ff !important;
}
.swap-selected {
  background: #ffe58f !important;
}
.error-border {
  border: 2px solid #dc3545 !important
}

/* Loading/updating state for product rows */
.updating-in-progress {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.updating-in-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 123, 255, 0.03) 10px,
    rgba(0, 123, 255, 0.03) 20px
  );
  animation: updating-shimmer 1.5s linear infinite;
  pointer-events: none;
}

@keyframes updating-shimmer {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 40px;
  }
}

/* Badge flash animation for updated values */
.badge-flash {
  animation: badge-flash-animation 0.6s ease-in-out;
}

@keyframes badge-flash-animation {
  0%, 100% {
    color: inherit;
    font-weight: normal;
  }
  50% {
    color: #28a745; /* Success green */
    font-weight: bold;
    transform: scale(1.05);
  }
}

#shopify-admin-link-menu {
  border: 1.5px solid #888;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
#shopify-admin-link-menu .dropdown-item {
  border-bottom: 1px solid #e0e0e0;
}

#shopify-admin-link-menu .dropdown-item:last-child {
  border-bottom: none;
}

.product-grouping-flash {
  animation: product-grouping-flash-fade 1.2s cubic-bezier(0.4,0,0.2,1);
}
@keyframes product-grouping-flash-fade {
  0% { background-color: #fff8b3; }
  60% { background-color: #fff8b3; }
  100% { background-color: inherit; }
}

.ui-sortable-helper {
  opacity: 0.7;
  transform: rotate(3deg);
  z-index: 1000 !important;
}

.ui-sortable-placeholder {
  border: 2px dashed #007bff !important;
  background-color: #e3f2fd !important;
  visibility: visible !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  margin: 2px !important;
  border-radius: 3px !important;
  display: inline-block !important;
  width: 80px !important;
  vertical-align: top !important;
}