#kc-customizer{
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #1a1a1a;
  --muted: #6a6a6a;
  --line: #e6e6e6;
  --line-strong: #d0d0d0;
  --accent: #111111;
  --danger: #b42318;
  --ok: #1a7a3a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --ui: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --panel-w: 400px;
}

#kc-customizer, #kc-customizer *{ box-sizing: border-box; }
#kc-customizer, #kc-customizer{ margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--body); }
#kc-customizer button, #kc-customizer input, #kc-customizer textarea, #kc-customizer select{ font: inherit; color: inherit; }
#kc-customizer button{ cursor: pointer; }
#kc-customizer img{ max-width: 100%; display: block; }
#kc-customizer a{ color: inherit; }


#kc-customizer .catalog{
  min-height: 100%;
  padding: 32px 24px 64px;
  max-width: 1180px;
  margin: 0 auto;
}
#kc-customizer .catalog-head{ text-align: center; margin: 12px 0 36px; }
#kc-customizer .catalog-kicker{
  font-family: var(--ui);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 8px;
}
#kc-customizer .catalog-head h1{
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
#kc-customizer .catalog-head p{ margin: 0 auto; max-width: 560px; color: var(--muted); line-height: 1.5; }
#kc-customizer .card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
#kc-customizer .prod-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 20px;
  text-align: left;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
#kc-customizer .prod-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
#kc-customizer .prod-thumb{
  background: var(--bg);
  border-radius: 8px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  padding: 16px 12px 28px;
}
#kc-customizer .prod-thumb img, #kc-customizer .prod-thumb object, #kc-customizer .prod-thumb svg{
  height: 100%;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
}
#kc-customizer .prod-thumb.set{ justify-content: center; }
#kc-customizer .prod-thumb.set svg, #kc-customizer .prod-thumb.set img{ height: 100%; width: 100%; }
#kc-customizer .prod-card h2{ font-family: var(--ui); font-size: 18px; margin: 0 0 4px; font-weight: 650; }
#kc-customizer .prod-card .short{ color: var(--muted); font-size: 13px; margin: 0 0 10px; min-height: 2.2em; }
#kc-customizer .prod-card .from{ font-family: var(--ui); font-weight: 700; font-size: 16px; }
#kc-customizer .prod-note{ font-size: 11px; color: var(--muted); margin: 8px 0 0; line-height: 1.4; }


#kc-customizer .studio{
  display: grid;
  grid-template-columns: 1fr var(--panel-w);
  grid-template-rows: 56px minmax(0, 1fr);
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
#kc-customizer .studio-top{
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  /* Allow the title bar to shrink in the studio grid so the existing
     h1 ellipsis can work on narrow viewports instead of forcing the
     column past the viewport (All pieces + product name + Brief). */
  min-width: 0;
}
#kc-customizer .studio-top h1{
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 650;
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#kc-customizer .ghost-btn, #kc-customizer .icon-btn{
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 12px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
}
#kc-customizer .icon-btn{ padding: 7px 9px; line-height: 1; }
#kc-customizer .ghost-btn:hover, #kc-customizer .icon-btn:hover{ background: var(--bg); }

#kc-customizer .preview-pane{
  position: relative;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#kc-customizer .stage-wrap{
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 80px;
}
#kc-customizer .stage{
  width: min(100%, 760px);
  transform-origin: center center;
  transition: transform 0.15s ease;
}
#kc-customizer .stage svg{ width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.06)); }

#kc-customizer .preview-tools{
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 3;
}
#kc-customizer .view-switch, #kc-customizer .zoom-switch{
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
#kc-customizer .view-switch button, #kc-customizer .zoom-switch button{
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
}
#kc-customizer .view-switch button[aria-pressed="true"], #kc-customizer .zoom-switch button[aria-pressed="true"]{
  background: var(--ink);
  color: #fff;
}
#kc-customizer .set-strip{
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
#kc-customizer .set-strip button{
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 2px solid var(--line-strong);
  background: var(--panel);
  padding: 6px;
  overflow: hidden;
}
#kc-customizer .set-strip button[aria-pressed="true"]{ border-color: var(--ink); }
#kc-customizer .set-strip svg, #kc-customizer .set-strip img{ width: 100%; height: 100%; object-fit: contain; }


