/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.variant-saving-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #c7d2fe;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: variant-spin 0.7s linear infinite;
}

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

@keyframes just-saved-check {
  0%   { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

[data-just-saved] [data-variant-inline-edit-target="save"] {
  animation: just-saved-check 1.2s ease-out forwards;
  pointer-events: none;
}
