/* PRINT fonts are loaded from Google Fonts by wc-customiser.php.
   Embroidery fonts are loaded from Adobe Fonts / Typekit.
   Do not add duplicate @font-face declarations here for the same PRINT families:
   duplicate local faces can make HTML and Canvas resolve different font files. */

:root {
  --wcc-bg: #f5f7fb;
  --wcc-surface: #ffffff;
  --wcc-surface-soft: #f7f9fd;
  --wcc-border: rgba(0, 48, 112, 0.12);
  --wcc-border-strong: rgba(0, 48, 112, 0.2);

  --wcc-text: #12233f;
  --wcc-text-muted: rgba(18, 35, 63, 0.72);
  --wcc-text-soft: rgba(18, 35, 63, 0.55);

  --wcc-blue: #003070;
  --wcc-blue-hover: #0a3c8a;
  --wcc-orange: #f25c19;
  --wcc-orange-hover: #ff7a2d;

  --wcc-success: #1f8f4d;
  --wcc-danger: #c62828;

  --wcc-shadow-sm: 0 6px 18px rgba(0, 48, 112, 0.06);
  --wcc-shadow-md: 0 14px 40px rgba(0, 48, 112, 0.08);

  --wcc-radius-sm: 10px;
  --wcc-radius: 16px;
  --wcc-radius-lg: 22px;
  --wcc-gap: 18px;
  --wcc-font:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Keep wizard overlays inside the editor's stacking context. In particular,
   an active accordion (z-index: 20) must not rise above the site's side cart.
   Do not use overflow:hidden or transform: dropdowns stay open and fixed/sticky
   elements keep their viewport positioning. */
#wc-customiser-root {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.wcc-root {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  font-family: var(--wcc-font);
  color: var(--wcc-text);
  background: transparent;
}

/* mocniejsza izolacja typografii i box modelu */
.wcc-root,
.wcc-root * {
  box-sizing: border-box;
}

.wcc-root h1,
.wcc-root h2,
.wcc-root h3,
.wcc-root h4,
.wcc-root p {
  margin-top: 0;
}

.wcc-root img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------------
   TWARDY RESET FORM/ELEMENTÓW INTERAKTYWNYCH W OBRĘBIE WTYCZKI
   ------------------------------------------------------------------ */
.wcc-root button,
.wcc-root input,
.wcc-root select,
.wcc-root textarea {
  font: inherit;
}

.wcc-root button,
.wcc-root button[type="button"],
.wcc-root button[type="submit"],
.wcc-root button[type="reset"],
.wcc-root input[type="button"],
.wcc-root input[type="submit"],
.wcc-root input[type="reset"],
.wcc-root .wcc-btn,
.wcc-root .wcc-cart-nav-card,
.wcc-root .wcc-acc-head {
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
  box-shadow: none;
  text-shadow: none;
}

/* bazowy reset dla wszystkich buttonów/inputów buttonowych */
.wcc-root button,
.wcc-root button[type="button"],
.wcc-root button[type="submit"],
.wcc-root button[type="reset"],
.wcc-root input[type="button"],
.wcc-root input[type="submit"],
.wcc-root input[type="reset"] {
  border: 0;
  margin: 0;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
}

/* tylko przyciski naszej aplikacji dostają pełny wygląd */
.wcc-root .wcc-btn,
.wcc-root button.wcc-btn,
.wcc-root input.wcc-btn[type="button"],
.wcc-root input.wcc-btn[type="submit"],
.wcc-root input.wcc-btn[type="reset"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;

  appearance: none !important;
  -webkit-appearance: none !important;

  border: 1px solid var(--wcc-border-strong) !important;
  background: #fff !important;
  color: var(--wcc-blue) !important;
  border-radius: 12px !important;
  padding: 11px 16px !important;
  min-height: 42px;
  width: auto;
  min-width: 0;

  font-size: 13px !important;
  font-weight: 800 !important;
  font-family: inherit !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap;

  cursor: pointer !important;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.05s ease;
}

.wcc-root .wcc-btn:hover,
.wcc-root button.wcc-btn:hover,
.wcc-root input.wcc-btn[type="button"]:hover,
.wcc-root input.wcc-btn[type="submit"]:hover,
.wcc-root input.wcc-btn[type="reset"]:hover {
  background: #f5f8ff !important;
  border-color: rgba(0, 48, 112, 0.3) !important;
  color: var(--wcc-blue) !important;
}

.wcc-root .wcc-btn:active,
.wcc-root button.wcc-btn:active,
.wcc-root input.wcc-btn[type="button"]:active,
.wcc-root input.wcc-btn[type="submit"]:active,
.wcc-root input.wcc-btn[type="reset"]:active {
  transform: translateY(1px);
}

.wcc-root .wcc-btn:disabled,
.wcc-root button.wcc-btn:disabled,
.wcc-root input.wcc-btn[type="button"]:disabled,
.wcc-root input.wcc-btn[type="submit"]:disabled,
.wcc-root input.wcc-btn[type="reset"]:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

.wcc-root .wcc-btn.primary,
.wcc-root button.wcc-btn.primary,
.wcc-root input.wcc-btn.primary[type="button"],
.wcc-root input.wcc-btn.primary[type="submit"],
.wcc-root input.wcc-btn.primary[type="reset"] {
  background: var(--wcc-orange) !important;
  border-color: var(--wcc-orange) !important;
  color: #fff !important;
}

.wcc-root .wcc-btn.primary:hover,
.wcc-root button.wcc-btn.primary:hover,
.wcc-root input.wcc-btn.primary[type="button"]:hover,
.wcc-root input.wcc-btn.primary[type="submit"]:hover,
.wcc-root input.wcc-btn.primary[type="reset"]:hover {
  background: var(--wcc-orange-hover) !important;
  border-color: var(--wcc-orange-hover) !important;
  color: #fff !important;
}

.wcc-root .wcc-btn.small,
.wcc-root button.wcc-btn.small,
.wcc-root input.wcc-btn.small[type="button"],
.wcc-root input.wcc-btn.small[type="submit"],
.wcc-root input.wcc-btn.small[type="reset"] {
  padding: 8px 12px !important;
  min-height: 34px;
  font-size: 12px !important;
  border-radius: 10px !important;
}

.wcc-root .wcc-btn.ghost,
.wcc-root button.wcc-btn.ghost,
.wcc-root input.wcc-btn.ghost[type="button"],
.wcc-root input.wcc-btn.ghost[type="submit"],
.wcc-root input.wcc-btn.ghost[type="reset"] {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--wcc-text-muted) !important;
}

.wcc-root .wcc-btn.ghost:hover,
.wcc-root button.wcc-btn.ghost:hover,
.wcc-root input.wcc-btn.ghost[type="button"]:hover,
.wcc-root input.wcc-btn.ghost[type="submit"]:hover,
.wcc-root input.wcc-btn.ghost[type="reset"]:hover {
  background: rgba(0, 48, 112, 0.06) !important;
  border-color: rgba(0, 48, 112, 0.08) !important;
  color: var(--wcc-blue) !important;
}

.wcc-root .wcc-btn.danger,
.wcc-root button.wcc-btn.danger,
.wcc-root input.wcc-btn.danger[type="button"],
.wcc-root input.wcc-btn.danger[type="submit"],
.wcc-root input.wcc-btn.danger[type="reset"] {
  border-color: rgba(198, 40, 40, 0.2) !important;
  background: rgba(198, 40, 40, 0.08) !important;
  color: var(--wcc-danger) !important;
}

.wcc-error {
  background: rgba(198, 40, 40, 0.08);
  border: 1px solid rgba(198, 40, 40, 0.2);
  color: var(--wcc-danger);
  padding: 14px 16px;
  border-radius: var(--wcc-radius);
  margin-bottom: 16px;
}

/* Base layout */
.wcc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--wcc-gap);
  align-items: start;
}

@media (max-width: 1140px) {
  .wcc-layout {
    grid-template-columns: 1fr;
  }
}

.wcc-main,
.wcc-panel {
  background: var(--wcc-surface);
  border: 1px solid var(--wcc-border);
  border-radius: var(--wcc-radius-lg);
  box-shadow: var(--wcc-shadow-sm);
}

.wcc-main {
  padding: 16px;
}

@media (min-width: 1141px) {
  .wcc-main {
    position: sticky;
    top: 140px;
    align-self: start;
  }

  .wcc-preview-sticky {
    position: sticky;
    top: calc(
      var(--wp-admin--admin-bar--height, 0px) + var(--wcc-sticky-offset, 96px)
    );
    z-index: 5;
  }
}

.wcc-panel {
  padding: 18px;
}