#kc-customizer .side{
  background: var(--panel);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
#kc-customizer .side-title{
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
#kc-customizer .side-title h2{
  font-family: var(--ui);
  font-size: 20px;
  font-weight: 650;
  margin: 0 0 2px;
}
#kc-customizer .side-title .side-price{
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
#kc-customizer .side-scroll{
  flex: 1;
  overflow: auto;
  padding-bottom: 8px;
}
#kc-customizer .accordion-item{ border-bottom: 1px solid var(--line); }
#kc-customizer .accordion-head{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 0;
  text-align: left;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 500;
}
#kc-customizer .accordion-head .chev{
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex: none;
}
#kc-customizer .accordion-item.open > .accordion-head .chev{ transform: rotate(225deg); }
#kc-customizer .accordion-item.nested{ border-bottom: 1px solid var(--line); }
#kc-customizer .accordion-item.nested > .accordion-head{ padding-left: 28px; font-size: 14px; background: #fafafa; }
#kc-customizer .accordion-body{ display: none; padding: 4px 18px 18px; }
#kc-customizer .accordion-item.open > .accordion-body{ display: block; }
#kc-customizer .extra-tag{
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 6px;
  vertical-align: middle;
}
#kc-customizer .help, #kc-customizer .placeholder-note{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin: 6px 0 0;
}
#kc-customizer .placeholder-note{ color: #7a4a00; background: #fff6e8; border-radius: 6px; padding: 8px 10px; }

#kc-customizer .swatch-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  padding: 6px 0 2px;
}
#kc-customizer .swatch{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid transparent;
  padding: 0;
  background: var(--swatch, #ccc);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
  position: relative;
}
#kc-customizer .swatch[aria-pressed="true"]{ border-color: var(--ink); }
#kc-customizer .swatch.nologo{
  background:
    linear-gradient(135deg, transparent 46%, #c41e3a 46%, #c41e3a 54%, transparent 54%),
    #fff;
  box-shadow: inset 0 0 0 1px #bbb;
}
#kc-customizer .swatch-label{ display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }

#kc-customizer .swatch-group{
  grid-column: 1 / -1;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 10px 0 2px;
}
#kc-customizer .swatch.metallic{
  background-image: linear-gradient(145deg,
    color-mix(in srgb, #fff 72%, var(--swatch)) 0%,
    var(--swatch) 38%,
    color-mix(in srgb, #000 28%, var(--swatch)) 62%,
    color-mix(in srgb, #fff 40%, var(--swatch)) 78%,
    color-mix(in srgb, #000 45%, var(--swatch)) 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.45), inset 0 0 0 1px rgba(0,0,0,0.18);
}


#kc-customizer .choice-row, #kc-customizer .font-row, #kc-customizer .style-row, #kc-customizer .size-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0;
}
#kc-customizer .pill{
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
}
#kc-customizer .pill[aria-pressed="true"]{ background: var(--ink); color: #fff; border-color: var(--ink); }
#kc-customizer .pill .sub{ display: block; font-size: 10px; font-weight: 500; opacity: 0.8; margin-top: 2px; }
#kc-customizer .font-pill{ min-width: 96px; }
#kc-customizer .text-input, #kc-customizer .area-input, #kc-customizer .drop-input{
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
#kc-customizer .area-input{ min-height: 88px; resize: vertical; }
#kc-customizer .file-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  background: #fafafa;
  font-size: 13px;
}
#kc-customizer .file-btn input{ display: none; }
#kc-customizer .file-name{ color: var(--muted); font-size: 12px; margin-top: 6px; word-break: break-all; }

#kc-customizer .confirm-box{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}
#kc-customizer .confirm-box input{ margin-top: 3px; flex: none; }
#kc-customizer .confirm-error{ color: var(--danger); font-size: 12px; margin-top: 8px; display: none; }
#kc-customizer .confirm-error.show{ display: block; }

#kc-customizer .size-guide{
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
#kc-customizer .size-guide summary{
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--ui);
  font-weight: 650;
  font-size: 13px;
  background: #fafafa;
}
#kc-customizer .size-guide .sg-body{ padding: 10px 12px 12px; font-size: 12px; color: var(--muted); }
#kc-customizer .size-guide table{ width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12px; color: var(--ink); }
#kc-customizer .size-guide th, #kc-customizer .size-guide td{ border-bottom: 1px solid var(--line); padding: 5px 6px; text-align: left; }
#kc-customizer .size-guide .extra{ color: var(--muted); font-style: italic; }


