/* Bundle detail page: admin build actions loading, progress bar */

@keyframes bundle-build-indeterminate {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

.bundle-build-progress-track {
  height: 0.25rem;
  border-radius: 9999px;
  background: rgba(120, 53, 15, 0.35);
  overflow: hidden;
}

.bundle-build-progress-bar {
  width: 35%;
  height: 100%;
  border-radius: 9999px;
  background: rgba(253, 230, 138, 0.95);
  animation: bundle-build-indeterminate 1.15s ease-in-out infinite;
}

.bundle-build-admin-btn--busy {
  cursor: wait;
}

.bundle-build-admin-btn--busy .bundle-build-admin-btn-default {
  display: none !important;
}

.bundle-build-admin-btn--busy .bundle-build-admin-btn-loading {
  display: inline-flex !important;
}

.bundle-build-admin-btn .bundle-build-admin-btn-loading {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .bundle-build-progress-bar {
    animation: none;
    width: 100%;
    opacity: 0.75;
  }
}

/* Share modal: Private / Anyone */
.bundle-share-vis-opt {
  min-width: 5.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.bundle-share-vis-opt:hover:not(:disabled) {
  color: rgba(255, 255, 255, 0.92);
}

.bundle-share-vis-opt:disabled {
  opacity: 0.55;
  cursor: wait;
}

.bundle-share-vis-opt--active {
  color: #fff;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(124, 58, 237, 0.9));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
