/* EagleTagz demo: the creator path (changes #11 and #12, October 2026). Script: flow-fixes.js.
 * Micro's Next button while it is off, the messages that replace browser pop-ups, the "new item"
 * view on Price & Copyright, Record with the camera on Load Media, the Camera's review step and
 * "Live in the Store". The step bar itself is in topbar.css (shared with checkout). Gold (#f1c50e)
 * is the accent from the design audit; text uses the six sizes. */
html.etz-noscroll, html.etz-noscroll body { overflow: hidden; }

/* ---------- Micro: Next ---------- */
#exportResultsBtn.etz-next:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}
#exportResultsBtn.etz-next:disabled:hover {
  background-color: #16a34a !important;
  border-color: #22c55e !important;
}
.etz-next-hint { color: #9ca3af; }
.etz-next-hint[hidden] { display: none !important; }

/* ---------- messages inside the page ---------- */
.etz-toast-stack {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(calc(100vw - 32px), 480px);
  pointer-events: none;
}
.etz-toast {
  pointer-events: auto;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left-width: 4px;
  background: #1f2937;
  color: #f9fafb;
  font-size: 16px;
  line-height: 1.4;
  white-space: pre-line;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.etz-toast.success { border-left-color: #22c55e; }
.etz-toast.error { border-left-color: #ef4444; }
.etz-toast.info { border-left-color: #3b82f6; }

.etz-new-banner button:focus-visible { outline: 2px solid #f1c50e; outline-offset: 2px; }

/* ---------- Price & Copyright: the item that was just saved ---------- */
.etz-new-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 12px 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(241, 197, 14, 0.5);
  background: rgba(241, 197, 14, 0.1);
  color: #f9fafb;
  font-size: 16px;
  line-height: 1.4;
}
.etz-new-banner strong { color: #f1c50e; }
.etz-new-banner button {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #f9fafb;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
#copyrightsContainer.etz-focus > :not(.etz-new) { display: none !important; }
#copyrightsContainer > .etz-new { outline: 2px solid #f1c50e; outline-offset: 3px; }
@media (max-width: 640px) {
  .etz-new-banner { flex-direction: column; align-items: stretch; }
}

/* Price & Copyright after a registration: its "Price & Copyright" heading gives way to
   "Copyright Registration" (flow-fixes.js) */
.etz-hide { display: none !important; }

/* ---------- Load Media, the start page: or Record with the camera ---------- */
.etz-or-record {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  color: #9ca3af;
  font-size: 16px;
}
.etz-or-record .etz-b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-size: 16px;
  text-decoration: none;
}

/* ---------- dialogs on the creator pages: the Camera's review, Live in the Store ---------- */
.etz-review-back, .etz-live-back {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.65);
}
.etz-review, .etz-live {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #1a2430;
  color: #f9fafb;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.etz-review .etz-b, .etz-live .etz-b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

/* the Camera: watch the take, name it, then save it or record it again (Mobbin: SoundCloud) */
.etz-review { max-width: 640px; padding: 20px; }
.etz-review h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; }
.etz-review-video { display: block; width: 100%; max-height: 50vh; border-radius: 10px; background: #000; }
.etz-review-meta { margin: 8px 0 16px; color: #9ca3af; font-size: 13px; line-height: 1.45; }
.etz-review-label { display: block; margin-bottom: 6px; color: #d1d5db; font-size: 13px; font-weight: 600; }
.etz-review-name {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #0b1117;
  color: #f9fafb;
  font: inherit;
  font-size: 16px; /* no zoom on iPhone */
}
.etz-review-name:focus { outline: 2px solid #f1c50e; outline-offset: 1px; border-color: transparent; }
.etz-review-error { margin: 12px 0 0; color: #ff7b73; font-size: 16px; }
.etz-review-error[hidden] { display: none; }
.etz-review-actions { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.etz-review-actions [data-act='save'] { margin-left: auto; }
@media (max-width: 599px) {
  .etz-review-back, .etz-live-back { align-items: flex-end; padding: 0; }
  .etz-review, .etz-live { max-height: 92vh; border-radius: 16px 16px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .etz-review-actions { flex-direction: column-reverse; align-items: stretch; }
  .etz-review-actions [data-act='save'] { margin-left: 0; }
}

/* Live in the Store (Mobbin: Patreon "Your product is live") */
.etz-live { max-width: 440px; padding: 28px 24px 24px; text-align: center; }
.etz-live-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d1d5db;
  font-size: 17px;
  cursor: pointer;
}
.etz-live-x:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.etz-live-check {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  font-size: 22px;
}
.etz-live h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.etz-live-lead { margin: 0 0 16px; color: #d1d5db; font-size: 16px; }
.etz-live-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}
.etz-live-item img { flex: none; width: 96px; height: 54px; border-radius: 8px; object-fit: cover; }
.etz-live-item div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.etz-live-item strong { font-size: 17px; overflow-wrap: anywhere; }
.etz-live-item span { color: #9ca3af; font-size: 13px; }
.etz-live-actions { display: flex; flex-direction: column; gap: 8px; }
.etz-live-actions .etz-b { width: 100%; }
.etz-live-x:focus-visible, .etz-live .etz-b:focus-visible, .etz-review .etz-b:focus-visible { outline: 2px solid #f1c50e; outline-offset: 2px; }