#kc-customizer .side-footer{
  border-top: 1px solid var(--line);
  padding: 10px 0 0;
  background: #fff;
  flex: none;
}
#kc-customizer .price-row{ display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; padding: 0 16px; }
#kc-customizer .price-row .label{ font-size: 12px; color: var(--muted); }
#kc-customizer .price-row .total{ font-family: var(--ui); font-size: 22px; font-weight: 700; }
#kc-customizer .price-sub{ font-size: 11px; color: var(--muted); margin: 0 0 10px; line-height: 1.4; padding: 0 16px; }
#kc-customizer .atc{
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 16px 16px;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
#kc-customizer .atc:hover{ background: #000; }
#kc-customizer .atc:disabled{ background: #888; cursor: not-allowed; }


#kc-customizer .overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 20;
  display: none;
}
#kc-customizer .overlay.open{ display: block; }
#kc-customizer .kc-cart-drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  z-index: 21;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.12);
}
#kc-customizer .kc-cart-drawer.open{ transform: translateX(0); }
#kc-customizer .drawer-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--ui);
  font-weight: 700;
}
#kc-customizer .drawer-body{ flex: 1; overflow: auto; padding: 16px 18px 24px; }
#kc-customizer .cart-item{ border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
#kc-customizer .cart-item h3{ margin: 0 0 8px; font-family: var(--ui); font-size: 16px; }
#kc-customizer .props{ list-style: none; margin: 0; padding: 0; font-size: 13px; }
#kc-customizer .props li{ display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dotted var(--line); }
#kc-customizer .props .k{ color: var(--muted); }
#kc-customizer .props .v{ font-weight: 500; text-align: right; }
#kc-customizer .cart-totals{ margin-top: 8px; }
#kc-customizer .cart-totals .row{ display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
#kc-customizer .cart-totals .row.grand{ font-family: var(--ui); font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
#kc-customizer .drawer-actions{ display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
#kc-customizer .primary, #kc-customizer .secondary{
  border-radius: 6px;
  padding: 12px 14px;
  text-align: center;
  text-decoration: none;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 14px;
  border: 0;
}
#kc-customizer .primary{ background: var(--ink); color: #fff; }
#kc-customizer .secondary{ background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }

#kc-customizer .empty{ color: var(--muted); font-size: 14px; padding: 20px 0; }


@media (max-width: 860px) {
  #kc-customizer .studio{
    grid-template-columns: 1fr;
    /* v12 mobile fix: the preview gets ~52% of the visible viewport (svh/dvh so iOS URL bars and
       iframe embeds do not push it out of view); options scroll in the rest. */
    grid-template-rows: 52px minmax(260px, 52vh) minmax(0, 1fr);
    grid-template-rows: 52px minmax(260px, 52svh) minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  #kc-customizer .preview-pane{ min-height: 0; border-bottom: 1px solid var(--line); }
  #kc-customizer .side{ border-left: 0; }
  #kc-customizer .side-footer{
    position: relative;
    bottom: auto;
    z-index: 5;
  }
  #kc-customizer .set-strip{ right: 8px; bottom: 56px; }
  #kc-customizer .set-strip button{ width: 56px; height: 56px; }
  #kc-customizer .preview-tools{ left: 8px; bottom: 8px; }
  
  #kc-customizer .stage-wrap{ padding: 6px 8px 54px; container-type: size; align-items: center; justify-content: center; overflow: hidden; }
  #kc-customizer .stage{ width: min(92vw, calc(52vh - 70px)); max-width: none; }
  @supports (width: 1cqh) { #kc-customizer .stage{ width: min(100cqw, 100cqh); } }
  #kc-customizer{ --panel-w: 100%; }
}

