/* cf-pixel-btn.css: the pixel Generate button. See cf-pixel-btn.js. Flat blue, no gradients. */
.cfpx { position: relative; isolation: isolate; overflow: visible; touch-action: manipulation; }
.cfpx-cv { position: absolute; pointer-events: none; z-index: 0; max-width: none; }
.cfpx-label { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s ease, transform .2s ease, filter .2s ease; }
.cfpx.is-cfpx-dissolve .cfpx-label { opacity: 0; transform: scale(.94); filter: blur(2px); }
.cfpx-check { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 26; stroke-dashoffset: 26; animation: cfpx-check .32s ease-out forwards; }
@keyframes cfpx-check { to { stroke-dashoffset: 0; } }

/* loading keeps the button looking alive even though the page disables it */
.cfpx.is-cfpx-loading, .cfpx.is-cfpx-loading:disabled,
body.cf-copy-page.lyrc-app .cf-go-btn.cfpx.is-cfpx-loading:disabled,
body.ce-v2 #cfSetup #cfGoRow .cf-go-btn.cfpx.is-cfpx-loading:disabled {
  opacity: 1 !important; cursor: progress; background-image: none !important;
}
.cfpx.is-cfpx-loading:disabled, body.cf-copy-page.lyrc-app .cf-go-btn.cfpx.is-cfpx-loading:disabled {
  background: var(--cf-accent, #3B82F6) !important; border-color: transparent !important; color: #fff !important;
}
body.ce-v2 #cfSetup #cfGoRow .cf-go-btn.cfpx.is-cfpx-loading:disabled { background: var(--cfs-blue, #3B82F6) !important; color: #fff !important; }
/* the old pulsing ring would sit on a pixel button: the pixels are the hint now */
.cf-go-btn.cfpx.is-ready::after { animation: none; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .cfpx-label { transition: none; }
  .cfpx.is-cfpx-dissolve .cfpx-label { filter: none; }
  .cfpx-check { animation: none; stroke-dashoffset: 0; }
}
