.tlcc-root {
  --tlcc-accent: #ff5a00;
  --tlcc-ink: #20272b;
  --tlcc-paper: #ffffff;
  --tlcc-muted: #647078;
  --tlcc-line: #d9dde0;
  --tlcc-soft: #f3f3f3;
  --tlcc-command-height: 76px;
  color: var(--tlcc-ink);
  font-family: Arial, Helvetica, sans-serif;
  max-width: 100%;
  overflow-x: hidden;
}

/* Popup editor: dim the page behind it instead of hiding the whole page.
   Header, footer, nav, and the rest of the product summary stay in the DOM
   and visible, they're just covered by the dimmed backdrop. */
body.tlcc-fullscreen-editor {
  overflow: hidden;
}

body.tlcc-fullscreen-editor form[class~="cart"] {
  display: none !important;
}

.tlcc-fullscreen-editor .tlcc-root {
  align-items: center;
  background: rgba(32, 39, 43, 0.6);
  display: flex;
  inset: 0;
  isolation: isolate;
  justify-content: center;
  margin: 0;
  padding: 1.5rem;
  position: fixed;
  z-index: 100000;
}

.tlcc-cart-preview {
  display: inline-block;
  width: 80px;
  max-width: 100%;
}

.tlcc-cart-preview-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
}

.tlcc-cart-edit {
  margin-top: 0.35rem;
  font-size: 0.875rem;
}