@media (max-width: 420px) {
  #kc-customizer .catalog{ padding: 20px 14px 48px; }
  #kc-customizer .prod-thumb{ height: 168px; }
}


#kc-customizer .kc-stage{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 760px;
  margin: 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.06));
}
#kc-customizer .kc-stage .kc-layer, #kc-customizer .kc-stage canvas.kc-layer{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  display: block;
}
#kc-customizer .kc-stage .kc-mark, #kc-customizer .kc-stage .kc-upload, #kc-customizer .kc-stage .kc-name{ z-index: 2; }

#kc-customizer .side-switch{ margin-right: 8px; }
#kc-customizer .glove-side-tag{
  position: absolute;
  right: 6%;
  top: 14%;
  font: 600 12px/1.2 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 3px 9px;
  pointer-events: none;
}


@font-face {
  font-family: "Kaushan Script";
  src: url("../assets/fonts/KaushanScript-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

#kc-customizer .kc-stage .gloss-sheen{
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 38%, rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: screen;
}


#kc-customizer .accordion-head > span:first-child{ flex: 1 1 auto; min-width: 0; }
#kc-customizer .accordion-head .head-value{
  flex: 0 0 auto; min-width: 0; max-width: 46%;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ui); font-variant-caps: normal; letter-spacing: 0; font-size: 13px; font-weight: 400;
  color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#kc-customizer .accordion-head .hv-dot{ flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
#kc-customizer .accordion-item.open > .accordion-head .head-value{ display: none; }
#kc-customizer .accordion-head .hv-t{ min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#kc-customizer .zoom-switch button{ min-width: 44px; }



#kc-customizer .side-switch-wrap{ display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
#kc-customizer .preview-hint{ margin: 0; font-size: 11px; line-height: 1.35; color: var(--muted, #6a6a6a); max-width: 240px; }



#kc-customizer{ --bg: #ffffff; --panel: #ffffff; --shadow: none; }
#kc-customizer, #kc-customizer, #kc-customizer #app{
  height: auto !important;
  min-height: 0;
  max-height: none;
  overflow: visible !important;
  background: #ffffff;
}
#kc-customizer .studio{
  height: auto !important;
  max-height: none !important;
  min-height: 0;
  overflow: visible !important;
  grid-template-rows: 56px auto;
  align-items: start;
  background: #ffffff;
}
#kc-customizer .preview-pane{
  overflow: visible !important;
  min-height: 0;
  background: #ffffff !important;
  /* Keep the drawing in view while options scroll with the page, without a scroll trap. */
  position: sticky;
  top: 0;
  align-self: start;
}
#kc-customizer .stage-wrap{ overflow: visible !important; flex: none; }
#kc-customizer .stage svg, #kc-customizer .kc-stage{ filter: none !important; }
#kc-customizer .side, #kc-customizer .side-scroll{
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  flex: none;
}
@media (max-width: 860px) {
  #kc-customizer .studio{
    grid-template-columns: 1fr;
    grid-template-rows: 52px auto auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  #kc-customizer .preview-pane{ position: relative; top: auto; }
  #kc-customizer .stage{ width: min(92vw, 640px) !important; }
}



#kc-customizer .preview-pane{ min-height: min(72vw, 720px); }
#kc-customizer .stage-wrap{ min-height: min(72vw, 720px); }
#kc-customizer .stage{ min-height: min(70vw, 700px); }
#kc-customizer .kc-stage{ min-height: min(70vw, 700px); }
#kc-customizer .kc-cart-overlay{ /* same as .overlay, class hook only */ }
#kc-customizer .kc-cart-drawer{ /* same as .kc-cart-drawer, class hook only */ }

