/* Admin-only Theme Lab apply controls. */
.zlix-apply-branding {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--zlix-border, #9bb9b5) 70%, transparent);
}

.zlix-apply-branding-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: var(--zlix-button-text, #fff);
  background: var(--zlix-button, #126f9e);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.zlix-apply-branding-button:disabled {
  opacity: .65;
  cursor: wait;
}

.zlix-apply-branding-status {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--zlix-muted, #456);
}

/* Hide branding preview panel on the public/live site unless server-approved preview is active. */
html:not([data-theme-lab-active="1"]) #zlix-theme-lab,
html:not([data-theme-lab-active="1"]) .zlix-theme-lab,
html:not([data-theme-lab-active="1"]) [data-theme-lab-panel] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* Public lockdown: branding lab panel is hidden unless server-authorized preview is active. */
html:not([data-brand-preview-active="1"]) #zlix-theme-lab,
html:not([data-brand-preview-active="1"]) .zlix-theme-lab,
html:not([data-brand-preview-active="1"]) [data-theme-lab-panel] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
