/* =========================================================
   UTILITIES
   Loader, spin animation, action icons and small reusable helpers.
   ========================================================= */

.loader {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(0, 0, 0, .15);
  border-top-color: rgba(0, 0, 0, .5);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

.icon-spin {
  animation: spin 1s linear infinite;
}

.spin {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

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

.action-icon {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  filter: brightness(0.9);
  transition: filter 0.15s ease;
}

.action-icon iconify-icon {
  font-size: 1.1rem;
}

.action-icon:hover {
  filter: brightness(1.3);
}

.product-box-count-button.button {
  width: 1.55rem;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  color: white;
}

.action-icon.is-loading,
.field-label-actions .action-icon.is-loading {
  opacity: .55;
  pointer-events: none;
}

.action-icon.is-loading iconify-icon,
.field-label-actions .action-icon.is-loading iconify-icon {
  animation: spin .8s linear infinite;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
