.customizer-page {
  min-height: 100vh;
  min-height: 100dvh;
  /* Do not set overflow-y here — it breaks position:sticky for the mockup. */
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(31, 157, 107, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 10%, rgba(20, 23, 31, 0.04), transparent 50%),
    var(--bg, #f6f7f9);
}

.customizer-page .site-header {
  flex: 0 0 auto;
}

.customizer-designer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 4.25rem);
}

.customizer-main {
  width: min(1280px, calc(100% - 1.5rem));
  margin: 0.5rem auto;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.customizer-seo {
  width: min(720px, calc(100% - 1.5rem));
  margin: 0 auto 1.75rem;
}

.customizer-seo-inner {
  padding: 1.35rem 0 0.25rem;
  border-top: 1px solid var(--line, #e5e7eb);
}

.customizer-seo h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  letter-spacing: -0.02em;
}

.customizer-seo h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.02rem;
}

.customizer-seo p,
.customizer-seo li {
  color: var(--text-soft, #5b6470);
  font-size: 0.95rem;
  line-height: 1.65;
}

.customizer-seo p {
  margin: 0 0 0.85rem;
}

.customizer-seo ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.customizer-seo a {
  color: var(--primary-dark, #167a53);
  font-weight: 600;
}

.customizer-steps {
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.customizer-steps li {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line-soft, #eceff3);
  background: rgba(255, 255, 255, 0.65);
}

.customizer-steps strong {
  color: var(--text, #14181f);
  font-size: 0.92rem;
}

.customizer-faq-group {
  margin: 1.35rem 0 0.55rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--text, #14181f);
}

.customizer-faq-list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
}

.customizer-faq-item {
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.15rem 0.85rem;
}

.customizer-faq-item summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.7rem 0;
  color: var(--text, #14181f);
}

.customizer-faq-item p {
  margin: 0 0 0.85rem;
}

.customizer-footer {
  margin-top: auto;
}

.customizer-top {
  flex: 0 0 auto;
}

.customizer-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
}

.customizer-intro h1 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: -0.03em;
}

.customizer-intro p {
  margin: 0;
  line-height: 1.35;
  font-size: 0.84rem;
}

.customizer-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(19rem, 22.5rem);
  gap: 0.75rem;
  align-items: start;
}