/* v28 name placement */
#kc-customizer .slider-row { display: flex; align-items: center; gap: 12px; }
#kc-customizer .range-input { flex: 1; min-width: 0; accent-color: #1a1a1a; }
#kc-customizer .slider-val { font-family: var(--ui); font-size: 13px; font-weight: 650; min-width: 3.2em; text-align: right; }
#kc-customizer .nudge-pad { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 6px 0; }
#kc-customizer .nudge-mid { display: flex; gap: 8px; }
#kc-customizer .nudge-btn { font-family: var(--ui); font-size: 13px; min-height: 40px; min-width: 72px; padding: 6px 10px; border: 1px solid #ccc; background: #fff; cursor: pointer; }
#kc-customizer .nudge-btn:hover { border-color: #111; }
#kc-customizer .kc-name.is-movable { pointer-events: auto; cursor: grab; z-index: 8; user-select: none; -webkit-user-select: none; touch-action: none; }
#kc-customizer .kc-name.is-movable::after { content: ""; position: absolute; inset: -14px; }
#kc-customizer .kc-name.is-dragging { cursor: grabbing; }
#kc-customizer .kc-name.is-selected,
#kc-customizer .kc-name.is-dragging { outline: 2px solid #1a1a1a; outline-offset: 2px; }


#kc-customizer .kc-skeleton{
  width:100%;
  min-height:min(70vh, 640px);
  background:linear-gradient(90deg,#f4f4f4 25%,#ececec 37%,#f4f4f4 63%);
  background-size:400% 100%;
  animation:kc-shimmer 1.15s ease infinite;
  border-radius:8px;
}
@keyframes kc-shimmer{ 0%{background-position:100% 0} 100%{background-position:0 0} }
#kc-customizer .kc-info-note{
  background:#f6f6f6;
  border:1px solid #e2e2e2;
  border-radius:8px;
  padding:12px 14px;
  margin:8px 0 12px;
}
#kc-customizer .kc-info-label{ font-weight:650; font-size:13px; margin:0 0 4px; }
#kc-customizer .kc-info-note p{ margin:0 0 8px; color:var(--muted,#444); font-size:13px; line-height:1.45; }
#kc-customizer .kc-jump-notes{
  background:#111;
  color:#fff;
  border:0;
  border-radius:6px;
  padding:6px 10px;
  font:650 12px/1.2 var(--ui,system-ui,sans-serif);
  cursor:pointer;
}
#kc-customizer .kc-notes-item > .accordion-head{ box-shadow: inset 3px 0 0 #111; }
#kc-customizer .kc-notes-flash{ outline:2px solid #111; outline-offset:2px; }

/* v37 name fonts (self-hosted woff2, SIL OFL 1.1) */
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/PlayfairDisplay.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Anton"; src: url("../assets/fonts/Anton.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Black Ops One"; src: url("../assets/fonts/BlackOpsOne.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Graduate"; src: url("../assets/fonts/Graduate.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Kaushan Script"; src: url("../assets/fonts/KaushanScript.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../assets/fonts/Oswald.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Stardos Stencil"; src: url("../assets/fonts/StardosStencil.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* v37 sticky preview: scale to the remaining viewport so it does not scroll away */
#kc-customizer .preview-pane{
  min-height: 0 !important;
  max-height: calc(100dvh - var(--preview-sticky-top, 248px));
  overflow-x: clip;
  overflow-y: hidden;
}
#kc-customizer .stage-wrap{
  min-height: 0 !important;
  max-height: calc(100dvh - var(--preview-sticky-top, 248px) - 8px);
  padding: 12px 12px 16px !important;
}
#kc-customizer .stage,
#kc-customizer .kc-stage{
  min-height: 0 !important;
  max-height: calc(100dvh - var(--preview-sticky-top, 248px) - 24px);
  width: min(100%, 760px);
  height: auto;
}
#kc-customizer .kc-pair{
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-height: inherit;
}
#kc-customizer .kc-hand{
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  max-height: inherit;
}
#kc-customizer .kc-hand .kc-stage{
  width: 100%;
  height: auto;
  max-height: inherit;
}
#kc-customizer .kc-hand.is-left .kc-stage{
  transform: scaleX(-1);
  transform-origin: center center;
}
#kc-customizer .kc-hand-label{
  text-align: center;
  font: 650 11px/1.2 var(--ui, system-ui, sans-serif);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #444;
  margin: 4px 0 0;
  /* keep the word upright when the drawing is flipped */
  transform: none;
}
#kc-customizer .kc-hand.is-editing{
  outline: 2px solid #111;
  outline-offset: 2px;
  border-radius: 4px;
}
#kc-customizer .hand-banner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #111;
  color: #fff;
  font: 650 13px/1.3 var(--ui, system-ui, sans-serif);
}
#kc-customizer .hand-banner button{
  font: 650 12px/1.2 var(--ui, system-ui, sans-serif);
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  padding: 6px 10px;
  min-height: 36px;
  cursor: pointer;
}
#kc-customizer .hand-banner button.is-on,
#kc-customizer .hand-banner button[aria-pressed="true"]{
  background: #fff;
  color: #111;
}
#kc-customizer .upgrade-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#kc-customizer .upgrade-row .pill.is-on{
  box-shadow: inset 0 0 0 2px #111;
}
#kc-customizer .kc-mark.is-movable,
#kc-customizer .own-mark.is-movable{
  pointer-events: auto;
  cursor: grab;
  z-index: 8;
  touch-action: none;
  user-select: none;
}

