@font-face {
  font-family: Embroidery;
  src: url("./fonts/embroidery-bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}
[data-site-header] { min-height: var(--header); }
.editor-placeholder { min-height: 1400px; }
#editor-root:not([hidden]) + .editor-placeholder { display: none; }
.editor-section .editor-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin: 16px 0;
  max-width: 700px;
  font-weight: 400;
}
.editor-section .editor-consent input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
}
.embroidery-editor {
  width: min(100% - 64px, 1280px);
  margin: 36px auto 80px;
  font-size: 15px;
}
.editor-heading {
  max-width: 800px;
  margin-bottom: 28px;
}
.editor-heading h1 {
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 14px 0;
}
.editor-heading p {
  max-width: 65ch;
  color: var(--muted);
}
#editor-status {
  min-height: 24px;
  color: var(--petrol);
  margin: 12px 0;
}
#editor-status[data-error="true"] {
  color: var(--danger);
}
.editor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: start;
}
.editor-visual {
  align-self: start;
  max-height: calc(100dvh - var(--header) - 32px);
  overflow: auto;
  scrollbar-width: thin;
  padding-bottom: 8px;
}
.editor-visual {
  position: sticky;
  top: calc(var(--header) + 16px);
  min-width: 0;
}
.editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.editor-tabs button,
.editor-tools button,
.editor-object-list button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 9px 12px;
  min-height: 42px;
  color: var(--ink);
  cursor: pointer;
}
.editor-tabs [aria-pressed="true"],
.editor-object-list [aria-pressed="true"] {
  color: var(--petrol);
  background: #e6f0f1;
  border-color: var(--petrol);
}
.editor-stage {
  width: 100%;
  aspect-ratio: 540/510;
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  max-height: 560px;
  touch-action: pan-y;
}
.editor-stage [data-object] {
  cursor: grab;
  touch-action: none;
}
.editor-stage [data-object]:focus {
  outline: none;
}
.editor-stage [data-object]:focus .selection-outline {
  stroke: #eabb50;
  stroke-width: 3;
}
.editor-stage [data-resize] {
  cursor: nwse-resize;
  touch-action: none;
}
.editor-view-switch {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.editor-view-switch button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 10px 16px;
  min-height: 44px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.editor-view-switch [aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.editor-view-switch button:disabled {
  opacity: 0.45;
  cursor: default;
}
.garment-viewer {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  overflow: hidden;
}
.viewer-starting {
  min-height: 460px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  padding: 24px;
}
.viewer-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
}
.viewer-live {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.06em;
}
.viewer-modes {
  display: flex;
  gap: 4px;
}
.viewer-modes button,
.viewer-toolbar button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 7px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.viewer-modes [aria-pressed="true"] {
  color: var(--petrol);
  border-color: var(--petrol);
  background: #edf5f5;
}
.viewer-canvas-wrap {
  position: relative;
  width: 100%;
  height: clamp(380px, 45vw, 540px);
}
.viewer-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
.garment-viewer[data-mode="place"] canvas {
  cursor: crosshair;
}
.viewer-canvas-wrap canvas:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: -4px;
}
.viewer-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: white;
}
.viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}
.viewer-toolbar button {
  min-width: 44px;
}
.viewer-toolbar label {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.viewer-toolbar input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--petrol);
}
.viewer-help {
  margin: 0;
  padding: 6px 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 1023px) {
  .viewer-topbar {
    align-items: flex-start;
  }
  .viewer-modes {
    width: 100%;
  }
  .viewer-modes button {
    flex: 1;
  }
  .viewer-toolbar label {
    width: 100%;
    margin: 4px 0;
  }
}
@media (max-width: 767px) {
  .viewer-canvas-wrap {
    height: 430px;
  }
  .viewer-topbar {
    gap: 6px;
  }
  .viewer-starting {
    min-height: 430px;
  }
}
.editor-caption {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin: 12px 0;
}
.editor-photo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.editor-photo img {
  width: 100px;
  height: 90px;
  object-fit: contain;
}
.editor-photo p {
  font-size: 13px;
  margin: 0;
}
.editor-photo a {
  font-size: 14px;
}
.editor-settings {
  min-width: 0;
}
.editor-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.editor-section:first-child {
  padding-top: 0;
}
.editor-section h2,
.editor-quote h2 {
  font-size: 23px;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.editor-section label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.editor-section input,
.editor-section select,
.editor-section textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 11px;
  min-height: 44px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.editor-section input[type="color"] {
  padding: 4px;
}
.editor-section input[type="file"] {
  font-size: 13px;
}
.editor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}
.editor-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.editor-tools button:hover {
  border-color: var(--petrol);
}
.editor-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.editor-compare figure {
  margin: 0;
  min-width: 0;
}
.editor-compare img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: repeating-conic-gradient(#eee 0% 25%, white 0% 50%) 50%/12px 12px;
}
.editor-compare figcaption {
  font-size: 12px;
  margin-top: 5px;
}
.editor-object-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.editor-object-list button {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
  font-size: 13px;
}
.editor-empty {
  padding: 16px;
  background: #f5f8f7;
  border-radius: 10px;
  color: #52615d;
  font-size: 14px;
}
.editor-roster {
  grid-column: 1/-1;
  padding: 28px 0;
}
.editor-roster h2 {
  font-size: 28px;
  margin: 0 0 10px;
}
.editor-roster .editor-fields {
  max-width: 720px;
}
.editor-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin: 16px 0;
}
.editor-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
}
.editor-table th {
  text-align: left;
  font-size: 13px;
  padding: 10px;
  color: var(--muted);
}
.editor-table td {
  padding: 5px;
}
.editor-table td input {
  width: 100%;
  min-width: 80px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  font: inherit;
}
.editor-table td:first-child {
  width: 42%;
}
.editor-table button {
  min-height: 40px;
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.editor-quote {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--petrol);
  border-radius: 18px;
}
.editor-quote dl {
  margin: 0;
}
.editor-quote dl > div {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 12px 0;
}
.editor-quote dd {
  text-align: right;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.editor-quote dt {
  font-weight: 400;
}
.editor-quote .quote-main {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 19px;
  font-weight: 700;
}
.editor-quote small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.editor-quote details {
  font-size: 13px;
  margin-top: 12px;
}
.editor-quote details p {
  margin-top: 8px;
}
.editor-save {
  margin-top: 18px;
}
.editor-save .button {
  width: 100%;
}
.editor-save p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}
.editor-import {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 16px 0;
}
.editor-import select {
  min-width: 0;
}
.editor-roster textarea {
  width: 100%;
  min-height: 105px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}
.editor-pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
@media (max-width: 1023px) {
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
    gap: 24px;
  }
  .embroidery-editor {
    width: calc(100% - 40px);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .editor-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
    gap: 24px;
  }
}
@media (max-width: 767px) {
  .editor-workspace {
    display: block;
  }
  .editor-settings {
    margin-top: 24px;
  }
}
@media (max-width: 767px) {
  .embroidery-editor {
    width: calc(100% - 32px);
    margin-top: 24px;
    margin-bottom: 110px;
  }
  .editor-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .editor-visual {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
  }
  .editor-settings,
  .editor-roster {
    width: 100%;
  }
  .editor-stage {
    max-height: 460px;
  }
  .editor-heading h1 {
    font-size: 30px;
  }
  .editor-photo {
    margin-top: 8px;
  }
  .editor-save {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid var(--line);
    z-index: 35;
    margin: 0;
  }
  .editor-save p {
    display: none;
  }
  .has-cookie-notice .editor-save,
  .has-mini-cart .editor-save {
    position: static;
    border: 0;
    padding: 0;
  }
  .editor-quote {
    padding: 18px;
  }
  .editor-fields {
    gap: 10px;
  }
  .editor-table-wrap {
    width: 100%;
  }
}