.tlcc-cart-sides {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.tlcc-cart-side {
  align-items: center;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tlcc-cart-side-image {
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  display: block;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.tlcc-cart-side-label {
  color: #647078;
  font-size: 0.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.tlcc-cart-preview-image,
.tlcc-cart-side-image {
  cursor: zoom-in;
}

.tlcc-lightbox {
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1.5rem;
  position: fixed;
  z-index: 100050;
}

.tlcc-lightbox[hidden] {
  display: none;
}

.tlcc-lightbox-panel {
  background: #fff;
  border-radius: 10px;
  max-height: 90vh;
  max-width: 90vw;
  padding: 2.5rem 1.25rem 1.25rem;
  position: relative;
}

.tlcc-lightbox-image {
  display: block;
  max-height: calc(90vh - 4rem);
  max-width: calc(90vw - 2.5rem);
  object-fit: contain;
}

.tlcc-lightbox-close {
  background: transparent;
  border: 0;
  color: #20272b;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  position: absolute;
  right: 0.35rem;
  top: 0.35rem;
}

html.tlcc-lightbox-open {
  overflow: hidden;
}

.tlcc-enabled-product form[class~="cart"] > button[name="add-to-cart"] {
  display: none;
}

/* Lay the quantity stepper and the launch button out on one row. */
.tlcc-enabled-product form[class~="cart"] {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tlcc-launch-button {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
}

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

.tlcc-app {
  background: var(--tlcc-paper);
  border: 1px solid var(--tlcc-line);
  margin: 2rem auto;
  max-width: 1440px;
  min-width: 0;
}

.tlcc-fullscreen-editor .tlcc-app {
  border-radius: 14px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(860px, 100%);
  margin: 0;
  max-width: 1320px;
  overflow: hidden;
  width: 100%;
}

@media (max-width: 700px) {
  .tlcc-fullscreen-editor .tlcc-root {
    padding: 0;
  }

  .tlcc-fullscreen-editor .tlcc-app {
    border-radius: 0;
    height: 100%;
    max-width: none;
  }
}

.tlcc-header,
.tlcc-footer,
.tlcc-stage-bar,
.tlcc-history-row,
.tlcc-tool-row,
.tlcc-layer-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.tlcc-header,
.tlcc-footer {
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.tlcc-header {
  border-bottom: 1px solid var(--tlcc-line);
}

.tlcc-heading-group,
.tlcc-field {
  min-width: 0;
}

.tlcc-kicker,
.tlcc-heading,
.tlcc-panel-title,
.tlcc-status {
  margin: 0;
}

.tlcc-kicker {
  color: var(--tlcc-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tlcc-heading {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.tlcc-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(360px, 1fr) minmax(280px, 360px);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.tlcc-tools,
.tlcc-inspector,
.tlcc-stage {
  min-width: 0;
  padding: 1rem;
}

.tlcc-tools {
  border-right: 1px solid var(--tlcc-line);
  grid-column: 1;
  grid-row: 1;
  overflow-y: auto;
}

.tlcc-inspector,
.tlcc-design-panel,
.tlcc-templates-panel {
  border-left: 1px solid var(--tlcc-line);
  grid-column: 3;
  grid-row: 1;
  overflow-y: auto;
}

.tlcc-stage {
  background: var(--tlcc-soft);
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 0;
  overflow-y: auto;
}

.tlcc-design-panel,
.tlcc-templates-panel {
  background: var(--tlcc-paper);
  display: none;
  padding: 1rem;
}

.tlcc-design-panel.tlcc-panel-open,
.tlcc-templates-panel.tlcc-panel-open {
  display: block;
  z-index: 2;
}

.tlcc-workspace:has(.tlcc-design-panel.tlcc-panel-open) .tlcc-inspector,
.tlcc-workspace:has(.tlcc-templates-panel.tlcc-panel-open) .tlcc-inspector {
  visibility: hidden;
}

.tlcc-panel-title {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.tlcc-tool-row {
  align-items: stretch;
  flex-direction: column;
}

.tlcc-layer-actions {
  flex-wrap: wrap;
}

.tlcc-layer-actions .tlcc-tool-button {
  flex: 0 1 auto;
  min-width: 0;
  padding: 0.5rem 0.7rem;
}

.tlcc-button,
.tlcc-upload-label,
.tlcc-input,
.tlcc-select,
.tlcc-color-input,
.tlcc-background-color,
.tlcc-zoom-input,
.tlcc-layer-select {
  border: 1px solid var(--tlcc-ink);
  border-radius: 0.4rem;
  font: inherit;
  min-height: 44px;
}

.tlcc-button,
.tlcc-upload-label,
.tlcc-layer-select {
  align-items: center;
  background: var(--tlcc-paper);
  color: var(--tlcc-ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  justify-content: center;
  padding: 0.65rem 0.8rem;
  text-align: center;
  text-decoration: none;
}

.tlcc-button:hover,
.tlcc-upload-label:hover,
.tlcc-layer-select:hover,
.tlcc-side-button-active {
  background: var(--tlcc-ink);
  color: var(--tlcc-paper);
}

.tlcc-button:focus-visible,
.tlcc-upload-label:focus-within,
.tlcc-input:focus-visible,
.tlcc-select:focus-visible,
.tlcc-color-input:focus-visible,
.tlcc-background-color:focus-visible,
.tlcc-zoom-input:focus-visible,
.tlcc-layer-select:focus-visible,
.tlcc-canvas:focus-visible {
  outline: 3px solid #2d75ff;
  outline-offset: 2px;
}

.tlcc-button-primary {
  background: var(--tlcc-accent);
  border-color: var(--tlcc-accent);
  color: var(--tlcc-paper);
  min-width: min(100%, 240px);
}

.tlcc-button-primary:hover,
.tlcc-button-primary:focus-visible {
  background: #d94d00;
  border-color: #d94d00;
}

.tlcc-button[aria-pressed="true"],
.tlcc-side-button-active,
.tlcc-layer-select[aria-pressed="true"] {
  background: var(--tlcc-ink);
  color: var(--tlcc-paper);
}

.tlcc-button:disabled,
.tlcc-input:disabled,
.tlcc-select:disabled,
.tlcc-color-input:disabled,
.tlcc-background-color:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.tlcc-button-danger {
  border-color: #9a1f1f;
  color: #9a1f1f;
}

.tlcc-upload-input,
.tlcc-background-upload-input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.tlcc-background-image-tools {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tlcc-field {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.tlcc-label,
.tlcc-size-label {
  color: var(--tlcc-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.tlcc-input,
.tlcc-select,
.tlcc-color-input {
  background: var(--tlcc-paper);
  color: var(--tlcc-ink);
  max-width: 100%;
  padding: 0.55rem;
  width: 100%;
}

.tlcc-background-color {
  background: var(--tlcc-paper);
  min-height: 44px;
  padding: 0.25rem;
  width: 100%;
}

.tlcc-zoom-input {
  accent-color: var(--tlcc-ink);
  max-width: 130px;
}

.tlcc-color-input {
  padding: 0.25rem;
}

.tlcc-template-list,
.tlcc-properties,
.tlcc-layers,
.tlcc-previews,
.tlcc-validation {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tlcc-stage-bar {
  justify-content: space-between;
}

.tlcc-size-label {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.tlcc-side-switch {
  display: flex;
}

.tlcc-canvas-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 0;
  padding: clamp(1rem, 4vw, 3rem) 0;
  overflow: auto;
  width: 100%;
  position: relative;
}

.tlcc-floating-design {
  background: #ff5a00;
  border-color: #ff5a00;
  color: #ffffff;
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  gap: 0.4rem;
}

.tlcc-panel-close {
  margin-bottom: 0.75rem;
}

.tlcc-preview-content {
  display: contents;
}

.tlcc-canvas {
  background: var(--tlcc-paper);
  box-shadow: 0 12px 34px rgb(0 0 0 / 16%);
  display: block;
  height: auto;
  max-width: 100%;
  touch-action: none;
  width: min(100%, 720px);
}

.tlcc-history-row {
  flex-wrap: wrap;
  justify-content: center;
}

.tlcc-validation {
  background: var(--tlcc-paper);
  border: 1px solid var(--tlcc-line);
  padding: 0.85rem;
}

.tlcc-validation[aria-invalid="true"],
.tlcc-validation:has(.tlcc-validation-issue) {
  border-color: #b34a00;
}

.tlcc-previews {
  background: var(--tlcc-paper);
  border: 1px solid var(--tlcc-line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 160px;
  padding: 0.85rem;
}

.tlcc-previews.tlcc-panel[aria-hidden="true"] {
  display: none;
}

.tlcc-previews.tlcc-panel-open {
  display: grid;
}

.tlcc-previews .tlcc-panel-title,
.tlcc-preview-placeholder {
  grid-column: 1 / -1;
}

.tlcc-preview-placeholder {
  align-self: center;
  color: #626262;
  margin: 1rem 0;
  text-align: center;
}

.tlcc-validation-list,
.tlcc-layer-list {
  margin: 0;
  padding-left: 1.2rem;
}

.tlcc-validation-issue {
  color: #8a4c00;
}

.tlcc-validation-ok {
  color: #246a32;
}

.tlcc-layer-item {
  margin-bottom: 0.4rem;
}

.tlcc-layer-select {
  justify-content: flex-start;
  width: 100%;
}

.tlcc-layer-select[aria-pressed="true"] {
  background: var(--tlcc-ink);
  color: var(--tlcc-paper);
}

.tlcc-preview-image {
  border: 1px solid var(--tlcc-line);
  height: auto;
  max-width: 100%;
}

.tlcc-footer {
  background: var(--tlcc-paper);
  border-top: 1px solid var(--tlcc-line);
  min-height: var(--tlcc-command-height);
  z-index: 3;
}

.tlcc-command-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.tlcc-command-scroll {
  display: contents;
}

.tlcc-app[aria-busy="true"] .tlcc-command-bar {
  cursor: progress;
}

.tlcc-confirm-dialog {
  background: var(--tlcc-paper);
  border: 1px solid var(--tlcc-line);
  border-radius: 0.75rem;
  box-shadow: 0 18px 48px rgb(0 0 0 / 28%);
  color: var(--tlcc-ink);
  max-width: min(32rem, calc(100% - 2rem));
  padding: 1.25rem;
}

.tlcc-confirm-dialog::backdrop {
  background: rgb(20 27 31 / 52%);
}

.tlcc-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.tlcc-confirm-actions [hidden] {
  display: none;
}

.tlcc-adjust-dialog {
  background: var(--tlcc-paper);
  border: 1px solid var(--tlcc-line);
  border-radius: 0.75rem;
  box-shadow: 0 18px 48px rgb(0 0 0 / 28%);
  box-sizing: border-box;
  color: var(--tlcc-ink);
  max-height: min(92vh, 40rem);
  max-width: min(30rem, calc(100% - 2rem));
  overflow-y: auto;
  padding: 1.25rem;
}

.tlcc-adjust-dialog::backdrop {
  background: rgb(20 27 31 / 52%);
}

.tlcc-adjust-hint {
  color: var(--tlcc-muted);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.tlcc-adjust-stage {
  background: repeating-conic-gradient(#e5e5e5 0% 25%, #fff 0% 50%) 50% / 16px 16px;
  border: 1px solid var(--tlcc-line);
  margin: 0 auto 0.75rem;
  max-width: 100%;
  position: relative;
  touch-action: none;
}

.tlcc-adjust-canvas {
  display: block;
  height: 100%;
  width: 100%;
}

.tlcc-adjust-crop-box {
  border: 2px dashed var(--tlcc-accent);
  box-shadow: 0 0 0 9999px rgb(32 39 43 / 45%);
  cursor: move;
  position: absolute;
  touch-action: none;
}

/* Visually a small dot, but the actual element (and therefore the tap
   target) is closer to the ~44px minimum recommended for touch. */
.tlcc-adjust-handle {
  background: radial-gradient(circle at center, var(--tlcc-accent) 0 6px, transparent 7px);
  height: 34px;
  position: absolute;
  touch-action: none;
  width: 34px;
}

.tlcc-adjust-handle::after {
  background: var(--tlcc-accent);
  border: 2px solid var(--tlcc-paper);
  border-radius: 50%;
  content: '';
  height: 12px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
}

.tlcc-adjust-handle[data-handle="nw"] {
  cursor: nwse-resize;
  left: -17px;
  top: -17px;
}

.tlcc-adjust-handle[data-handle="ne"] {
  cursor: nesw-resize;
  right: -17px;
  top: -17px;
}

.tlcc-adjust-handle[data-handle="sw"] {
  cursor: nesw-resize;
  bottom: -17px;
  left: -17px;
}

.tlcc-adjust-handle[data-handle="se"] {
  bottom: -17px;
  cursor: nwse-resize;
  right: -17px;
}

.tlcc-adjust-status {
  color: var(--tlcc-muted);
  font-size: 0.85rem;
  min-height: 1.1em;
}

@media (max-width: 480px) {
  .tlcc-adjust-dialog .tlcc-confirm-actions {
    flex-direction: column-reverse;
  }

  .tlcc-adjust-dialog .tlcc-confirm-actions .tlcc-button {
    width: 100%;
  }
}


.tlcc-status {
  color: var(--tlcc-muted);
  font-size: 0.85rem;
  min-height: 1.2em;
}

.tlcc-error {
  color: #9a1f1f;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  max-width: 34rem;
}

@media (max-width: 899px) {
  .tlcc-previews {
    grid-template-columns: 1fr;
  }

  .tlcc-workspace {
    display: block;
    overflow: hidden;
    position: relative;
  }

  .tlcc-stage {
    display: block;
    height: 100%;
    overflow-y: auto;
    padding: 0.75rem;
  }

  .tlcc-panel {
    background: var(--tlcc-paper);
    border: 0;
    border-radius: 1rem 1rem 0 0;
    bottom: 0;
    box-shadow: 0 -12px 36px rgb(0 0 0 / 20%);
    display: block;
    left: 0;
    max-height: 100%;
    overflow-y: auto;
    padding: 1rem;
    position: absolute;
    right: 0;
    transform: translateY(calc(100% + env(safe-area-inset-bottom)));
    transition: transform 180ms ease-out;
    visibility: hidden;
    z-index: 6;
  }

  .tlcc-panel.tlcc-panel-open {
    transform: translateY(0);
    visibility: visible;
  }

  .tlcc-workspace:has(.tlcc-panel-open)::before {
    background: rgb(20 27 31 / 45%);
    content: "";
    inset: 0;
    position: absolute;
    z-index: 5;
  }

  .tlcc-canvas-shell {
    min-height: min(56dvh, 560px);
    padding: 1rem 0;
  }

  .tlcc-footer {
    box-shadow: 0 -5px 18px rgb(0 0 0 / 14%);
    display: grid;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    position: relative;
    z-index: 7;
  }

  .tlcc-command-bar {
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .tlcc-command-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    mask-image: linear-gradient(to right, black calc(100% - 28px), transparent);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent);
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: thin;
  }

  .tlcc-command-scroll .tlcc-button {
    flex: 0 0 auto;
    min-width: 44px;
  }

  .tlcc-command-bar .tlcc-submit {
    width: 100%;
  }

  .tlcc-status {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .tlcc-header,
  .tlcc-stage-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .tlcc-side-switch,
  .tlcc-side-button {
    width: 100%;
  }

  .tlcc-tool-row {
    gap: 0.4rem;
  }

  .tlcc-tool-button {
    font-size: 0.74rem;
    min-height: 46px;
    padding: 0.5rem 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tlcc-root * {
    scroll-behavior: auto;
  }

  .tlcc-panel {
    transition: none;
  }
}
@font-face {
  font-family: "Chancery Script";
  src: local("Apple Chancery"), url("../fonts/chancery-script-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
}

@font-face {
  font-family: "Great Vibes";
  src: url("../fonts/great-vibes-400.ttf") format("truetype");
  font-weight: 400 700;
}

@font-face {
  font-family: "Dancing Script";
  src: url("../fonts/dancing-script-400.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Dancing Script";
  src: url("../fonts/dancing-script-700.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-400.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-700.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-400.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-700.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-700.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-400.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-700.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-400.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-700.ttf") format("truetype");
  font-weight: 700;
}