.wcc-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--wcc-gap);
}

.wcc-panel h3 {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--wcc-blue);
}

.wcc-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.wcc-help {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--wcc-text-muted);
}

/* Toolbar and stage */
.wcc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.wcc-view-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wcc-zoom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--wcc-text-muted);
}

.wcc-zoom input[type="range"] {
  width: 180px;
  max-width: 100%;
}

.wcc-stage-wrap {
  min-height: 640px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--wcc-border);
  border-radius: var(--wcc-radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.wcc-stage {
  margin: 0 auto;
}

/* Fields */
.wcc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.wcc-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--wcc-text-muted);
}

.wcc-field input[type="text"],
.wcc-field input[type="number"],
.wcc-field input[type="file"],
.wcc-field textarea,
.wcc-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--wcc-border);
  border-radius: 12px;
  background: var(--wcc-surface-soft);
  color: var(--wcc-text);
  outline: none;
}

.wcc-field textarea {
  min-height: 110px;
  resize: vertical;
}

.wcc-field input[type="text"]:focus,
.wcc-field input[type="number"]:focus,
.wcc-field textarea:focus,
.wcc-field select:focus {
  border-color: rgba(0, 48, 112, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 48, 112, 0.09);
}

.wcc-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--wcc-text-muted);
}

.wcc-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--wcc-blue);
  border-radius: 999px;
  background: #fff;
  color: var(--wcc-blue);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.wcc-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 500;
  width: 260px;
  max-width: min(260px, 80vw);
  padding: 10px 12px;
  border: 1px solid var(--wcc-border);
  border-radius: 10px;
  background: #fff;
  color: var(--wcc-text);
  box-shadow: var(--wcc-shadow-sm);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s ease;
}

.wcc-tooltip:hover::after,
.wcc-tooltip:focus::after {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.wcc-tooltip:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 48, 112, 0.12);
}

.wcc-sidebar .wcc-row {
  display: block;
  text-align: center;
  margin-top: 24px;
}

.wcc-sidebar .wcc-slot-empty {
  display: block;
  text-align: center;
  margin-top: 12px;
}

/* Legacy slots / library / wizard */
.wcc-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wcc-slot,
.wcc-lib-card,
.wcc-choice,
.wcc-pos,
.wcc-box,
.wcc-acc {
  border: 1px solid var(--wcc-border);
  border-radius: var(--wcc-radius);
  background: var(--wcc-surface-soft);
}

.wcc-slot {
  padding: 12px;
}

.wcc-slot-top,
.wcc-wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.wcc-slot-num,
.wcc-lib-name,
.wcc-choice strong,
.wcc-pos-title,
.wcc-box-title,
.wcc-acc-title,
.wcc-wizard-steps {
  color: var(--wcc-blue);
  font-weight: 800;
}

.wcc-choice.is-active strong,
.wcc-choice.is-active .wcc-choice-sub,
.wcc-pos.is-active .wcc-badge {
  color: #fff;
}

.wcc-pos.is-active .wcc-badge {
  z-index: 100;
}

.wcc-slot-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
}

.wcc-slot-thumb,
.wcc-lib-thumb {
  background: #d9dee5;
  border: 1px solid var(--wcc-border);
  border-radius: 12px;
}

.wcc-uploaded-preview {
  background: #eef1f5;
  border: 1px solid var(--wcc-border);
  border-radius: 12px;
}

.wcc-slot-thumb {
  width: 90px;
  height: 90px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wcc-slot-thumb img,
.wcc-lib-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wcc-customisation-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wcc-slot-desc,
.wcc-lib-desc,
.wcc-lib-status,
.wcc-choice-sub,
.wcc-acc-right,
.wcc-slot-thumb-ph {
  font-size: 12px;
  line-height: 1.45;
  color: var(--wcc-text-muted);
}

.wcc-library-purchase-status {
  display: grid;
  gap: 6px;
  margin: 8px 0 10px;
}

.wcc-library-purchase-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--wcc-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.wcc-library-purchase-status.is-completed .wcc-library-purchase-badge {
  border-color: rgba(31, 143, 77, 0.38);
  background: rgba(31, 143, 77, 0.12);
  color: #176b3b;
}

.wcc-library-purchase-status.is-purchased .wcc-library-purchase-badge {
  border-color: rgba(0, 48, 112, 0.28);
  background: rgba(0, 48, 112, 0.08);
  color: var(--wcc-blue);
}

.wcc-library-purchase-status.is-not_purchased .wcc-library-purchase-badge {
  border-color: var(--wcc-border);
  background: #f2f4f7;
  color: var(--wcc-text-muted);
}

.wcc-library-purchase-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--wcc-text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.wcc-library-purchase-meta a {
  color: var(--wcc-blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wcc-library-purchase-date {
  color: var(--wcc-text-soft);
}

.wcc-library-purchase-status.is-compact {
  margin: 5px 0 7px;
}

.wcc-library-purchase-status.is-compact .wcc-library-purchase-badge {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 11px;
}

.wcc-library-already-used {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 6px 0 9px;
  padding: 4px 10px;
  border: 1px solid var(--wcc-blue);
  border-radius: 999px;
  background: #eef4ff;
  color: var(--wcc-blue);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.wcc-library-already-used.is-compact {
  margin: 5px 0 7px;
  padding: 3px 8px;
  font-size: 12px;
}

.wcc-lib-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wcc-lib-grid-1col {
  grid-template-columns: 1fr !important;
}

.wcc-lib-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  overflow: hidden;
}

.wcc-lib-thumb {
  min-height: 140px;
}

.wcc-lib-body {
  padding: 14px;
}

.wcc-position-view-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.wcc-root .wcc-position-view-button {
  min-height: 46px;
  border: 1px solid var(--wcc-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--wcc-blue) !important;
  font-weight: 800 !important;
  text-align: center !important;
  padding: 10px 12px !important;
  cursor: pointer;
}

.wcc-root .wcc-position-view-button.is-active {
  background: var(--wcc-orange) !important;
  border-color: var(--wcc-orange) !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(242, 92, 25, 0.12);
}

.wcc-root .wcc-position-view-button:focus-visible {
  outline: 3px solid rgba(0, 48, 112, 0.28);
  outline-offset: 2px;
}

.wcc-wizard,
.wcc-pos-list,
.wcc-choice-grid,
.wcc-pos-groups {
  display: grid;
  gap: 12px;
}

.wcc-choice-grid,
.wcc-pos-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wcc-choice,
.wcc-pos,
.wcc-box {
  padding: 14px;
}

.wcc-root button.wcc-choice,
.wcc-root button.wcc-pos {
  display: block !important;
  width: 100%;
  border: 1px solid var(--wcc-border) !important;
  border-radius: var(--wcc-radius) !important;
  background: var(--wcc-surface-soft) !important;
  color: var(--wcc-text) !important;
  text-align: left !important;
  padding: 14px !important;
}

.wcc-root button.wcc-pos {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wcc-pos-label {
  min-width: 0;
}

.wcc-choice.is-active,
.wcc-pos.is-active,
.wcc-cart-nav-card.is-active,
.wcc-progress-step.is-active .wcc-progress-dot {
  border-color: rgba(242, 92, 25, 0.5);
  box-shadow: 0 0 0 3px rgba(242, 92, 25, 0.12);
}

.wcc-root .wcc-choice.is-active,
.wcc-root button.wcc-choice.is-active,
.wcc-root .wcc-pos.is-active,
.wcc-root button.wcc-pos.is-active {
  /* background: rgba(242, 92, 25, 0.08) !important;
  color: var(--wcc-text) !important; */
  background: var(--wcc-orange) !important;
  border-color: var(--wcc-orange) !important;
  color: #fff !important;
}

.wcc-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(242, 92, 25, 0.1);
  border: 1px solid rgba(242, 92, 25, 0.2);
  color: #a54614;
  font-size: 11px;
  font-weight: 700;
}

.wcc-acc {
  overflow: hidden;
}

/* Allow step overlays without clipping; their z-index stays inside the editor. */
.wcc-acc.is-active {
  position: relative;
  z-index: 20;
  overflow: visible;
}

.wcc-root .wcc-acc.is-active > .wcc-acc-head {
  border-radius: var(--wcc-radius) var(--wcc-radius) 0 0 !important;
}

.wcc-root .wcc-acc-head,
.wcc-root button.wcc-acc-head,
.wcc-root button.wcc-acc-head:hover,
.wcc-root button.wcc-acc-head:focus,
.wcc-root button.wcc-acc-head:active {
  width: 100%;
  border: 0 !important;
  background: rgba(0, 48, 112, 0.04) !important;
  padding: 12px 14px !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  cursor: pointer !important;
  color: var(--wcc-text) !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  min-height: 0;
  box-shadow: none !important;
}

.wcc-acc-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wcc-acc-left,
.wcc-acc-right {
  min-width: 0;
}

.wcc-acc-title,
.wcc-acc-righttext {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wcc-acc-righttext {
  display: inline-block;
  max-width: 180px;
  vertical-align: middle;
}

.wcc-acc-step {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 48, 112, 0.08);
  color: var(--wcc-blue);
}

.wcc-acc-body,
.wcc-wizard-footer,
.wcc-uploaded {
  padding: 12px;
}

.wcc-uploaded {
  border-top: 1px solid var(--wcc-border);
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  background: rgba(0, 48, 112, 0.08);
}

/* Order-level customiser */
.wcc-order-level-root {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.wcc-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 8px 0 2px;
}

.wcc-progress-step {
  position: relative;
  text-align: center;
  padding: 0 12px;
}

.wcc-progress-line {
  position: absolute;
  top: 18px;
  left: calc(-50% + 28px);
  right: calc(50% + 28px);
  height: 2px;
  background: #d7dfec;
}

.wcc-progress-step:first-child .wcc-progress-line {
  display: none;
}

.wcc-progress-dot {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  margin: 0 auto 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dde4f0;
  color: var(--wcc-blue);
  font-weight: 800;
  box-shadow: 0 0 0 6px #fff;
}

.wcc-progress-step.is-done .wcc-progress-dot,
.wcc-progress-step.is-active .wcc-progress-dot {
  background: var(--wcc-blue);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(0, 48, 112, 0.06);
}

.wcc-progress-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--wcc-text-muted);
  line-height: 1.35;
}

.wcc-progress-step.is-active .wcc-progress-label,
.wcc-progress-step.is-done .wcc-progress-label {
  color: var(--wcc-blue);
}

.wcc-order-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.wcc-order-summary-name {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--wcc-blue);
  margin-bottom: 10px;
}