@media (max-width: 860px){
  #kc-customizer .preview-pane{
    position: sticky !important;
    top: var(--preview-sticky-top, 212px) !important;
    max-height: var(--preview-pin-h, 38vh) !important;
    min-height: 0 !important;
    z-index: 4;
  }
  #kc-customizer .studio-top{
    position: sticky;
    top: var(--studio-sticky-top, 160px);
    z-index: 5;
  }
  #kc-customizer .stage-wrap,
  #kc-customizer .stage,
  #kc-customizer .kc-stage{
    min-height: 0 !important;
    max-height: calc(var(--preview-pin-h, 38vh) - 8px) !important;
  }
  #kc-customizer .stage{ width: min(96vw, 640px) !important; }
  #kc-customizer .preview-tools{
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    margin: 4px 8px 8px;
  }
}


/* v37 pin fit: earlier overflow:visible !important was winning and collapsing the pin */
#kc-customizer .preview-pane{
  overflow-x: clip !important;
  overflow-y: hidden !important;
  display: flex;
  flex-direction: column;
}
#kc-customizer .stage-wrap{
  overflow: hidden !important;
  min-height: 0 !important;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
#kc-customizer .kc-pair{
  align-items: center;
  width: 100%;
  max-height: 100%;
}
#kc-customizer .kc-hand-stage{
  width: 100%;
  max-height: calc(100% - 18px);
}
#kc-customizer .kc-hand.is-left .glove-side-tag{
  transform: scaleX(-1);
}
#kc-customizer .kc-hand-label{
  transform: none !important;
}
@media (max-width: 860px){
  #kc-customizer .preview-pane{
    position: sticky !important;
    top: var(--preview-sticky-top, 212px) !important;
    height: var(--preview-pin-h, 38vh) !important;
    max-height: var(--preview-pin-h, 38vh) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    z-index: 4;
    background: #fff !important;
  }
  #kc-customizer .studio-top{
    position: sticky !important;
    top: var(--studio-sticky-top, 160px) !important;
    z-index: 5;
    min-width: 0;
    background: #fff;
  }
  #kc-customizer .stage-wrap{
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    padding: 4px 8px 4px !important;
  }
  #kc-customizer .stage,
  #kc-customizer #stage{
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    transform-origin: center center;
  }
  #kc-customizer .kc-pair,
  #kc-customizer .kc-hand,
  #kc-customizer .kc-hand-stage,
  #kc-customizer .kc-stage{
    min-height: 0 !important;
    max-height: 100% !important;
  }
  #kc-customizer .kc-stage{
    width: 100% !important;
    aspect-ratio: 1 / 1;
    height: auto;
  }
  #kc-customizer .preview-tools{
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 8px 6px;
    flex: 0 0 auto;
  }
}


/* Keep the sticky preview in range through the last options (Confirm / Size). */
#kc-customizer .studio{
  min-height: calc(100dvh - var(--studio-sticky-top, var(--header-h))) !important;
  padding-bottom: 45vh;
}
#kc-customizer .preview-pane{
  padding-bottom: 22px;
}
#kc-customizer .kc-hand-label{
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 2px 0 4px;
}

