html.exhibo-sync-pending {
  overflow: hidden;
}

.exhibo-product-sync-region {
  position: relative;
  isolation: isolate;
  min-height: 4.5rem;
}

.exhibo-sync-loader--inline {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-sizing: border-box;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgb(255 255 255 / 92%);
  color: #111;
  text-align: center;
}

dialog.exhibo-sync-loader {
  box-sizing: border-box;
  width: min(24rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 2rem;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font: inherit;
  text-align: center;
  box-shadow: 0 8px 40px rgb(0 0 0 / 15%);
}

dialog.exhibo-sync-loader[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

dialog.exhibo-sync-loader::backdrop {
  background: rgb(255 255 255 / 80%);
}

.exhibo-sync-loader p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.exhibo-sync-loader p:focus {
  outline: none;
}

.exhibo-sync-loader__spinner {
  box-sizing: border-box;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border: 3px solid #ddd;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: exhibo-sync-spin 800ms linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .exhibo-sync-loader__spinner {
    animation: none;
  }
}