.wcc-order-summary-panel {
  margin-bottom: 24px;
}

.wcc-order-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 12px;
  color: var(--wcc-text-muted);
  font-size: 14px;
}

.wcc-order-summary-meta strong {
  color: var(--wcc-blue);
}

.wcc-order-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wcc-order-summary-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--wcc-surface-soft);
  border: 1px solid var(--wcc-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--wcc-blue);
}

.wcc-root .wcc-cart-nav-card,
.wcc-root button.wcc-cart-nav-card {
  display: block;
  padding: 6px;
  border: 1px solid var(--wcc-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  cursor: pointer !important;
  box-shadow: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease;
  text-align: left !important;
  min-width: 0;
  width: 100%;
  color: inherit !important;
}

.wcc-cart-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.wcc-cart-nav-card:hover {
  border-color: rgba(0, 48, 112, 0.24) !important;
  box-shadow: 0 4px 12px rgba(0, 48, 112, 0.08);
}

.wcc-cart-nav-card:active {
  transform: translateY(1px);
}

.wcc-cart-nav-card.is-active {
  border-color: rgba(242, 92, 25, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(242, 92, 25, 0.14);
}

.wcc-cart-nav-thumb {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  padding: 4px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--wcc-border);
}

.wcc-cart-nav-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.wcc-cart-nav-thumb-ph {
  font-size: 10px;
  color: var(--wcc-text-soft);
}

.wcc-cart-nav-name {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--wcc-blue);
  margin-bottom: 4px;
  min-height: 26px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.wcc-cart-nav-meta-grid {
  display: grid;
  gap: 2px;
}

.wcc-cart-nav-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  line-height: 1.2;
}

.wcc-cart-nav-meta-label {
  color: var(--wcc-text-soft);
  font-weight: 600;
  white-space: nowrap;
}

.wcc-cart-nav-meta-value {
  color: var(--wcc-text);
  font-weight: 700;
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.wcc-order-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.wcc-order-preview-panel {
  padding: 16px;
}

.wcc-order-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.wcc-order-preview-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--wcc-blue);
}

.wcc-order-preview-stage {
  min-height: 720px;
}

.wcc-order-side-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wcc-order-table-panel {
  padding: 20px;
  overflow: hidden;
}

.wcc-order-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--wcc-border);
}

.wcc-order-table-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--wcc-blue);
}

.wcc-order-table-wrap {
  overflow-x: auto;
}

.wcc-order-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.wcc-order-table th,
.wcc-order-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e6ebf4;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.wcc-order-table th {
  background: #fbfcff;
  color: var(--wcc-blue);
  font-weight: 800;
}

.wcc-order-table td {
  color: var(--wcc-text);
}

.wcc-order-table tbody tr:hover {
  background: #fbfcff;
}

.wcc-order-table tbody tr.is-active {
  background: rgba(242, 92, 25, 0.06);
}

.wcc-order-table-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 48, 112, 0.05);
  color: var(--wcc-blue);
  font-size: 12px;
  font-weight: 800;
}

.wcc-order-table-status.is-ready {
  background: rgba(31, 143, 77, 0.1);
  color: var(--wcc-success);
}

.wcc-order-table-status.is-empty {
  background: rgba(242, 92, 25, 0.1);
  color: #9f4a15;
}

.wcc-order-empty {
  padding: 22px;
  text-align: center;
  color: var(--wcc-text-muted);
}

.wcc-pricing-summary {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--wcc-border);
  border-radius: var(--wcc-radius);
  background: var(--wcc-surface-soft);
}

.wcc-pricing-summary.is-contact-required {
  border-color: rgba(198, 40, 40, 0.28);
  background: rgba(198, 40, 40, 0.04);
}

.wcc-pricing-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.wcc-pricing-summary-head h4 {
  margin: 0 0 6px;
  color: var(--wcc-blue);
  font-size: 15px;
  line-height: 1.2;
}

.wcc-pricing-summary-head p {
  margin: 0;
  color: var(--wcc-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.wcc-pricing-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--wcc-border);
  color: var(--wcc-blue);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.wcc-pricing-alert {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(198, 40, 40, 0.22);
  border-radius: 14px;
  background: rgba(198, 40, 40, 0.08);
  color: var(--wcc-danger);
  font-size: 12px;
  line-height: 1.45;
}

.wcc-pricing-empty {
  padding: 12px;
  border: 1px dashed var(--wcc-border-strong);
  border-radius: 14px;
  color: var(--wcc-text-muted);
  font-size: 13px;
  text-align: center;
  background: #fff;
}

.wcc-pricing-section {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.wcc-pricing-section-title {
  color: var(--wcc-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wcc-pricing-groups,
.wcc-pricing-lines {
  display: grid;
  gap: 8px;
}

.wcc-pricing-group-card,
.wcc-pricing-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--wcc-border);
  border-radius: 14px;
  background: #fff;
}

.wcc-pricing-group-card.is-contact,
.wcc-pricing-line.is-contact {
  border-color: rgba(198, 40, 40, 0.25);
  background: rgba(198, 40, 40, 0.06);
}

.wcc-pricing-group-label,
.wcc-pricing-line-label {
  display: block;
  margin-bottom: 3px;
  color: var(--wcc-text);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
}

.wcc-pricing-group-card strong,
.wcc-pricing-line strong {
  color: var(--wcc-blue);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.wcc-pricing-group-card > span:last-child,
.wcc-pricing-line-note {
  display: block;
  color: var(--wcc-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.wcc-pricing-line.is-free strong {
  color: var(--wcc-success);
}

.wcc-pricing-totals {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--wcc-border);
}

.wcc-pricing-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--wcc-text-muted);
  font-size: 13px;
}

.wcc-pricing-totals strong {
  color: var(--wcc-text);
  font-weight: 900;
}

.wcc-pricing-grand-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--wcc-border);
  color: var(--wcc-blue) !important;
  font-size: 15px !important;
  font-weight: 900;
}

.wcc-pricing-grand-total strong {
  color: var(--wcc-blue);
}

