.ai-art-studio-embed {
  /* Keep top band ~ Product Customizer pill height (was 2rem+2rem dead space). */
  padding: 0.5rem 0 1rem;
  margin: 0.5rem 0 1rem;
  position: relative;
  z-index: 0;
}

.ai-art-studio-embed__wrapper {
  max-width: 100%;
  position: relative;
  z-index: 0;
}

.ai-art-studio-embed__heading,
.ai-art-studio-embed__description {
  display: none;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ai-art-studio-embed__studio {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  position: relative;
  z-index: 0;
}

.ai-art-studio-embed__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f4f4f5;
  z-index: 10;
  pointer-events: none;
}

.ai-art-studio-embed__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e5e5;
  border-top-color: #333;
  border-radius: 50%;
  animation: ai-art-embed-spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes ai-art-embed-spin {
  to { transform: rotate(360deg); }
}

/* Loading screen title — left-to-right shimmer sweep, loops while loading */
@keyframes ai-art-title-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.ai-art-studio-embed__loading .ai-art-studio-embed__loading-title,
.ai-art-studio-embed__loading p.ai-art-studio-embed__loading-title {
  display: inline-block;
  padding: 0.08em 0.04em 0.14em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.04em;
  margin: 0;
  background: linear-gradient(
    90deg,
    #111827 0%,
    #111827 35%,
    #d1d5db 50%,
    #111827 65%,
    #111827 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: ai-art-title-shimmer 2.4s linear infinite;
}

@media (max-width: 640px) {
  .ai-art-studio-embed__loading .ai-art-studio-embed__loading-title,
  .ai-art-studio-embed__loading p.ai-art-studio-embed__loading-title {
    font-size: 28px;
  }
}

/* Parent-side Add to Cart button */
.ai-art-atc-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}
.ai-art-atc-btn:hover:not(:disabled) {
  opacity: 0.88;
}
.ai-art-atc-btn:disabled {
  cursor: not-allowed;
}

/* Artwork Generating spinner inside placeholder gallery */
@keyframes ai-art-spin {
  to { transform: rotate(360deg); }
}
.ai-art-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #ddd;
  border-top-color: #555;
  border-radius: 50%;
  animation: ai-art-spin 0.75s linear infinite;
}
</style>