/* Scale the pair to the sticky pane so the gloves are not clipped at the top */
#kc-customizer .kc-pair{
  align-items: flex-start;
  max-height: 100%;
}
#kc-customizer .kc-hand-stage{
  width: 100%;
  max-height: calc(100dvh - var(--preview-sticky-top, 304px) - 72px);
}
#kc-customizer .kc-hand .kc-stage,
#kc-customizer .kc-pair .kc-stage{
  width: 100%;
  height: auto;
  max-height: calc(100dvh - var(--preview-sticky-top, 304px) - 72px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
@media (max-width: 860px){
  #kc-customizer .kc-hand-stage,
  #kc-customizer .kc-hand .kc-stage,
  #kc-customizer .kc-pair .kc-stage{
    max-height: calc(var(--preview-pin-h, 38vh) - 56px) !important;
  }
}

#kc-customizer #stage,
#kc-customizer .stage,
#kc-customizer .stage-wrap{
  min-height: 0 !important;
  height: auto !important;
}
#kc-customizer .preview-pane{
  justify-content: flex-start;
}


/* v37b item 4: standalone gloves show one glove (back + palm), larger in the sticky pane */
#kc-customizer .kc-pair.kc-pair-single{
  justify-content: center;
  width: 100%;
}
#kc-customizer .kc-pair.kc-pair-single .kc-hand{
  flex: 0 1 auto;
  width: min(100%, 860px);
}
@media (max-width: 860px){
  #kc-customizer .kc-pair.kc-pair-single .kc-hand-stage,
  #kc-customizer .kc-pair.kc-pair-single .kc-hand .kc-stage{
    max-height: calc(var(--preview-pin-h, 38vh) - 48px) !important;
  }
}

/* v37b: keep the left glove shape flipped, but never flip decals/text */
#kc-customizer .kc-hand.is-left .kc-stage .kc-mark,
#kc-customizer .kc-hand.is-left .kc-stage .kc-upload,
#kc-customizer .kc-hand.is-left .kc-stage .kc-name,
#kc-customizer .kc-hand.is-left .kc-stage .own-mark,
#kc-customizer .kc-hand.is-left .kc-stage .own-mark-placeholder,
#kc-customizer .kc-hand.is-left .kc-stage .glove-side-tag{
  transform: scaleX(-1);
  transform-origin: center center;
}

/* v37b: options header sticks below All pieces bar */
#kc-customizer .studio-top{
  min-height: var(--studio-top-h, 56px);
  background: #fff;
}
@media (min-width: 861px){
  #kc-customizer .side-title{
    position: sticky;
    top: var(--preview-sticky-top, calc(var(--header-h, 248px) + var(--studio-top-h, 56px)));
    z-index: 3;
    background: #fff;
  }
  #kc-customizer .studio-top{
    z-index: 6;
  }
}

/* v37c: keep the glove stage square. Width 100% plus a shorter max-height was
   leaving a 760x524 stage, so percentage placements (wrist patch, crest, name)
   no longer lined up with the square canvas artwork. */
#kc-customizer .kc-stage,
#kc-customizer .kc-hand .kc-stage,
#kc-customizer .kc-pair .kc-stage,
#kc-customizer .kc-pair.kc-pair-single .kc-hand .kc-stage{
  --kc-stage-max-h: calc(100dvh - var(--preview-sticky-top, 304px) - 72px);
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  width: min(100%, var(--kc-stage-max-h)) !important;
  max-width: min(100%, 760px, var(--kc-stage-max-h)) !important;
  height: auto !important;
  max-height: var(--kc-stage-max-h) !important;
  min-height: 0 !important;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 860px){
  #kc-customizer .kc-stage,
  #kc-customizer .kc-hand .kc-stage,
  #kc-customizer .kc-pair .kc-stage,
  #kc-customizer .kc-pair.kc-pair-single .kc-hand .kc-stage{
    --kc-stage-max-h: calc(var(--preview-pin-h, 38vh) - 48px);
  }
}