.wcc-pricing-footnote {
  margin-top: 12px;
  color: var(--wcc-text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.wcc-checkout-row {
  margin-top: 16px;
}

@media (max-width: 1140px) {
  .wcc-order-top-grid,
  .wcc-order-main-grid {
    grid-template-columns: 1fr;
  }

  .wcc-order-preview-stage {
    min-height: 560px;
  }
}

@media (max-width: 900px) {
  .wcc-root {
    padding: 20px 12px 32px;
  }

  .wcc-progress {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wcc-progress-line {
    display: none;
  }

  .wcc-choice-grid,
  .wcc-pos-groups,
  .wcc-lib-grid {
    grid-template-columns: 1fr;
  }

  .wcc-stage-wrap,
  .wcc-order-preview-stage {
    min-height: 420px;
    padding: 14px;
  }

  .wcc-cart-nav-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

.wcc-reuse-locked .wcc-box,
.wcc-reuse-locked .wcc-field,
.wcc-reuse-locked .wcc-inline,
.wcc-reuse-locked .wcc-btn {
  opacity: 0.55;
}

.wcc-reuse-locked .wcc-box {
  background: rgba(0, 48, 112, 0.03);
}

.wcc-reuse-locked .wcc-field input[type="text"],
.wcc-reuse-locked .wcc-field input[type="number"],
.wcc-reuse-locked .wcc-field input[type="file"],
.wcc-reuse-locked .wcc-field textarea,
.wcc-reuse-locked .wcc-field select {
  background: #eef2f7;
}

.wcc-reuse-locked .wcc-field input:disabled,
.wcc-reuse-locked .wcc-field select:disabled,
.wcc-reuse-locked .wcc-field textarea:disabled {
  color: var(--wcc-text-muted);
  cursor: not-allowed;
}

.wcc-reuse-locked .wcc-btn:disabled,
.wcc-reuse-locked input[type="checkbox"]:disabled,
.wcc-reuse-locked input[type="range"]:disabled {
  cursor: not-allowed;
}

/* Pricing summary */
.wcc-pricing-summary {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--wcc-border);
  border-radius: var(--wcc-radius);
  background: #fbfcff;
}

.wcc-pricing-summary.is-contact-required {
  border-color: rgba(198, 40, 40, 0.28);
  background: rgba(198, 40, 40, 0.04);
}

.wcc-pricing-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.wcc-pricing-summary h4 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--wcc-blue);
}

.wcc-pricing-summary-head p,
.wcc-pricing-footnote,
.wcc-pricing-empty,
.wcc-pricing-line-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--wcc-text-muted);
}

.wcc-pricing-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--wcc-border);
  color: var(--wcc-blue);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.wcc-pricing-alert {
  display: grid;
  gap: 4px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: var(--wcc-radius-sm);
  border: 1px solid rgba(198, 40, 40, 0.2);
  background: rgba(198, 40, 40, 0.08);
  color: var(--wcc-danger);
  font-size: 13px;
  line-height: 1.45;
}

.wcc-pricing-alert strong {
  font-weight: 800;
}

.wcc-pricing-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.wcc-pricing-group-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  padding: 10px;
  border-radius: var(--wcc-radius-sm);
  border: 1px solid var(--wcc-border);
  background: #ffffff;
  font-size: 12px;
  color: var(--wcc-text-muted);
}

.wcc-pricing-group-card strong {
  color: var(--wcc-text);
  font-size: 13px;
  text-align: right;
}

.wcc-pricing-group-label {
  color: var(--wcc-blue);
  font-weight: 800;
}

.wcc-pricing-section {
  margin-top: 12px;
}

.wcc-pricing-section-title {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--wcc-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wcc-pricing-lines {
  display: grid;
  gap: 8px;
}

.wcc-pricing-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 48, 112, 0.08);
}

.wcc-pricing-line:last-child {
  border-bottom: 0;
}

.wcc-pricing-line-label {
  display: block;
  color: var(--wcc-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.wcc-pricing-line strong {
  color: var(--wcc-blue);
  font-size: 13px;
  white-space: nowrap;
}

.wcc-pricing-totals {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--wcc-border);
}

.wcc-pricing-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--wcc-text-muted);
}

.wcc-pricing-totals strong {
  color: var(--wcc-text);
  white-space: nowrap;
}

.wcc-pricing-grand-total {
  padding-top: 8px;
  border-top: 1px solid rgba(0, 48, 112, 0.08);
  font-weight: 800;
  color: var(--wcc-blue) !important;
}

.wcc-pricing-grand-total strong {
  color: var(--wcc-blue);
  font-size: 15px;
}

.wcc-pricing-footnote {
  margin-top: 12px;
}

.wcc-checkout-actions {
  margin-top: 16px;
}

@media (max-width: 767px) {
  .wcc-pricing-summary-head {
    flex-direction: column;
  }

  .wcc-pricing-line,
  .wcc-pricing-group-card {
    grid-template-columns: 1fr;
  }

  .wcc-pricing-group-card strong,
  .wcc-pricing-line strong {
    text-align: left;
  }
}

/* Mobile responsiveness fixes */
.wcc-root,
.wcc-main,
.wcc-panel,
.wcc-sidebar,
.wcc-toolbar,
.wcc-view-buttons,
.wcc-cart-nav-grid,
.wcc-slot,
.wcc-slot-card,
.wcc-slot-meta,
.wcc-lib-card,
.wcc-lib-body,
.wcc-order-table-wrap {
  min-width: 0;
}

.wcc-root {
  overflow-x: clip;
}

.wcc-slot-name {
  color: var(--wcc-blue);
  font-weight: 800;
  margin-bottom: 6px;
}

.wcc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wcc-slot-meta .wcc-row,
.wcc-lib-body .wcc-row {
  margin-top: 10px;
}

.wcc-order-table-wrap {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .wcc-root {
    padding: 14px 10px 24px;
  }

  .wcc-main,
  .wcc-panel {
    padding: 12px;
    border-radius: 18px;
  }

  .wcc-panel-head,
  .wcc-slot-top,
  .wcc-wizard-header,
  .wcc-order-preview-head,
  .wcc-order-table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .wcc-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .wcc-view-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .wcc-view-buttons .wcc-btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .wcc-zoom {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
  }

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

  .wcc-stage-wrap,
  .wcc-order-preview-stage {
    min-height: 0;
    padding: 10px;
    overflow: hidden;
  }

  .wcc-stage,
  .wcc-stage > div {
    width: 100% !important;
    max-width: 100% !important;
  }

  .wcc-stage .konvajs-content {
    height: 432px !important;
  }

  .wcc-stage canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    top: 50% !important;
    transform: translateY(-50%);
  }

  .wcc-cart-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wcc-cart-nav-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .wcc-cart-nav-meta-value {
    text-align: left;
    white-space: normal;
    word-break: break-word;
  }

  .wcc-order-summary-name {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .wcc-order-summary-meta {
    gap: 6px 10px;
    font-size: 13px;
  }

  .wcc-slot,
  .wcc-choice,
  .wcc-pos,
  .wcc-box,
  .wcc-acc,
  .wcc-lib-card {
    border-radius: 14px;
  }

  .wcc-slot-card,
  .wcc-lib-card {
    grid-template-columns: 1fr;
  }

  .wcc-slot-thumb,
  .wcc-lib-thumb {
    width: 100%;
    max-width: 140px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .wcc-sidebar .wcc-row,
  .wcc-slot-meta .wcc-row,
  .wcc-lib-body .wcc-row {
    text-align: left;
  }

  .wcc-sidebar .wcc-row {
    margin-top: 16px;
  }

  .wcc-slot-empty .wcc-btn,
  .wcc-sidebar > .wcc-panel > .wcc-row > .wcc-btn,
  .wcc-slot-meta .wcc-row .wcc-btn,
  .wcc-lib-body .wcc-row .wcc-btn,
  .wcc-panel-head .wcc-btn,
  .wcc-wizard-footer .wcc-btn {
    width: 100%;
    white-space: normal;
  }

  .wcc-slot-meta .wcc-row,
  .wcc-lib-body .wcc-row,
  .wcc-wizard-footer,
  .wcc-panel-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .wcc-pricing-summary-head,
  .wcc-pricing-group-card,
  .wcc-pricing-line,
  .wcc-pricing-totals > div {
    flex-direction: column;
    align-items: stretch;
  }

  .wcc-pricing-group-card strong,
  .wcc-pricing-line strong {
    text-align: left;
  }

  .wcc-order-table {
    min-width: 560px;
  }

  .wcc-order-table th,
  .wcc-order-table td {
    padding: 10px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .wcc-root {
    padding-left: 8px;
    padding-right: 8px;
  }

  .wcc-main,
  .wcc-panel {
    padding: 10px;
  }

  .wcc-view-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .wcc-root .wcc-btn,
  .wcc-root button.wcc-btn,
  .wcc-root input.wcc-btn[type="button"],
  .wcc-root input.wcc-btn[type="submit"],
  .wcc-root input.wcc-btn[type="reset"] {
    padding: 10px 12px !important;
    font-size: 12px !important;
  }

  .wcc-cart-nav-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .wcc-cart-nav-card {
    padding: 5px;
  }

  .wcc-cart-nav-thumb {
    height: 44px;
  }

  .wcc-cart-nav-name {
    font-size: 10px;
    min-height: 22px;
  }

  .wcc-cart-nav-meta-row,
  .wcc-cart-nav-meta-label,
  .wcc-cart-nav-meta-value {
    font-size: 9px;
  }

  .wcc-order-summary-meta {
    font-size: 12px;
  }

  .wcc-order-table {
    min-width: 500px;
  }

  .wcc-stage .konvajs-content {
    height: 400px !important;
  }
}

@media (max-width: 400px) {
  .wcc-stage .konvajs-content {
    height: 320px !important;
  }
}

/* Technique and embroidery width pricing guidance */
.wcc-tech-pricing-guide {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--wcc-border);
  border-radius: 14px;
  background: #ffffff;
  font-size: 12px;
  line-height: 1.45;
}

.wcc-tech-pricing-guide.is-info {
  border-color: rgba(0, 48, 112, 0.18);
  background: rgba(0, 48, 112, 0.04);
}

.wcc-tech-pricing-guide.is-success {
  border-color: rgba(31, 143, 77, 0.22);
  background: rgba(31, 143, 77, 0.05);
}

.wcc-tech-pricing-guide.is-warning {
  border-color: rgba(242, 92, 25, 0.28);
  background: rgba(242, 92, 25, 0.07);
}

.wcc-tech-pricing-guide-top {
  display: grid;
  gap: 3px;
}

.wcc-tech-pricing-guide-top strong {
  color: var(--wcc-blue);
  font-size: 13px;
  font-weight: 900;
}

.wcc-tech-pricing-guide-top span,
.wcc-tech-pricing-guide-body,
.wcc-tech-pricing-guide-meta {
  color: var(--wcc-text-muted);
}

.wcc-tech-pricing-guide-body {
  margin: 0;
}

.wcc-tech-pricing-guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wcc-tech-pricing-guide-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--wcc-border);
  color: var(--wcc-text);
  font-weight: 700;
}