.customizer-sticky-sentinel {
  grid-column: 1 / -1;
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.customizer-stage {
  position: sticky;
  top: 4.5rem;
  z-index: 20;
  align-self: start;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.85rem 0.75rem 0.7rem;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius-lg, 16px);
  background:
    linear-gradient(180deg, #fbfbfc 0%, #eef1f5 100%);
  overflow: visible;
  max-height: none;
  transition:
    padding 0.2s ease,
    gap 0.2s ease,
    border-radius 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.customizer-stage > .cz-mockup,
.customizer-stage > .cz-phone {
  flex: 0 1 auto;
  min-height: 0;
}

.customizer-canvas-tools {
  width: min(480px, 100%);
  display: grid;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.customizer-zoom-inline {
  display: grid;
  gap: 0.2rem;
  font-size: 0.76rem;
  font-weight: 650;
}

.customizer-zoom-inline em {
  font-style: normal;
  font-weight: 700;
  color: var(--primary-dark, #166534);
}

.customizer-zoom-inline input[type="range"] {
  width: 100%;
}

.customizer-controls {
  align-self: start;
  width: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.55rem;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.7rem 0.75rem 0.85rem;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius-lg, 16px);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 8px 24px rgba(20, 23, 31, 0.06));
}

.customizer-panel {
  display: grid;
  gap: 0.45rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line, #e5e7eb);
  flex: 0 0 auto;
}

.customizer-panel:last-of-type,
.customizer-panel--checkout {
  border-bottom: 0;
  padding-bottom: 0;
}

.customizer-panel--checkout {
  margin-top: 0.15rem;
}

.customizer-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.customizer-grid-colors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.customizer-field {
  display: grid;
  gap: 0.22rem;
  font-size: 0.76rem;
  font-weight: 650;
  min-width: 0;
}

.customizer-field select,
.customizer-field input[type="range"] {
  width: 100%;
}

.customizer-field select {
  min-height: 2.15rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-weight: 500;
}

.customizer-field em {
  font-style: normal;
  font-weight: 700;
  color: var(--primary-dark, #166534);
}

.customizer-upload input[type="file"],
.customizer-upload-zone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.customizer-upload-zone {
  position: relative;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
  padding: 1rem 0.85rem 0.9rem;
  border: 2px dashed color-mix(in srgb, var(--primary, #1c2733) 55%, #9ae6c3);
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary-soft, #e6f6ee) 88%, #fff) 0%, #fff 100%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary, #1c2733) 12%, transparent),
    0 10px 24px rgba(31, 157, 107, 0.12);
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.customizer-upload-zone:hover,
.customizer-upload-zone:focus-visible {
  outline: none;
  border-color: var(--primary, #1c2733);
  background:
    linear-gradient(180deg, var(--primary-soft, #e6f6ee) 0%, #fff 100%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary, #1c2733) 22%, transparent),
    0 14px 28px rgba(31, 157, 107, 0.18);
  transform: translateY(-1px);
}

.customizer-upload-zone.is-dragover {
  border-style: solid;
  border-color: var(--primary-dark, #157a52);
  background: color-mix(in srgb, var(--primary-soft, #e6f6ee) 70%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #1c2733) 28%, transparent);
}

.customizer-upload-zone.has-file {
  border-style: solid;
  border-color: color-mix(in srgb, var(--primary, #1c2733) 45%, var(--line, #e5e7eb));
}

.customizer-upload-zone__icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary, #1c2733), #3a4f66);
  box-shadow: 0 8px 16px rgba(31, 157, 107, 0.28);
}

.customizer-upload-zone__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--primary-dark, #157a52);
}

.customizer-upload-zone__hint {
  margin: 0;
  max-width: 26ch;
  font-size: 0.74rem;
  line-height: 1.4;
  font-weight: 550;
  color: var(--text-soft, #5b6470);
  word-break: break-word;
}

.customizer-upload-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.customizer-upload-row .button {
  min-height: 2.35rem;
  padding-inline: 0.9rem;
  font-size: 0.88rem;
}

.customizer-upload-row .button.primary {
  min-width: 9.5rem;
  box-shadow: 0 8px 18px rgba(31, 157, 107, 0.28);
}

.customizer-file-name {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  word-break: break-all;
}

.customizer-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.customizer-hint {
  margin: 0;
  padding-top: 0.15rem;
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 500;
  flex: 0 0 auto;
}

.customizer-section-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
}

.customizer-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.15rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(31, 157, 107, 0.1);
  border: 1px solid rgba(31, 157, 107, 0.22);
}

.customizer-price__label {
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--muted, #6b7280);
}

.customizer-price strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-dark, #166534);
}

.customizer-save-btn {
  width: 100%;
  min-height: 2.6rem;
  margin-top: 0.15rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.customizer-save-btn:disabled,
.customizer-save-btn.is-saving {
  opacity: 0.85;
  cursor: wait;
}

.customizer-save-status {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  font-weight: 550;
}

.customizer-save-status.is-error {
  color: #b42318;
}

.customizer-save-status.is-ok {
  color: var(--primary-dark, #166534);
}

.customizer-save-status a {
  color: inherit;
  font-weight: 700;
}

.customizer-field textarea {
  width: 100%;
  min-height: 2.8rem;
  max-height: 5rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-weight: 500;
  resize: vertical;
}

.customizer-color-row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.35rem;
  align-items: center;
}

.customizer-color-row input[type="color"] {
  width: 2.2rem;
  height: 2.05rem;
  padding: 0;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.customizer-color-row input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 2.05rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.customizer-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 650;
}

.customizer-check input {
  width: 1rem;
  height: 1rem;
}

.customizer-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.customizer-mode {
  min-height: 2.1rem;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.customizer-mode.is-active {
  border-color: rgba(31, 157, 107, 0.55);
  background: rgba(31, 157, 107, 0.12);
  color: var(--primary-dark, #166534);
}

/* ---- Real PNG case mockup ---- */
.cz-mockup {
  width: min(540px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  user-select: none;
  touch-action: none;
}

.cz-mockup__stage {
  position: relative;
  width: min(100%, 72vh, 540px);
  aspect-ratio: 1;
  container-type: inline-size;
}

/* Faint full-bleed copy of the art (outside the case) */
.cz-mockup__ghost {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.cz-mockup__ghost img,
.cz-mockup__print > img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  max-width: none;
  /* Fit entire image by longest side; case background fills the rest */
  object-fit: contain;
  transform-origin: center center;
  pointer-events: none;
  will-change: transform;
  z-index: 1;
}

.cz-mockup__cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #111827;
}

.cz-mockup__text {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 2;
  max-width: 58%;
  padding: 0.35rem 0.55rem;
  text-align: center;
  line-height: 1.15;
  font-weight: 700;
  white-space: pre-wrap;
  word-break: break-word;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.cz-mockup__text.has-plate {
  border-radius: 0.35rem;
}

.cz-mockup__text[hidden] {
  display: none !important;
}

.cz-mockup.is-text-mode .cz-mockup__print {
  cursor: grab;
}

.cz-mockup.is-text-mode .cz-mockup__text {
  outline: 1px dashed rgba(255, 255, 255, 0.35);
}

/* Art clipped to case silhouette via alpha mask */
.cz-mockup__print {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  z-index: 1;
  background: transparent;
  -webkit-mask-image: var(--cz-mask);
  mask-image: var(--cz-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}

.cz-mockup__print.is-dragging {
  cursor: grabbing;
}

.cz-mockup__placeholder {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(46%, 12.5rem);
  margin: 0;
  padding: 0.5rem 0.65rem;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(0.74rem, 3.4cqi, 0.92rem);
  line-height: 1.4;
  font-weight: 650;
  pointer-events: none;
  overflow: visible;
  text-wrap: balance;
}

.cz-mockup__placeholder[hidden] {
  display: none !important;
}

/* Hide any leftover empty-src images (Safari shows a broken-image glyph otherwise) */
.cz-mockup img:not([src]),
.cz-mockup img[src=""],
.cz-phone img:not([src]),
.cz-phone img[src=""] {
  visibility: hidden;
}

.cz-mockup__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 8px 16px rgba(20, 23, 31, 0.12));
}

.cz-mockup__caption {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text, #14171f);
}

/* ---- Phone shell ---- */
.cz-phone {
  --cc-w: 280px;
  --cc-ratio: 19.5 / 9;
  --cc-radius: 2.4rem;
  --cc-bezel: 0.55rem;
  --cc-screen-radius: 1.9rem;
  width: var(--cc-w);
  user-select: none;
  touch-action: none;
}

.cz-phone__bezel {
  position: relative;
  width: 100%;
  aspect-ratio: var(--cc-ratio);
  padding: var(--cc-bezel);
  border-radius: var(--cc-radius);
  background: linear-gradient(160deg, #2a2e36 0%, #14171d 55%, #0d0f13 100%);
  box-shadow:
    0 18px 40px rgba(20, 23, 31, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cz-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--cc-screen-radius);
  background: #0b0d11;
  cursor: grab;
}

.cz-phone__screen.is-dragging {
  cursor: grabbing;
}

.cz-phone__canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(45deg, #1a1d24 25%, transparent 25%),
    linear-gradient(-45deg, #1a1d24 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1a1d24 75%),
    linear-gradient(-45deg, transparent 75%, #1a1d24 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  background-color: #11141a;
}

.cz-phone__canvas img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform-origin: center center;
  pointer-events: none;
  will-change: transform;
}

.cz-phone__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
}

.cz-phone__island {
  position: absolute;
  z-index: 3;
  top: calc(var(--cc-bezel) + 0.55rem);
  left: 50%;
  width: 34%;
  height: 1.15rem;
  border-radius: 999px;
  background: #050607;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cz-phone__button {
  position: absolute;
  background: #1a1d24;
  border-radius: 2px;
}

.cz-phone__button--power {
  right: -0.14rem;
  top: 22%;
  width: 0.14rem;
  height: 12%;
}

.cz-phone__button--vol-up,
.cz-phone__button--vol-down {
  left: -0.14rem;
  width: 0.14rem;
  height: 7%;
}

.cz-phone__button--vol-up {
  top: 18%;
}

.cz-phone__button--vol-down {
  top: 28%;
}

.cz-phone__caption {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text, #14171f);
}

/* Samsung-style camera island */
.cz-phone--samsung {
  --cc-ratio: 19.3 / 9;
  --cc-radius: 2.1rem;
  --cc-screen-radius: 1.7rem;
}

.cz-phone--samsung .cz-phone__island {
  top: calc(var(--cc-bezel) + 0.7rem);
  left: 50%;
  width: 28%;
  height: 1.35rem;
  border-radius: 1rem;
  transform: translateX(-50%);
}

.cz-phone--samsung-ultra {
  --cc-ratio: 19.3 / 9;
  --cc-radius: 2rem;
  --cc-screen-radius: 1.55rem;
  --cc-w: 292px;
}

.cz-phone--samsung-ultra .cz-phone__island {
  top: calc(var(--cc-bezel) + 0.55rem);
  left: calc(var(--cc-bezel) + 0.55rem);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 1.1rem;
  transform: none;
}

.cz-phone--compact {
  --cc-ratio: 19 / 9;
  --cc-w: 260px;
}

@media (max-width: 980px) {
  .customizer-page {
    height: auto;
    min-height: 100vh;
  }

  .customizer-main {
    margin-bottom: 1.5rem;
  }

  .customizer-layout {
    grid-template-columns: 1fr;
    flex: none;
    align-items: start;
  }

  .customizer-sticky-sentinel {
    order: -2;
  }

  .customizer-stage {
    order: -1;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  /* Compact live preview while editing controls below */
  .customizer-stage.is-stuck {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.55rem 0.85rem;
    padding: 0.45rem 0.7rem 0.55rem;
    border-radius: 0 0 14px 14px;
    border-top-color: transparent;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .customizer-stage.is-stuck .cz-mockup,
  .customizer-stage.is-stuck .cz-phone {
    flex: 0 0 auto;
  }

  .customizer-stage.is-stuck .cz-mockup__stage {
    width: min(132px, 34vw);
  }

  .customizer-stage.is-stuck .cz-phone {
    --cc-w: min(118px, 30vw);
  }

  .customizer-stage.is-stuck .cz-mockup__caption,
  .customizer-stage.is-stuck .cz-phone__caption {
    display: none;
  }

  .customizer-stage.is-stuck .customizer-canvas-tools {
    width: min(220px, calc(100% - 9rem));
    flex: 1 1 10rem;
    gap: 0.28rem;
  }

  .customizer-stage.is-stuck .customizer-mode-row {
    grid-template-columns: 1fr 1fr;
  }

  .customizer-stage.is-stuck .customizer-mode {
    padding: 0.4rem 0.45rem;
    font-size: 0.72rem;
  }

  .customizer-stage.is-stuck .customizer-zoom-inline {
    font-size: 0.7rem;
  }

  .customizer-controls {
    max-height: none;
    overflow: visible;
  }

  .customizer-grid-2 {
    grid-template-columns: 1fr;
  }

  .cz-mockup__stage {
    width: min(380px, 86vw);
    transition: width 0.2s ease;
  }

  .cz-phone {
    --cc-w: min(260px, 72vw);
  }
}

.cz-spinner {
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cc-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.cz-spinner--lg {
  width: 2.1rem;
  height: 2.1rem;
  border-width: 3px;
  border-color: rgba(31, 157, 107, 0.22);
  border-top-color: var(--primary, #1c2733);
}

.customizer-save-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.customizer-save-overlay[hidden] {
  display: none;
}

.customizer-save-overlay__card {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  width: min(100%, 22rem);
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 23, 31, 0.18);
  text-align: center;
}

.customizer-save-overlay__card p {
  margin: 0;
  font-weight: 750;
  color: var(--text, #14171f);
}

.customizer-save-overlay__note {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted, #6b7280);
  line-height: 1.45;
}

body.customizer-is-saving {
  overflow: hidden;
}

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

@media (prefers-reduced-motion: reduce) {
  .cz-spinner,
  .cz-spinner--lg {
    animation: none;
    border-top-color: currentColor;
  }
}

/* Shown when the active variant's template is an auto-registered
   full-bleed placeholder (see prepare_templates.py) rather than a real
   print-area cutout. */
.customizer-placeholder-note {
  margin: 0 0 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.customizer-placeholder-note[hidden] {
  display: none !important;
}
