/* Recovered from Horizon s6m-customizer.liquid; layout preserved. */

  .s6m-customizer { background: #fff; padding: 24px 0 56px; }
  @media (min-width: 768px) { .s6m-customizer { padding: 40px 0 80px; } }
  .s6m-customizer__inner { max-width: 1320px; margin: 0 auto; padding: 0 18px; }
  @media (min-width: 768px) { .s6m-customizer__inner { padding: 0 32px; } }

  .s6m-customizer__head { text-align: center; margin: 0 0 28px; }
  .s6m-customizer__eyebrow { color: var(--6m-signal); margin-bottom: 8px; }
  .s6m-customizer__title {
    font-family: var(--6m-display);
    font-size: clamp(34px, 7vw, 64px);
    line-height: 0.92;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--6m-ink);
    margin: 0;
  }
  .s6m-customizer__subtitle {
    margin: 12px auto 0;
    max-width: 520px;
    color: var(--6m-muted);
    font-size: 14px;
    line-height: 1.5;
  }

  .s6m-customizer__garments {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 28px 0 24px;
    flex-wrap: wrap;
  }
  .s6m-customizer__garment-btn {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--6m-line);
    color: var(--6m-ink);
    font-family: var(--6m-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
  }
  .s6m-customizer__garment-btn:hover { border-color: var(--6m-ink); }
  .s6m-customizer__garment-btn.is-active {
    background: var(--6m-ink);
    color: #fff;
    border-color: var(--6m-ink);
  }

  .s6m-customizer__panel { display: none; }
  .s6m-customizer__panel.is-active { display: block; }

  /* === 3-COL LAYOUT: TOOLBAR · STAGE · CONTROLS === */
  .s6m-customizer__cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  @media (min-width: 900px) {
    .s6m-customizer__cols {
      grid-template-columns: 76px minmax(0, 1.1fr) minmax(360px, 0.9fr);
      gap: 28px;
      align-items: start;
    }
  }

  /* TOOLBAR */
  .s6m-customizer__toolbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  @media (min-width: 900px) {
    .s6m-customizer__toolbar {
      flex-direction: column;
      gap: 10px;
      position: sticky;
      top: 90px;
    }
  }
  .s6m-tool {
    width: 64px;
    padding: 12px 4px;
    background: #fff;
    border: 1px solid var(--6m-line);
    color: var(--6m-ink);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: var(--6m-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.18s ease;
  }
  .s6m-tool:hover:not(:disabled) {
    background: var(--6m-bg-2, #f7f7f2);
    border-color: var(--6m-ink);
  }
  .s6m-tool:disabled {
    opacity: 0.35;
    cursor: not-allowed;
  }
  .s6m-tool[data-6m-tool="reset"]:hover:not(:disabled),
  .s6m-tool[data-6m-tool="delete"]:hover:not(:disabled) {
    color: var(--6m-signal);
    border-color: var(--6m-signal);
  }

  /* STAGE */
  .s6m-customizer__stage-wrap { position: sticky; top: 90px; }
  @media (max-width: 899px) { .s6m-customizer__stage-wrap { position: static; } }
  .s6m-customizer__stage {
    position: relative;
    aspect-ratio: 1;
    background: var(--6m-bg-2, #f4f4f0);
    overflow: hidden;
  }
  .s6m-customizer__garment-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.08s ease-out;
    pointer-events: none;
  }
  .s6m-customizer__zone {
    position: absolute;
    top: 28%; left: 50%;
    transform: translateX(-50%);
    width: 36%;
    aspect-ratio: 380 / 460; /* must equal PRINT_AREAS_MM front/back so px→mm is uniform */
    border: 1.5px dashed rgba(196, 30, 30, 0.45);
  }
  .s6m-customizer__zone.is-back {
    top: 22%;
    width: 42%;
  }
  .s6m-customizer__zone.has-art { border-color: rgba(196, 30, 30, 0.45); }
  .s6m-customizer__zone canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
  }
  .s6m-customizer__placeholder {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(10,10,10,0.4);
    font-family: var(--6m-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
  }
  .s6m-customizer__zone.has-art .s6m-customizer__placeholder { display: none; }

  .s6m-customizer__zone-tabs {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    justify-content: center;
  }
  .s6m-customizer__zone-btn {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--6m-line);
    color: var(--6m-ink);
    font-family: var(--6m-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    flex: 1;
    max-width: 140px;
    transition: all 0.18s ease;
  }
  .s6m-customizer__zone-btn:hover { border-color: var(--6m-ink); }
  .s6m-customizer__zone-btn.is-active {
    background: var(--6m-ink);
    color: #fff;
    border-color: var(--6m-ink);
  }

  /* CONTROLS */
  .s6m-customizer__product-head { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--6m-line); }
  .s6m-customizer__product-vendor { color: var(--6m-signal); margin-bottom: 8px; }
  .s6m-customizer__product-title {
    font-family: var(--6m-display);
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--6m-ink);
    margin: 0 0 12px;
  }
  @media (min-width: 768px) { .s6m-customizer__product-title { font-size: 32px; } }
  .s6m-customizer__price {
    font-family: var(--6m-sans);
    font-size: 24px;
    font-weight: 700;
    color: var(--6m-ink);
    margin-bottom: 6px;
  }
  .s6m-customizer__sub { color: var(--6m-muted); font-size: 13px; }

  /* Add Image / Add Text quick row */
  .s6m-customizer__add-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 22px;
  }
  .s6m-customizer__add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    background: var(--6m-ink);
    color: #fff;
    border: 1px solid var(--6m-ink);
    font-family: var(--6m-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.18s;
  }
  .s6m-customizer__add-btn:hover { opacity: 0.85; }

  /* Field rows */
  .s6m-customizer__field { margin-bottom: 22px; }
  .s6m-customizer__field-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    font-family: var(--6m-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--6m-ink);
  }
  .s6m-customizer__field-value { color: var(--6m-muted); font-weight: 400; }
  .s6m-customizer__field-hint { color: var(--6m-muted); font-weight: 400; text-transform: none; letter-spacing: 0.04em; }
  .s6m-customizer__field-link { color: var(--6m-ink); text-decoration: underline; text-underline-offset: 3px; }

  .s6m-customizer__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
  .s6m-customizer__swatch {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--swatch-color, #ccc);
    border: 1px solid rgba(10,10,10,0.12);
    cursor: pointer;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
    padding: 0;
  }
  .s6m-customizer__swatch:hover { transform: scale(1.06); }
  .s6m-customizer__swatch.is-active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--6m-ink);
  }
  /* Kadence's global button:hover/:focus/:active red fill outranks the class rule above; keep every swatch its own colour in every state. */
  .s6m-customizer__swatch:hover,
  .s6m-customizer__swatch:focus,
  .s6m-customizer__swatch:active { background: var(--swatch-color, #ccc); }
  .s6m-vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

  .s6m-customizer__sizes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    gap: 6px;
  }
  .s6m-customizer__size {
    padding: 12px 0;
    background: transparent;
    border: 1px solid var(--6m-line);
    color: var(--6m-ink);
    font-family: var(--6m-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.18s ease;
  }
  .s6m-customizer__size:hover { border-color: var(--6m-ink); }
  .s6m-customizer__size.is-active {
    background: var(--6m-ink);
    color: #fff;
    border-color: var(--6m-ink);
  }

  .s6m-customizer__notes {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--6m-line);
    background: #fff;
    color: var(--6m-ink);
    font-family: var(--6m-sans);
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    min-height: 78px;
    box-sizing: border-box;
  }
  .s6m-customizer__notes:focus { outline: none; border-color: var(--6m-ink); }

  .s6m-customizer__cta {
    width: 100%;
    margin-top: 8px;
    padding: 18px 22px;
    background: var(--6m-ink);
    color: #fff;
    border: 1px solid var(--6m-ink);
    font-family: var(--6m-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: opacity 0.18s;
  }
  .s6m-customizer__cta:not(.is-empty):hover { opacity: 0.85; }
  .s6m-customizer__cta.is-empty { cursor: pointer; }
  @keyframes s6mFlash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 70, 120, 0); }
    40%      { box-shadow: 0 0 0 6px rgba(255, 70, 120, 0.55); }
  }
  .s6m-customizer__zone.s6m-flash { animation: s6mFlash 0.7s ease-out 2; }
  .s6m-customizer__cta:disabled {
    background: var(--6m-line);
    border-color: var(--6m-line);
    color: var(--6m-muted);
    cursor: not-allowed;
  }
  .s6m-customizer__cta--ghost {
    background: transparent;
    color: var(--6m-ink);
    border-color: var(--6m-line);
  }

  .s6m-customizer__trust {
    list-style: none;
    padding: 18px 0 0;
    margin: 16px 0 0;
    border-top: 1px solid var(--6m-line);
    color: var(--6m-muted);
    font-size: 12px;
    line-height: 1.7;
  }

  /* === MODAL === */
  html.sixm-studio-modal-open,
  body.sixm-studio-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
  }
  .s6m-modal { position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center; padding: 18px; }
  .s6m-modal[hidden] { display: none !important; }
  .s6m-modal__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,0.6); }
  .s6m-modal__panel {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 460px;
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    border: 1px solid var(--6m-ink);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  }
  .s6m-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--6m-line); }
  .s6m-modal__head h3 { margin: 0; font-family: var(--6m-display); font-size: 22px; letter-spacing: -0.01em; text-transform: uppercase; }
  .s6m-modal__close { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--6m-muted); cursor: pointer; padding: 0 4px; }
  .s6m-modal__close:hover { color: var(--6m-ink); }
  .s6m-modal__body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
  .s6m-modal__field { display: flex; flex-direction: column; gap: 6px; }
  .s6m-modal__field input[type="text"],
  .s6m-modal__field input[type="number"],
  .s6m-modal__field select {
    padding: 10px 12px;
    border: 1px solid var(--6m-line);
    background: #fff;
    color: var(--6m-ink);
    font-family: var(--6m-sans);
    font-size: 14px;
    box-sizing: border-box;
    width: 100%;
  }
  .s6m-modal__field input:focus, .s6m-modal__field select:focus { outline: none; border-color: var(--6m-ink); }
  .s6m-modal__label { font-family: var(--6m-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--6m-ink); }
  .s6m-modal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .s6m-modal__field--half { width: 100%; }
  .s6m-modal__colors { display: flex; gap: 6px; flex-wrap: wrap; }
  .s6m-modal__color {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    padding: 0;
  }
  .s6m-modal__color:hover { transform: scale(1.1); }
  .s6m-modal__color.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--6m-ink); }
  .s6m-modal__style { display: flex; gap: 6px; }
  .s6m-modal__style-btn {
    width: 36px; height: 36px;
    border: 1px solid var(--6m-line);
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: var(--6m-ink);
  }
  .s6m-modal__style-btn.is-active { background: var(--6m-ink); color: #fff; border-color: var(--6m-ink); }
  .s6m-modal__foot { display: flex; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--6m-line); }
  .s6m-modal__foot .s6m-customizer__cta { margin-top: 0; flex: 1; padding: 12px 14px; font-size: 11px; }

.s6m-customizer button { border-radius: 0; box-shadow: none; }
.s6m-customizer__zone .canvas-container { width: 100% !important; height: 100% !important; }
.s6m-customizer__status { font-size: 13px; min-height: 20px; margin: 12px 0; }
.s6m-modal[hidden] { display: none !important; }

.s6m-customizer__status:empty { display: none; }