/* Express Production */
.wcc-express-option {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--wcc-border);
  border-radius: var(--wcc-radius);
  background: #ffffff;
}

.wcc-express-option.is-selected {
  border-color: rgba(0, 48, 112, 0.32);
  background: rgba(0, 48, 112, 0.03);
}

.wcc-express-option.is-unavailable {
  border-style: dashed;
  background: #fbfcff;
}

.wcc-express-option-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.wcc-express-eyebrow {
  margin-bottom: 3px;
  color: var(--wcc-text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wcc-express-option h4 {
  margin: 0 0 5px;
  color: var(--wcc-blue);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.wcc-express-option p,
.wcc-express-note {
  margin: 0;
  color: var(--wcc-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.wcc-express-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--wcc-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--wcc-blue);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.wcc-express-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.wcc-express-toggle.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.wcc-express-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.wcc-express-facts span {
  padding: 9px 10px;
  border: 1px solid rgba(0, 48, 112, 0.08);
  border-radius: var(--wcc-radius-sm);
  background: #fbfcff;
  color: var(--wcc-blue);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.wcc-express-status {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--wcc-radius-sm);
  font-size: 12px;
  line-height: 1.45;
}

.wcc-express-status strong {
  font-weight: 900;
}

.wcc-express-status.is-ok {
  border: 1px solid rgba(44, 122, 69, 0.2);
  background: var(--wcc-surface-soft);
  color: var(--wcc-blue);
  font-weight: bold;
}

.wcc-express-status.is-blocked {
  border: 1px solid rgba(198, 40, 40, 0.2);
  background: rgba(198, 40, 40, 0.06);
  color: var(--wcc-danger);
}

.wcc-express-note {
  margin-top: 10px;
}

@media (max-width: 767px) {
  .wcc-express-option-main,
  .wcc-express-toggle {
    width: 100%;
  }

  .wcc-express-option-main {
    flex-direction: column;
  }

  .wcc-express-toggle {
    justify-content: center;
  }

  .wcc-express-facts {
    grid-template-columns: 1fr;
  }
}

.wcc-readonly-input,
.wcc-details-editable-input {
  background: #ffffff !important;
  color: #374151;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wcc-text-entry-input {
  background: #ffffff !important;
  font-weight: 700;
}

.wcc-customisation-display-name {
  border: 1px solid #d7deea;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.wcc-customisation-display-name span {
  color: #6b7280;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wcc-customisation-display-name strong {
  color: #111827;
  font-size: 14px;
  font-weight: 400;
}

/* Stage 23: cleaned visual font and colour dropdowns. */
.wcc-visual-select-field {
  position: relative;
}

.wcc-root .wcc-visual-select-trigger,
.wcc-root button.wcc-visual-select-trigger {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--wcc-border) !important;
  border-radius: 12px;
  background: var(--wcc-surface-soft) !important;
  color: var(--wcc-text) !important;
  outline: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.wcc-root .wcc-visual-select-trigger:hover,
.wcc-root button.wcc-visual-select-trigger:hover {
  background: #fff !important;
  color: var(--wcc-text) !important;
}

.wcc-root .wcc-visual-select-trigger:focus,
.wcc-root .wcc-visual-select-field:focus-within .wcc-visual-select-trigger {
  border-color: rgba(0, 48, 112, 0.35) !important;
  box-shadow: 0 0 0 3px rgba(0, 48, 112, 0.09);
}

.wcc-root .wcc-visual-select-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.wcc-visual-select-current {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.wcc-visual-select-menu {
  position: static;
  z-index: 30;
  margin-top: 6px;
  max-height: none;
  overflow: visible;
  padding: 6px;
  border: 1px solid var(--wcc-border);
  border-radius: 14px;
  background: var(--wcc-surface);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.wcc-root .wcc-visual-select-option,
.wcc-root button.wcc-visual-select-option {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  color: var(--wcc-text) !important;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  cursor: pointer;
}

.wcc-root .wcc-visual-select-option:hover,
.wcc-root .wcc-visual-select-option:focus {
  background: var(--wcc-surface-soft) !important;
  color: var(--wcc-text) !important;
}

.wcc-root .wcc-visual-select-option.is-selected {
  background: rgba(0, 48, 112, 0.08) !important;
}

.wcc-font-select .wcc-visual-select-current .wcc-font-select-option {
  justify-content: flex-start;
}

.wcc-root .wcc-font-select-option {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--wcc-font-option-family, inherit) !important;
  font-weight: var(--wcc-font-option-weight, 400) !important;
  font-style: var(--wcc-font-option-style, normal) !important;
  font-synthesis: none;
  font-size: 18px;
  line-height: 1.25;
  color: inherit;
}

.wcc-font-select .wcc-visual-select-menu .wcc-font-select-option {
  white-space: normal;
}

.wcc-color-select-option {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  color: inherit;
}

.wcc-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  flex: 0 0 auto;
}

.wcc-reuse-locked .wcc-visual-select-trigger:disabled {
  opacity: 0.6;
}

/* Stage 22: prevent long technique-card text from escaping active cards. */
.wcc-choice-grid {
  align-items: stretch;
}

.wcc-choice,
.wcc-root button.wcc-choice {
  min-width: 0;
  overflow: hidden;
  white-space: normal !important;
}

.wcc-choice strong,
.wcc-choice-sub {
  display: block;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.wcc-choice-sub {
  line-height: 1.35;
}

@media (max-width: 420px) {
  .wcc-root button.wcc-choice,
  .wcc-choice {
    padding: 12px !important;
  }

  .wcc-choice strong {
    font-size: 18px;
  }

  .wcc-choice-sub {
    font-size: 11px;
  }
}

.wcc-add-more-below {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.wcc-root .wcc-add-more-below button.wcc-btn.small {
  min-width: 160px;
  background: var(--wcc-orange) !important;
  border-color: var(--wcc-orange) !important;
  color: #fff !important;
}

.wcc-root .wcc-add-more-below button.wcc-btn.small:hover {
  background: var(--wcc-orange-hover) !important;
  border-color: var(--wcc-orange-hover) !important;
  color: #fff !important;
}

.wcc-choice.is-disabled,
.wcc-root button.wcc-choice.is-disabled,
.wcc-root button.wcc-choice:disabled {
  opacity: 0.45;
  cursor: not-allowed !important;
  filter: grayscale(0.35);
}

.wcc-choice.is-disabled strong,
.wcc-choice.is-disabled .wcc-choice-sub,
.wcc-tech-unavailable {
  color: var(--wcc-text-muted) !important;
}

.wcc-field-error {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--wcc-danger);
}

.wcc-upload-tip {
  margin-top: 8px;
}

.wcc-acc.is-disabled {
  opacity: 0.62;
}

.wcc-root .wcc-acc.is-disabled .wcc-acc-head,
.wcc-root button.wcc-acc-head:disabled {
  cursor: not-allowed !important;
}

.wcc-step-error {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--wcc-blue);
  font-weight: bold;
}


/* Styled upload error dialog */
.wcc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 35, 63, 0.48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.wcc-modal {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--wcc-border-strong);
  border-radius: var(--wcc-radius-lg);
  background: var(--wcc-surface);
  box-shadow: 0 24px 70px rgba(18, 35, 63, 0.28);
  color: var(--wcc-text);
}

.wcc-modal-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(242, 92, 25, 0.12);
  color: var(--wcc-orange);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.wcc-modal-content {
  min-width: 0;
}

.wcc-modal-content h3 {
  margin: 0 0 8px;
  color: var(--wcc-blue);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.wcc-modal-content p {
  margin: 0;
  color: var(--wcc-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.wcc-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.wcc-modal-actions .wcc-btn {
  min-width: 96px;
}

@media (max-width: 480px) {
  .wcc-modal {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .wcc-modal-icon {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }

  .wcc-modal-content h3 {
    font-size: 18px;
  }

  .wcc-modal-actions .wcc-btn {
    width: 100%;
  }
}

/* Stage 37: concrete font preview rules for the visual Font selector.
 * Use direct font-family declarations instead of CSS custom properties so
 * Elementor/theme typography cannot collapse every option back to the UI font.
 */
.wcc-root .wcc-font-select-option[data-font-id="block"]{font-family:"helvetica-lt-pro",Arial,sans-serif!important;font-weight:700!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="arial_rounded"]{font-family:"arial-rounded-mt-pro",Arial,sans-serif!important;font-weight:700!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="helvetica"]{font-family:"helvetica-lt-pro",Arial,sans-serif!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="avant_garde"]{font-family:"itc-avant-garde-gothic-pro",Arial,sans-serif!important;font-weight:500!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="futura"]{font-family:"futura-pt",Arial,sans-serif!important;font-weight:500!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="verdana"]{font-family:Verdana,sans-serif!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="hobo"]{font-family:"hobo-std",sans-serif!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="script"]{font-family:"brush-script-std",cursive!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="bodoni"]{font-family:"bodoni-std",serif!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="copperplate"]{font-family:copperplate,serif!important;font-weight:500!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="serif"]{font-family:"clarendon-text-pro",serif!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="times_roman"]{font-family:"times-new-roman","Times New Roman",serif!important;font-weight:700!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="cooper"]{font-family:"cooper-black-std",serif!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="hightower"]{font-family:"hightower-text",serif!important;font-weight:400!important;font-style:italic!important}
.wcc-root .wcc-font-select-option[data-font-id="graduate"]{font-family:"Graduate",serif!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="courgette"]{font-family:"Courgette",cursive!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="outfit"]{font-family:"Outfit",sans-serif!important;font-weight:700!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="playfair_display"]{font-family:"Playfair Display",serif!important;font-weight:700!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="pacifico"]{font-family:"Pacifico",cursive!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="caveat_brush"]{font-family:"Caveat Brush",cursive!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="dancing_script"]{font-family:"Dancing Script",cursive!important;font-weight:700!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="libre_baskerville"]{font-family:"Libre Baskerville",serif!important;font-weight:700!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="arimo"]{font-family:"Arimo",sans-serif!important;font-weight:700!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="archivo_black"]{font-family:"Archivo Black",sans-serif!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="lobster"]{font-family:"Lobster",cursive!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="permanent_marker"]{font-family:"Permanent Marker",cursive!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="alfa_slab_one"]{font-family:"Alfa Slab One",serif!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="dela_gothic_one"]{font-family:"Dela Gothic One",sans-serif!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="kaushan"]{font-family:"Kaushan Script",cursive!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="roboto"]{font-family:"Roboto",sans-serif!important;font-weight:700!important;font-style:italic!important}
.wcc-root .wcc-font-select-option[data-font-id="ribeye"]{font-family:"Ribeye",cursive!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="sigmar"]{font-family:"Sigmar",sans-serif!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="cookie"]{font-family:"Cookie",cursive!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="great_vibes"]{font-family:"Great Vibes",cursive!important;font-weight:400!important;font-style:normal!important}
.wcc-root .wcc-font-select-option[data-font-id="inter"]{font-family:"Inter",sans-serif!important;font-weight:700!important;font-style:normal!important}

/* Stage 39: Details field backgrounds reflect editability. */
.wcc-readonly-input {
  background: #f8fafc !important;
  color: #374151;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.wcc-details-editable-input {
  background: #ffffff !important;
  color: #374151;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wcc-field textarea {
  background: #ffffff !important;
}

/* Reused saved customisations: prevent selecting positions that are too small. */
.wcc-root button.wcc-pos.is-size-incompatible,
.wcc-root button.wcc-pos.is-size-incompatible:disabled {
  cursor: not-allowed !important;
  opacity: 0.62 !important;
  background: #f3f6fa !important;
  border-style: dashed !important;
  color: var(--wcc-text) !important;
  box-shadow: none !important;
}

.wcc-pos-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.wcc-pos-size-warning {
  display: block;
  color: #9b2c2c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.wcc-reuse-size-help {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--wcc-border);
  border-radius: 10px;
  background: #f7f9fc;
}

/* Stage 45: remove cart items directly from /print-wizard. */
.wcc-cart-nav-item {
  position: relative;
  min-width: 0;
}

.wcc-cart-nav-item .wcc-cart-nav-card {
  height: 100%;
}

.wcc-root .wcc-cart-nav-remove,
.wcc-root button.wcc-cart-nav-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0 !important;
  border: 1px solid rgba(0, 48, 112, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--wcc-blue) !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.wcc-root .wcc-cart-nav-remove:hover,
.wcc-root button.wcc-cart-nav-remove:hover {
  border-color: rgba(198, 40, 40, 0.4) !important;
  background: #fff !important;
  color: var(--wcc-danger) !important;
}

.wcc-root .wcc-cart-nav-remove:disabled,
.wcc-root button.wcc-cart-nav-remove:disabled {
  opacity: 0.5;
  cursor: wait !important;
}

.wcc-order-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Product lines explicitly excluded from /print-wizard remain in the basket. */
.wcc-empty-state {
  max-width: 720px;
  margin: 32px auto;
  padding: 28px;
  border: 1px solid var(--wcc-border);
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 48, 112, 0.08);
}

.wcc-empty-state h2 {
  margin: 0 0 10px;
  color: var(--wcc-blue);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.wcc-empty-state p {
  max-width: 580px;
  margin: 0 auto 22px;
  color: var(--wcc-text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.wcc-empty-state .wcc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}


/* v0.10.19: Uniform font help is rendered under <body> so wizard/sidebar overflow cannot clip it. */
.wcc-root .wcc-tooltip--floating-trigger {
  width: 21px !important;
  height: 21px !important;
  flex: 0 0 21px;
  border: 2.5px solid var(--wcc-blue) !important;
  color: var(--wcc-blue) !important;
  font-family: "Arial Black", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: 0.2px 0 currentColor, -0.2px 0 currentColor;
}

.wcc-tooltip--floating-trigger::after {
  content: none !important;
  display: none !important;
}

.wcc-floating-help-tooltip {
  position: fixed;
  z-index: 2147483000;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--wcc-border, #d8dee8);
  border-radius: 10px;
  background: #fff;
  color: var(--wcc-text, #13233d);
  box-shadow: 0 10px 28px rgba(0, 48, 112, 0.18);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
}

/* The help tooltip lives under body, outside the isolated editor. */
body:has(.elementor-menu-cart--shown) .wcc-floating-help-tooltip {
  visibility: hidden !important;
}

/* v0.10.38: compact order-level /print-wizard on PHONES ONLY.
   Keep the single Konva instance mounted: display:contents flattens the
   preview wrappers for flex ordering without moving/remounting the canvas.
   Tablet and desktop (>= 768px) keep the original markup and styling. */
@media (max-width: 767px) {
  .wcc-order-level-root {
    gap: 12px;
  }

  /* A single compact progress row instead of three stacked steps. */
  .wcc-order-level-root .wcc-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 0;
  }
  .wcc-order-level-root .wcc-progress-step {
    padding: 0 2px;
  }
  .wcc-order-level-root .wcc-progress-dot {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
    font-size: 12px;
    box-shadow: none;
  }
  .wcc-order-level-root .wcc-progress-label {
    font-size: 10px;
    line-height: 1.25;
  }
  .wcc-order-level-root .wcc-progress-line {
    display: none;
  }

  /* The cart picker stays one horizontal swipeable row even for many items. */
  .wcc-order-level-root .wcc-cart-nav-panel {
    padding: 10px;
    overflow: hidden;
  }
  .wcc-order-level-root .wcc-cart-nav-panel .wcc-panel-head {
    flex-direction: row;
    align-items: center;
    margin-bottom: 7px;
  }
  .wcc-order-level-root .wcc-cart-nav-panel .wcc-panel-head h3 {
    margin-bottom: 0;
  }
  .wcc-order-level-root .wcc-cart-nav-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 2px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 2px 2px 8px;
  }
  .wcc-order-level-root .wcc-cart-nav-item {
    flex: 0 0 clamp(194px, 58vw, 228px);
    scroll-snap-align: start;
  }
  .wcc-order-level-root .wcc-cart-nav-item .wcc-cart-nav-card {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      'image title'
      'image details';
    grid-template-rows: auto 1fr;
    align-items: start;
    align-content: start;
    column-gap: 8px;
    row-gap: 4px;
    padding: 7px !important;
    min-height: 119px;
  }
  .wcc-order-level-root .wcc-cart-nav-thumb {
    grid-area: image;
    width: 48px;
    height: 65px;
    margin: 0;
    padding: 2px;
  }
  .wcc-order-level-root .wcc-cart-nav-name {
    grid-area: title;
    padding-right: 20px;
    margin: 0;
    min-height: 0;
    max-height: 3.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 11px;
    line-height: 1.2;
  }
  .wcc-order-level-root .wcc-cart-nav-meta-grid {
    grid-area: details;
    gap: 3px;
  }
  .wcc-order-level-root .wcc-cart-nav-meta-row {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 3px;
  }
  .wcc-order-level-root .wcc-cart-nav-meta-label,
  .wcc-order-level-root .wcc-cart-nav-meta-value {
    font-size: 9px;
    line-height: 1.2;
  }
  .wcc-order-level-root .wcc-cart-nav-meta-value {
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .wcc-order-level-root .wcc-cart-nav-panel:has(.wcc-cart-nav-item:nth-child(2))::after {
    content: 'Swipe to see more products \2192';
    display: block;
    margin-top: 3px;
    color: var(--wcc-text-muted);
    font-size: 11px;
    text-align: right;
  }

  /* On phones: editor -> currently selected -> toolbar -> canvas.
     Flatten only the layout wrappers: the live React/Konva canvas remains mounted.
     Tablet and desktop keep their original order. */
  .wcc-order-level-root .wcc-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .wcc-order-level-root .wcc-main,
  .wcc-order-level-root .wcc-preview-sticky {
    display: contents;
  }
  .wcc-order-level-root .wcc-order-summary-panel {
    order: 2;
    margin: 0 0 12px;
    padding: 11px 12px;
  }
  .wcc-order-level-root .wcc-order-summary-panel h3 {
    margin-bottom: 5px;
    font-size: 12px;
  }
  .wcc-order-level-root .wcc-order-summary-name {
    font-size: 16px;
    margin-bottom: 5px;
  }
  .wcc-order-level-root .wcc-order-summary-meta {
    gap: 4px 9px;
    margin-bottom: 0;
    font-size: 11px;
  }
  .wcc-order-level-root .wcc-sidebar {
    order: 1;
    width: 100%;
    min-width: 0;
    margin-bottom: 12px;
  }
  .wcc-order-level-root .wcc-toolbar {
    order: 3;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 10px 8px;
    margin: 0;
    background: var(--wcc-surface);
    border: 1px solid var(--wcc-border);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
  }
  .wcc-order-level-root .wcc-stage-wrap {
    order: 4;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    border-top: 0;
    border-radius: 0 0 18px 18px;
  }

  /* Large editable customisation cards become compact image + details rows. */
  .wcc-order-level-root .wcc-sidebar > .wcc-panel {
    padding: 11px;
  }
  .wcc-order-level-root .wcc-slots {
    gap: 8px;
  }
  .wcc-order-level-root .wcc-slot {
    padding: 9px 10px;
  }
  .wcc-order-level-root .wcc-slot-top {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .wcc-order-level-root .wcc-slot-card,
  .wcc-order-level-root .wcc-lib-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
  }
  .wcc-order-level-root .wcc-slot-thumb,
  .wcc-order-level-root .wcc-lib-thumb {
    width: 68px;
    max-width: 68px;
    height: 68px;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  .wcc-order-level-root .wcc-lib-body {
    padding: 9px 7px 9px 0;
  }
  .wcc-order-level-root .wcc-slot-name,
  .wcc-order-level-root .wcc-lib-name {
    margin-bottom: 3px;
    overflow-wrap: anywhere;
  }
  .wcc-order-level-root .wcc-slot-meta .wcc-row,
  .wcc-order-level-root .wcc-lib-body .wcc-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
  }
  .wcc-order-level-root .wcc-slot-meta .wcc-row .wcc-btn,
  .wcc-order-level-root .wcc-lib-body .wcc-row .wcc-btn {
    width: auto;
    flex: 0 0 auto;
    min-height: 34px;
  }
  .wcc-order-level-root .wcc-slot-empty {
    margin-top: 7px;
  }
  .wcc-order-level-root .wcc-slot-empty .wcc-btn {
    min-height: 42px;
  }
  .wcc-order-level-root .wcc-express-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .wcc-order-level-root .wcc-express-facts span {
    padding: 8px;
    font-size: 11px;
  }
  .wcc-order-level-root .wcc-sidebar .wcc-row {
    margin-top: 9px;
  }

  /* No large order table on mobile. The cart and editor still work normally. */
  .wcc-order-level-root .wcc-order-table-panel {
    display: none !important;
  }
}

/* v0.10.39: two equal-width customisation tiles on phones only.
   The 2-column grid applies to both empty slots and assigned designs.
   Constrain button labels and artwork metadata to narrow cards rather than
   allowing the global white-space:nowrap button style to force page overflow. */
@media (max-width: 767px) {
  .wcc-order-level-root .wcc-slots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }
  .wcc-order-level-root .wcc-slot {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 9px 8px;
  }
  .wcc-order-level-root .wcc-slot-top {
    align-items: flex-start;
    min-width: 0;
    gap: 4px;
  }
  .wcc-order-level-root .wcc-slot-num {
    min-width: 0;
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: break-word;
  }
  .wcc-order-level-root .wcc-slot-top .wcc-btn.ghost {
    flex: 0 0 auto;
    padding: 3px 5px !important;
    min-height: 26px;
    font-size: 14px !important;
  }
  .wcc-order-level-root .wcc-slot-empty {
    display: flex;
    align-items: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 8px;
  }
  .wcc-order-level-root .wcc-slot-empty button.wcc-btn.primary {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 9px 7px !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
    font-size: 12px !important;
    line-height: 1.25 !important;
    text-align: center;
  }
  .wcc-order-level-root .wcc-slot-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-top: 8px;
    min-width: 0;
  }
  .wcc-order-level-root .wcc-slot-thumb {
    width: 54px;
    max-width: 54px;
    height: 54px;
  }
  .wcc-order-level-root .wcc-slot-meta {
    min-width: 0;
  }
  .wcc-order-level-root .wcc-slot-name {
    font-size: 12px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .wcc-order-level-root .wcc-slot-desc,
  .wcc-order-level-root .wcc-slot-meta .wcc-lib-status {
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .wcc-order-level-root .wcc-slot-meta .wcc-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
  }
  .wcc-order-level-root .wcc-slot-meta .wcc-row button.wcc-btn.small {
    flex: 1 1 auto;
    min-width: 0;
    padding: 7px 8px !important;
    min-height: 34px;
    font-size: 11px !important;
    white-space: normal !important;
  }
}

/* v0.10.40: compact customisation library on phones ONLY. Keep the library
   as readable, single-row entries: two tiny columns cannot fit three actions
   and long saved artwork names at ~320px. Desktop/tablet remain untouched. */
@media (max-width: 767px) {
  /* Headline and Back share a line; Filter and Add new share the next line. */
  .wcc-order-level-root .wcc-lib-inline .wcc-panel-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-panel-head h3 {
    margin: 0;
    min-width: 0;
    font-size: 15px;
    line-height: 1.3;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-panel-head button.wcc-btn {
    width: auto;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 12px !important;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    margin: 0 0 10px;
    text-align: left;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-toolbar .wcc-field {
    min-width: 0;
    margin: 0;
    gap: 4px;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-toolbar .wcc-field select {
    min-width: 0;
    min-height: 39px;
    padding: 7px 8px;
    font-size: 12px;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-toolbar > div[style] {
    display: none;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-toolbar button.wcc-btn.primary {
    width: auto;
    min-height: 39px;
    padding: 8px 12px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  /* Existing thumbnail and details stay side by side, but take less height. */
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 7px;
    min-width: 0;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-thumb {
    width: 56px;
    max-width: 56px;
    height: 56px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 9px;
    overflow: hidden;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-body {
    padding: 0;
    min-width: 0;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-name {
    margin: 0 0 2px;
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-desc {
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-library-already-used {
    margin: 2px 0;
    padding: 2px 7px;
    font-size: 10px;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-body .wcc-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    margin-top: 5px;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-body .wcc-row button.wcc-btn.small {
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    padding: 7px 10px !important;
    font-size: 11px !important;
    border-radius: 9px !important;
    white-space: nowrap;
  }
}


/* v0.10.42: equal-height cards within each library row on phones only.
   The content is never clipped to enforce alignment: for short libraries CSS
   grid rows grow to their tallest card, and the action row is pinned to the
   bottom of its tile. Long libraries use equal-height horizontal grid tracks,
   instead of multi-columns that pack cards to inconsistent heights. */
@media (max-width: 767px) {
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-grid.wcc-lib-grid-1col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-card {
    display: block;
    position: relative;
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 7px 7px 50px;
    overflow: hidden;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-thumb {
    display: block;
    float: left;
    width: 42px;
    max-width: 42px;
    height: 42px;
    min-height: 0;
    aspect-ratio: 1;
    margin: 0 6px 3px 0;
    border-radius: 8px;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-body {
    display: block;
    min-width: 0;
    padding: 0;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-name {
    display: block;
    min-width: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-library-already-used {
    display: inline-flex;
    max-width: 100%;
    margin: 3px 0 0;
    padding: 2px 5px;
    font-size: 9px;
    line-height: 1.15;
    white-space: normal;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-desc {
    display: block;
    clear: both;
    min-width: 0;
    margin: 4px 0 0;
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-body .wcc-row {
    display: flex;
    position: absolute;
    bottom: 7px;
    left: 7px;
    right: 7px;
    clear: both;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: auto;
    min-width: 0;
    gap: 3px;
    margin: 0;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-body .wcc-row button.wcc-btn.small {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    min-height: 36px;
    padding: 6px 2px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
  }

  /* Nine+ visible projects: keep two columns in the viewport while scrolling
     sideways. Two rows are used on narrow phones so a very long project name
     does not force another vertical scroll inside the library. Rows have the
     matching heights across columns within a row. Overflow remains scrollable. */
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-grid.wcc-lib-grid-1col:has(> .wcc-lib-card:nth-child(9)) {
    display: grid;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: calc((100% - 8px) / 2);
    gap: 8px;
    height: auto;
    max-height: 520px;
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 6px;
  }
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-grid.wcc-lib-grid-1col:has(> .wcc-lib-card:nth-child(9)) > .wcc-lib-card {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
  }
  .wcc-order-level-root .wcc-lib-inline:has(.wcc-lib-grid > .wcc-lib-card:nth-child(9))::after {
    content: 'Swipe sideways to browse more saved designs \2192';
    display: block;
    margin-top: 5px;
    color: var(--wcc-text-muted);
    text-align: right;
    font-size: 11px;
    line-height: 1.35;
  }
}

/* Wider phones can show three equal-height rows without extra vertical scroll. */
@media (min-width: 480px) and (max-width: 767px) {
  .wcc-order-level-root .wcc-lib-inline .wcc-lib-grid.wcc-lib-grid-1col:has(> .wcc-lib-card:nth-child(9)) {
    grid-template-rows: repeat(3, auto);
  }
}

/* v0.10.47: On mobile, keep type/technique choices in two columns,
   but return Step 3 Position buttons to full-row width. */
@media (max-width: 767px) {
  .wcc-order-level-root .wcc-wizard .wcc-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .wcc-order-level-root .wcc-wizard .wcc-choice-grid > button.wcc-choice {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 10px !important;
  }

  .wcc-order-level-root .wcc-wizard .wcc-choice strong {
    font-size: clamp(15px, 4.5vw, 18px);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .wcc-order-level-root .wcc-wizard .wcc-choice-sub {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.3;
  }

  /* Each position occupies its own full-width row, including the badge.
     Keep the original horizontal alignment and click target. */
  .wcc-order-level-root .wcc-wizard .wcc-pos-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

/* v0.10.44: Mobile step 4 / Type text. Colour + Align share one compact
   50/50 row. Only the text controls are affected; the Image step and
   desktop/tablet keep their previous layout. */
@media (max-width: 767px) {
  .wcc-order-level-root .wcc-wizard .wcc-text-options-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-options-row > .wcc-field {
    min-width: 0;
    margin-bottom: 0;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-options-row > .wcc-color-select .wcc-visual-select-trigger {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 6px !important;
    gap: 4px;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-options-row .wcc-color-select-option {
    min-width: 0;
    max-width: 100%;
    gap: 4px;
    font-size: 13px;
    line-height: 1.3;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-options-row .wcc-color-select-option > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-options-row .wcc-color-dot {
    width: 14px;
    height: 14px;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-options-row > .wcc-field select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 18px 8px 8px;
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  .wcc-order-level-root .wcc-wizard .wcc-text-options-row .wcc-color-select-option {
    font-size: 12px;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-options-row > .wcc-field select {
    font-size: 13px;
  }
}

/* v0.10.45: phone-only compact Text editor. Desktop still uses the original
   Text / range slider / Font vertical layout; the extra numeric control and
   preview shortcut are completely hidden above 767px. */
.wcc-order-level-root .wcc-mobile-line-width-field,
.wcc-order-level-root .wcc-text-preview-jump {
  display: none;
}
.wcc-order-level-root .wcc-desktop-line-width-control {
  display: contents;
}

@media (max-width: 767px) {
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 0.9fr) minmax(60px, 0.58fr);
    grid-template-rows: auto auto;
    gap: 7px 6px;
    padding: 10px;
    margin-bottom: 8px;
    min-width: 0;
    overflow: visible;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box > .wcc-box-title {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 13px;
    line-height: 1.3;
    margin: 0;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box > label.wcc-field {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    margin: 0;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box > .wcc-desktop-line-width-control {
    display: none;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box > .wcc-font-select {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    z-index: 1;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box > label.wcc-field.wcc-mobile-line-width-field {
    display: flex;
    grid-column: 3;
    grid-row: 2;
    min-width: 0;
    margin: 0;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box .wcc-label {
    white-space: nowrap;
    font-size: 10px;
    line-height: 1.2;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box > label.wcc-field > input,
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box .wcc-font-select > .wcc-visual-select-trigger {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    padding: 8px 7px !important;
    border-radius: 9px;
    font-size: 16px;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box .wcc-font-select .wcc-font-select-option {
    font-size: 14px;
    line-height: 1.25;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box .wcc-mobile-line-width-field input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
    text-align: center;
    padding: 8px 3px !important;
    font-size: 16px;
    background: #fff !important;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box .wcc-mobile-line-width-field input[type="number"]::-webkit-inner-spin-button,
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box .wcc-mobile-line-width-field input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  /* The narrow font field keeps its native picker. When open, show its full
     choices in an overlay rather than making each text line hundreds of px tall. */
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box .wcc-font-select > .wcc-visual-select-menu {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    left: auto;
    width: min(225px, 74vw);
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 45;
    box-sizing: border-box;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box .wcc-font-select:has(> .wcc-visual-select-menu) {
    z-index: 45;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-preview-jump {
    display: block;
    margin: 4px 0 8px;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-preview-jump button.wcc-btn {
    display: inline-flex;
    width: auto;
    min-height: 38px;
    padding: 8px 12px !important;
    white-space: nowrap;
    font-size: 12px !important;
  }
  .wcc-order-level-root .wcc-toolbar {
    scroll-margin-top: 84px;
  }
}
@media (max-width: 360px) {
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(55px, 0.6fr);
    gap: 6px 4px;
    padding: 8px;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box .wcc-font-select .wcc-font-select-option {
    font-size: 12px;
  }
  .wcc-order-level-root .wcc-wizard .wcc-text-line-box .wcc-label {
    font-size: 9px;
  }
}

/* v0.10.48 - mobile preview toolbar: keep Front/Back/Left/Right in one
   four-column row. Scope to the canvas toolbar only, not Step 3 Position. */
@media (max-width: 767px) {
  .wcc-order-level-root .wcc-toolbar .wcc-view-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .wcc-order-level-root .wcc-toolbar .wcc-view-buttons button.wcc-btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 3px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
  }
}
