@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Karla:wght@400;500;600;700;800;900&display=swap');

.tgms, .tgms * { box-sizing: border-box !important; }

.tgms {
  --tg-brown: #301618;
  --tg-brown2: #301618;
  --tg-soft: #fffaf7;
  --tg-line: #eaded7;
  --tg-text: #1d130f;
  --tg-muted: #6d5c54;
  width: min(1180px, calc(100vw - 32px));
  margin: 46px auto;
  font-family: "Karla", Arial, sans-serif;
  color: var(--tg-text);
}

.tgms button, .tgms input, .tgms textarea, .tgms select {
  font-family: "Karla", Arial, sans-serif !important;
}

.tgms-head {
  text-align: center;
  margin-bottom: 22px;
}

.tgms-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(36px, 4vw, 58px) !important;
  line-height: 1.02 !important;
  color: var(--tg-brown) !important;
  margin: 0 0 8px !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em;
}

.tgms-head h2 span { color: #d59a31; }

.tgms-head p {
  margin: 0 auto;
  color: var(--tg-muted);
  max-width: 720px;
  font-size: 16px;
  line-height: 1.45;
}

.tgms-tabs {
  width: min(720px, 100%);
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--tg-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(75, 11, 4, .06);
}

.tgms-tab {
  border: 0 !important;
  min-height: 58px !important;
  background: #fff !important;
  color: var(--tg-brown) !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

.tgms-tab.is-active {
  background: linear-gradient(135deg, var(--tg-brown), var(--tg-brown2)) !important;
  color: #fff !important;
}

.tgms-alert {
  display: none;
  margin-bottom: 18px;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 800;
}

.tgms-alert.is-visible { display: block; }
.tgms-alert.is-error { background: #fae9e6; border: 1px solid #efc5bd; color: #84271e; }
.tgms-alert.is-success { background: #e8f7ef; border: 1px solid #bde5cd; color: #276444; }

.tgms-panel { display: none; }
.tgms-panel.is-active { display: block; }

.tgms-layout {
  display: grid;
  grid-template-columns: minmax(320px, .42fr) minmax(0, .58fr);
  gap: 20px;
  align-items: start;
}

.tgms-left {
  display: grid;
  gap: 16px;
}

.tgms-card, .tgms-preview-card {
  background: #fff;
  border: 1px solid var(--tg-line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(75, 11, 4, .06);
  padding: 22px;
}

.tgms-card h3, .tgms-preview-card h3 {
  margin: 0 0 14px !important;
  font-size: 21px !important;
  line-height: 1.2 !important;
  color: var(--tg-text) !important;
  font-weight: 900 !important;
}

.tgms-prompt {
  width: 100% !important;
  min-height: 150px !important;
  padding: 16px !important;
  border: 1px solid #dccbc3 !important;
  border-radius: 12px !important;
  background: #fffdfb !important;
  color: var(--tg-text) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  resize: vertical !important;
  outline: none !important;
}

.tgms-prompt:focus,
.tgms input:focus,
.tgms textarea:focus {
  border-color: var(--tg-brown) !important;
  box-shadow: 0 0 0 4px rgba(75, 11, 4, .09) !important;
}

.tgms-count {
  text-align: right;
  color: var(--tg-muted);
  font-size: 12px;
  margin-top: 6px;
}

.tgms-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.tgms-chips button,
.tgms-style button {
  min-height: 40px !important;
  border: 1px solid #dfcdc5 !important;
  border-radius: 999px !important;
  background: #fffaf7 !important;
  color: var(--tg-brown) !important;
  cursor: pointer !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}

.tgms-chips button:hover,
.tgms-style button:hover,
.tgms-style button.is-active {
  border-color: var(--tg-brown) !important;
  background: #fff2ea !important;
}

.tgms-upload-box {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 108px;
  border: 1.5px dashed #d8c6bd;
  border-radius: 14px;
  background: #fffdfb;
  cursor: pointer;
  padding: 16px;
}

.tgms-upload-box input { display: none; }
.tgms-upload-box strong { color: var(--tg-brown); font-size: 15px; }
.tgms-upload-box strong span { color: var(--tg-muted); font-weight: 600; }
.tgms-upload-box em { display:block; color: var(--tg-muted); margin-top: 5px; font-style: normal; font-size: 13px; }

.tgms-reference-result,
.tgms-upload-result {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e8f7ef;
  color: #276444;
  font-weight: 800;
  font-size: 13px;
}

.tgms-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.tgms-field label,
.tgms-field > span {
  color: var(--tg-text);
  font-weight: 900;
  font-size: 14px;
}

.tgms-style {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tgms-style button {
  padding: 0 15px !important;
}

.tgms-color-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
}

.tgms-color-row input {
  min-height: 46px !important;
  border: 1px solid #dccbc3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 9px 12px !important;
  font-weight: 700 !important;
  color: var(--tg-text) !important;
}

.tgms-color-row input[type="color"] {
  padding: 3px !important;
}

.tgms-primary {
  width: 100%;
  border: 0 !important;
  border-radius: 12px !important;
  min-height: 54px !important;
  background: linear-gradient(135deg, var(--tg-brown), var(--tg-brown2)) !important;
  color: #fff !important;
  cursor: pointer !important;
  opacity: 1 !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  margin-top: 18px;
}

.tgms-primary:disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
}

.tgms-note {
  margin: 10px 0 0;
  text-align: center;
  color: var(--tg-muted);
  font-size: 13px;
}

.tgms-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.tgms-preview-head h3 { margin-bottom: 4px !important; }
.tgms-preview-head p {
  margin: 0;
  color: var(--tg-muted);
  font-size: 13px;
}

.tgms-badge {
  background: #fff2e6;
  color: var(--tg-brown);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  white-space: nowrap;
}

.tgms-selected {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--tg-line);
  border-radius: 16px;
  background: #fffaf7;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tgms-empty {
  text-align: center;
  padding: 24px;
  color: var(--tg-muted);
}

.tgms-empty strong {
  display: block;
  color: var(--tg-brown);
  margin-top: 12px;
  font-size: 18px;
}

.tgms-empty span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.tgms-product-placeholder {
  width: 140px;
  height: 110px;
  border-radius: 18px;
  background: linear-gradient(135deg,#ecd4c0,#fff8f0);
  margin: 0 auto;
  border: 1px solid #e2c8b9;
}

.tgms-selected-img {
  display: none;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}

.tgms-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.tgms-option {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #fffaf7;
  cursor: pointer;
  padding: 0;
  opacity: 1 !important;
}

.tgms-option.is-active {
  border-color: var(--tg-brown);
}

.tgms-option img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
}

.tgms-option span {
  display: block;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--tg-brown);
}

.tgms-review-note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff5e9;
  color: #6c3e1d;
  font-size: 13px;
  font-weight: 700;
}

.tgms-upload-layout {
  display: grid;
  grid-template-columns: minmax(320px,.55fr) minmax(0,.45fr);
  gap: 20px;
}

.tgms-upload-copy {
  color: var(--tg-muted);
  margin: -4px 0 16px;
}

.tgms-big-upload {
  min-height: 170px;
}

.tgms-field textarea,
.tgms-field input[type="text"] {
  width: 100% !important;
  border: 1px solid #dccbc3 !important;
  border-radius: 12px !important;
  padding: 14px !important;
  min-height: 46px !important;
  font-size: 15px !important;
}

.tgms-field textarea {
  min-height: 150px !important;
  resize: vertical;
}

.tgms-confirm {
  display: flex;
  gap: 10px;
  align-items: start;
  margin-top: 14px;
  font-weight: 800;
  color: var(--tg-text);
}

.tgms-upload-preview-box {
  min-height: 300px;
  display: grid;
  place-items: center;
  border: 1px dashed #dccbc3;
  border-radius: 14px;
  color: var(--tg-muted);
  background: #fffaf7;
  text-align: center;
  padding: 20px;
}

.tgms-upload-preview-box img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.tgms-loading {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.tgms-loading::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tgmsSpin .8s linear infinite;
}

@keyframes tgmsSpin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .tgms-layout,
  .tgms-upload-layout {
    grid-template-columns: 1fr;
  }

  .tgms-selected {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .tgms { width: calc(100vw - 24px); }
  .tgms-tabs, .tgms-chips, .tgms-options, .tgms-color-row {
    grid-template-columns: 1fr;
  }

  .tgms-head h2 {
    font-size: 36px !important;
  }

  .tgms-card, .tgms-preview-card {
    padding: 16px;
  }
}


/* v2.1 improvements: base product preview + font preference */
.tgms-product-placeholder.has-image {
  width: min(420px, 78%);
  height: 260px;
  border-radius: 18px;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 0;
  background-color: transparent !important;
}

.tgms-soft-label {
  color: var(--tg-muted);
  font-weight: 600;
}

.tgms select.tgms-font {
  width: 100% !important;
  min-height: 46px !important;
  border: 1px solid #dccbc3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 9px 12px !important;
  font-weight: 700 !important;
  color: var(--tg-text) !important;
}

.tgms-selected {
  background:
    radial-gradient(circle at 22% 12%, rgba(255,255,255,.88), transparent 22%),
    linear-gradient(135deg,#fffaf7,#f8ede5);
}


/* v2.2 stability: clearer testing state */
.tgms-note {
  line-height: 1.35;
}


/* v2.3: login gate, reference-aware upload preview, product placement preview */
.tgms-login-gate {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #eaded7;
  background: #fff5ea;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
}

.tgms-login-gate strong {
  color: var(--tg-brown);
  font-size: 16px;
}

.tgms-login-gate span {
  color: var(--tg-muted);
  font-size: 13px;
}

.tgms-login-gate a {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--tg-brown);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.tgms-primary.is-locked {
  background: #9d7c72 !important;
}

.tgms-soft-label {
  color: var(--tg-muted);
  font-weight: 600;
}

.tgms select.tgms-font {
  width: 100% !important;
  min-height: 46px !important;
  border: 1px solid #dccbc3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 9px 12px !important;
  font-weight: 700 !important;
  color: var(--tg-text) !important;
}

.tgms-upload-preview-box {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  background: linear-gradient(135deg,#fffaf7,#f8ede5);
}

.tgms-upload-product-base {
  position: absolute;
  inset: 18px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .96;
}

.tgms-upload-safe-area {
  position: absolute;
  left: 34%;
  top: 32%;
  width: 34%;
  height: 32%;
  border: 2px dashed rgba(75,11,4,.55);
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  background: rgba(255,255,255,.46);
  color: var(--tg-brown);
  font-weight: 800;
  z-index: 3;
}

.tgms-upload-safe-area img {
  max-width: 90%;
  max-height: 78%;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}

.tgms-upload-safe-area.has-upload span {
  font-size: 11px;
  color: var(--tg-brown);
}

@media (max-width: 640px) {
  .tgms-login-gate {
    grid-template-columns: 1fr;
  }
  .tgms-login-gate a {
    grid-row: auto;
    grid-column: auto;
  }
}


/* V2.4 Upload Placement Engine */
.tgms-placement-controls {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--tg-line);
  border-radius: 14px;
  background: #fffaf7;
  display: grid;
  gap: 12px;
}

.tgms-placement-controls label {
  display: grid;
  gap: 8px;
  font-weight: 900;
  color: var(--tg-text);
}

.tgms-artwork-zoom {
  width: 100%;
  accent-color: var(--tg-brown);
}

.tgms-placement-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tgms-small-btn {
  border: 1px solid #dfcdc5 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--tg-brown) !important;
  min-height: 42px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.tgms-placement-stage {
  position: relative;
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--tg-line);
  border-radius: 18px;
  background: linear-gradient(135deg,#fffaf7,#f8ede5);
  overflow: hidden;
  display: grid;
  place-items: center;
  user-select: none;
  touch-action: none;
}

.tgms-placement-product {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

.tgms-print-area {
  position: absolute;
  z-index: 5;
  border: 2px dashed rgba(75,11,4,.72);
  background: rgba(255,255,255,.22);
  overflow: hidden;
  cursor: move;
  box-shadow: 0 0 0 9999px rgba(255,255,255,.08);
}

.tgms-print-area.is-empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
}

.tgms-print-label {
  position: absolute;
  inset: auto 8px 8px 8px;
  z-index: 7;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--tg-brown);
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.tgms-print-area:not(.is-empty) .tgms-print-label {
  opacity: .75;
}

.tgms-upload-artwork {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 120%;
  max-height: 120%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center;
  transform: translate(-50%, -50%) scale(1);
  z-index: 6;
  pointer-events: none;
}

.tgms-print-area.is-circle {
  border-radius: 50%;
}

.tgms-print-area.is-polygon {
  clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
}

.tgms-print-area.has-mask {
  border: 0;
  background: rgba(75,11,4,.08);
}

.tgms-print-area.has-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(75,11,4,.75);
  border-radius: 12px;
  pointer-events: none;
  z-index: 8;
}

.tgms-login-gate {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #eaded7;
  background: #fff5ea;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
}

.tgms-login-gate strong {
  color: var(--tg-brown);
  font-size: 16px;
}

.tgms-login-gate span {
  color: var(--tg-muted);
  font-size: 13px;
}

.tgms-login-gate a {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--tg-brown);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.tgms-primary.is-locked {
  background: #9d7c72 !important;
}

.tgms-soft-label {
  color: var(--tg-muted);
  font-weight: 600;
}

.tgms select.tgms-font {
  width: 100% !important;
  min-height: 46px !important;
  border: 1px solid #dccbc3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 9px 12px !important;
  font-weight: 700 !important;
  color: var(--tg-text) !important;
}

@media (max-width: 980px) {
  .tgms-placement-stage {
    min-height: 400px;
  }
}

@media (max-width: 640px) {
  .tgms-placement-stage {
    min-height: 330px;
  }

  .tgms-placement-buttons {
    grid-template-columns: 1fr;
  }

  .tgms-login-gate {
    grid-template-columns: 1fr;
  }

  .tgms-login-gate a {
    grid-row: auto;
    grid-column: auto;
  }
}


/* V2.4.1: compact mockup options + preview loading overlay */
.tgms-options {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin-top: 14px !important;
  overflow: visible !important;
}

.tgms-option {
  width: 122px !important;
  flex: 0 0 122px !important;
  border: 2px solid transparent !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fffaf7 !important;
  cursor: pointer !important;
  padding: 0 !important;
  opacity: 1 !important;
  display: block !important;
}

.tgms-option img {
  width: 100% !important;
  height: 104px !important;
  object-fit: cover !important;
  display: block !important;
}

.tgms-option span {
  display: block !important;
  padding: 8px 6px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: var(--tg-brown) !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}

.tgms-option.is-active {
  border-color: var(--tg-brown) !important;
  box-shadow: 0 8px 22px rgba(75,11,4,.12) !important;
}

.tgms-preview-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: rgba(255, 250, 247, .88);
  backdrop-filter: blur(5px);
  color: var(--tg-brown);
}

.tgms-preview-loading.is-active {
  display: grid;
}

.tgms-preview-loading strong {
  display: block;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 900;
}

.tgms-preview-loading span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--tg-muted);
  max-width: 300px;
}

.tgms-preview-spinner {
  width: 54px;
  height: 54px;
  border: 4px solid rgba(75,11,4,.15);
  border-top-color: var(--tg-brown);
  border-radius: 50%;
  animation: tgmsSpin .8s linear infinite;
}

@media (max-width: 640px) {
  .tgms-option {
    width: 104px !important;
    flex-basis: 104px !important;
  }
  .tgms-option img {
    height: 88px !important;
  }
}


/* V2.4.2: preserve previous generations and label each mockup */
.tgms-option small {
  display: block !important;
  padding: 0 6px 8px !important;
  margin-top: -3px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  color: var(--tg-muted) !important;
  text-align: center !important;
  line-height: 1.1 !important;
}

.tgms-options::before {
  content: "Generated mockups";
  flex-basis: 100%;
  font-size: 13px;
  font-weight: 900;
  color: var(--tg-brown);
  margin-bottom: 2px;
}

.tgms-options:empty::before {
  content: "";
}


/* V2.5.0: optional smart color preference */
.tgms-check-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-weight: 900 !important;
  color: var(--tg-text) !important;
  cursor: pointer !important;
}

.tgms-check-row input {
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--tg-brown);
}

.tgms-helper {
  margin: 4px 0 0 !important;
  color: var(--tg-muted) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.tgms-color-controls {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--tg-line);
  border-radius: 14px;
  background: #fffaf7;
}

.tgms-color-controls.is-active {
  display: grid;
  gap: 8px;
}

.tgms-mini-label {
  font-size: 12px !important;
  color: var(--tg-muted) !important;
  font-weight: 900 !important;
  margin-top: 3px;
}

.tgms-color-placement {
  width: 100% !important;
  min-height: 44px !important;
  border: 1px solid #dccbc3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 9px 12px !important;
  font-weight: 800 !important;
  color: var(--tg-text) !important;
}


/* V2.5.1: cart mockup gallery */
.woocommerce-cart .tgms-cart-gallery,
.woocommerce-checkout .tgms-cart-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  max-width: 420px;
}

.woocommerce-cart .tgms-cart-gallery-title,
.woocommerce-checkout .tgms-cart-gallery-title {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 700;
  opacity: .8;
  margin-bottom: 2px;
}

.woocommerce-cart .tgms-cart-gallery-item,
.woocommerce-checkout .tgms-cart-gallery-item {
  width: 74px;
  border: 1px solid #e2d7d0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  background: #fffaf7;
  display: block;
}

.woocommerce-cart .tgms-cart-gallery-item.is-selected,
.woocommerce-checkout .tgms-cart-gallery-item.is-selected {
  border: 2px solid #301618;
}

.woocommerce-cart .tgms-cart-gallery-item img,
.woocommerce-checkout .tgms-cart-gallery-item img {
  width: 100%;
  height: 58px;
  object-fit: cover;
  display: block;
}

.woocommerce-cart .tgms-cart-gallery-item span,
.woocommerce-checkout .tgms-cart-gallery-item span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #301618;
  text-align: center;
  padding: 4px 3px;
  line-height: 1.1;
}


/* V2.6.1: do not show all generated options inside cart drawer/customer cart */
.widget_shopping_cart_content .tgms-cart-gallery,
.rey-cartPanel .tgms-cart-gallery,
.rey-sidePanel .tgms-cart-gallery,
.rey-header-dropPanel .tgms-cart-gallery {
  display: none !important;
}


/* V2.6.2: show selected mockup image in cart/mini-cart, hide only extra generated gallery */
.tgms-selected-cart-preview {
  margin-top: 6px;
  max-width: 160px;
}

.tgms-selected-cart-preview a {
  display: inline-block;
  text-decoration: none !important;
  border: 1px solid #eaded7;
  border-radius: 10px;
  overflow: hidden;
  background: #fffaf7;
}

.tgms-selected-cart-preview img {
  width: 120px !important;
  height: 95px !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  border: 0 !important;
  max-width: none !important;
}

.tgms-selected-cart-preview span {
  display: block;
  padding: 5px 6px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  color: #301618;
  text-align: center;
}

.widget_shopping_cart_content .tgms-selected-cart-preview,
.rey-cartPanel .tgms-selected-cart-preview,
.rey-sidePanel .tgms-selected-cart-preview,
.rey-header-dropPanel .tgms-selected-cart-preview {
  display: block !important;
}

.widget_shopping_cart_content .tgms-selected-cart-preview img,
.rey-cartPanel .tgms-selected-cart-preview img,
.rey-sidePanel .tgms-selected-cart-preview img,
.rey-header-dropPanel .tgms-selected-cart-preview img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* V2.6.3: top step journey + horizontal desktop layout */
.tgms-journey {
  width: min(1120px, 100%);
  margin: 8px auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.tgms-journey-step {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--tg-text);
  font-weight: 800;
  white-space: nowrap;
}

.tgms-journey-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid var(--tg-brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--tg-brown);
  background: #fff;
}

.tgms-journey-step.is-active .tgms-journey-num {
  background: var(--tg-brown);
  color: #fff;
}

.tgms-journey-line {
  flex: 0 0 84px;
  height: 2px;
  background: rgba(75,11,4,.9);
  border-radius: 999px;
}

@media (min-width: 1200px) {
  .tgms {
    width: min(1380px, calc(100vw - 32px));
  }

  .tgms-layout {
    grid-template-columns: minmax(280px, 1fr) minmax(310px, 1fr) minmax(460px, 1.22fr);
    gap: 18px;
    align-items: start;
  }

  .tgms-left {
    display: contents;
  }

  .tgms-left > .tgms-card:nth-child(1) {
    grid-column: 1;
  }

  .tgms-left > .tgms-card:nth-child(2) {
    grid-column: 2;
  }

  .tgms-right {
    grid-column: 3;
    min-width: 0;
  }

  .tgms-left > .tgms-card,
  .tgms-right > .tgms-preview-card {
    height: 100%;
  }

  .tgms-selected {
    min-height: 450px;
  }
}

@media (max-width: 860px) {
  .tgms-journey {
    gap: 10px;
  }

  .tgms-journey-line {
    flex-basis: 42px;
  }
}

@media (max-width: 640px) {
  .tgms-journey {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 14px;
    margin-bottom: 18px;
  }

  .tgms-journey-line {
    display: none;
  }

  .tgms-journey-step {
    width: calc(50% - 10px);
  }

  .tgms-journey-step:last-child {
    width: 100%;
  }
}

/* V2.6.6: Think Gifts brand fonts - override theme Epilogue */
.tgms,
.tgms :where(p, span, label, small, div, input, textarea, select, option, button, a, em, strong, li) {
  font-family: "Karla", Arial, sans-serif !important;
}

.tgms :where(h1, h2, h3, h4, h5, h6),
.tgms-head h2,
.tgms-card h3,
.tgms-preview-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
}

/* Keep controls/buttons readable in Karla, not Cormorant */
.tgms :where(button, input, textarea, select, option),
.tgms-tab,
.tgms-primary,
.tgms-chips button,
.tgms-style button,
.tgms-badge,
.tgms-journey-step,
.tgms-upload-box strong,
.tgms-field label,
.tgms-field > span {
  font-family: "Karla", Arial, sans-serif !important;
}

.tgms-card h3,
.tgms-preview-card h3 {
  font-size: 28px !important;
  line-height: 1.05 !important;
}

.tgms-head h2 {
  font-size: clamp(38px, 4vw, 60px) !important;
  line-height: 1.02 !important;
}

.tgms :where(p, label, textarea, input, select, .tgms-helper, .tgms-note, .tgms-preview-head p) {
  font-weight: 400 !important;
}

.tgms :where(button, .tgms-tab, .tgms-primary, .tgms-chips button, .tgms-style button, .tgms-badge) {
  font-weight: 800 !important;
}

/* Option: add .tgms-font-karla-headings on the section to force all headings Karla later if needed. */
.tgms.tgms-font-karla-headings :where(h1, h2, h3, h4, h5, h6),
.tgms.tgms-font-karla-headings .tgms-head h2,
.tgms.tgms-font-karla-headings .tgms-card h3,
.tgms.tgms-font-karla-headings .tgms-preview-card h3 {
  font-family: "Karla", Arial, sans-serif !important;
  font-weight: 800 !important;
}


/* V2.7.0: production file cart note */
.woocommerce-cart .variation-ProductionFile,
.widget_shopping_cart_content .variation-ProductionFile {
  color: #301618;
  font-weight: 700;
}


/* V2.8.1: Recraft SVG preview should render as a normal preview image */
.tgms-option img[src$=".svg"],
.tgms-preview img[src$=".svg"] {
  image-rendering: auto;
}


/* V2.8.6 Prompt Coach */
.tgms-prompt-coach {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid rgba(75,11,4,.12);
}
.tgms-coach-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.tgms-coach-head strong {
  color: #301618;
  font-weight: 800;
}
.tgms-coach-head span {
  color: rgba(75,36,18,.72);
  font-size: 13px;
}
.tgms-coach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tgms-coach-grid button,
.tgms-make-prompt-better {
  border: 1px solid rgba(75,11,4,.14);
  background: #fff;
  color: #301618;
  border-radius: 14px;
  padding: 11px 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.tgms-coach-grid button span {
  display: inline-flex;
  width: 21px;
  height: 21px;
  border-radius: 99px;
  align-items: center;
  justify-content: center;
  background: #301618;
  color: #fff;
  font-size: 11px;
  margin-right: 6px;
}
.tgms-make-prompt-better {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  background: #301618;
  color: #fff;
}
.tgms-prompt-example {
  margin: 12px 0 0;
  color: rgba(75,36,18,.72);
  font-size: 13px;
  line-height: 1.45;
}

/* V2.8.6 Quick Edit */
.tgms-quick-edit {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid rgba(75,11,4,.12);
}
.tgms-quick-edit-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.tgms-quick-edit-head strong {
  color: #301618;
  font-weight: 900;
}
.tgms-quick-edit-head span {
  color: rgba(75,36,18,.72);
  font-size: 13px;
}
.tgms-edit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tgms-edit-chips button {
  border: 1px solid rgba(75,11,4,.18);
  background: #fff;
  color: #301618;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}
.tgms-edit-row {
  display: flex;
  gap: 8px;
}
.tgms-edit-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(75,11,4,.18);
  border-radius: 12px;
  padding: 12px 13px;
}
.tgms-edit-row button {
  border: 0;
  border-radius: 12px;
  background: #301618;
  color: #fff;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
}
.tgms-quick-edit p {
  margin: 10px 0 0;
  color: rgba(75,36,18,.7);
  font-size: 12px;
}
@media (max-width: 767px) {
  .tgms-coach-grid {
    grid-template-columns: 1fr;
  }
  .tgms-edit-row {
    flex-direction: column;
  }
  .tgms-quick-edit-head,
  .tgms-coach-head {
    flex-direction: column;
  }
}


/* V2.8.8 Improved Prompt Helper */
.tgms-prompt-starters {
  margin-top: 18px;
}
.tgms-starters-title {
  font-size: 13px;
  font-weight: 900;
  color: rgba(75,36,18,.78);
  margin: 0 0 10px;
}
.tgms-prompt-starters .tgms-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tgms-prompt-starters .tgms-chips button {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border-radius: 999px;
  border: 1px solid rgba(75,11,4,.16);
  background: #fffaf7;
  color: #301618;
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
}

.tgms-prompt-coach {
  margin-top: 18px !important;
  padding: 18px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #fff8ee 0%, #fff4e8 100%) !important;
  border: 1px solid rgba(75,11,4,.14) !important;
  box-shadow: 0 14px 35px rgba(75,11,4,.05) !important;
}
.tgms-coach-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}
.tgms-coach-head div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tgms-coach-head strong {
  color: #301618 !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  line-height: 1.1 !important;
}
.tgms-coach-head span {
  color: rgba(75,36,18,.68) !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}
.tgms-make-prompt-better {
  width: auto !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #301618 !important;
  color: #fff !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.tgms-coach-grid {
  display: none !important;
}
.tgms-coach-steps {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
.tgms-coach-steps button {
  display: grid !important;
  grid-template-columns: 32px 1fr !important;
  grid-template-rows: auto auto !important;
  column-gap: 10px !important;
  row-gap: 2px !important;
  align-items: start !important;
  width: 100% !important;
  min-height: 84px !important;
  padding: 13px !important;
  border-radius: 17px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  background: #fff !important;
  color: #301618 !important;
  text-align: left !important;
  cursor: pointer !important;
}
.tgms-coach-steps button span {
  grid-row: 1 / 3 !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  background: #301618 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  margin: 0 !important;
}
.tgms-coach-steps button strong {
  color: #301618 !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
}
.tgms-coach-steps button em {
  color: rgba(75,36,18,.58) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-style: normal !important;
}
.tgms-prompt-example {
  margin: 14px 0 0 !important;
  padding: 13px 14px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.68) !important;
  color: rgba(75,36,18,.72) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}
.tgms-prompt-example strong {
  color: #301618 !important;
}
.tgms-prompt-example span {
  display: inline !important;
}

@media (max-width: 767px) {
  .tgms-prompt-starters .tgms-chips,
  .tgms-coach-steps {
    grid-template-columns: 1fr !important;
  }
  .tgms-coach-head {
    align-items: stretch !important;
    flex-direction: column !important;
  }
  .tgms-make-prompt-better {
    width: 100% !important;
    text-align: center !important;
  }
}


/* V2.8.9 Better style grid */
.tgms-style {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
}
.tgms-style button {
  width: 100% !important;
  min-height: 50px !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 999px !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}
.tgms-style button.is-active {
  box-shadow: inset 0 0 0 1px rgba(75,11,4,.35) !important;
}

/* V2.8.9 Stretch 1-2-3 journey across the three cards */
.tgms-journey {
  width: min(100%, 1500px) !important;
  max-width: none !important;
  margin: 0 auto 26px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 0 6px !important;
}
.tgms-journey .tgms-step {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  min-height: 46px !important;
  position: relative !important;
}
.tgms-journey .tgms-step:not(:last-child)::after {
  content: "" !important;
  position: absolute !important;
  height: 2px !important;
  background: rgba(75,11,4,.82) !important;
  left: calc(50% + 82px) !important;
  right: calc(-50% + 82px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.tgms-journey .tgms-step span {
  flex: 0 0 auto !important;
}
.tgms-journey .tgms-step strong {
  white-space: nowrap !important;
  font-weight: 900 !important;
}
.tgms-tabs {
  margin-top: 0 !important;
}

@media (max-width: 1024px) {
  .tgms-journey {
    gap: 10px !important;
  }
  .tgms-journey .tgms-step:not(:last-child)::after {
    left: calc(50% + 70px) !important;
    right: calc(-50% + 70px) !important;
  }
}
@media (max-width: 767px) {
  .tgms-style {
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
  }
  .tgms-style button {
    min-height: 44px !important;
    font-size: 13px !important;
    padding: 10px 8px !important;
  }
  .tgms-journey {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  .tgms-journey .tgms-step {
    justify-content: flex-start !important;
    padding-left: 8px !important;
  }
  .tgms-journey .tgms-step:not(:last-child)::after {
    display: none !important;
  }
}


/* V2.9.1 Journey alignment fix */
.tgms .tgms-journey {
  width: min(100%, 1500px) !important;
  max-width: 1500px !important;
  margin: 0 auto 24px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 18px !important;
  row-gap: 0 !important;
  align-items: center !important;
  position: relative !important;
}
.tgms .tgms-journey::before {
  content: "" !important;
  position: absolute !important;
  left: calc(16.666% + 62px) !important;
  right: calc(16.666% + 62px) !important;
  top: 23px !important;
  height: 2px !important;
  background: rgba(75, 11, 4, .82) !important;
  z-index: 0 !important;
}
.tgms .tgms-journey .tgms-step {
  position: relative !important;
  z-index: 1 !important;
  min-height: 48px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  background: transparent !important;
}
.tgms .tgms-journey .tgms-step::after {
  display: none !important;
  content: none !important;
}
.tgms .tgms-journey .tgms-step span {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 3px solid #301618 !important;
  color: #301618 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}
.tgms .tgms-journey .tgms-step:first-child span {
  background: #301618 !important;
  color: #fff !important;
}
.tgms .tgms-journey .tgms-step strong {
  background: #fff !important;
  padding: 0 8px !important;
  color: #2c1712 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* V2.9.1 Softer prompt helper */
.tgms .tgms-prompt-starters {
  margin-top: 18px !important;
}
.tgms .tgms-starters-title {
  margin: 0 0 10px !important;
  color: rgba(75, 36, 18, .72) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
}
.tgms .tgms-prompt-starters .tgms-chips {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
.tgms .tgms-prompt-starters .tgms-chips button {
  min-height: 42px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  background: #fff !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

.tgms .tgms-prompt-coach {
  margin-top: 16px !important;
  padding: 18px !important;
  border-radius: 20px !important;
  background: #fff9f0 !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  box-shadow: none !important;
}
.tgms .tgms-coach-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}
.tgms .tgms-coach-head div {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}
.tgms .tgms-coach-head strong {
  color: #301618 !important;
  font-family: Cormorant Garamond, Georgia, serif !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}
.tgms .tgms-coach-head span {
  color: rgba(75,36,18,.64) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
}
.tgms .tgms-make-prompt-better {
  width: auto !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 16px !important;
  border: 1px solid rgba(75,11,4,.16) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.tgms .tgms-coach-steps {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
.tgms .tgms-coach-steps button {
  display: grid !important;
  grid-template-columns: 28px 1fr !important;
  grid-template-rows: auto auto !important;
  column-gap: 10px !important;
  row-gap: 2px !important;
  align-items: start !important;
  min-height: 78px !important;
  padding: 13px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  background: rgba(255,255,255,.82) !important;
  color: #301618 !important;
  text-align: left !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.tgms .tgms-coach-steps button span {
  grid-row: 1 / 3 !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: #301618 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
.tgms .tgms-coach-steps button strong {
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}
.tgms .tgms-coach-steps button em {
  color: rgba(75,36,18,.58) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.28 !important;
  font-style: normal !important;
  font-weight: 400 !important;
}
.tgms .tgms-prompt-example {
  margin: 12px 0 0 !important;
  padding: 13px 14px !important;
  border-radius: 15px !important;
  background: rgba(255,255,255,.78) !important;
  color: rgba(75,36,18,.66) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}
.tgms .tgms-prompt-example strong {
  color: #301618 !important;
  font-weight: 800 !important;
}
.tgms .tgms-prompt-example span {
  display: inline !important;
}

@media (max-width: 1024px) {
  .tgms .tgms-journey::before {
    left: calc(16.666% + 50px) !important;
    right: calc(16.666% + 50px) !important;
  }
  .tgms .tgms-journey .tgms-step strong {
    font-size: 15px !important;
  }
}
@media (max-width: 767px) {
  .tgms .tgms-journey {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .tgms .tgms-journey::before {
    display: none !important;
  }
  .tgms .tgms-journey .tgms-step {
    justify-content: flex-start !important;
  }
  .tgms .tgms-prompt-starters .tgms-chips,
  .tgms .tgms-coach-steps {
    grid-template-columns: 1fr !important;
  }
  .tgms .tgms-coach-head {
    flex-direction: column !important;
  }
  .tgms .tgms-make-prompt-better {
    width: 100% !important;
    text-align: center !important;
  }
}


/* V2.9.2 Clean journey steps - no broken connector lines */
.tgms .tgms-journey {
  width: min(100%, 1500px) !important;
  max-width: 1500px !important;
  margin: 0 auto 24px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  position: relative !important;
}
.tgms .tgms-journey::before,
.tgms .tgms-journey::after,
.tgms .tgms-journey .tgms-step::before,
.tgms .tgms-journey .tgms-step::after {
  display: none !important;
  content: none !important;
}
.tgms .tgms-journey .tgms-step {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  min-height: 48px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(75, 11, 4, .12) !important;
  border-radius: 999px !important;
  background: #fffaf7 !important;
  box-shadow: 0 10px 24px rgba(75, 11, 4, .04) !important;
}
.tgms .tgms-journey .tgms-step span {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #301618 !important;
  color: #fff !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
.tgms .tgms-journey .tgms-step strong {
  background: transparent !important;
  padding: 0 !important;
  color: #2c1712 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
@media (max-width: 1024px) {
  .tgms .tgms-journey {
    gap: 10px !important;
  }
  .tgms .tgms-journey .tgms-step strong {
    font-size: 14px !important;
  }
}
@media (max-width: 767px) {
  .tgms .tgms-journey {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  .tgms .tgms-journey .tgms-step {
    justify-content: flex-start !important;
  }
}


/* V2.9.3 Quiet helper + organized edit panel */
.tgms .tgms-prompt-coach,
.tgms .tgms-quick-edit {
  background: #fff !important;
  border: 1px solid rgba(75, 36, 18, .12) !important;
  box-shadow: 0 10px 28px rgba(75, 11, 4, .035) !important;
}

/* Prompt helper: less color, easier scan */
.tgms .tgms-prompt-coach {
  padding: 18px !important;
  border-radius: 18px !important;
}
.tgms .tgms-coach-head {
  margin-bottom: 14px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(75, 36, 18, .10) !important;
}
.tgms .tgms-coach-head strong {
  font-family: Cormorant Garamond, Georgia, serif !important;
  color: #3b0b04 !important;
  font-size: 26px !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
}
.tgms .tgms-coach-head span {
  color: rgba(75, 36, 18, .58) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}
.tgms .tgms-make-prompt-better {
  background: #fff7f1 !important;
  color: #301618 !important;
  border: 1px solid rgba(75, 11, 4, .14) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 10px 14px !important;
}
.tgms .tgms-coach-steps {
  gap: 8px !important;
}
.tgms .tgms-coach-steps button {
  min-height: 70px !important;
  padding: 12px !important;
  border-radius: 14px !important;
  background: #fffaf7 !important;
  border: 1px solid rgba(75, 36, 18, .10) !important;
  box-shadow: none !important;
}
.tgms .tgms-coach-steps button span {
  width: 25px !important;
  height: 25px !important;
  background: #fff !important;
  color: #301618 !important;
  border: 1px solid rgba(75, 11, 4, .20) !important;
  font-size: 12px !important;
}
.tgms .tgms-coach-steps button strong {
  color: #3b0b04 !important;
  font-size: 14px !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
}
.tgms .tgms-coach-steps button em {
  color: rgba(75, 36, 18, .54) !important;
  font-size: 12px !important;
  line-height: 1.28 !important;
  font-weight: 400 !important;
}
.tgms .tgms-prompt-example {
  background: #fffaf7 !important;
  border: 1px solid rgba(75, 36, 18, .08) !important;
  color: rgba(75, 36, 18, .62) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin-top: 10px !important;
  padding: 12px 13px !important;
}
.tgms .tgms-prompt-example strong {
  color: #3b0b04 !important;
}

/* Quick edit: make it a proper form, not scattered text */
.tgms .tgms-quick-edit {
  padding: 18px !important;
  border-radius: 18px !important;
  margin-top: 18px !important;
}
.tgms .tgms-quick-edit-head {
  display: block !important;
  margin-bottom: 14px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(75, 36, 18, .10) !important;
}
.tgms .tgms-quick-edit-head strong {
  display: block !important;
  color: #3b0b04 !important;
  font-family: Cormorant Garamond, Georgia, serif !important;
  font-size: 26px !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}
.tgms .tgms-quick-edit-head span {
  display: block !important;
  color: rgba(75, 36, 18, .58) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
}
.tgms .tgms-edit-chips {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 0 12px !important;
}
.tgms .tgms-edit-chips button {
  width: 100% !important;
  min-height: 38px !important;
  padding: 8px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(75, 11, 4, .14) !important;
  background: #fffaf7 !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  box-shadow: none !important;
}
.tgms .tgms-edit-row {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 10px !important;
  align-items: center !important;
}
.tgms .tgms-edit-row input {
  width: 100% !important;
  min-width: 0 !important;
  height: 46px !important;
  border: 1px solid rgba(75, 36, 18, .14) !important;
  border-radius: 14px !important;
  padding: 0 14px !important;
  color: #3b0b04 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}
.tgms .tgms-edit-row input::placeholder {
  color: rgba(75, 36, 18, .36) !important;
}
.tgms .tgms-edit-row button {
  height: 46px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #301618 !important;
  color: #fff !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
.tgms .tgms-quick-edit p {
  margin: 10px 0 0 !important;
  color: rgba(75, 36, 18, .52) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
}

@media (max-width: 1024px) {
  .tgms .tgms-edit-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 767px) {
  .tgms .tgms-edit-chips {
    grid-template-columns: 1fr 1fr !important;
  }
  .tgms .tgms-edit-row {
    grid-template-columns: 1fr !important;
  }
  .tgms .tgms-edit-row button {
    width: 100% !important;
  }
}


/* V2.9.4 Final journey cleanup - remove all connector lines */
.tgms .tgms-journey,
body .tgms .tgms-journey {
  width: min(100%, 1180px) !important;
  max-width: 1180px !important;
  margin: 0 auto 22px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  position: relative !important;
}
.tgms .tgms-journey::before,
.tgms .tgms-journey::after,
.tgms .tgms-journey *::before,
.tgms .tgms-journey *::after,
body .tgms .tgms-journey::before,
body .tgms .tgms-journey::after,
body .tgms .tgms-journey *::before,
body .tgms .tgms-journey *::after {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.tgms .tgms-journey .tgms-step,
body .tgms .tgms-journey .tgms-step {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 44px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(75, 36, 18, .12) !important;
  background: #fffaf7 !important;
  box-shadow: none !important;
  position: relative !important;
}
.tgms .tgms-journey .tgms-step span,
body .tgms .tgms-journey .tgms-step span {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #301618 !important;
  color: #fff !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.tgms .tgms-journey .tgms-step strong,
body .tgms .tgms-journey .tgms-step strong {
  display: inline-block !important;
  color: #2c1712 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

@media (max-width: 767px) {
  .tgms .tgms-journey,
  body .tgms .tgms-journey {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  .tgms .tgms-journey .tgms-step,
  body .tgms .tgms-journey .tgms-step {
    justify-content: flex-start !important;
  }
}


/* V2.9.5: journey markup removed; clean mini guide */
.tgms .tgms-journey,
.tgms .tgms-journey-line,
.tgms .tgms-journey-step {
  display: none !important;
}
.tgms .tgms-mini-guide {
  width: min(100%, 940px);
  margin: 14px auto 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tgms .tgms-mini-guide span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fffaf7;
  border: 1px solid rgba(75, 36, 18, .12);
  color: rgba(75, 36, 18, .78);
  font-family: Karla, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.tgms .tgms-mini-guide strong {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #301618;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
@media (max-width: 767px) {
  .tgms .tgms-mini-guide {
    margin: 12px auto 18px;
    justify-content: flex-start;
  }
  .tgms .tgms-mini-guide span {
    font-size: 12px;
  }
}


/* V2.9.6 Clean line stepper */
.tgms .tgms-mini-guide,
.tgms .tgms-journey,
.tgms .tgms-journey-line,
.tgms .tgms-journey-step {
  display: none !important;
}
.tgms .tgms-clean-journey {
  width: min(100%, 1180px);
  margin: 22px auto 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  align-items: center;
}
.tgms .tgms-clean-journey::before {
  content: "";
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 18px;
  height: 2px;
  background: rgba(75, 11, 4, .26);
  z-index: 0;
}
.tgms .tgms-clean-step {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
}
.tgms .tgms-clean-step span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #301618;
  color: #301618;
  font-family: Karla, Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 8px #fff;
}
.tgms .tgms-clean-step.is-active span {
  background: #301618;
  color: #fff;
}
.tgms .tgms-clean-step strong {
  background: #fff;
  padding: 0 8px;
  color: #2c1712;
  font-family: Karla, Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .tgms .tgms-clean-journey {
    margin: 16px auto 18px;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tgms .tgms-clean-journey::before {
    display: none;
  }
  .tgms .tgms-clean-step {
    justify-content: flex-start;
    border: 1px solid rgba(75,36,18,.12);
    border-radius: 999px;
    background: #fffaf7;
    padding: 6px 10px;
  }
  .tgms .tgms-clean-step span {
    box-shadow: none;
  }
  .tgms .tgms-clean-step strong {
    background: transparent;
  }
}


/* V2.9.7 Simple prompt guidance */
.tgms .tgms-prompt-coach {
  display: none !important;
}
.tgms .tgms-prompt-simple {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fffaf7;
  border: 1px solid rgba(75, 36, 18, .12);
}
.tgms .tgms-simple-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.tgms .tgms-simple-head strong {
  color: #3b0b04;
  font-family: Karla, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}
.tgms .tgms-simple-head span {
  color: rgba(75, 36, 18, .58);
  font-family: Karla, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  text-align: right;
}
.tgms .tgms-example-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.tgms .tgms-example-buttons button {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(75, 11, 4, .14);
  background: #fff;
  color: #301618;
  font-family: Karla, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}
.tgms .tgms-prompt-rule {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(75, 36, 18, .08);
  color: rgba(75, 36, 18, .72);
  font-family: Karla, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}
.tgms .tgms-prompt-rule strong {
  color: #301618;
  font-weight: 900;
}
.tgms .tgms-prompt-rule span {
  margin-left: 4px;
}
.tgms .tgms-prompt-tip {
  margin: 10px 0 0;
  color: rgba(75, 36, 18, .58);
  font-family: Karla, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 767px) {
  .tgms .tgms-simple-head {
    flex-direction: column;
  }
  .tgms .tgms-simple-head span {
    text-align: left;
  }
  .tgms .tgms-example-buttons {
    grid-template-columns: 1fr;
  }
}


/* V2.9.8 Prompt examples spacing fix */
.tgms .tgms-prompt-simple {
  margin-top: 18px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  background: #fffaf7 !important;
  border: 1px solid rgba(75, 36, 18, .12) !important;
}
.tgms .tgms-simple-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 14px !important;
}
.tgms .tgms-simple-head strong {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  color: #3b0b04 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}
.tgms .tgms-simple-head span {
  flex: 1 1 auto !important;
  color: rgba(75, 36, 18, .56) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  text-align: right !important;
}
.tgms .tgms-example-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
.tgms .tgms-example-buttons button {
  min-height: 42px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(75, 11, 4, .12) !important;
  background: #fff !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  box-shadow: none !important;
}
.tgms .tgms-prompt-rule {
  margin-top: 12px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid rgba(75, 36, 18, .08) !important;
  color: rgba(75, 36, 18, .68) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}
.tgms .tgms-prompt-rule strong {
  color: #301618 !important;
  font-weight: 900 !important;
}
.tgms .tgms-prompt-tip {
  margin: 9px 0 0 !important;
  color: rgba(75, 36, 18, .56) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}
@media (max-width: 767px) {
  .tgms .tgms-simple-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  .tgms .tgms-simple-head span {
    text-align: left !important;
  }
  .tgms .tgms-example-buttons {
    grid-template-columns: 1fr !important;
  }
}


/* V3.0.2 Preview loading progress bar */
.tgms .tgms-preview-loading {
  align-content: center !important;
  justify-items: center !important;
}
.tgms .tgms-progress-wrap {
  width: min(82%, 360px);
  margin-top: 18px;
}
.tgms .tgms-progress-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(75, 11, 4, .10);
  overflow: hidden;
  border: 1px solid rgba(75, 11, 4, .08);
}
.tgms .tgms-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #301618, #d59a31);
  transition: width .55s ease;
}
.tgms .tgms-progress-text {
  display: block;
  margin-top: 8px;
  color: rgba(75, 36, 18, .66);
  font-family: Karla, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}
@media (max-width: 767px) {
  .tgms .tgms-progress-wrap {
    width: min(88%, 320px);
  }
}


/* V3.0.4 quick edit clarity */
.tgms .tgms-quick-edit-head strong {
  white-space: nowrap;
}
.tgms .tgms-quick-edit-head span {
  max-width: 360px;
}


/* V3.0.7 Reference-style neat UI - based on V3.0.5, not V3.0.6 */
.tgms {
  --tg-card-bg: #fffdfb;
  --tg-soft-bg: #fbf6f1;
  --tg-border-soft: rgba(75, 36, 18, .16);
  --tg-shadow-soft: 0 8px 22px rgba(58, 28, 14, .10);
}

/* Main layout: neat equal cards on desktop */
@media (min-width: 1025px) {
  .tgms .tgms-layout {
    grid-template-columns: minmax(300px, .35fr) minmax(300px, .35fr) minmax(360px, .30fr) !important;
    gap: 20px !important;
    align-items: stretch !important;
  }
  .tgms .tgms-left {
    display: contents !important;
  }
  .tgms .tgms-right {
    min-width: 0 !important;
    display: flex !important;
  }
  .tgms .tgms-card,
  .tgms .tgms-preview-card {
    height: 100% !important;
    box-sizing: border-box !important;
  }
  .tgms .tgms-preview-card {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }
}

/* Softer card styling like the reference */
.tgms .tgms-card,
.tgms .tgms-preview-card,
.tgms .tgms-quick-edit {
  background: var(--tg-card-bg) !important;
  border: 1px solid var(--tg-border-soft) !important;
  border-radius: 18px !important;
  box-shadow: var(--tg-shadow-soft) !important;
  padding: 18px !important;
}

/* Small italic Karla headers, not large Cormorant */
.tgms .tgms-card h3,
.tgms .tgms-preview-card h3,
.tgms .tgms-quick-edit-head strong,
.tgms .tgms-simple-head strong {
  font-family: Karla, Arial, sans-serif !important;
  font-style: italic !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  color: #231714 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  margin: 0 0 13px !important;
}

/* Preview heading can stay slightly larger but still neat */
.tgms .tgms-preview-card .tgms-preview-head h3 {
  font-size: 16px !important;
  margin-bottom: 5px !important;
}

.tgms .tgms-preview-head p,
.tgms .tgms-simple-head span,
.tgms .tgms-upload-box em,
.tgms .tgms-helper,
.tgms .tgms-note,
.tgms .tgms-prompt-tip {
  font-family: Karla, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: rgba(75, 36, 18, .62) !important;
  font-weight: 400 !important;
}

/* Textarea and upload area: simple, flat, aligned */
.tgms .tgms-prompt {
  min-height: 168px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(75, 36, 18, .20) !important;
  background: #fffaf7 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  color: #3b2520 !important;
  padding: 16px !important;
  box-shadow: none !important;
}

.tgms .tgms-count {
  margin-top: -28px !important;
  padding-right: 12px !important;
  position: relative !important;
  z-index: 2 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 11px !important;
  color: rgba(75, 36, 18, .58) !important;
}

.tgms .tgms-upload-box {
  min-height: 118px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(75, 36, 18, .20) !important;
  background: #fffaf7 !important;
  box-shadow: none !important;
  margin-bottom: 16px !important;
}
.tgms .tgms-upload-box strong {
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  color: rgba(75, 36, 18, .68) !important;
  font-weight: 600 !important;
}

/* Prompt examples / quick ideas: compact pill buttons */
.tgms .tgms-prompt-simple {
  margin-top: 18px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.tgms .tgms-simple-head {
  display: block !important;
  margin: 0 0 10px !important;
}
.tgms .tgms-simple-head strong {
  display: block !important;
  font-style: normal !important;
  font-size: 13px !important;
  margin: 0 0 8px !important;
}
.tgms .tgms-simple-head span {
  display: none !important;
}
.tgms .tgms-example-buttons {
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
.tgms .tgms-example-buttons button,
.tgms .tgms-edit-chips button {
  min-height: 38px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(91, 12, 4, .20) !important;
  background: #fffdfb !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(58, 28, 14, .04) !important;
}
.tgms .tgms-example-buttons button:hover,
.tgms .tgms-edit-chips button:hover {
  border-color: #301618 !important;
  background: #fff8f2 !important;
}

/* Hide formula block to reduce confusion/noise */
.tgms .tgms-prompt-rule,
.tgms .tgms-prompt-tip {
  display: none !important;
}

/* Style buttons become neat reference-like tiles */
.tgms .tgms-style {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
.tgms .tgms-style button {
  min-height: 68px !important;
  padding: 10px 8px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(91, 12, 4, .16) !important;
  background: #fffdfb !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: 0 2px 8px rgba(58, 28, 14, .04) !important;
}
.tgms .tgms-style button.is-active,
.tgms .tgms-style button:hover {
  border-color: #301618 !important;
  box-shadow: 0 0 0 2px rgba(91, 12, 4, .06) !important;
  background: #fffaf7 !important;
}

/* Field labels */
.tgms .tgms-field label,
.tgms .tgms-field > span,
.tgms .tgms-mini-label {
  font-family: Karla, Arial, sans-serif !important;
  font-style: italic !important;
  font-size: 13px !important;
  color: #231714 !important;
  font-weight: 600 !important;
}

/* Inputs and selects */
.tgms input,
.tgms select,
.tgms textarea {
  font-family: Karla, Arial, sans-serif !important;
}
.tgms select,
.tgms input[type="text"] {
  min-height: 44px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(75, 36, 18, .20) !important;
  background: #fffdfb !important;
  box-shadow: none !important;
}

/* Primary buttons: one consistent maroon style */
.tgms .tgms-primary,
.tgms .tgms-edit-apply {
  min-height: 50px !important;
  border-radius: 9px !important;
  background: #301618 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  box-shadow: 0 6px 16px rgba(91, 12, 4, .18) !important;
}
.tgms .tgms-primary:hover,
.tgms .tgms-edit-apply:hover {
  background: #3b0b04 !important;
  border-color: #3b0b04 !important;
}

/* Secondary utility buttons */
.tgms .tgms-small-btn,
.tgms .tgms-fit-area,
.tgms .tgms-reset-placement {
  background: #fffdfb !important;
  color: #301618 !important;
  border: 1px solid rgba(91, 12, 4, .20) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-weight: 600 !important;
}
.tgms .tgms-small-btn:hover,
.tgms .tgms-fit-area:hover,
.tgms .tgms-reset-placement:hover {
  border-color: #301618 !important;
  background: #fff8f2 !important;
}

/* Preview area: aligned and clean */
.tgms .tgms-selected {
  border-radius: 14px !important;
  border: 1px solid rgba(75, 36, 18, .16) !important;
  background: #fffdfb !important;
  min-height: 392px !important;
}
.tgms .tgms-badge {
  background: #fff3e6 !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
.tgms .tgms-options::before {
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  color: #301618 !important;
  font-weight: 700 !important;
}
.tgms .tgms-option {
  border-radius: 10px !important;
  border: 1px solid rgba(91, 12, 4, .14) !important;
  background: #fffdfb !important;
}
.tgms .tgms-option.is-active {
  border: 2px solid #301618 !important;
  box-shadow: none !important;
}
.tgms .tgms-option span,
.tgms .tgms-option small {
  font-family: Karla, Arial, sans-serif !important;
  font-weight: 600 !important;
}

/* Quick edit should feel like same design system */
.tgms .tgms-quick-edit {
  margin-top: 16px !important;
}
.tgms .tgms-edit-row {
  gap: 10px !important;
}
.tgms .tgms-edit-input {
  min-height: 48px !important;
  border-radius: 12px !important;
}

/* Keep mobile clean */
@media (max-width: 767px) {
  .tgms .tgms-style {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .tgms .tgms-example-buttons {
    grid-template-columns: 1fr !important;
  }
  .tgms .tgms-count {
    margin-top: 6px !important;
    padding-right: 0 !important;
  }
}


/* V3.0.8 Header and preview alignment fixes */
.tgms .tgms-card h3,
.tgms .tgms-preview-card h3 {
  font-family: Karla, Arial, sans-serif !important;
  font-style: italic !important;
  font-size: 30px !important;
  line-height: 1.12 !important;
  color: #301618 !important;
  font-weight: 700 !important;
  margin: 0 0 18px !important;
}

.tgms .tgms-preview-head {
  align-items: center !important;
  margin-bottom: 18px !important;
}

.tgms .tgms-preview-head p {
  display: none !important;
}

.tgms .tgms-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 6px 16px !important;
  border-radius: 999px !important;
  background: #fff3e6 !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  margin-top: 0 !important;
}

/* Empty preview text alignment */
.tgms .tgms-empty {
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 auto !important;
  padding: 24px !important;
  text-align: center !important;
}

.tgms .tgms-empty strong {
  display: block !important;
  width: 100% !important;
  margin: 14px auto 0 !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 24px !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.tgms .tgms-empty span {
  display: block !important;
  width: 100% !important;
  max-width: 340px !important;
  margin: 8px auto 0 !important;
  color: rgba(75, 36, 18, .66) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.38 !important;
  font-weight: 400 !important;
  text-align: center !important;
}

@media (max-width: 767px) {
  .tgms .tgms-card h3,
  .tgms .tgms-preview-card h3 {
    font-size: 24px !important;
  }

  .tgms .tgms-badge {
    font-size: 18px !important;
    min-height: 34px !important;
    padding: 6px 12px !important;
  }

  .tgms .tgms-preview-head {
    align-items: flex-start !important;
  }

  .tgms .tgms-empty strong {
    font-size: 20px !important;
  }
}


/* V3.0.9 Header size adjustment */
.tgms .tgms-card h3,
.tgms .tgms-preview-card h3 {
  font-size: 22px !important;
  line-height: 1.15 !important;
}

.tgms .tgms-badge {
  font-size: 22px !important;
  line-height: 1 !important;
  min-height: 36px !important;
  padding: 6px 14px !important;
}
@media (max-width: 767px) {
  .tgms .tgms-card h3,
  .tgms .tgms-preview-card h3 {
    font-size: 20px !important;
  }

  .tgms .tgms-badge {
    font-size: 16px !important;
    min-height: 32px !important;
  }
}


/* V3.1.0 Exact preview header size fix */
.tgms .tgms-preview-card .tgms-preview-head h3,
body .tgms .tgms-preview-card .tgms-preview-head h3 {
  font-size: 22px !important;
  line-height: 1.15 !important;
  color: #301618 !important;
}

.tgms .tgms-preview-card .tgms-preview-head .tgms-badge,
body .tgms .tgms-preview-card .tgms-preview-head .tgms-badge {
  font-size: 22px !important;
  line-height: 1 !important;
  min-height: 36px !important;
  padding: 6px 14px !important;
}


/* V3.1.1 Proper card/header alignment reset */
.tgms .tgms-layout,
body .tgms .tgms-layout {
  align-items: stretch !important;
}

/* All three main cards have the same internal spacing */
.tgms .tgms-layout > .tgms-card,
.tgms .tgms-left > .tgms-card,
.tgms .tgms-right > .tgms-preview-card,
body .tgms .tgms-layout > .tgms-card,
body .tgms .tgms-left > .tgms-card,
body .tgms .tgms-right > .tgms-preview-card {
  padding: 22px !important;
  box-sizing: border-box !important;
}

/* Desktop: force the three card columns to behave the same */
@media (min-width: 1025px) {
  .tgms .tgms-layout,
  body .tgms .tgms-layout {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  .tgms .tgms-left,
  body .tgms .tgms-left {
    display: contents !important;
  }

  .tgms .tgms-right,
  body .tgms .tgms-right {
    display: flex !important;
    min-width: 0 !important;
  }

  .tgms .tgms-right > .tgms-preview-card,
  body .tgms .tgms-right > .tgms-preview-card {
    width: 100% !important;
  }
}

/* One shared header row size for all 3 cards */
.tgms .tgms-card > h3,
.tgms .tgms-preview-card .tgms-preview-head,
body .tgms .tgms-card > h3,
body .tgms .tgms-preview-card .tgms-preview-head {
  min-height: 34px !important;
  height: 34px !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* Exact heading typography: same size, same baseline, same colour */
.tgms .tgms-card > h3,
.tgms .tgms-preview-card .tgms-preview-head h3,
body .tgms .tgms-card > h3,
body .tgms .tgms-preview-card .tgms-preview-head h3 {
  font-family: Karla, Arial, sans-serif !important;
  font-style: italic !important;
  font-size: 22px !important;
  line-height: 34px !important;
  color: #301618 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  transform: none !important;
}

/* Preview header should match other card header height */
.tgms .tgms-preview-card .tgms-preview-head,
body .tgms .tgms-preview-card .tgms-preview-head {
  justify-content: space-between !important;
  gap: 14px !important;
}

.tgms .tgms-preview-card .tgms-preview-head > div,
body .tgms .tgms-preview-card .tgms-preview-head > div {
  display: flex !important;
  align-items: center !important;
  min-height: 34px !important;
  height: 34px !important;
}

.tgms .tgms-preview-card .tgms-preview-head p,
body .tgms .tgms-preview-card .tgms-preview-head p {
  display: none !important;
}

/* AI Preview badge aligned to same 34px row, not floating higher/lower */
.tgms .tgms-preview-card .tgms-preview-head .tgms-badge,
body .tgms .tgms-preview-card .tgms-preview-head .tgms-badge {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  font-family: Karla, Arial, sans-serif !important;
  font-style: normal !important;
  font-size: 16px !important;
  line-height: 1 !important;
  color: #301618 !important;
  background: #fff3e6 !important;
  font-weight: 700 !important;
  margin: 0 !important;
  transform: none !important;
  white-space: nowrap !important;
}

/* Make first content box inside each card start at the same vertical point */
.tgms .tgms-card > .tgms-prompt,
.tgms .tgms-card > .tgms-upload-box,
.tgms .tgms-preview-card > .tgms-selected,
body .tgms .tgms-card > .tgms-prompt,
body .tgms .tgms-card > .tgms-upload-box,
body .tgms .tgms-preview-card > .tgms-selected {
  margin-top: 0 !important;
}

/* Make first two starting boxes visually aligned */
.tgms .tgms-prompt,
.tgms .tgms-upload-box,
body .tgms .tgms-prompt,
body .tgms .tgms-upload-box {
  border-radius: 6px !important;
  border: 1px solid rgba(75, 36, 18, .20) !important;
  background: #fffaf7 !important;
  box-sizing: border-box !important;
}

/* Keep the count from pushing visual alignment */
.tgms .tgms-count,
body .tgms .tgms-count {
  margin-top: 6px !important;
  padding-right: 0 !important;
}

/* Preview empty text: centered as one block */
.tgms .tgms-empty,
body .tgms .tgms-empty {
  width: 100% !important;
  max-width: 360px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.tgms .tgms-empty strong,
body .tgms .tgms-empty strong {
  max-width: 360px !important;
  margin: 14px auto 0 !important;
  text-align: center !important;
  color: #301618 !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
}

.tgms .tgms-empty span,
body .tgms .tgms-empty span {
  max-width: 300px !important;
  margin: 8px auto 0 !important;
  text-align: center !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}


/* V3.1.2 First-row box alignment fix */
.tgms .tgms-card,
.tgms .tgms-preview-card,
body .tgms .tgms-card,
body .tgms .tgms-preview-card {
  overflow: hidden !important;
}

/* Same starting line inside all three top cards */
.tgms .tgms-card > .tgms-prompt,
.tgms .tgms-card > .tgms-upload-box,
.tgms .tgms-preview-card > .tgms-selected,
body .tgms .tgms-card > .tgms-prompt,
body .tgms .tgms-card > .tgms-upload-box,
body .tgms .tgms-preview-card > .tgms-selected {
  margin-top: 0 !important;
}

/* Match the first visible boxes so the top row starts evenly */
.tgms .tgms-prompt,
.tgms .tgms-upload-box,
.tgms .tgms-selected,
body .tgms .tgms-prompt,
body .tgms .tgms-upload-box,
body .tgms .tgms-selected {
  border-radius: 18px !important;
  box-sizing: border-box !important;
}

@media (min-width: 1025px) {
  /* create equal header-to-first-box spacing */
  .tgms .tgms-card > h3,
  .tgms .tgms-preview-card .tgms-preview-head,
  body .tgms .tgms-card > h3,
  body .tgms .tgms-preview-card .tgms-preview-head {
    margin-bottom: 14px !important;
  }

  /* normalize the first content block height for visual alignment */
  .tgms .tgms-prompt,
  .tgms .tgms-upload-box,
  .tgms .tgms-selected,
  body .tgms .tgms-prompt,
  body .tgms .tgms-upload-box,
  body .tgms .tgms-selected {
    min-height: 246px !important;
  }

  /* remove extra top breathing room that made box positions feel different */
  .tgms .tgms-upload-box,
  body .tgms .tgms-upload-box {
    padding-top: 18px !important;
  }

  .tgms .tgms-selected,
  body .tgms .tgms-selected {
    padding-top: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .tgms .tgms-selected img,
  body .tgms .tgms-selected img {
    margin: 0 auto !important;
    max-height: 208px !important;
    object-fit: contain !important;
  }

  .tgms .tgms-prompt,
  body .tgms .tgms-prompt {
    padding-top: 18px !important;
  }
}


/* V3.1.3 Option C AI preview badge + subtle premium spacing */
.tgms .tgms-card,
.tgms .tgms-preview-card {
  padding: 24px !important;
}

.tgms .tgms-preview-head {
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

.tgms .tgms-preview-head > div {
  min-width: 0 !important;
}

.tgms .tgms-card h3,
.tgms .tgms-preview-card h3 {
  margin-bottom: 14px !important;
}

.tgms .tgms-preview-head h3 {
  margin: 0 !important;
}

.tgms .tgms-badge-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(75, 11, 4, .14) !important;
  background: #fff !important;
  color: rgba(75, 11, 4, .82) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.tgms .tgms-badge-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #301618;
  box-shadow: 0 0 0 4px rgba(91, 12, 4, .08);
  flex: 0 0 8px;
}

.tgms .tgms-empty {
  padding: 28px !important;
}

.tgms .tgms-empty strong {
  margin-top: 14px !important;
}

.tgms .tgms-review-note {
  margin-top: 14px !important;
}

@media (max-width: 767px) {
  .tgms .tgms-card,
  .tgms .tgms-preview-card {
    padding: 20px !important;
  }

  .tgms .tgms-preview-head {
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .tgms .tgms-badge-status {
    padding: 7px 11px !important;
  }
}


/* V3.1.5 Preview empty-state subtitle one-line alignment */
.tgms .tgms-empty,
body .tgms .tgms-empty {
  max-width: 420px !important;
}

.tgms .tgms-empty strong,
body .tgms .tgms-empty strong {
  max-width: 420px !important;
}

.tgms .tgms-empty span,
body .tgms .tgms-empty span {
  display: block !important;
  max-width: 420px !important;
  width: 100% !important;
  margin: 8px auto 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
}

@media (max-width: 767px) {
  .tgms .tgms-empty span,
  body .tgms .tgms-empty span {
    white-space: normal !important;
    font-size: 12px !important;
  }
}


/* V3.1.6 Prompt examples + engraving style alignment polish */
.tgms .tgms-prompt-simple,
body .tgms .tgms-prompt-simple {
  margin-top: 22px !important;
  padding-top: 18px !important;
}

.tgms .tgms-simple-head,
body .tgms .tgms-simple-head {
  align-items: baseline !important;
  margin-bottom: 16px !important;
}

.tgms .tgms-simple-head strong,
body .tgms .tgms-simple-head strong,
.tgms .tgms-field label,
body .tgms .tgms-field label {
  font-family: Karla, Arial, sans-serif !important;
  font-style: italic !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #231714 !important;
  letter-spacing: 0 !important;
}

.tgms .tgms-field,
body .tgms .tgms-field {
  margin-top: 22px !important;
}

.tgms .tgms-field label,
body .tgms .tgms-field label {
  display: block !important;
  margin: 0 0 16px !important;
}

.tgms .tgms-style,
body .tgms .tgms-style,
.tgms .tgms-example-buttons,
body .tgms .tgms-example-buttons {
  margin-top: 0 !important;
}


/* V3.1.8 Smart section alignment without breaking textarea resize */
@media (min-width: 1025px) {
  /* Do not put 0/900 inside the textarea. It blocks the resize handle and looks messy. */
  .tgms .tgms-count,
  body .tgms .tgms-count {
    position: static !important;
    height: auto !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    line-height: 14px !important;
    text-align: right !important;
    pointer-events: none !important;
    z-index: auto !important;
  }

  /* Keep textarea resizable. Only min-height is set, no fixed height. */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt {
    min-height: 246px !important;
    resize: vertical !important;
  }

  /* Match the upload box initial height with the prompt box. */
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box {
    min-height: 246px !important;
    margin-bottom: 16px !important;
  }

  /* Balanced gap after the top box in both cards. */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple {
    margin-top: 18px !important;
    padding-top: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type {
    margin-top: 22px !important;
  }

  /* Same typography and same section rhythm. */
  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head {
    height: 24px !important;
    min-height: 24px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head strong,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head strong,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    font-family: Karla, Arial, sans-serif !important;
    font-style: italic !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 700 !important;
    color: #231714 !important;
    letter-spacing: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    display: flex !important;
    align-items: center !important;
    height: 24px !important;
    min-height: 24px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head span,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head span {
    display: none !important;
  }

  /* Button rows start cleanly after the title row. */
  .tgms .tgms-left > .tgms-card:first-child .tgms-example-buttons,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-example-buttons,
  .tgms .tgms-left > .tgms-card:nth-child(2) .tgms-style,
  body .tgms .tgms-left > .tgms-card:nth-child(2) .tgms-style {
    margin-top: 0 !important;
  }
}

@media (max-width: 1024px) {
  .tgms .tgms-count,
  body .tgms .tgms-count {
    position: static !important;
    height: auto !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
  }
}

/* V3.1.9 Final visual alignment fixes */
@media (min-width: 1025px) {
  /* Visually align Prompt examples with Choose engraving style */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple {
    margin-top: 8px !important;
    padding-top: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    min-height: 24px !important;
    height: 24px !important;
    margin: 0 0 16px !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* Keep checkbox text vertically centered with the box */
.tgms .tgms-check-row,
body .tgms .tgms-check-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 24px !important;
  line-height: 1 !important;
}

.tgms .tgms-check-row input,
body .tgms .tgms-check-row input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex: 0 0 18px !important;
}

.tgms .tgms-check-row span,
body .tgms .tgms-check-row span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  line-height: 1.1 !important;
}

/* V3.1.10 precise section alignment */
@media (min-width: 1025px) {
  /* Move Prompt examples slightly up so it lines up with Choose engraving style */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple {
    margin-top: -4px !important;
    padding-top: 0 !important;
  }

  /* Match both section headings in size, weight and baseline */
  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    display: flex !important;
    align-items: center !important;
    min-height: 28px !important;
    height: 28px !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head strong,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head strong,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head span,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head span {
    display: none !important;
  }

  /* Keep the count tucked closer to the textarea so the next section can start higher */
  .tgms .tgms-count,
  body .tgms .tgms-count {
    margin-top: -24px !important;
    margin-bottom: 2px !important;
    line-height: 1 !important;
  }
}

/* Better vertical centering for preferred color checkbox row */
.tgms .tgms-check-row,
body .tgms .tgms-check-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.tgms .tgms-check-row input,
body .tgms .tgms-check-row input {
  align-self: center !important;
}
.tgms .tgms-check-row span,
body .tgms .tgms-check-row span {
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
  margin: 0 !important;
}


/* V3.1.11 Professional section rhythm fix */
@media (min-width: 1025px) {
  /* Keep both first boxes the same height */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box {
    min-height: 246px !important;
  }

  /* Counter is back in normal flow. It no longer overlaps the section title. */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-count,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-count {
    position: static !important;
    height: 14px !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    line-height: 14px !important;
    text-align: right !important;
    pointer-events: none !important;
    z-index: auto !important;
  }

  /* Equal rhythm after the first box:
     First card = textarea + counter + 26px gap.
     Second card = upload box + 46px gap.
     This makes the two headings land on the same visual line. */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple {
    margin-top: 26px !important;
    padding-top: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box {
    margin-bottom: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type {
    margin-top: 46px !important;
  }

  /* Same heading baseline and gap before buttons */
  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    display: flex !important;
    align-items: center !important;
    height: 24px !important;
    min-height: 24px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head strong,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head strong,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    font-family: Karla, Arial, sans-serif !important;
    font-style: italic !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 700 !important;
    color: #231714 !important;
    letter-spacing: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head span,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head span {
    display: none !important;
  }
}

/* Checkbox row exact vertical alignment */
.tgms .tgms-check-row,
body .tgms .tgms-check-row {
  display: grid !important;
  grid-template-columns: 18px 1fr !important;
  column-gap: 12px !important;
  align-items: center !important;
  min-height: 24px !important;
  margin: 0 !important;
}

.tgms .tgms-check-row input,
body .tgms .tgms-check-row input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  align-self: center !important;
  justify-self: center !important;
}

.tgms .tgms-check-row span,
body .tgms .tgms-check-row span {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 24px !important;
}


/* V3.1.12 Compact top boxes + aligned section headings */
@media (min-width: 1025px) {
  /* Reduce the first two top boxes so the next section starts higher */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box {
    min-height: 220px !important;
  }

  /* Keep the counter underneath without stealing vertical space */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-count,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-count {
    margin: 8px 0 0 !important;
  }

  /* Make both lower sections start on the same visual line */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type {
    margin-top: 18px !important;
  }

  /* Remove any extra gap after upload box so alignment stays clean */
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box {
    margin-bottom: 0 !important;
  }

  /* Keep both headings on the same baseline and same weight/size */
  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    display: flex !important;
    align-items: center !important;
    height: 24px !important;
    min-height: 24px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
  }
}


/* V3.1.13 Hard alignment override for Prompt examples / Choose engraving style */
@media (min-width: 1025px) {
  /* Equalize the top control zones */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box {
    min-height: 190px !important;
    height: 190px !important;
    box-sizing: border-box !important;
  }

  /* Keep the counter tight so it does not push the section down */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-count,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-count {
    margin: 8px 0 8px !important;
    min-height: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  /* Hard-align both section headings on the same visual line */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative !important;
    top: -18px !important;
  }

  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative !important;
    top: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    margin: 0 0 18px !important;
    min-height: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.15 !important;
  }
}


/* V3.1.15 Final 2px upward shift */
@media (min-width: 1025px) {
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple {
    top: -16px !important;
  }
}


/* V3.1.16 Cleanup: textarea handle, checkbox row, upload box */
.tgms .tgms-prompt,
body .tgms .tgms-prompt {
  resize: none !important;
}

.tgms .tgms-check-row,
body .tgms .tgms-check-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
  min-height: 28px !important;
}
.tgms .tgms-check-row input,
body .tgms .tgms-check-row input {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  margin: 0 !important;
}
.tgms .tgms-check-row span,
body .tgms .tgms-check-row span {
  display: inline-block !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tgms .tgms-upload-box,
body .tgms .tgms-upload-box {
  min-height: 190px !important;
  height: 190px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 8px !important;
  padding: 18px 16px !important;
  box-sizing: border-box !important;
}
.tgms .tgms-upload-box .tgms-upload-icon,
body .tgms .tgms-upload-box .tgms-upload-icon {
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(75, 36, 18, .65) !important;
}
.tgms .tgms-upload-box .tgms-upload-icon svg,
body .tgms .tgms-upload-box .tgms-upload-icon svg {
  width: 26px !important;
  height: 26px !important;
  display: block !important;
}
.tgms .tgms-upload-box strong,
body .tgms .tgms-upload-box strong {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: rgba(75, 36, 18, .72) !important;
}
.tgms .tgms-upload-box em,
body .tgms .tgms-upload-box em {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: rgba(75, 36, 18, .62) !important;
  max-width: 420px !important;
}
.tgms .tgms-upload-box small,
body .tgms .tgms-upload-box small {
  display: block !important;
  margin: 0 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  color: rgba(75, 36, 18, .54) !important;
}


/* V3.1.17 UI polish */
.tgms .tgms-prompt,
body .tgms .tgms-prompt {
  resize: none !important;
  overflow: auto !important;
}
.tgms .tgms-prompt::-webkit-resizer,
body .tgms .tgms-prompt::-webkit-resizer {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Make smaller option boxes clean white like font select */
.tgms .tgms-style button,
body .tgms .tgms-style button,
.tgms .tgms-example-buttons button,
body .tgms .tgms-example-buttons button {
  background: #ffffff !important;
}

/* Better upload box */
.tgms .tgms-upload-box,
body .tgms .tgms-upload-box {
  min-height: 170px !important;
  height: 170px !important;
  gap: 8px !important;
  padding: 16px 18px !important;
  background: #fff !important;
}
.tgms .tgms-upload-box .tgms-upload-icon,
body .tgms .tgms-upload-box .tgms-upload-icon {
  width: 36px !important;
  height: 36px !important;
  color: rgba(75,36,18,.58) !important;
  margin-bottom: 2px !important;
}
.tgms .tgms-upload-box .tgms-upload-icon svg,
body .tgms .tgms-upload-box .tgms-upload-icon svg {
  width: 28px !important;
  height: 28px !important;
}
.tgms .tgms-upload-box strong,
body .tgms .tgms-upload-box strong {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: rgba(75,36,18,.72) !important;
  line-height: 1.2 !important;
}
.tgms .tgms-upload-box em,
body .tgms .tgms-upload-box em {
  font-size: 13px !important;
  line-height: 1.45 !important;
  max-width: 360px !important;
  color: rgba(75,36,18,.55) !important;
}
.tgms .tgms-upload-box small,
body .tgms .tgms-upload-box small {
  font-size: 11px !important;
  line-height: 1.2 !important;
  color: rgba(75,36,18,.48) !important;
  letter-spacing: .01em !important;
}

/* Preferred color alignment */
.tgms .tgms-check-row,
body .tgms .tgms-check-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
}
.tgms .tgms-check-row input,
body .tgms .tgms-check-row input {
  margin: 0 !important;
  align-self: center !important;
}
.tgms .tgms-check-row span,
body .tgms .tgms-check-row span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  line-height: 1 !important;
}


/* V3.1.18 final UI request */
.tgms .tgms-prompt,
body .tgms .tgms-prompt {
  resize: none !important;
  background-image: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.tgms .tgms-prompt::-webkit-resizer,
body .tgms .tgms-prompt::-webkit-resizer,
.tgms .tgms-prompt::-webkit-scrollbar-corner,
body .tgms .tgms-prompt::-webkit-scrollbar-corner {
  display: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Small option boxes: keep size, just white background and 13px text */
.tgms .tgms-style button,
body .tgms .tgms-style button,
.tgms .tgms-example-buttons button,
body .tgms .tgms-example-buttons button {
  background: #ffffff !important;
  font-size: 13px !important;
}

/* Cleaner upload icon */
.tgms .tgms-upload-box,
body .tgms .tgms-upload-box {
  gap: 10px !important;
}
.tgms .tgms-upload-box .tgms-upload-icon,
body .tgms .tgms-upload-box .tgms-upload-icon {
  width: 34px !important;
  height: 34px !important;
  color: rgba(75,36,18,.62) !important;
  margin-bottom: 0 !important;
}
.tgms .tgms-upload-box .tgms-upload-icon svg,
body .tgms .tgms-upload-box .tgms-upload-icon svg {
  width: 30px !important;
  height: 30px !important;
}

/* Preferred color checkbox in one line */
.tgms .tgms-check-row,
body .tgms .tgms-check-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
}
.tgms .tgms-check-row span,
body .tgms .tgms-check-row span {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  min-height: 24px !important;
}


/* V3.1.19 Inner boxes white background */
.tgms .tgms-prompt,
body .tgms .tgms-prompt,
.tgms .tgms-upload-box,
body .tgms .tgms-upload-box,
.tgms .tgms-selected,
body .tgms .tgms-selected,
.tgms .tgms-color-hex,
body .tgms .tgms-color-hex,
.tgms .tgms-color-placement,
body .tgms .tgms-color-placement,
.tgms .tgms-font,
body .tgms .tgms-font,
.tgms select,
body .tgms select,
.tgms input[type="text"],
body .tgms input[type="text"],
.tgms input[type="url"],
body .tgms input[type="url"],
.tgms input[type="email"],
body .tgms input[type="email"],
.tgms input[type="number"],
body .tgms input[type="number"] {
  background: #ffffff !important;
}

/* Keep preview surface clean white */
.tgms .tgms-selected::before,
body .tgms .tgms-selected::before {
  background: #ffffff !important;
}

/* White small option boxes; keep existing size */
.tgms .tgms-style button,
body .tgms .tgms-style button,
.tgms .tgms-example-buttons button,
body .tgms .tgms-example-buttons button,
.tgms .tgms-edit-chips button,
body .tgms .tgms-edit-chips button {
  background: #ffffff !important;
}

/* Preferred color controls: white inputs, soft outer panel */
.tgms .tgms-color-controls,
body .tgms .tgms-color-controls {
  background: #fffaf7 !important;
}

.tgms .tgms-color-row input,
body .tgms .tgms-color-row input {
  background: #ffffff !important;
}


/* V3.1.20 Preferred color checkbox alignment */
.tgms .tgms-color-pref .tgms-check-row,
body .tgms .tgms-color-pref .tgms-check-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color,
body .tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid #301618 !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  display: inline-grid !important;
  place-content: center !important;
  flex: 0 0 20px !important;
  transform: translateY(0) !important;
}

.tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked,
body .tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked {
  background: #301618 !important;
}

.tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked::after,
body .tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked::after {
  content: "✓";
  color: #ffffff !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  transform: translateY(-1px) !important;
}

.tgms .tgms-color-pref .tgms-check-row span,
body .tgms .tgms-color-pref .tgms-check-row span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  transform: translateY(1px) !important;
  white-space: nowrap !important;
}


/* V3.1.21 Full color swatch fill */
.tgms .tgms-color-row input[type="color"],
body .tgms .tgms-color-row input[type="color"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #ffffff !important;
  cursor: pointer !important;
}

.tgms .tgms-color-row input[type="color"]::-webkit-color-swatch-wrapper,
body .tgms .tgms-color-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0 !important;
  border: 0 !important;
}

.tgms .tgms-color-row input[type="color"]::-webkit-color-swatch,
body .tgms .tgms-color-row input[type="color"]::-webkit-color-swatch {
  border: 0 !important;
  border-radius: 10px !important;
}

.tgms .tgms-color-row input[type="color"]::-moz-color-swatch,
body .tgms .tgms-color-row input[type="color"]::-moz-color-swatch {
  border: 0 !important;
  border-radius: 10px !important;
}


/* V3.1.22 Quick edit section polish */
.tgms .tgms-quick-edit {
  margin-top: 18px !important;
  padding: 20px !important;
  border-radius: 22px !important;
  background: #fffdfb !important;
  border: 1px solid rgba(91, 12, 4, .12) !important;
  box-shadow: 0 10px 26px rgba(91, 12, 4, .04) !important;
}

.tgms .tgms-quick-edit-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
  margin-bottom: 16px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid rgba(91, 12, 4, .10) !important;
}

.tgms .tgms-quick-edit-head strong {
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-style: italic !important;
  font-weight: 700 !important;
}

.tgms .tgms-quick-edit-head span {
  color: rgba(75, 36, 18, .70) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.tgms .tgms-edit-chips {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}

.tgms .tgms-edit-chips button {
  width: 100% !important;
  min-height: 46px !important;
  padding: 10px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(91, 12, 4, .16) !important;
  background: #ffffff !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  box-shadow: none !important;
}

.tgms .tgms-edit-chips button:hover {
  background: #fff7f2 !important;
  border-color: rgba(91, 12, 4, .28) !important;
}

.tgms .tgms-edit-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 190px !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.tgms .tgms-edit-row .tgms-edit-input {
  min-height: 52px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(91, 12, 4, .16) !important;
  background: #ffffff !important;
  color: #35231c !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

.tgms .tgms-edit-row .tgms-edit-input::placeholder {
  color: rgba(75, 36, 18, .38) !important;
}

.tgms .tgms-edit-row .tgms-edit-apply {
  width: 100% !important;
  min-height: 52px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.tgms .tgms-quick-edit p {
  margin: 12px 0 0 !important;
  color: rgba(75, 36, 18, .64) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

@media (max-width: 1024px) {
  .tgms .tgms-edit-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .tgms .tgms-quick-edit {
    padding: 16px !important;
  }
  .tgms .tgms-edit-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .tgms .tgms-edit-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}


/* V3.1.24 Artwork rights checkbox alignment */
.tgms .tgms-confirm,
body .tgms .tgms-confirm {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  min-height: 32px !important;
  color: #231714 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.tgms .tgms-confirm input.tgms-rights,
body .tgms .tgms-confirm input.tgms-rights {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 22px !important;
  flex: 0 0 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid rgba(35, 23, 20, .48) !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  display: inline-grid !important;
  place-content: center !important;
  transform: translateY(0) !important;
}

.tgms .tgms-confirm input.tgms-rights:checked,
body .tgms .tgms-confirm input.tgms-rights:checked {
  background: #301618 !important;
  border-color: #301618 !important;
}

.tgms .tgms-confirm input.tgms-rights:checked::after,
body .tgms .tgms-confirm input.tgms-rights:checked::after {
  content: "✓";
  color: #ffffff !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  transform: translateY(-1px) !important;
}

.tgms .tgms-confirm span,
body .tgms .tgms-confirm span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}


/* V3.1.27 Create/Upload tab text size */
.tgms .tgms-tab,
body .tgms .tgms-tab,
.tgms .tgms-tabs button,
body .tgms .tgms-tabs button {
  font-size: 22px !important;
  line-height: 1.2 !important;
}


/* V3.1.28 Balanced Create/Upload tab size */
.tgms .tgms-tab,
body .tgms .tgms-tab,
.tgms .tgms-tabs button,
body .tgms .tgms-tabs button {
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

.tgms .tgms-tab svg,
body .tgms .tgms-tab svg,
.tgms .tgms-tabs button svg,
body .tgms .tgms-tabs button svg {
  width: 20px !important;
  height: 20px !important;
}


/* V3.1.30 Upload tab label typography */
.tgms .tgms-upload-layout .tgms-field > span,
body .tgms .tgms-upload-layout .tgms-field > span {
  font-family: Karla, Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  font-style: italic !important;
  color: #231714 !important;
}

.tgms .tgms-upload-layout .tgms-field > span em,
body .tgms .tgms-upload-layout .tgms-field > span em {
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  font-style: italic !important;
  color: rgba(35, 23, 20, .72) !important;
}


/* V4.0.0 Think Gifts Design Studio */
.tgds-open-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:#301618;color:#fff!important;border:1px solid #301618;border-radius:999px;padding:14px 22px;font-family:Karla,Arial,sans-serif;font-weight:800;text-decoration:none;box-shadow:0 12px 28px rgba(75,11,4,.18);transition:.2s ease}.tgds-open-button:hover{transform:translateY(-1px);background:#301618;color:#fff!important}.tgds-open-button span{color:#d59a31}
.tgds{font-family:Karla,Arial,sans-serif;color:#241512;max-width:1600px;margin:0 auto;padding:28px 18px 48px}.tgds *{box-sizing:border-box}.tgds-topbar{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:18px}.tgds-kicker{text-transform:uppercase;letter-spacing:.14em;color:#d59a31;font-weight:800;font-size:12px}.tgds-topbar h1{font-family:"Cormorant Garamond",serif;font-size:46px;line-height:1;margin:6px 0 8px;color:#301618}.tgds-topbar p{margin:0;color:#705a50;font-size:15px}.tgds-product-pill{background:#fff;border:1px solid rgba(75,11,4,.12);border-radius:18px;padding:14px 16px;min-width:240px;box-shadow:0 16px 40px rgba(75,11,4,.07)}.tgds-product-pill span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#a58a7d;font-weight:800}.tgds-product-pill strong{display:block;font-size:15px;color:#301618;margin:4px 0 7px}.tgds-product-pill a{font-size:13px;color:#8d5a20;font-weight:700}.tgds-alert{display:none;margin:0 0 16px;padding:12px 14px;border-radius:14px;background:#fff6e9;border:1px solid rgba(213,154,49,.28);color:#301618;font-weight:700}.tgds-alert.is-visible{display:block}.tgds-alert.is-error{background:#fff0ef;border-color:#ffc8c3;color:#8a1f14}.tgds-shell{display:grid;grid-template-columns:290px minmax(420px,1fr) 280px;gap:18px;align-items:start}.tgds-panel,.tgds-canvas-card{background:#fff;border:1px solid rgba(75,11,4,.10);border-radius:24px;box-shadow:0 18px 52px rgba(75,11,4,.08)}.tgds-panel{padding:16px}.tgds-section{padding:14px 0;border-bottom:1px solid rgba(75,11,4,.08)}.tgds-section:first-child{padding-top:0}.tgds-section:last-child{border-bottom:0;padding-bottom:0}.tgds-section-title{display:block;font-size:16px;font-weight:800;font-style:italic;color:#301618;margin-bottom:8px}.tgds-section p,.tgds-login-note{font-size:13px;line-height:1.45;color:#776159;margin:0 0 12px}.tgds-login-note{padding:10px;background:#fff8ef;border:1px solid rgba(213,154,49,.22);border-radius:12px}.tgds label{display:block;font-size:13px;font-weight:800;color:#301618;margin:10px 0 6px}.tgds input[type=text],.tgds textarea,.tgds select{width:100%;border:1px solid rgba(75,11,4,.16);border-radius:14px;background:#fff;padding:12px 13px;font-family:Karla,Arial,sans-serif;font-size:14px;outline:none}.tgds textarea{min-height:96px;resize:none}.tgds select{margin-top:9px}.tgds-btn{width:100%;border:0;border-radius:14px;padding:13px 14px;background:#301618;color:#fff;font-family:Karla,Arial,sans-serif;font-weight:800;font-size:14px;cursor:pointer;transition:.2s ease;margin-top:10px}.tgds-btn:hover{background:#301618;transform:translateY(-1px)}.tgds-btn:disabled{opacity:.55;cursor:not-allowed;transform:none}.tgds-btn-soft{background:#fff7ef;color:#301618;border:1px solid rgba(75,11,4,.12)}.tgds-btn-soft:hover{background:#fff0dc;color:#301618}.tgds-upload-mini{display:flex!important;align-items:center;justify-content:center;border:1px dashed rgba(75,11,4,.24);border-radius:14px;background:#fffaf6;padding:14px;margin-top:10px;cursor:pointer;text-align:center}.tgds-upload-mini input{display:none}.tgds-upload-mini span{font-weight:800;color:#301618}.tgds-canvas-card{padding:16px}.tgds-canvas-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.tgds-canvas-head strong{font-size:17px;font-weight:800;font-style:italic;color:#301618}.tgds-canvas-head span{font-size:13px;color:#80685d}.tgds-stage-wrap{background:linear-gradient(135deg,#fffaf5,#f7efe8);border:1px solid rgba(75,11,4,.08);border-radius:22px;padding:18px;display:flex;justify-content:center;align-items:center;min-height:620px;overflow:auto}.tgds-stage{position:relative;width:min(100%,680px);aspect-ratio:1/1;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 20px 60px rgba(75,11,4,.12);touch-action:none}.tgds-product-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;user-select:none;pointer-events:none}.tgds-layers{position:absolute;inset:0}.tgds-layer{position:absolute;min-width:30px;min-height:24px;border:1px solid transparent;cursor:move;display:flex;align-items:center;justify-content:center;touch-action:none}.tgds-layer.is-selected{border-color:#d59a31;box-shadow:0 0 0 2px rgba(213,154,49,.22)}.tgds-text-layer{font-weight:800;color:#301618;text-align:center;line-height:1.1;text-shadow:none;padding:4px}.tgds-img-layer img,.tgds-ai-layer img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.tgds-ai-layer{overflow:hidden;background:transparent}.tgds-ai-layer>img{position:absolute;max-width:none;object-fit:fill}.tgds-ai-zone{position:absolute;border:2px solid #d59a31;background:rgba(213,154,49,.08);box-shadow:0 0 0 9999px rgba(75,11,4,.03),0 10px 28px rgba(213,154,49,.18);border-radius:14px;cursor:move;touch-action:none}.tgds-ai-zone span{position:absolute;left:8px;top:7px;background:#301618;color:#fff;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800}.tgds-zone-handle{position:absolute;right:-7px;bottom:-7px;width:18px;height:18px;border-radius:50%;background:#d59a31;border:3px solid #fff;box-shadow:0 4px 10px rgba(0,0,0,.16);cursor:nwse-resize}.tgds-canvas-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:12px;margin-top:14px}.tgds-preview-output{margin-top:14px;background:#fffaf6;border:1px solid rgba(75,11,4,.10);border-radius:16px;padding:12px}.tgds-preview-output strong{display:block;color:#301618;font-size:14px;margin-bottom:8px}.tgds-preview-output img{width:120px;border-radius:12px;border:1px solid rgba(75,11,4,.10)}.tgds-layer-list p{font-size:13px;color:#8a746c;margin:0}.tgds-layer-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;border:1px solid rgba(75,11,4,.10);border-radius:12px;margin-bottom:8px;background:#fffaf6;cursor:pointer}.tgds-layer-row strong{font-size:13px;color:#301618}.tgds-layer-row span{font-size:11px;color:#8b756d}.tgds-layer-row.is-active{border-color:#d59a31;background:#fff3df}.tgds-instructions{min-height:90px!important}@media(max-width:1100px){.tgds-shell{grid-template-columns:1fr}.tgds-topbar{display:block}.tgds-product-pill{margin-top:14px}.tgds-stage-wrap{min-height:auto}.tgds-stage{width:100%}.tgds-canvas-actions{grid-template-columns:1fr}}@media(max-width:640px){.tgds{padding:16px 10px 34px}.tgds-topbar h1{font-size:34px}.tgds-panel,.tgds-canvas-card{border-radius:18px}.tgds-stage-wrap{padding:8px}.tgds-canvas-actions{grid-template-columns:1fr}.tgds-product-pill{min-width:0}}


/* V1.0.1 standalone editor route wrapper */
body.tgds-standalone-editor-page {
  background: #fffaf6;
}
.tgds-standalone-wrap {
  min-height: 100vh;
}


/* V1.0.2 product picker for editor page without product_id */
.tgds-picker {
  max-width: 1180px;
  margin: 50px auto;
  padding: 0 24px;
}
.tgds-picker-card {
  background: #fff;
  border: 1px solid rgba(91, 12, 4, .12);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 18px 50px rgba(75, 36, 18, .08);
}
.tgds-picker-card h1 {
  margin: 8px 0 10px;
  color: #4b2412;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
}
.tgds-picker-card p {
  color: rgba(75, 36, 18, .76);
  font-size: 17px;
  margin: 0 0 24px;
}
.tgds-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.tgds-product-choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none !important;
  background: #fffaf6;
  border: 1px solid rgba(91, 12, 4, .12);
  border-radius: 20px;
  padding: 14px;
  color: #4b2412 !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tgds-product-choice:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 12, 4, .35);
  box-shadow: 0 14px 32px rgba(75, 36, 18, .11);
}
.tgds-product-choice-img {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.tgds-product-choice-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tgds-product-choice strong {
  font-size: 15px;
  line-height: 1.25;
  color: #4b2412;
}
.tgds-product-choice small {
  color: #7a1208;
  font-weight: 800;
}
.tgds-product-choice-placeholder {
  color: rgba(75,36,18,.45);
  font-weight: 800;
}
.tgds-picker-help {
  background: #fffaf6;
  border-radius: 18px;
  padding: 20px;
}
.tgds-picker-help code {
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(91,12,4,.12);
  border-radius: 10px;
  padding: 8px 10px;
  color: #301618;
}
@media (max-width: 900px) {
  .tgds-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .tgds-picker { margin: 24px auto; padding: 0 14px; }
  .tgds-picker-card { padding: 22px; border-radius: 22px; }
  .tgds-product-grid { grid-template-columns: 1fr; }
}


/* V1.1.0 Phase 2 - Premium editor UI, toolbar, snap guides, loading, mobile polish */
.tgds {
  --tgds-maroon: #301618;
  --tgds-maroon-dark: #3f0803;
  --tgds-brown: #4b2412;
  --tgds-gold: #d59a31;
  --tgds-cream: #fffaf6;
  --tgds-line: rgba(91, 12, 4, .13);
  --tgds-shadow: 0 22px 65px rgba(75, 36, 18, .10);
  max-width: 1600px !important;
}

.tgds-topbar {
  background: linear-gradient(135deg, #fffaf6 0%, #fff 48%, #fff7ec 100%) !important;
  border: 1px solid var(--tgds-line) !important;
  border-radius: 30px !important;
  padding: 28px 30px !important;
  box-shadow: var(--tgds-shadow) !important;
  margin-bottom: 18px !important;
}

.tgds-topbar h1 {
  color: var(--tgds-brown) !important;
  letter-spacing: -.04em !important;
}

.tgds-product-pill {
  background: #fff !important;
  border: 1px solid rgba(91,12,4,.12) !important;
  box-shadow: 0 14px 36px rgba(75,36,18,.08) !important;
  border-radius: 22px !important;
}

.tgds-studio-toolbar {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--tgds-line);
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 14px 40px rgba(75,36,18,.07);
  margin-bottom: 16px;
  position: sticky;
  top: 12px;
  z-index: 10;
}

.tgds-toolbar-left,
.tgds-toolbar-right {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tgds-tool-pill {
  border: 1px solid rgba(91,12,4,.13);
  background: #fffaf6;
  color: var(--tgds-brown);
  border-radius: 999px;
  padding: 10px 15px;
  font-family: Karla, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.tgds-tool-pill:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(75,36,18,.10);
  background: #fff;
}

.tgds-tool-pill:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.tgds-toolbar-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(213,154,49,.12);
  color: var(--tgds-brown);
  font-size: 12px;
  font-weight: 800;
}

.tgds-studio-busy {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(91,12,4,.94);
  color: #fff;
  border-radius: 18px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-weight: 800;
  box-shadow: 0 18px 42px rgba(91,12,4,.20);
}

.tgds-studio-busy span:before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border: 2px solid rgba(255,255,255,.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tgdsSpin .8s linear infinite;
  vertical-align: -2px;
}

.tgds.is-busy .tgds-studio-busy {
  display: flex;
}

@keyframes tgdsSpin { to { transform: rotate(360deg); } }

.tgds-shell {
  grid-template-columns: minmax(250px, 300px) minmax(520px, 1fr) minmax(250px, 300px) !important;
  gap: 18px !important;
  align-items: start !important;
}

.tgds-panel,
.tgds-canvas-card {
  background: #fff !important;
  border: 1px solid var(--tgds-line) !important;
  border-radius: 28px !important;
  box-shadow: var(--tgds-shadow) !important;
}

.tgds-panel {
  position: sticky;
  top: 88px;
}

.tgds-section {
  border-bottom: 1px solid rgba(91,12,4,.10) !important;
  padding-bottom: 20px !important;
  margin-bottom: 20px !important;
}

.tgds-section:last-child {
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.tgds-progress-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.tgds-progress-steps span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 999px;
  background: #fffaf6;
  border: 1px solid rgba(91,12,4,.10);
  color: rgba(75,36,18,.70);
  font-size: 12px;
  font-weight: 900;
}

.tgds-progress-steps span.is-active {
  background: var(--tgds-maroon);
  color: #fff;
  border-color: var(--tgds-maroon);
}

.tgds-section-title {
  color: var(--tgds-maroon) !important;
  font-size: 15px !important;
  letter-spacing: .01em !important;
}

.tgds-tools label,
.tgds-layers-panel label {
  font-weight: 800 !important;
  color: var(--tgds-brown) !important;
}

.tgds-text-input,
.tgds-ai-prompt,
.tgds-style,
.tgds-font,
.tgds-instructions {
  border: 1px solid rgba(91,12,4,.14) !important;
  background: #fffaf6 !important;
  border-radius: 16px !important;
  color: var(--tgds-brown) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}

.tgds-text-input:focus,
.tgds-ai-prompt:focus,
.tgds-style:focus,
.tgds-font:focus,
.tgds-instructions:focus {
  outline: none !important;
  border-color: rgba(91,12,4,.42) !important;
  box-shadow: 0 0 0 4px rgba(213,154,49,.14) !important;
  background: #fff !important;
}

.tgds-btn {
  border-radius: 18px !important;
  min-height: 46px !important;
  font-weight: 900 !important;
  letter-spacing: -.01em !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.tgds-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(91,12,4,.18);
}

.tgds-btn:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.tgds-canvas-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border-bottom: 1px solid rgba(91,12,4,.10) !important;
  padding-bottom: 14px !important;
  margin-bottom: 16px !important;
}

.tgds-canvas-head strong {
  color: var(--tgds-maroon) !important;
  font-size: 18px !important;
}

.tgds-canvas-head em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: rgba(75,36,18,.58);
  background: #fffaf6;
  border: 1px solid rgba(91,12,4,.10);
  border-radius: 999px;
  padding: 8px 11px;
  white-space: nowrap;
}

.tgds-stage-wrap {
  background: #FFFFFF !important;
  background-size: auto !important;
  border-radius: 26px !important;
  border: 1px solid rgba(91,12,4,.10) !important;
  padding: 18px !important;
}

.tgds-stage {
  background: #fff !important;
  border-radius: 22px !important;
  box-shadow: inset 0 0 0 1px rgba(91,12,4,.08), 0 18px 45px rgba(75,36,18,.08) !important;
  overflow: hidden !important;
}

.tgds-center-guide {
  position: absolute;
  z-index: 35;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
  background: rgba(213,154,49,.85);
  box-shadow: 0 0 0 1px rgba(255,255,255,.7);
}

.tgds-guide-x {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-1px);
}

.tgds-guide-y {
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  transform: translateY(-1px);
}

.tgds.tgds-show-guide-x .tgds-guide-x,
.tgds.tgds-show-guide-y .tgds-guide-y {
  opacity: 1;
}

.tgds-ai-zone {
  border: 2px dashed rgba(213,154,49,.95) !important;
  background: rgba(213,154,49,.11) !important;
  box-shadow: 0 0 0 9999px rgba(75,36,18,.025), 0 12px 28px rgba(213,154,49,.13) !important;
}

.tgds-ai-zone span {
  background: var(--tgds-maroon) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 20px rgba(91,12,4,.20);
}

.tgds-zone-handle {
  width: 18px !important;
  height: 18px !important;
  background: var(--tgds-gold) !important;
  border: 3px solid #fff !important;
  box-shadow: 0 8px 18px rgba(75,36,18,.22) !important;
}

.tgds-layer {
  border: 1px solid transparent !important;
  transition: box-shadow .12s ease, border-color .12s ease;
}

.tgds-layer.is-selected {
  border: 2px solid var(--tgds-maroon) !important;
  box-shadow: 0 0 0 4px rgba(213,154,49,.20), 0 14px 30px rgba(75,36,18,.13) !important;
}

.tgds-layer-row {
  grid-template-columns: 38px 1fr auto !important;
  gap: 10px !important;
  align-items: center !important;
  border: 1px solid rgba(91,12,4,.10) !important;
  background: #fffaf6 !important;
  border-radius: 16px !important;
  padding: 10px !important;
}

.tgds-layer-row.is-active {
  background: #fff !important;
  border-color: rgba(91,12,4,.38) !important;
  box-shadow: 0 12px 28px rgba(75,36,18,.09);
}

.tgds-layer-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--tgds-maroon);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.tgds-layer-row strong {
  color: var(--tgds-brown) !important;
  font-size: 13px !important;
  min-width: 0;
}

.tgds-layer-row small {
  color: rgba(75,36,18,.55);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tgds-selected-info {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-radius: 14px;
  background: #fffaf6;
  border: 1px solid rgba(91,12,4,.10);
  color: rgba(75,36,18,.72);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.tgds-preview-output {
  border-radius: 22px !important;
  border: 1px solid rgba(91,12,4,.11) !important;
  background: #fffaf6 !important;
}

@media (max-width: 1180px) {
  .tgds-shell {
    grid-template-columns: 1fr !important;
  }
  .tgds-panel {
    position: relative;
    top: auto;
  }
  .tgds-canvas-card {
    order: -1;
  }
}

@media (max-width: 780px) {
  .tgds {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .tgds-topbar {
    padding: 22px !important;
    border-radius: 24px !important;
  }
  .tgds-topbar h1 {
    font-size: 34px !important;
  }
  .tgds-studio-toolbar {
    position: relative;
    top: auto;
    align-items: stretch;
    flex-direction: column;
  }
  .tgds-toolbar-left,
  .tgds-toolbar-right {
    width: 100%;
  }
  .tgds-tool-pill,
  .tgds-toolbar-chip {
    flex: 1;
    justify-content: center;
    text-align: center;
  }
  .tgds-stage-wrap {
    padding: 10px !important;
    border-radius: 20px !important;
  }
  .tgds-canvas-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .tgds-canvas-head {
    align-items: flex-start !important;
    flex-direction: column;
  }
}


/* V1.2.0 Phase 3 - manual editing controls */
.tgds-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.tgds-control-grid.tgds-control-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.tgds-control-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 !important;
}

.tgds-control-grid label span,
.tgds-lock-row span {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  color: rgba(75,36,18,.75);
}

.tgds-control-grid input,
.tgds-control-grid select {
  min-height: 40px;
  border: 1px solid rgba(91,12,4,.14) !important;
  border-radius: 13px !important;
  background: #fffaf6 !important;
  color: #4b2412 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.tgds-control-grid input[type="color"] {
  padding: 3px !important;
  cursor: pointer;
}

.tgds-control-grid input[type="range"] {
  accent-color: #301618;
  min-height: 36px;
  padding: 0 !important;
}

.tgds-inline-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tgds-mini-tool {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(91,12,4,.14);
  background: #fffaf6;
  color: #4b2412;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.tgds-mini-tool:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(91,12,4,.35);
}

.tgds-mini-tool.is-active {
  background: #301618;
  border-color: #301618;
  color: #fff;
}

.tgds-text-controls.is-disabled {
  opacity: .45;
  filter: grayscale(.25);
}

.tgds-lock-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 12px 0 14px !important;
  padding: 12px;
  border-radius: 14px;
  background: #fffaf6;
  border: 1px solid rgba(91,12,4,.10);
  cursor: pointer;
}

.tgds-lock-row input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #D8CBC4 !important;
  border-radius: 5px !important;
  background: #FFFFFF !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer !important;
}

.tgds-lock-row input[type="checkbox"]:checked {
  border-color: #301618 !important;
  background-color: #301618 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5 8 14l8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 15px 15px !important;
}

.tgds-layer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tgds-layer-actions .tgds-btn {
  min-height: 42px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  font-size: 13px !important;
}

.tgds-layer.is-locked {
  cursor: not-allowed !important;
}

.tgds-layer.is-locked:before {
  content: "LOCKED";
  position: absolute;
  left: 7px;
  top: 7px;
  z-index: 3;
  background: rgba(91,12,4,.92);
  color: #fff;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  pointer-events: none;
}

.tgds-layer-row.is-locked .tgds-layer-icon {
  background: #7d6a60;
}

.tgds-text-layer {
  display: flex !important;
  align-items: center !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  line-height: 1.05 !important;
  padding: 4px !important;
}

@media (max-width: 520px) {
  .tgds-control-grid,
  .tgds-layer-actions {
    grid-template-columns: 1fr;
  }
}


/* V1.3.0 Phase 4 - drafts + alignment + export */
.tgds-align-block {
  margin: 14px 0 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(91,12,4,.10);
  background: #fffaf6;
}

.tgds-mini-title {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  color: rgba(75,36,18,.76);
}

.tgds-align-tools {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.tgds-align-tools .tgds-mini-tool {
  width: 100%;
  min-width: 0;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}

.tgds-align-tools-single {
  grid-template-columns: 1fr !important;
  margin-top: 8px !important;
}

.tgds-toolbar-left .tgds-save-draft,
.tgds-toolbar-left .tgds-load-draft,
.tgds-toolbar-left .tgds-download-png,
.tgds-toolbar-left .tgds-clear-design {
  background: #fff !important;
}

@media (max-width: 520px) {
  .tgds-align-tools {
    grid-template-columns: 1fr;
  }
}


/* V1.4.0 Phase 5 - curved text, filters, visibility, templates, sides */
.tgds-side-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fffaf6;
  border: 1px solid rgba(91,12,4,.12);
  border-radius: 999px;
  padding: 4px;
}

.tgds-side-btn {
  border: 0;
  background: transparent;
  color: #4b2412;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.tgds-side-btn.is-active {
  background: #301618;
  color: #fff;
}

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

.tgds-template {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(91,12,4,.12);
  background: #fffaf6;
  color: #4b2412;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.tgds-template:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 10px 24px rgba(75,36,18,.10);
}

.tgds-filter-controls.is-disabled,
.tgds-text-controls.is-disabled {
  opacity: .45;
}

.tgds-image-adjustments {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.tgds-filter-helper {
  margin: 0;
  padding: 13px 14px;
  border: 1px solid rgba(75, 22, 24, .12);
  border-radius: 12px;
  background: #fffaf6;
  color: #6f6460;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.tgds-filter-helper[hidden],
.tgds-filter-controls[hidden] {
  display: none !important;
}

.tgds-visible-row {
  margin-top: 8px !important;
}

.tgds-layer-row.is-hidden {
  opacity: .55;
  filter: grayscale(.4);
}


@media (max-width: 780px) {
  .tgds-side-switch {
    width: 100%;
  }
  .tgds-side-btn {
    flex: 1;
  }
  .tgds-template-grid {
    grid-template-columns: 1fr;
  }
}


/* V1.5.0 Phase 6 - production pack note */
.tgds-production-pack-note {
  font-size: 12px;
  color: rgba(75,36,18,.72);
}


/* V1.6.0 Easy Mode - simple, spacious, fifth-grader friendly UI */
.tgds-easy-mode {
  --tgds-maroon: #301618;
  --tgds-maroon-dark: #301618;
  --tgds-brown: #3A3331;
  --tgds-gold: #d59a31;
  --tgds-cream: #FFFFFF;
  --tgds-soft: #F7F1EC;
  --tgds-line: rgba(107,18,8,.13);
  --tgds-shadow: 0 18px 45px rgba(75,36,18,.08);
  padding-top: 24px !important;
  font-family: Karla, Arial, sans-serif !important;
}

.tgds-easy-mode .tgds-topbar {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 22px !important;
  align-items: center !important;
  padding: 30px 34px !important;
  border-radius: 30px !important;
  background: linear-gradient(135deg, #fffaf6 0%, #ffffff 58%, #fff4e6 100%) !important;
}

.tgds-easy-mode .tgds-kicker {
  color: var(--tgds-gold) !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

.tgds-easy-mode .tgds-topbar h1 {
  font-size: clamp(38px, 5vw, 64px) !important;
  line-height: .96 !important;
  margin: 8px 0 10px !important;
  color: var(--tgds-maroon) !important;
}

.tgds-easy-mode .tgds-topbar p {
  font-size: 18px !important;
  line-height: 1.45 !important;
  color: rgba(75,36,18,.72) !important;
  max-width: 680px !important;
}

.tgds-easy-mode .tgds-product-pill {
  min-width: 240px !important;
  border-radius: 24px !important;
  padding: 16px 18px !important;
}

.tgds-easy-mode .tgds-alert {
  border-radius: 18px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.tgds-easy-toolbar {
  position: relative !important;
  top: auto !important;
  padding: 12px !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(75,36,18,.06) !important;
  margin: 18px 0 22px !important;
}

.tgds-easy-toolbar .tgds-toolbar-left {
  gap: 8px !important;
}

.tgds-easy-mode .tgds-tool-pill {
  min-height: 42px !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  background: #fffaf6 !important;
  border: 1px solid rgba(107,18,8,.14) !important;
  color: var(--tgds-maroon) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.tgds-easy-mode .tgds-tool-pill:hover:not(:disabled) {
  background: var(--tgds-maroon) !important;
  border-color: var(--tgds-maroon) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.tgds-more-tools {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
}

.tgds-more-tools summary {
  list-style: none;
  cursor: pointer;
  min-height: 42px;
  border-radius: 999px;
  background: var(--tgds-maroon);
  color: #fff;
  padding: 11px 17px;
  font-size: 12px;
  font-weight: 900;
  user-select: none;
}

.tgds-more-tools summary::-webkit-details-marker {
  display: none;
}

.tgds-more-tools-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 60;
  display: grid;
  gap: 9px;
  width: 260px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(107,18,8,.14);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(75,36,18,.15);
}

.tgds-more-tools-menu .tgds-tool-pill {
  width: 100%;
}

.tgds-easy-mode .tgds-shell {
  grid-template-columns: minmax(300px, 350px) minmax(560px, 1fr) minmax(300px, 340px) !important;
  gap: 24px !important;
  align-items: start !important;
}

.tgds-easy-mode .tgds-panel,
.tgds-easy-mode .tgds-canvas-card {
  border-radius: 30px !important;
  padding: 24px !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(107,18,8,.11) !important;
  box-shadow: var(--tgds-shadow) !important;
}

.tgds-easy-mode .tgds-panel {
  position: relative !important;
  top: auto !important;
}

.tgds-easy-mode .tgds-progress-steps {
  gap: 10px !important;
  margin-bottom: 24px !important;
}

.tgds-easy-mode .tgds-progress-steps span {
  min-height: 44px !important;
  border-radius: 16px !important;
  background: #fffaf6 !important;
  font-size: 12px !important;
  color: rgba(75,36,18,.72) !important;
}

.tgds-easy-mode .tgds-progress-steps span.is-active {
  background: var(--tgds-maroon) !important;
  color: #fff !important;
}

.tgds-easy-mode .tgds-section {
  padding: 18px !important;
  margin-bottom: 18px !important;
  border: 1px solid rgba(107,18,8,.10) !important;
  border-radius: 24px !important;
  background: #FFFFFF !important;
}

.tgds-easy-mode .tgds-section:last-child {
  margin-bottom: 0 !important;
}

.tgds-easy-mode .tgds-section-title {
  display: block !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  color: #301618 !important;
  margin-bottom: 10px !important;
}

.tgds-embedded-in-upload-tab .tgds-main-card-title {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1.1 !important;
  letter-spacing: normal !important;
  color: #301618 !important;
}

.tgds-easy-mode .tgds-section p {
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: #4F4742 !important;
  margin-bottom: 14px !important;
}

.tgds-embedded-in-upload-tab label,
.tgds-embedded-in-upload-tab label > span {
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

.tgds-easy-mode input,
.tgds-easy-mode textarea,
.tgds-easy-mode select {
  min-height: 48px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(107,18,8,.13) !important;
  background: #fff !important;
  color: var(--tgds-brown) !important;
  font-size: 16px !important;
}

.tgds-easy-mode .tgds-ai-prompt {
  min-height: 128px !important;
}

.tgds-easy-mode .tgds-btn {
  min-height: 52px !important;
  border-radius: 18px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  background: var(--tgds-maroon) !important;
  color: #fff !important;
  border: 1px solid var(--tgds-maroon) !important;
  box-shadow: 0 12px 26px rgba(107,18,8,.16) !important;
}

.tgds-easy-mode .tgds-btn:hover:not(:disabled) {
  background: var(--tgds-maroon-dark) !important;
  border-color: var(--tgds-maroon-dark) !important;
  transform: translateY(-1px);
}

.tgds-easy-mode .tgds-btn-soft {
  background: #fff !important;
  color: var(--tgds-maroon) !important;
  border: 1px solid rgba(107,18,8,.15) !important;
  box-shadow: none !important;
}

.tgds-easy-mode .tgds-btn-soft:hover:not(:disabled) {
  background: var(--tgds-maroon) !important;
  color: #fff !important;
}

.tgds-easy-mode .tgds-upload-mini {
  min-height: 62px !important;
  border-radius: 18px !important;
  background: #fff !important;
  border: 1px dashed rgba(107,18,8,.22) !important;
}

.tgds-easy-mode .tgds-upload-mini:hover {
  border-color: var(--tgds-maroon) !important;
  background: #fff8f2 !important;
}

.tgds-easy-mode .tgds-template-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

.tgds-easy-mode .tgds-template {
  min-height: 50px !important;
  border-radius: 18px !important;
  background: #fff !important;
  color: var(--tgds-maroon) !important;
  border: 1px solid rgba(107,18,8,.13) !important;
}

.tgds-easy-mode .tgds-template:hover {
  background: var(--tgds-maroon) !important;
  color: #fff !important;
}

.tgds-easy-mode .tgds-canvas-head {
  margin-bottom: 18px !important;
  padding: 0 0 16px !important;
}

.tgds-easy-mode .tgds-canvas-head strong {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1.1 !important;
  color: #301618 !important;
}

.tgds-easy-mode .tgds-canvas-head span {
  font-size: 16px !important;
  color: #4F4742 !important;
}

.tgds-easy-mode .tgds-canvas-head em {
  font-size: 13px !important;
  background: #fffaf6 !important;
  color: rgba(75,36,18,.68) !important;
}

.tgds-easy-mode .tgds-stage-wrap {
  min-height: 620px !important;
  padding: 18px !important;
  border-radius: 28px !important;
  background: #FFFFFF !important;
}

.tgds-easy-mode .tgds-stage {
  border-radius: 24px !important;
  box-shadow: inset 0 0 0 1px rgba(107,18,8,.08), 0 20px 50px rgba(75,36,18,.08) !important;
}

.tgds-easy-mode .tgds-ai-zone {
  border: 3px dashed var(--tgds-gold) !important;
  background: rgba(213,154,49,.13) !important;
  border-radius: 20px !important;
}

.tgds-easy-mode .tgds-ai-zone span {
  background: var(--tgds-maroon) !important;
  font-size: 12px !important;
  padding: 7px 11px !important;
}

.tgds-easy-mode .tgds-canvas-actions {
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  margin-top: 18px !important;
}

.tgds-easy-mode .tgds-preview-output {
  padding: 16px !important;
  border-radius: 20px !important;
  background: #fffaf6 !important;
}

.tgds-easy-mode .tgds-preview-output img {
  width: 150px !important;
}

.tgds-easy-mode .tgds-layer-row {
  border-radius: 18px !important;
  padding: 12px !important;
  background: #fff !important;
  border: 1px solid rgba(107,18,8,.11) !important;
}

.tgds-easy-mode .tgds-layer-row:hover {
  border-color: rgba(107,18,8,.30) !important;
}

.tgds-easy-mode .tgds-layer-row.is-active {
  border-color: var(--tgds-maroon) !important;
  box-shadow: 0 10px 26px rgba(75,36,18,.08) !important;
}

.tgds-easy-mode .tgds-selected-info {
  min-height: 48px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  border-radius: 18px !important;
  background: #FFFFFF !important;
  color: #4F4742 !important;
}

.tgds-advanced-layer-tools {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(107,18,8,.12);
  background: #fff;
  overflow: hidden;
}

.tgds-advanced-layer-tools summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--tgds-maroon);
  font-size: 14px;
  font-weight: 900;
  list-style: none;
  user-select: none;
}

.tgds-advanced-layer-tools summary::-webkit-details-marker {
  display: none;
}

.tgds-advanced-layer-tools summary:after {
  content: " +";
  float: right;
}

.tgds-advanced-layer-tools[open] summary:after {
  content: " −";
}

.tgds-advanced-layer-inner {
  padding: 0 16px 16px;
}

.tgds-easy-mode .tgds-control-grid {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.tgds-easy-mode .tgds-inline-tools,
.tgds-easy-mode .tgds-align-tools {
  gap: 8px !important;
}

.tgds-easy-mode .tgds-mini-tool {
  min-height: 38px !important;
  border-radius: 999px !important;
  background: #fffaf6 !important;
  color: var(--tgds-maroon) !important;
  border: 1px solid rgba(107,18,8,.14) !important;
}

.tgds-easy-mode .tgds-mini-tool:hover:not(:disabled),
.tgds-easy-mode .tgds-mini-tool.is-active {
  background: var(--tgds-maroon) !important;
  color: #fff !important;
}

.tgds-easy-mode .tgds-layer-actions {
  grid-template-columns: 1fr !important;
}

.tgds-easy-mode .tgds-lock-row {
  background: #fff !important;
  border-radius: 18px !important;
}

@media (max-width: 1200px) {
  .tgds-easy-mode .tgds-shell {
    grid-template-columns: 1fr !important;
  }
  .tgds-easy-mode .tgds-canvas-card {
    order: -1;
  }
}

@media (max-width: 780px) {
  .tgds-easy-mode {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .tgds-easy-mode .tgds-topbar {
    grid-template-columns: 1fr !important;
    padding: 22px !important;
    border-radius: 24px !important;
  }
  .tgds-easy-mode .tgds-product-pill {
    min-width: 0 !important;
  }
  .tgds-easy-toolbar {
    display: block !important;
  }
  .tgds-easy-toolbar .tgds-toolbar-left {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    margin-bottom: 10px !important;
  }
  .tgds-more-tools {
    width: 100%;
  }
  .tgds-more-tools summary {
    text-align: center;
  }
  .tgds-more-tools-menu {
    position: static;
    width: auto;
    margin-top: 10px;
  }
  .tgds-easy-mode .tgds-canvas-actions,
  .tgds-easy-mode .tgds-template-grid {
    grid-template-columns: 1fr !important;
  }
  .tgds-easy-mode .tgds-stage-wrap {
    min-height: auto !important;
    padding: 10px !important;
  }
}

/* V1.6.1 Sticky Preview UX
   Keep the preview visible while tools are edited.
   Large screens: side panels scroll internally and center preview stays sticky.
*/
.tgds-easy-mode .tgds-shell {
  align-items: start !important;
}

@media (min-width: 1201px) {
  .tgds-easy-mode .tgds-tools,
  .tgds-easy-mode .tgds-layers-panel {
    position: sticky !important;
    top: 20px !important;
    max-height: calc(100vh - 40px) !important;
    overflow: auto !important;
    scrollbar-width: thin;
    padding-right: 14px !important;
  }

  .tgds-easy-mode .tgds-canvas-card {
    position: sticky !important;
    top: 20px !important;
    align-self: start !important;
  }

  .tgds-easy-mode .tgds-stage-wrap {
    min-height: calc(100vh - 250px) !important;
    max-height: calc(100vh - 250px) !important;
    overflow: auto !important;
  }
}

/* Slightly tighter stage so action buttons remain visible with preview */
@media (min-width: 1201px) {
  .tgds-easy-mode .tgds-stage {
    width: min(100%, 620px) !important;
  }
}

/* V1.7.0 Preview inspector + font previews */
.tgds .tgds-font-preview,
.tgms .tgms-font-preview {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #e4d6cf;
  border-radius: 14px;
  background: #fff;
  color: #5b2415;
  font-size: 18px;
  line-height: 1.3;
}

.tgms .tgms-style-note {
  margin: 8px 0 0;
  color: #8a776d;
  font-size: 13px;
  line-height: 1.45;
}

.tgds .tgds-preview-output img,
.tgms .tgms-selected-img,
.tgms .tgms-options img {
  cursor: zoom-in;
  transition: transform .2s ease;
  transform-origin: center center;
}

.tgds .tgds-preview-toolbar,
.tgms .tgms-preview-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tgms .tgms-preview-tools {
  margin-top: 14px;
  margin-bottom: 6px;
}

.tgds-inspector[hidden] {
  display: none !important;
}

.tgds-inspector {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.tgds-inspector-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 18, 10, 0.72);
  backdrop-filter: blur(3px);
}

.tgds-inspector-dialog {
  position: relative;
  width: min(1080px, calc(100vw - 32px));
  height: min(90vh, 920px);
  margin: 4vh auto;
  background: #fffdfb;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(39, 18, 10, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tgds-inspector-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #ead9d1;
  color: #4b2412;
  font-size: 24px;
  font-weight: 800;
}

.tgds-inspector-close {
  border: 0;
  background: #f7efe9;
  color: #5b2415;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.tgds-inspector-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 22px 0;
}

.tgds-inspector-btn {
  border: 1px solid #d9c6bc;
  background: #fff;
  color: #5b2415;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tgds-inspector-btn:hover,
.tgms .tgms-preview-tools .tgms-small-btn:hover,
.tgds .tgds-preview-toolbar .tgds-mini-tool:hover {
  background: #f8f2ee;
  border-color: #caaea2;
}

.tgds-inspector-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 22px;
}

.tgds-inspector-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform .2s ease;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(46, 23, 12, 0.12);
}

.tgds-inspector-tip {
  padding: 0 22px 18px;
  color: #826e63;
  font-size: 13px;
}

@media (max-width: 767px) {
  .tgds-inspector-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    margin: 8px auto;
    border-radius: 18px;
  }
  .tgds-inspector-head {
    font-size: 20px;
    padding: 14px 16px;
  }
  .tgds-inspector-tools,
  .tgds-inspector-tip,
  .tgds-inspector-stage {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* V1.7.1 premium polish: easier hover states, bigger mockup cards, richer preview UI */
.tgms .tgms-example-buttons button,
.tgms .tgms-edit-chips button,
.tgms .tgms-style button,
.tgms .tgms-small-btn,
.tgms .tgms-primary,
.tgms .tgms-edit-apply,
.tgds .tgds-btn,
.tgds .tgds-btn-soft,
.tgds .tgds-tool-pill,
.tgds .tgds-mini-tool,
.tgds .tgds-template {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease !important;
}

.tgms .tgms-example-buttons button:hover,
.tgms .tgms-edit-chips button:hover,
.tgms .tgms-style button:hover,
.tgms .tgms-small-btn:hover,
.tgds .tgds-btn-soft:hover,
.tgds .tgds-tool-pill:hover,
.tgds .tgds-mini-tool:hover,
.tgds .tgds-template:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 24px rgba(75, 11, 4, 0.08) !important;
}

.tgms .tgms-primary:hover,
.tgms .tgms-edit-apply:hover,
.tgds .tgds-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 30px rgba(75, 11, 4, 0.16) !important;
}

/* Bigger generated mockup cards */
.tgms .tgms-options,
body .tgms .tgms-options {
  gap: 16px !important;
}

.tgms .tgms-option,
body .tgms .tgms-option {
  width: 148px !important;
  flex: 0 0 148px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(91, 12, 4, 0.14) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%) !important;
  box-shadow: 0 8px 20px rgba(75, 11, 4, 0.04) !important;
}

.tgms .tgms-option:hover,
body .tgms .tgms-option:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(91, 12, 4, 0.28) !important;
  box-shadow: 0 16px 30px rgba(75, 11, 4, 0.10) !important;
}

.tgms .tgms-option.is-active,
body .tgms .tgms-option.is-active {
  border: 2px solid #301618 !important;
  box-shadow: 0 18px 34px rgba(75, 11, 4, 0.14) !important;
}

.tgms .tgms-option img,
body .tgms .tgms-option img {
  height: 138px !important;
  object-fit: cover !important;
  background: #fff !important;
}

.tgms .tgms-option span,
body .tgms .tgms-option span {
  padding: 12px 10px 4px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  white-space: normal !important;
}

.tgms .tgms-option small,
body .tgms .tgms-option small {
  display: block !important;
  padding: 0 10px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #8d7669 !important;
  text-align: center !important;
}

/* Preview cards and image interaction */
.tgms .tgms-selected,
body .tgms .tgms-selected,
.tgds .tgds-preview-output,
body .tgds .tgds-preview-output {
  background: linear-gradient(180deg, #fffdfb 0%, #fff8f3 100%) !important;
  border: 1px solid rgba(91, 12, 4, 0.10) !important;
  box-shadow: 0 16px 36px rgba(75, 11, 4, 0.06) !important;
}

.tgms .tgms-selected-img:hover,
.tgds .tgds-preview-output img:hover {
  transform: scale(1.02) !important;
}

.tgms .tgms-preview-tools,
.tgds .tgds-preview-toolbar {
  padding-top: 6px;
}

.tgms .tgms-small-btn,
.tgds .tgds-mini-tool {
  border-radius: 999px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  background: #fff !important;
  border: 1px solid rgba(91, 12, 4, 0.14) !important;
  color: #5b2415 !important;
}

/* Popup inspector more premium */
.tgds-inspector-backdrop {
  background: rgba(28, 14, 8, 0.78) !important;
  backdrop-filter: blur(8px) !important;
}

.tgds-inspector-dialog {
  background: linear-gradient(180deg, #fffefd 0%, #fff8f2 100%) !important;
  border: 1px solid rgba(91, 12, 4, 0.08);
  box-shadow: 0 30px 90px rgba(30, 14, 8, 0.34) !important;
}

.tgds-inspector-head {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
}

.tgds-inspector-tools {
  padding-top: 18px !important;
}

.tgds-inspector-btn {
  min-width: 44px;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 8px 16px rgba(75, 11, 4, 0.05);
}

.tgds-inspector-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(75, 11, 4, 0.1);
}

.tgds-inspector-stage {
  background: radial-gradient(circle at center, rgba(255,255,255,0.95) 0%, rgba(249,240,233,0.85) 100%) !important;
}

.tgds-inspector-stage img {
  border: 1px solid rgba(91, 12, 4, 0.10) !important;
  box-shadow: 0 24px 60px rgba(46, 23, 12, 0.18) !important;
}

/* Font preview box feels more useful */
.tgms .tgms-font-preview,
.tgds .tgds-font-preview {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid rgba(91, 12, 4, 0.10) !important;
}

@media (max-width: 767px) {
  .tgms .tgms-option,
  body .tgms .tgms-option {
    width: calc(50% - 8px) !important;
    flex: 0 0 calc(50% - 8px) !important;
  }

  .tgms .tgms-option img,
  body .tgms .tgms-option img {
    height: 124px !important;
  }
}

/* V1.7.2 easy mode polish: clearer spacing, simpler hierarchy, better mobile */
.tgms .tgms-layout,
body .tgms .tgms-layout {
  gap: 20px !important;
  align-items: start !important;
}

.tgms .tgms-left,
body .tgms .tgms-left {
  gap: 20px !important;
}

.tgms .tgms-card,
.tgms .tgms-preview-card,
body .tgms .tgms-card,
body .tgms .tgms-preview-card {
  padding: 22px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(91, 12, 4, 0.10) !important;
  box-shadow: 0 10px 28px rgba(75, 11, 4, 0.04) !important;
}

.tgms .tgms-card > h3,
.tgms .tgms-preview-card .tgms-preview-head h3,
body .tgms .tgms-card > h3,
body .tgms .tgms-preview-card .tgms-preview-head h3 {
  font-size: 17px !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  margin-bottom: 14px !important;
}

.tgms .tgms-prompt,
body .tgms .tgms-prompt {
  min-height: 170px !important;
  padding: 16px !important;
  border-radius: 18px !important;
  background: #fff !important;
}

.tgms .tgms-count,
body .tgms .tgms-count {
  margin-top: 8px !important;
  font-size: 12px !important;
  color: #9b8477 !important;
}

.tgms .tgms-prompt-simple,
body .tgms .tgms-prompt-simple {
  margin-top: 18px !important;
  padding: 16px !important;
  border-radius: 18px !important;
  background: #fffaf7 !important;
  border: 1px solid rgba(91, 12, 4, 0.08) !important;
}

.tgms .tgms-simple-head,
body .tgms .tgms-simple-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.tgms .tgms-simple-head strong,
body .tgms .tgms-simple-head strong {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #2f221c !important;
}

.tgms .tgms-simple-head span,
body .tgms .tgms-simple-head span {
  font-size: 12px !important;
  color: #8e796d !important;
}

.tgms .tgms-example-buttons,
body .tgms .tgms-example-buttons {
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.tgms .tgms-example-buttons button,
body .tgms .tgms-example-buttons button {
  min-height: 46px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid rgba(91, 12, 4, 0.12) !important;
  color: #5b2415 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.tgms .tgms-prompt-rule,
body .tgms .tgms-prompt-rule {
  margin-top: 6px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px dashed rgba(91, 12, 4, 0.14) !important;
}

.tgms .tgms-prompt-rule strong,
body .tgms .tgms-prompt-rule strong {
  font-size: 13px !important;
}

.tgms .tgms-prompt-rule span,
body .tgms .tgms-prompt-rule span,
.tgms .tgms-prompt-tip,
body .tgms .tgms-prompt-tip {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #8e796d !important;
}

.tgms .tgms-upload-box,
body .tgms .tgms-upload-box {
  min-height: 172px !important;
  gap: 8px !important;
  padding: 18px !important;
  background: #fff !important;
}

.tgms .tgms-upload-box .tgms-upload-icon,
body .tgms .tgms-upload-box .tgms-upload-icon {
  width: 38px !important;
  height: 38px !important;
  margin-bottom: 2px !important;
}

.tgms .tgms-upload-box strong,
body .tgms .tgms-upload-box strong {
  font-size: 15px !important;
}

.tgms .tgms-upload-box em,
.tgms .tgms-upload-box small,
body .tgms .tgms-upload-box em,
body .tgms .tgms-upload-box small {
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #8e796d !important;
}

.tgms .tgms-field,
body .tgms .tgms-field {
  margin-top: 18px !important;
}

.tgms .tgms-field > label,
body .tgms .tgms-field > label {
  display: block !important;
  margin-bottom: 10px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #2f221c !important;
}

.tgms .tgms-style,
body .tgms .tgms-style {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.tgms .tgms-style button,
body .tgms .tgms-style button {
  min-height: 50px !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid rgba(91, 12, 4, 0.14) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.tgms .tgms-style button.is-active,
body .tgms .tgms-style button.is-active {
  background: #fff7f1 !important;
}

.tgms .tgms-style-note,
.tgms .tgms-helper,
.tgms .tgms-note,
body .tgms .tgms-style-note,
body .tgms .tgms-helper,
body .tgms .tgms-note {
  margin-top: 8px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #8e796d !important;
}

.tgms .tgms-font-preview,
body .tgms .tgms-font-preview {
  margin-top: 10px !important;
  min-height: 52px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
}

.tgms .tgms-check-row,
body .tgms .tgms-check-row {
  gap: 10px !important;
  align-items: center !important;
}

.tgms .tgms-color-controls,
body .tgms .tgms-color-controls {
  margin-top: 14px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  background: #fff !important;
  border: 1px solid rgba(91, 12, 4, 0.10) !important;
}

.tgms .tgms-primary,
body .tgms .tgms-primary {
  min-height: 52px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.tgms .tgms-preview-head,
body .tgms .tgms-preview-head {
  margin-bottom: 14px !important;
}

.tgms .tgms-selected,
body .tgms .tgms-selected {
  border-radius: 18px !important;
  overflow: hidden !important;
}

.tgms .tgms-empty,
body .tgms .tgms-empty {
  padding: 24px 18px !important;
}

.tgms .tgms-empty strong,
body .tgms .tgms-empty strong {
  font-size: 18px !important;
  margin-top: 8px !important;
}

.tgms .tgms-empty span,
body .tgms .tgms-empty span {
  font-size: 13px !important;
  color: #8e796d !important;
}

.tgms .tgms-review-note,
body .tgms .tgms-review-note {
  padding: 14px 16px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.tgms .tgms-quick-edit,
body .tgms .tgms-quick-edit {
  margin-top: 16px !important;
  padding: 18px !important;
  border-radius: 18px !important;
}

.tgms .tgms-quick-edit-head strong,
body .tgms .tgms-quick-edit-head strong {
  font-size: 18px !important;
}

.tgms .tgms-quick-edit-head span,
body .tgms .tgms-quick-edit-head span,
.tgms .tgms-quick-edit p,
body .tgms .tgms-quick-edit p {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #8e796d !important;
}

.tgms .tgms-edit-chips,
body .tgms .tgms-edit-chips {
  gap: 10px !important;
}

.tgms .tgms-edit-chips button,
body .tgms .tgms-edit-chips button {
  min-height: 44px !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.tgms .tgms-edit-row,
body .tgms .tgms-edit-row {
  gap: 12px !important;
  align-items: stretch !important;
}

.tgms .tgms-edit-input,
body .tgms .tgms-edit-input {
  min-height: 52px !important;
  border-radius: 14px !important;
  background: #fff !important;
}

.tgms .tgms-edit-apply,
body .tgms .tgms-edit-apply {
  min-width: 170px !important;
  border-radius: 14px !important;
}

/* make tab controls friendlier */
.tgms .tgms-tabs,
body .tgms .tgms-tabs {
  margin: 18px auto 18px !important;
}

/* Better mobile layout */
@media (max-width: 1024px) {
  .tgms .tgms-layout,
  body .tgms .tgms-layout {
    grid-template-columns: 1fr !important;
  }

  .tgms .tgms-right,
  body .tgms .tgms-right {
    order: 3 !important;
  }

  .tgms .tgms-preview-card,
  body .tgms .tgms-preview-card {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 767px) {
  .tgms .tgms-card,
  .tgms .tgms-preview-card,
  body .tgms .tgms-card,
  body .tgms .tgms-preview-card {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .tgms .tgms-tabs,
  body .tgms .tgms-tabs {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }

  .tgms .tgms-tab,
  body .tgms .tgms-tab {
    padding: 14px 10px !important;
    font-size: 16px !important;
  }

  .tgms .tgms-simple-head,
  .tgms .tgms-preview-head,
  body .tgms .tgms-simple-head,
  body .tgms .tgms-preview-head {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .tgms .tgms-style,
  body .tgms .tgms-style {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .tgms .tgms-example-buttons,
  body .tgms .tgms-example-buttons {
    grid-template-columns: 1fr 1fr !important;
  }

  .tgms .tgms-option,
  body .tgms .tgms-option {
    width: calc(50% - 8px) !important;
    flex: 0 0 calc(50% - 8px) !important;
  }

  .tgms .tgms-edit-row,
  body .tgms .tgms-edit-row {
    flex-direction: column !important;
  }

  .tgms .tgms-edit-apply,
  body .tgms .tgms-edit-apply,
  .tgms .tgms-primary,
  body .tgms .tgms-primary {
    width: 100% !important;
  }

  .tgms .tgms-empty strong,
  body .tgms .tgms-empty strong {
    font-size: 16px !important;
  }
}

/* V1.7.3 editor UX refinement */
.tgds .tgds-stage-wrap,
body .tgds .tgds-stage-wrap {
  overflow: hidden !important;
  min-height: 0 !important;
  padding: 14px !important;
}

.tgds .tgds-stage,
body .tgds .tgds-stage {
  width: min(100%, 720px) !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 auto !important;
}

.tgds .tgds-product-img,
body .tgds .tgds-product-img {
  object-fit: contain !important;
}

/* Make print area clearer and less confusing when a layer is selected */
.tgds .tgds-ai-zone,
body .tgds .tgds-ai-zone {
  border-style: dashed !important;
  background: rgba(213,154,49,0.06) !important;
}
.tgds .tgds-ai-zone span,
body .tgds .tgds-ai-zone span {
  background: #7c1f0f !important;
}
.tgds.tgds-has-selection .tgds-ai-zone,
body .tgds.tgds-has-selection .tgds-ai-zone {
  background: rgba(213,154,49,0.02) !important;
  box-shadow: 0 0 0 9999px rgba(75,11,4,.015), 0 8px 18px rgba(213,154,49,.12) !important;
}
.tgds.tgds-has-selection .tgds-ai-zone span,
body .tgds.tgds-has-selection .tgds-ai-zone span {
  opacity: .35 !important;
}

/* Visual font picker shared by the AI helper and selected-text editor. */
.tgds .tgds-font-picker,
body .tgds .tgds-font-picker {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
}
.tgds .tgds-font-trigger,
body .tgds .tgds-font-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(75,11,4,.18) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #301618 !important;
  box-shadow: none !important;
  text-align: left !important;
  cursor: pointer !important;
}
.tgds .tgds-font-trigger:hover,
.tgds .tgds-font-picker.is-open .tgds-font-trigger,
body .tgds .tgds-font-trigger:hover,
body .tgds .tgds-font-picker.is-open .tgds-font-trigger {
  border-color: #301618 !important;
}
.tgds .tgds-font-trigger:disabled,
body .tgds .tgds-font-trigger:disabled {
  opacity: .48 !important;
  cursor: not-allowed !important;
}
.tgds .tgds-font-trigger-text,
body .tgds .tgds-font-trigger-text {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}
.tgds .tgds-font-trigger.is-ai-choice .tgds-font-trigger-text,
body .tgds .tgds-font-trigger.is-ai-choice .tgds-font-trigger-text {
  font-family: Karla, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
.tgds .tgds-font-trigger i,
body .tgds .tgds-font-trigger i {
  flex: 0 0 auto !important;
  font: 700 16px/1 Karla, Arial, sans-serif !important;
  transition: transform .16s ease !important;
}
.tgds .tgds-font-picker.is-open .tgds-font-trigger i,
body .tgds .tgds-font-picker.is-open .tgds-font-trigger i {
  transform: rotate(180deg) !important;
}
.tgds .tgds-font-menu,
body .tgds .tgds-font-menu {
  position: absolute !important;
  z-index: 1200 !important;
  top: calc(100% + 7px) !important;
  left: 0 !important;
  right: 0 !important;
  min-width: 260px !important;
  padding: 10px !important;
  border: 1px solid rgba(75,11,4,.18) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px rgba(48,22,24,.16) !important;
}
.tgds .tgds-font-menu[hidden],
body .tgds .tgds-font-menu[hidden] {
  display: none !important;
}
.tgds .tgds-font-search,
body .tgds .tgds-font-search {
  width: 100% !important;
  height: 40px !important;
  margin: 0 0 8px !important;
  padding: 0 11px !important;
  border: 1px solid rgba(75,11,4,.15) !important;
  border-radius: 8px !important;
  background: #fffaf6 !important;
  color: #301618 !important;
  font: 500 14px/1 Karla, Arial, sans-serif !important;
  box-shadow: none !important;
}
.tgds .tgds-font-options,
body .tgds .tgds-font-options {
  display: grid !important;
  gap: 4px !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}
.tgds .tgds-font-option,
body .tgds .tgds-font-option {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #301618 !important;
  box-shadow: none !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  text-align: left !important;
  cursor: pointer !important;
}
.tgds .tgds-font-option:hover,
.tgds .tgds-font-option.is-selected,
body .tgds .tgds-font-option:hover,
body .tgds .tgds-font-option.is-selected {
  border-color: rgba(75,11,4,.14) !important;
  background: #fff6ef !important;
}
.tgds .tgds-font-option.is-selected,
body .tgds .tgds-font-option.is-selected {
  box-shadow: inset 3px 0 0 #301618 !important;
}
.tgds .tgds-font-option[hidden],
body .tgds .tgds-font-option[hidden] {
  display: none !important;
}
.tgds .tgds-font-option-sample,
body .tgds .tgds-font-option-sample {
  display: none !important;
}
.tgds .tgds-font-option-name,
body .tgds .tgds-font-option-name {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  font: inherit !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}
.tgds .tgds-font-native,
body .tgds .tgds-font-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.tgds .tgds-font-preview,
body .tgds .tgds-font-preview {
  display: none !important;
}

.tgds .tgds-rotate-tools,
body .tgds .tgds-rotate-tools {
  margin-top: 10px !important;
  gap: 10px !important;
  display: flex !important;
  flex-wrap: wrap !important;
}

.tgds .tgds-preview-output,
body .tgds .tgds-preview-output {
  margin-top: 16px !important;
}
.tgds .tgds-preview-output img,
body .tgds .tgds-preview-output img {
  width: 100% !important;
  max-width: 360px !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 10px auto 0 !important;
}
.tgds .tgds-preview-toolbar,
body .tgds .tgds-preview-toolbar {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 10px !important;
}

/* Support 4 side buttons cleanly */
.tgds .tgds-side-switch,
body .tgds .tgds-side-switch {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 8px !important;
}

@media (max-width: 900px) {
  .tgds .tgds-side-switch,
  body .tgds .tgds-side-switch {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

/* V1.7.4 fix: make selected text/logo layers draggable above the print area */
.tgds .tgds-stage,
body .tgds .tgds-stage {
  position: relative !important;
}

.tgds .tgds-product-img,
body .tgds .tgds-product-img {
  z-index: 1 !important;
}

.tgds .tgds-ai-zone,
body .tgds .tgds-ai-zone {
  z-index: 10 !important;
}

.tgds .tgds-layers,
body .tgds .tgds-layers {
  z-index: 30 !important;
  pointer-events: none !important;
}

.tgds .tgds-layer,
body .tgds .tgds-layer {
  pointer-events: auto !important;
  cursor: grab !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: none !important;
}

.tgds .tgds-layer:active,
body .tgds .tgds-layer:active,
body.tgds-layer-dragging .tgds .tgds-layer {
  cursor: grabbing !important;
}

.tgds .tgds-text-layer,
body .tgds .tgds-text-layer {
  min-height: 44px !important;
  min-width: 70px !important;
  padding: 8px 14px !important;
}

.tgds .tgds-layer.is-selected,
body .tgds .tgds-layer.is-selected {
  z-index: 9999 !important;
}

/* When a layer is selected, the print-area overlay should not block dragging the text/logo. */
.tgds.tgds-has-selection .tgds-ai-zone,
body .tgds.tgds-has-selection .tgds-ai-zone {
  pointer-events: none !important;
}


/* V1.7.5: inline layer controls */
.tgds-layer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.tgds-layer-main{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1 1 auto;
}
.tgds-layer-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.tgds-layer-copy strong,
.tgds-layer-copy small{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tgds-layer-inline-actions{
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
}
.tgds-layer-inline-btn{
  width:30px;
  height:30px;
  border-radius:10px;
  border:1px solid rgba(75,11,4,.14);
  background:#fff;
  color:#301618;
  font-size:15px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all .18s ease;
}
.tgds-layer-inline-btn:hover{
  background:#fff3df;
  border-color:#d59a31;
  transform:translateY(-1px);
}
.tgds-layer-inline-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
}
.tgds-layer-row-delete:hover{
  background:#fff0ef;
  border-color:#d7a39b;
}


/* V1.7.6: draggable layer rows + richer font dropdown */
.tgds-layer-row{position:relative;}
.tgds-layer-row.is-dragging{opacity:.55;}
.tgds-layer-row.is-drop-target-before::before,
.tgds-layer-row.is-drop-target-after::after{
  content:'';
  position:absolute;
  left:12px;
  right:12px;
  height:2px;
  background:#7a1608;
  border-radius:999px;
}
.tgds-layer-row.is-drop-target-before::before{top:-3px;}
.tgds-layer-row.is-drop-target-after::after{bottom:-3px;}
.tgds-layer-row-handle{cursor:grab;font-size:16px;}
.tgds-layer-row-handle:active{cursor:grabbing;}


/* V3.2.12: Clean editor behavior after removing stacked handle overrides. */
.tgds-layer-row-handle {
  cursor: grab !important;
  touch-action: none !important;
  user-select: none !important;
}
.tgds-layer-row-handle:active,
.tgds-layer-row.is-dragging .tgds-layer-row-handle {
  cursor: grabbing !important;
}
.tgds-layer-row.is-dragging {
  opacity: .62 !important;
  transform: scale(.99) !important;
}
.tgds-layer-inline-actions button {
  touch-action: manipulation !important;
}
.tgds-layer-row {
  transition: transform .16s ease, opacity .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.tgds-layer-row-placeholder {
  border: 2px dashed rgba(122,22,8,.34);
  background: rgba(213,154,49,.10);
  border-radius: 16px;
  margin-bottom: 8px;
}
.tgds-layer-drag-ghost {
  position: fixed !important;
  z-index: 99999 !important;
  pointer-events: none !important;
  opacity: .96 !important;
  transform: scale(1.02);
  box-shadow: 0 22px 46px rgba(75,11,4,.20) !important;
  background: #fffaf6 !important;
}
body.tgds-layer-list-dragging,
body.tgds-layer-dragging,
body.tgds-layer-dragging *,
body.tgds-layer-rotating,
body.tgds-layer-rotating * {
  cursor: grabbing !important;
  user-select: none !important;
}
.tgds-area-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tgds-area-buttons .tgds-btn {
  margin-top: 0 !important;
}
@media (max-width: 560px) {
  .tgds-area-buttons {
    grid-template-columns: 1fr;
  }
}
.tgds .tgds-stage-wrap,
body .tgds .tgds-stage-wrap {
  overflow: hidden !important;
  padding: 18px !important;
}
.tgds .tgds-stage,
body .tgds .tgds-stage {
  overflow: hidden !important;
  isolation: isolate !important;
}
.tgds .tgds-product-img,
body .tgds .tgds-product-img {
  object-fit: contain !important;
  z-index: 1 !important;
}
.tgds .tgds-layers,
body .tgds .tgds-layers {
  z-index: 35 !important;
  pointer-events: auto !important;
  overflow: hidden !important;
  border-radius: inherit !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
.tgds .tgds-layer,
body .tgds .tgds-layer {
  pointer-events: auto !important;
  touch-action: none !important;
  user-select: none !important;
  cursor: grab !important;
  overflow: hidden !important;
  background: transparent !important;
}
.tgds .tgds-layer.is-selected,
body .tgds .tgds-layer.is-selected {
  z-index: 9999 !important;
  overflow: visible !important;
  cursor: grab !important;
  border-color: #7a1608 !important;
  box-shadow: 0 0 0 1px rgba(122, 22, 8, .38) !important;
}
.tgds .tgds-img-layer img,
body .tgds .tgds-img-layer img,
.tgds .tgds-ai-layer img,
body .tgds .tgds-ai-layer img,
.tgds .tgds-design-only-layer > img,
body .tgds .tgds-design-only-layer > img {
  background: transparent !important;
  object-fit: contain !important;
  object-position: center center !important;
  pointer-events: none !important;
  user-select: none !important;
}
.tgds .tgds-ai-layer,
body .tgds .tgds-ai-layer,
.tgds .tgds-design-only-layer,
body .tgds .tgds-design-only-layer {
  overflow: hidden !important;
  background: transparent !important;
}
.tgds .tgds-design-only-layer > img,
body .tgds .tgds-design-only-layer > img {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
}
.tgds .tgds-text-layer,
body .tgds .tgds-text-layer {
  min-width: 48px !important;
  min-height: 34px !important;
  padding: 0 !important;
  cursor: grab !important;
  overflow: visible !important;
}
.tgds .tgds-text-layer .tgds-text-content,
body .tgds .tgds-text-layer .tgds-text-content {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: inherit !important;
  overflow: hidden !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  line-height: 1.08 !important;
  padding: 2px 4px !important;
  pointer-events: none !important;
  user-select: none !important;
}
.tgds .tgds-ai-zone,
body .tgds .tgds-ai-zone {
  z-index: 10 !important;
  border-style: dashed !important;
  background: rgba(213,154,49,0.04) !important;
}
.tgds .tgds-ai-zone.has-mask::before,
body .tgds .tgds-ai-zone.has-mask::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(213,154,49,.18);
  -webkit-mask-image: var(--tgds-zone-mask);
  mask-image: var(--tgds-zone-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  pointer-events: none;
}
.tgds:not(.tgds-print-area-visible) .tgds-ai-zone,
body .tgds:not(.tgds-print-area-visible) .tgds-ai-zone,
.tgds.tgds-has-layers:not(.tgds-print-area-visible) .tgds-ai-zone,
body .tgds.tgds-has-layers:not(.tgds-print-area-visible) .tgds-ai-zone {
  opacity: 0 !important;
  pointer-events: none !important;
}
.tgds.tgds-print-area-visible .tgds-ai-zone,
body .tgds.tgds-print-area-visible .tgds-ai-zone {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.tgds.tgds-has-selection .tgds-ai-zone,
body .tgds.tgds-has-selection .tgds-ai-zone {
  pointer-events: none !important;
  opacity: .35 !important;
}
.tgds .tgds-ai-zone span,
body .tgds .tgds-ai-zone span,
.tgds .tgds-zone-handle,
body .tgds .tgds-zone-handle,
.tgds .tgds-ai-zone > i,
body .tgds .tgds-ai-zone > i {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
.tgds .tgds-generation-loading,
body .tgds .tgds-generation-loading {
  position: absolute !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: none !important;
  place-items: center !important;
  align-content: center !important;
  justify-items: center !important;
  text-align: center !important;
  padding: 24px !important;
  border-radius: 18px !important;
  background: rgba(255, 250, 247, .92) !important;
  backdrop-filter: blur(6px) !important;
  color: var(--tg-brown, #301618) !important;
  pointer-events: auto !important;
}
.tgds .tgds-generation-loading.is-active,
body .tgds .tgds-generation-loading.is-active {
  display: grid !important;
}
.tgds .tgds-generation-loading .tgms-progress-wrap,
body .tgds .tgds-generation-loading .tgms-progress-wrap {
  width: min(82%, 360px) !important;
  margin-top: 18px !important;
}
.tgds .tgds-generation-loading .tgms-progress-track,
body .tgds .tgds-generation-loading .tgms-progress-track {
  width: 100% !important;
  height: 9px !important;
  border-radius: 999px !important;
  background: rgba(75, 11, 4, .10) !important;
  overflow: hidden !important;
  border: 1px solid rgba(75, 11, 4, .08) !important;
}
.tgds .tgds-generation-loading .tgms-progress-fill,
body .tgds .tgds-generation-loading .tgms-progress-fill {
  width: 0% !important;
  height: 100% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #301618, #d59a31) !important;
  transition: width .55s ease !important;
}
.tgds .tgds-generation-loading .tgms-progress-text,
body .tgds .tgds-generation-loading .tgms-progress-text {
  display: block !important;
  margin-top: 8px !important;
  color: rgba(75, 36, 18, .66) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  text-align: center !important;
}
.tgds .tgds-generation-loading strong,
body .tgds .tgds-generation-loading strong {
  display: block !important;
  margin-top: 14px !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}
.tgds .tgds-generation-loading span,
body .tgds .tgds-generation-loading span {
  display: block !important;
  margin-top: 6px !important;
  font-size: 13px !important;
  color: var(--tg-muted, #705a50) !important;
  max-width: 330px !important;
}


/* V4.1.14 Upload Your Design — unified with the Create with AI design system */

.tgds-embedded-in-upload-tab {
  --tgup-ink: #301618;
  --tgup-text: #4F4742;
  --tgup-muted: #887D76;
  --tgup-border: #E5DAD1;
  --tgup-soft: #F7F1EC;
  --tgup-white: #FFFFFF;
  width: 100% !important;
  max-width: 1600px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  color: var(--tgup-text) !important;
  font-family: Karla, Arial, sans-serif !important;
}

.tgds-embedded-in-upload-tab *,
.tgds-embedded-in-upload-tab *::before,
.tgds-embedded-in-upload-tab *::after {
  box-sizing: border-box !important;
}

/* Compact editor toolbar, using the same white card treatment. */
.tgds-embedded-in-upload-tab .tgds-easy-toolbar {
  position: relative !important;
  top: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 0 28px !important;
  padding: 12px !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 18px !important;
  background: var(--tgup-white) !important;
  box-shadow: 0 10px 22px rgba(48, 22, 24, .08) !important;
}

.tgds-embedded-in-upload-tab .tgds-toolbar-left {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.tgds-embedded-in-upload-tab .tgds-tool-pill,
.tgds-embedded-in-upload-tab .tgds-more-tools summary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 8px !important;
  background: var(--tgup-white) !important;
  color: var(--tgup-text) !important;
  font: 700 15px/1 Karla, Arial, sans-serif !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.tgds-embedded-in-upload-tab .tgds-tool-pill:hover:not(:disabled),
.tgds-embedded-in-upload-tab .tgds-more-tools summary:hover {
  border-color: var(--tgup-ink) !important;
  background: var(--tgup-soft) !important;
  color: var(--tgup-ink) !important;
  transform: none !important;
}

.tgds-embedded-in-upload-tab .tgds-tool-pill:disabled {
  opacity: .42 !important;
  cursor: not-allowed !important;
}

.tgds-embedded-in-upload-tab .tgds-more-tools-menu {
  width: 260px !important;
  padding: 12px !important;
  gap: 8px !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 12px !important;
  background: var(--tgup-white) !important;
  box-shadow: 0 18px 38px rgba(48, 22, 24, .14) !important;
}

/* Same desktop proportions as Create with AI, reordered around the preview. */
.tgds-embedded-in-upload-tab .tgds-shell {
  display: grid !important;
  grid-template-columns: 28% 40.8% 28% !important;
  gap: 1.6% !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.tgds-embedded-in-upload-tab .tgds-shell > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* All three main cards now share the exact AI card surface. */
.tgds-embedded-in-upload-tab .tgds-clean-design-panel,
.tgds-embedded-in-upload-tab .tgds-canvas-card,
.tgds-embedded-in-upload-tab .tgds-layers-panel {
  position: relative !important;
  top: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 32px !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 18px !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  color: var(--tgup-text) !important;
  box-shadow: 0 10px 22px rgba(48, 22, 24, .08) !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-design-panel,
.tgds-embedded-in-upload-tab .tgds-layers-panel {
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(48, 22, 24, .24) transparent !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-design-panel::-webkit-scrollbar,
.tgds-embedded-in-upload-tab .tgds-layers-panel::-webkit-scrollbar {
  width: 7px !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-design-panel::-webkit-scrollbar-thumb,
.tgds-embedded-in-upload-tab .tgds-layers-panel::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(48, 22, 24, .24) !important;
}

.tgds-embedded-in-upload-tab .tgds-canvas-card {
  display: flex !important;
  flex-direction: column !important;
}

/* Identical 88px title area in every card. */
.tgds-embedded-in-upload-tab .tgds-upload-main-heading {
  position: relative !important;
  display: flex !important;
  flex: 0 0 88px !important;
  min-height: 88px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

.tgds-embedded-in-upload-tab .tgds-upload-main-heading .tgds-upload-title {
  display: block !important;
  margin: 0 !important;
  color: var(--tgup-ink) !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}

.tgds-embedded-in-upload-tab .tgds-upload-main-heading .tgds-upload-subtitle {
  display: block !important;
  margin: 7px 0 0 !important;
  color: #5E514C !important;
  font: 500 14px/1.45 Karla, Arial, sans-serif !important;
}

.tgds-embedded-in-upload-tab .tgds-upload-main-heading--preview {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

.tgds-embedded-in-upload-tab .tgds-upload-main-heading > :not(em),
.tgds-embedded-in-upload-tab .tgds-upload-main-heading > :not(em) *,
.tgds-embedded-in-upload-tab .tgds-upload-title,
.tgds-embedded-in-upload-tab .tgds-upload-subtitle {
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

.tgds-embedded-in-upload-tab .tgds-upload-main-heading::before,
.tgds-embedded-in-upload-tab .tgds-upload-main-heading::after,
.tgds-embedded-in-upload-tab .tgds-upload-title::before,
.tgds-embedded-in-upload-tab .tgds-upload-title::after,
.tgds-embedded-in-upload-tab .tgds-upload-subtitle::before,
.tgds-embedded-in-upload-tab .tgds-upload-subtitle::after {
  content: none !important;
  display: none !important;
}

.tgds-embedded-in-upload-tab .tgds-upload-main-heading--preview em {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 8px !important;
  background: var(--tgup-soft) !important;
  color: var(--tgup-muted) !important;
  font: 600 11px/1.2 Karla, Arial, sans-serif !important;
  white-space: nowrap !important;
}

/* Remove nested card styling; use 28px rhythm between real sections. */
.tgds-embedded-in-upload-tab .tgds-clean-block,
.tgds-embedded-in-upload-tab .tgds-layers-list-section,
.tgds-embedded-in-upload-tab .tgds-section {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-customize,
.tgds-embedded-in-upload-tab .tgds-selected-tools {
  margin-top: 28px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.tgds-embedded-in-upload-tab .tgds-section + .tgds-section {
  margin-top: 28px !important;
  padding-top: 28px !important;
  border-top: 1px solid var(--tgup-border) !important;
}

.tgds-embedded-in-upload-tab .tgds-section-title:not(.tgds-main-card-title) {
  display: block !important;
  margin: 0 0 12px !important;
  color: var(--tgup-ink) !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1.15 !important;
}

/* Labels 14px, control content 13px, matching Create with AI. */
.tgds-embedded-in-upload-tab label,
.tgds-embedded-in-upload-tab label > span,
.tgds-embedded-in-upload-tab .tgds-clean-field,
.tgds-embedded-in-upload-tab .tgds-clean-field > span,
.tgds-embedded-in-upload-tab .tgds-clean-pane-label {
  color: var(--tgup-text) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  line-height: 1.2 !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-field {
  display: block !important;
  margin: 0 0 16px !important;
  font-weight: 400 !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-field > span,
.tgds-embedded-in-upload-tab .tgds-clean-pane-label {
  display: block !important;
  margin: 0 0 8px !important;
  font-weight: 700 !important;
}

.tgds-embedded-in-upload-tab input[type="text"],
.tgds-embedded-in-upload-tab textarea,
.tgds-embedded-in-upload-tab select {
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 10px !important;
  background: var(--tgup-white) !important;
  color: var(--tgup-text) !important;
  font: 400 13px/1.4 Karla, Arial, sans-serif !important;
  box-shadow: none !important;
  outline: none !important;
}

.tgds-embedded-in-upload-tab textarea {
  min-height: 120px !important;
  padding-top: 13px !important;
  resize: vertical !important;
}

.tgds-embedded-in-upload-tab input[type="text"]:focus,
.tgds-embedded-in-upload-tab textarea:focus,
.tgds-embedded-in-upload-tab select:focus {
  border-color: var(--tgup-ink) !important;
  box-shadow: 0 0 0 3px rgba(48, 22, 24, .08) !important;
}

.tgds-embedded-in-upload-tab input::placeholder,
.tgds-embedded-in-upload-tab textarea::placeholder {
  color: #ADA9A7 !important;
  font: 400 13px/1.4 Karla, Arial, sans-serif !important;
  opacity: 1 !important;
}

/* Design tool boxes mirror the AI style boxes. */
.tgds-embedded-in-upload-tab .tgds-clean-choice-grid-four {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 0 16px !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-choice {
  display: flex !important;
  min-width: 0 !important;
  min-height: 64px !important;
  padding: 8px 10px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 10px !important;
  background: var(--tgup-white) !important;
  color: var(--tgup-text) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-choice:hover,
.tgds-embedded-in-upload-tab .tgds-clean-choice:focus-visible {
  border-color: var(--tgup-border) !important;
  background: var(--tgup-white) !important;
  transform: none !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-choice.is-active {
  border: 2px solid var(--tgup-ink) !important;
  padding: 7px 9px !important;
  background: var(--tgup-soft) !important;
  color: var(--tgup-ink) !important;
  box-shadow: none !important;
  transform: none !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-choice span:last-child {
  color: inherit !important;
  font: 600 13px/1.2 Karla, Arial, sans-serif !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-icon {
  display: grid !important;
  place-items: center !important;
  height: 22px !important;
  color: inherit !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-icon svg {
  width: 20px !important;
  height: 20px !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-text-icon {
  font-family: Georgia, serif !important;
  font-size: 23px !important;
  line-height: 1 !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-tool-pane {
  margin: 0 0 28px !important;
  padding: 20px 20px 22px !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 10px !important;
  background: var(--tgup-white) !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-tool-pane[hidden] {
  display: none !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-chip-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-element-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.tgds-embedded-in-upload-tab .tgds-text-effect-preset,
.tgds-embedded-in-upload-tab .tgds-pattern-preset,
.tgds-embedded-in-upload-tab .tgds-element-preset {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 0 10px !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 10px !important;
  background: var(--tgup-white) !important;
  color: var(--tgup-text) !important;
  font: 600 13px/1.2 Karla, Arial, sans-serif !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.tgds-embedded-in-upload-tab .tgds-text-effect-preset.is-active,
.tgds-embedded-in-upload-tab .tgds-text-effect-preset[aria-pressed="true"] {
  border-color: var(--tgup-ink) !important;
  background: var(--tgup-ink) !important;
  color: #fff !important;
}

.tgds-embedded-in-upload-tab .tgds-text-effect-preset:disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
  background: #f6f2ef !important;
  color: #9b8f89 !important;
}

.tgds-embedded-in-upload-tab .tgds-text-effect-preset:hover,
.tgds-embedded-in-upload-tab .tgds-pattern-preset:hover,
.tgds-embedded-in-upload-tab .tgds-element-preset:hover {
  border-color: var(--tgup-ink) !important;
  background: var(--tgup-soft) !important;
  color: var(--tgup-ink) !important;
  transform: none !important;
}

/* Upload Your Design area uses the same layout as the AI reference upload. */
.tgds-embedded-in-upload-tab .tgds-upload-design-section {
  width: 100% !important;
  margin: 28px 0 0 !important;
}

.tgds-embedded-in-upload-tab .tgds-upload-design-section h4 {
  margin: 0 0 10px !important;
  color: var(--tgup-ink) !important;
  font: 700 14px/1.2 Karla, Arial, sans-serif !important;
}

.tgds-embedded-in-upload-tab .tgds-upload-design-section h4 span {
  color: var(--tgup-muted) !important;
  font-weight: 400 !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-upload-button {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: 100% !important;
  height: 148px !important;
  min-height: 148px !important;
  margin: 0 !important;
  padding: 16px !important;
  overflow: hidden !important;
  border: 1px dashed #CBB8AE !important;
  border-radius: 10px !important;
  background: var(--tgup-white) !important;
  color: var(--tgup-text) !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: border-color .18s ease, background-color .18s ease !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-upload-button:hover,
.tgds-embedded-in-upload-tab .tgds-clean-upload-button:focus-within,
.tgds-embedded-in-upload-tab .tgds-clean-upload-button.is-dragging {
  border-color: var(--tgup-ink) !important;
  background: var(--tgup-soft) !important;
  transform: none !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-upload-button input {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-upload-icon {
  display: grid !important;
  place-items: center !important;
  margin: 0 0 8px !important;
  color: #8A635A !important;
  line-height: 1 !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-upload-icon svg {
  width: 42px !important;
  height: 42px !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-upload-button strong {
  display: block !important;
  color: #514642 !important;
  font: 700 14px/1.2 Karla, Arial, sans-serif !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-upload-button em {
  display: block !important;
  max-width: 100% !important;
  margin: 7px 0 0 !important;
  color: #8B7E78 !important;
  font: 400 13px/1.35 Karla, Arial, sans-serif !important;
  font-style: normal !important;
  white-space: nowrap !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-file-note {
  min-height: 14px !important;
  margin: 6px 0 0 !important;
  overflow: hidden !important;
  color: var(--tgup-muted) !important;
  font: 500 11px/1.3 Karla, Arial, sans-serif !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-color-row {
  margin-bottom: 18px !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-color-control {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 16px !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-color-control input[type="color"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
  width: 58px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background-color: #000000;
  box-shadow: 0 0 0 1px var(--tgup-border) !important;
  cursor: pointer !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-color-control input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-color-control input[type="color"]::-webkit-color-swatch {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-color-control input[type="color"]::-moz-color-swatch {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
}

.tgds-embedded-in-upload-tab .tgds-align-tools .tgds-mini-tool {
  white-space: nowrap !important;
  font-size: 12px !important;
}

/* Primary actions use the same 46px burgundy gradient button. */
body .tgms .tgds-embedded-in-upload-tab .tgds-clean-mini-action,
body .tgms .tgds-embedded-in-upload-tab .tgds-btn.tgds-add-cart,
body .tgms .tgds-embedded-in-upload-tab .tgds-clean-ai-drawer .tgds-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(90deg, #301618 0%, #5A211B 50%, #301618 100%) !important;
  color: #FFF7EF !important;
  -webkit-text-fill-color: #FFF7EF !important;
  font: 700 16px/1 Karla, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body .tgms .tgds-embedded-in-upload-tab .tgds-clean-mini-action:hover,
body .tgms .tgds-embedded-in-upload-tab .tgds-btn.tgds-add-cart:hover,
body .tgms .tgds-embedded-in-upload-tab .tgds-clean-ai-drawer .tgds-btn:hover {
  transform: none !important;
  box-shadow: none !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-clear {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 4px auto 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--tgup-ink) !important;
  font: 700 15px/1 Karla, Arial, sans-serif !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-clear:hover {
  border: 0 !important;
  background: transparent !important;
  color: var(--tgup-ink) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  transform: none !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-lower-scroll {
  display: grid !important;
  gap: 28px !important;
  min-width: 0 !important;
  margin-top: 28px !important;
}

/* AI help is now a quiet cream inner section, not a separate visual language. */
.tgds-embedded-in-upload-tab .tgds-clean-help-card {
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 10px !important;
  background: var(--tgup-soft) !important;
  box-shadow: none !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-help-title {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-help-title strong {
  margin: 0 !important;
  color: var(--tgup-ink) !important;
  font: 700 16px/1.2 Karla, Arial, sans-serif !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-help-icon {
  display: grid !important;
  place-items: center !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: var(--tgup-ink) !important;
  color: var(--tgup-white) !important;
  font-size: 10px !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-help-card p {
  margin: 0 0 18px !important;
  color: var(--tgup-text) !important;
  font: 400 15px/1.55 Karla, Arial, sans-serif !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-ai-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 18px !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 8px !important;
  background: var(--tgup-white) !important;
  color: var(--tgup-ink) !important;
  font: 700 13px/1 Karla, Arial, sans-serif !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-ai-trigger:hover,
.tgds-embedded-in-upload-tab .tgds-clean-ai-trigger.is-open {
  border-color: var(--tgup-ink) !important;
  background: var(--tgup-white) !important;
  color: var(--tgup-ink) !important;
  transform: none !important;
  box-shadow: none !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-ai-drawer {
  display: grid !important;
  gap: 14px !important;
  margin-top: 18px !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-ai-drawer > * {
  margin: 0 !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-ai-drawer .tgds-ai-prompt {
  min-height: 150px !important;
  padding: 16px !important;
  line-height: 1.55 !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-ai-drawer .tgds-style,
.tgds-embedded-in-upload-tab .tgds-clean-ai-drawer .tgds-font-trigger {
  min-height: 54px !important;
}

body .tgms .tgds-embedded-in-upload-tab .tgds-clean-ai-drawer .tgds-generate-ai {
  height: 52px !important;
  min-height: 52px !important;
}

.tgds-embedded-in-upload-tab .tgds-font-preview {
  display: none !important;
}

/* Preview follows the Generated Artwork card language. */
.tgds-embedded-in-upload-tab .tgds-stage-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 620px !important;
  margin: 0 !important;
  padding: 12px !important;
  overflow: auto !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 10px !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
}

.tgds-embedded-in-upload-tab .tgds-stage {
  position: relative !important;
  width: min(100%, 680px) !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 10px !important;
  background: var(--tgup-white) !important;
  box-shadow: none !important;
}

.tgds-embedded-in-upload-tab .tgds-canvas-actions {
  display: block !important;
  width: 100% !important;
  margin: 28px 0 0 !important;
}

/* Right card pieces and editor controls. */
.tgds-embedded-in-upload-tab .tgds-layer-list p {
  margin: 0 !important;
  color: var(--tgup-muted) !important;
  font: 400 13px/1.45 Karla, Arial, sans-serif !important;
}

.tgds-embedded-in-upload-tab .tgds-layer-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 58px !important;
  margin: 0 0 8px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 10px !important;
  background: var(--tgup-white) !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.tgds-embedded-in-upload-tab .tgds-layer-row.is-active {
  border: 2px solid var(--tgup-ink) !important;
  padding: 9px 11px !important;
  background: var(--tgup-soft) !important;
  box-shadow: none !important;
}

.tgds-embedded-in-upload-tab .tgds-layer-main {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.tgds-embedded-in-upload-tab .tgds-layer-copy {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
}

.tgds-embedded-in-upload-tab .tgds-layer-icon {
  display: grid !important;
  place-items: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 8px !important;
  background: var(--tgup-soft) !important;
  color: var(--tgup-ink) !important;
  font: 700 11px/1 Karla, Arial, sans-serif !important;
}

.tgds-embedded-in-upload-tab .tgds-layer-copy strong {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: var(--tgup-text) !important;
  font: 700 13px/1.25 Karla, Arial, sans-serif !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.tgds-embedded-in-upload-tab .tgds-layer-copy small {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: var(--tgup-muted) !important;
  font: 500 11px/1.2 Karla, Arial, sans-serif !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.tgds-embedded-in-upload-tab .tgds-layer-inline-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

.tgds-embedded-in-upload-tab .tgds-layer-inline-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 8px !important;
  background: var(--tgup-white) !important;
  color: var(--tgup-ink) !important;
  font: 700 15px/1 Karla, Arial, sans-serif !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.tgds-embedded-in-upload-tab .tgds-layer-inline-btn:hover:not(:disabled),
.tgds-embedded-in-upload-tab .tgds-layer-inline-btn:focus-visible {
  border-color: var(--tgup-ink) !important;
  background: var(--tgup-soft) !important;
  color: var(--tgup-ink) !important;
  transform: none !important;
  box-shadow: none !important;
}

.tgds-embedded-in-upload-tab .tgds-layer-row-delete:hover:not(:disabled),
.tgds-embedded-in-upload-tab .tgds-layer-row-delete:focus-visible {
  border-color: #C88F86 !important;
  background: #FFF3F1 !important;
}

.tgds-embedded-in-upload-tab .tgds-layer-inline-btn:disabled {
  opacity: .4 !important;
  cursor: not-allowed !important;
}

.tgds-embedded-in-upload-tab .tgds-selected-info {
  display: flex !important;
  align-items: center !important;
  min-height: 46px !important;
  margin: 0 0 12px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 10px !important;
  background: var(--tgup-soft) !important;
  color: var(--tgup-text) !important;
  font: 500 13px/1.4 Karla, Arial, sans-serif !important;
}

.tgds-embedded-in-upload-tab .tgds-advanced-layer-tools {
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 10px !important;
  background: var(--tgup-white) !important;
}

.tgds-embedded-in-upload-tab .tgds-advanced-layer-tools summary {
  padding: 13px 14px !important;
  color: var(--tgup-ink) !important;
  font: 700 13px/1.2 Karla, Arial, sans-serif !important;
  cursor: pointer !important;
}

.tgds-embedded-in-upload-tab .tgds-advanced-layer-inner {
  padding: 0 14px 14px !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-hidden-controls,
.tgds-embedded-in-upload-tab .tgds-clean-hidden-area-tools {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.tgds-embedded-in-upload-tab .tgds-clean-hidden-controls * {
  pointer-events: none !important;
}

.tgds-embedded-in-upload-tab .tgds-text-controls.is-disabled {
  opacity: .42 !important;
}

.tgds-embedded-in-upload-tab .tgds-text-controls.is-disabled input,
.tgds-embedded-in-upload-tab .tgds-text-controls.is-disabled select {
  cursor: not-allowed !important;
}

@media (min-width: 1200px) {
  /* The centre preview sets the row height. Both side cards match it and scroll. */
  .tgds-embedded-in-upload-tab .tgds-canvas-card {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: stretch !important;
  }

  .tgds-embedded-in-upload-tab .tgds-clean-design-panel,
  .tgds-embedded-in-upload-tab .tgds-layers-panel {
    align-self: stretch !important;
    contain: size !important;
  }

  .tgds-embedded-in-upload-tab .tgds-clean-design-panel {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .tgds-embedded-in-upload-tab .tgds-layers-panel {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }
}

@media (max-width: 1199px) {
  .tgds-embedded-in-upload-tab .tgds-easy-toolbar {
    margin-bottom: 24px !important;
  }

  .tgds-embedded-in-upload-tab .tgds-shell {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .tgds-embedded-in-upload-tab .tgds-clean-design-panel,
  .tgds-embedded-in-upload-tab .tgds-canvas-card,
  .tgds-embedded-in-upload-tab .tgds-layers-panel {
    padding: 24px !important;
  }

  .tgds-embedded-in-upload-tab .tgds-canvas-card {
    order: -1 !important;
  }

  .tgds-embedded-in-upload-tab .tgds-upload-main-heading .tgds-upload-title {
    font-size: 28px !important;
  }
}

@media (max-width: 640px) {
  .tgds-embedded-in-upload-tab .tgds-easy-toolbar {
    align-items: stretch !important;
    flex-direction: column !important;
    margin-bottom: 20px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .tgds-embedded-in-upload-tab .tgds-toolbar-left,
  .tgds-embedded-in-upload-tab .tgds-more-tools,
  .tgds-embedded-in-upload-tab .tgds-more-tools summary {
    width: 100% !important;
  }

  .tgds-embedded-in-upload-tab .tgds-toolbar-left {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .tgds-embedded-in-upload-tab .tgds-shell {
    gap: 20px !important;
  }

  .tgds-embedded-in-upload-tab .tgds-clean-design-panel,
  .tgds-embedded-in-upload-tab .tgds-canvas-card,
  .tgds-embedded-in-upload-tab .tgds-layers-panel {
    padding: 20px !important;
    border-radius: 16px !important;
  }

  .tgds-embedded-in-upload-tab .tgds-upload-main-heading {
    flex-basis: auto !important;
    min-height: 0 !important;
    margin-bottom: 28px !important;
  }

  .tgds-embedded-in-upload-tab .tgds-upload-main-heading .tgds-upload-title {
    font-size: 24px !important;
  }

  .tgds-embedded-in-upload-tab .tgds-upload-main-heading--preview em {
    position: static !important;
    margin-top: 10px !important;
  }

  .tgds-embedded-in-upload-tab .tgds-clean-choice-grid-four,
  .tgds-embedded-in-upload-tab .tgds-clean-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .tgds-embedded-in-upload-tab .tgds-stage-wrap {
    min-height: 0 !important;
    padding: 8px !important;
  }

  body .tgms .tgds-embedded-in-upload-tab .tgds-clean-mini-action,
  body .tgms .tgds-embedded-in-upload-tab .tgds-btn.tgds-add-cart,
  body .tgms .tgds-embedded-in-upload-tab .tgds-clean-ai-drawer .tgds-btn {
    height: 48px !important;
    min-height: 48px !important;
    font-size: 15px !important;
  }
}

/* V3.2.15: compact four-corner resize dots plus one top-centre rotate dot. */
.tgds .tgds-layer-resize-handle,
body .tgds .tgds-layer-resize-handle,
.tgds .tgds-layer.is-selected > span[aria-label="Resize layer"],
body .tgds .tgds-layer.is-selected > span[aria-label="Resize layer"],
.tgds .tgds-layer.is-selected > i[aria-label="Resize layer"],
body .tgds .tgds-layer.is-selected > i[aria-label="Resize layer"],
.tgds .tgds-layer-side-rotate,
body .tgds .tgds-layer-side-rotate {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.tgds .tgds-layer-scale-control,
body .tgds .tgds-layer-scale-control,
.tgds .tgds-layer-rotate-handle,
body .tgds .tgds-layer-rotate-handle {
  position: absolute !important;
  z-index: 10001 !important;
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  background: #7a1608 !important;
  color: transparent !important;
  box-shadow: 0 2px 8px rgba(48,22,24,.28) !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  pointer-events: auto !important;
  touch-action: none !important;
  transform: translate(-50%, -50%) !important;
}

.tgds .tgds-layer-scale-control.is-nw,
body .tgds .tgds-layer-scale-control.is-nw {
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  cursor: nwse-resize !important;
}
.tgds .tgds-layer-scale-control.is-ne,
body .tgds .tgds-layer-scale-control.is-ne {
  left: 100% !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  cursor: nesw-resize !important;
}
.tgds .tgds-layer-scale-control.is-se,
body .tgds .tgds-layer-scale-control.is-se {
  left: 100% !important;
  top: 100% !important;
  right: auto !important;
  bottom: auto !important;
  cursor: nwse-resize !important;
}
.tgds .tgds-layer-scale-control.is-sw,
body .tgds .tgds-layer-scale-control.is-sw {
  left: 0 !important;
  top: 100% !important;
  right: auto !important;
  bottom: auto !important;
  cursor: nesw-resize !important;
}

.tgds .tgds-layer-rotate-handle,
body .tgds .tgds-layer-rotate-handle {
  left: 50% !important;
  top: -38px !important;
  right: auto !important;
  bottom: auto !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  background: #7a1608 !important;
  cursor: grab !important;
}
.tgds .tgds-layer-rotate-handle::before,
body .tgds .tgds-layer-rotate-handle::before {
  content: '' !important;
  position: absolute !important;
  left: 50% !important;
  top: 100% !important;
  width: 2px !important;
  height: 32px !important;
  background: #7a1608 !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
}

.tgds .tgds-layer-scale-control::before,
body .tgds .tgds-layer-scale-control::before,
.tgds .tgds-layer-scale-control::after,
body .tgds .tgds-layer-scale-control::after,
.tgds .tgds-layer-rotate-handle::after,
body .tgds .tgds-layer-rotate-handle::after {
  content: none !important;
  display: none !important;
}

.tgds .tgds-layer-scale-control:hover,
body .tgds .tgds-layer-scale-control:hover,
.tgds .tgds-layer-rotate-handle:hover,
body .tgds .tgds-layer-rotate-handle:hover {
  background: #d59a31 !important;
  transform: translate(-50%, -50%) scale(1.08) !important;
}

@media (max-width: 767px) {
  .tgds .tgds-layer-scale-control,
  body .tgds .tgds-layer-scale-control {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
  }
  .tgds .tgds-layer-rotate-handle,
  body .tgds .tgds-layer-rotate-handle {
    top: -40px !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
  }
}

/* V3.2.16: Curve effect removed until it can be previewed cleanly live. */
.tgds-curved-live,
.tgds-curved-live::after,
.tgds-curve-control,
.tgds-edit-curve {
  display: none !important;
}


/* V3.4.0 print area shape previews */
.tgds-ai-zone.has-mask, .tgds-product-preview-zone.has-mask { background: rgba(213,154,49,.08) !important; }


/* V3.4.7 — create-with-AI describe screen matched to premium second-screen reference */
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar {
  width: min(1500px, calc(100% - 36px)) !important;
  margin: 0 auto 16px !important;
  align-items: center !important;
}
.tgms .tgms-back-to-choice,
body .tgms .tgms-back-to-choice {
  min-height: 48px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  background: rgba(255,251,247,.86) !important;
  box-shadow: 0 8px 24px rgba(75,11,4,.04) !important;
}
.tgms .tgms-workspace-title,
body .tgms .tgms-workspace-title {
  font-size: 17px !important;
  font-weight: 900 !important;
}
.tgms .tgms-clean-journey,
body .tgms .tgms-clean-journey {
  width: min(790px, calc(100% - 24px)) !important;
  margin: 0 auto 22px !important;
  padding: 8px !important;
  border-radius: 22px !important;
  background: rgba(255,251,248,.92) !important;
  border: 1px solid rgba(113,28,11,.12) !important;
  box-shadow: 0 16px 34px rgba(75,11,4,.05) !important;
}
.tgms .tgms-clean-step,
body .tgms .tgms-clean-step {
  min-height: 50px !important;
  padding: 8px 16px !important;
  border-radius: 16px !important;
  gap: 10px !important;
}
.tgms .tgms-clean-step span,
body .tgms .tgms-clean-step span {
  width: 38px !important;
  height: 38px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}
.tgms .tgms-clean-step strong,
body .tgms .tgms-clean-step strong {
  font-size: 15px !important;
  font-weight: 900 !important;
}
.tgms .tgms-clean-step.is-active,
body .tgms .tgms-clean-step.is-active {
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(75,11,4,.08) !important;
}
.tgms .tgms-clean-step.is-active span,
body .tgms .tgms-clean-step.is-active span {
  background: linear-gradient(180deg, #5a211b 0%, #301618 100%) !important;
}
.tgms .tgms-clean-step.is-complete span,
body .tgms .tgms-clean-step.is-complete span {
  background: #fffaf7 !important;
}
.tgms .tgms-alert,
body .tgms .tgms-alert {
  width: min(1120px, calc(100% - 32px)) !important;
}
.tgms .tgms-left,
body .tgms .tgms-left {
  width: min(1120px, calc(100% - 32px)) !important;
  max-width: 1120px !important;
}
.tgms .tgms-wizard-screen--describe,
body .tgms .tgms-wizard-screen--describe {
  width: 100% !important;
  padding: 40px 42px 28px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  background: rgba(255,253,251,.94) !important;
  box-shadow: 0 24px 50px rgba(75,11,4,.06) !important;
}
.tgms .tgms-wizard-screen--describe .tgms-wizard-screen-kicker,
body .tgms .tgms-wizard-screen--describe .tgms-wizard-screen-kicker {
  min-height: 36px !important;
  padding: 0 16px !important;
  margin: 0 0 16px !important;
  border-radius: 999px !important;
  background: #fff2ea !important;
  color: #8f735d !important;
  font-size: 12px !important;
  letter-spacing: .12em !important;
  font-weight: 900 !important;
}
.tgms .tgms-wizard-screen--describe h3,
body .tgms .tgms-wizard-screen--describe h3 {
  margin: 0 0 14px !important;
  color: #301618 !important;
  font-size: 34px !important;
  line-height: 1.08 !important;
  letter-spacing: -.03em !important;
}
.tgms .tgms-wizard-screen--describe .tgms-wizard-intro,
body .tgms .tgms-wizard-screen--describe .tgms-wizard-intro,
.tgms .tgms-wizard-screen--describe h3 + p,
body .tgms .tgms-wizard-screen--describe h3 + p {
  margin: 0 0 18px !important;
  color: #776159 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}
.tgms .tgms-prompt,
body .tgms .tgms-prompt {
  min-height: 220px !important;
  padding: 20px 22px !important;
  border-radius: 18px !important;
  border: 1.5px solid rgba(121,22,12,.14) !important;
  background: #fff !important;
  color: #2f1a15 !important;
  font-size: 18px !important;
  line-height: 1.55 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6) !important;
}
.tgms .tgms-count,
body .tgms .tgms-count {
  margin-top: 8px !important;
  text-align: right !important;
  color: #8c7468 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}
.tgms .tgms-prompt-simple,
body .tgms .tgms-prompt-simple {
  margin-top: 14px !important;
  padding: 14px 20px 18px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(121,22,12,.10) !important;
  background: #fdf9f6 !important;
}
.tgms .tgms-simple-head,
body .tgms .tgms-simple-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}
.tgms .tgms-simple-head strong,
body .tgms .tgms-simple-head strong {
  color: #2f1a15 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}
.tgms .tgms-simple-head span,
body .tgms .tgms-simple-head span {
  color: #866f63 !important;
  font-size: 13px !important;
}
.tgms .tgms-example-buttons,
body .tgms .tgms-example-buttons {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 14px !important;
}
.tgms .tgms-example-buttons button,
body .tgms .tgms-example-buttons button {
  min-height: 48px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(121,22,12,.14) !important;
  background: #fff !important;
  color: #301618 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 10px rgba(75,11,4,.03) !important;
}
.tgms .tgms-example-buttons button:hover,
body .tgms .tgms-example-buttons button:hover {
  background: #fff6ef !important;
  border-color: #301618 !important;
}
.tgms .tgms-prompt-rule,
body .tgms .tgms-prompt-rule,
.tgms .tgms-prompt-tip,
body .tgms .tgms-prompt-tip {
  display: none !important;
}
.tgms .tgms-wizard-screen--describe .tgms-wizard-nav,
body .tgms .tgms-wizard-screen--describe .tgms-wizard-nav {
  margin-top: 24px !important;
  padding-top: 22px !important;
  border-top: 1px solid rgba(75,11,4,.08) !important;
}
.tgms .tgms-wizard-screen--describe .tgms-wizard-nav--end,
body .tgms .tgms-wizard-screen--describe .tgms-wizard-nav--end {
  justify-content: flex-end !important;
}
.tgms .tgms-wizard-screen--describe .tgms-wizard-next,
body .tgms .tgms-wizard-screen--describe .tgms-wizard-next {
  min-width: 290px !important;
  min-height: 56px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #5a211b 0%, #301618 100%) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 28px rgba(122,22,12,.20) !important;
}
.tgms .tgms-wizard-screen--describe .tgms-wizard-next:not(:disabled):hover,
body .tgms .tgms-wizard-screen--describe .tgms-wizard-next:not(:disabled):hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 32px rgba(122,22,12,.24) !important;
}
@media (max-width: 980px) {
  .tgms .tgms-left, body .tgms .tgms-left,
  .tgms .tgms-alert, body .tgms .tgms-alert,
  .tgms .tgms-workspace-topbar, body .tgms .tgms-workspace-topbar {
    width: min(100%, calc(100% - 24px)) !important;
  }
  .tgms .tgms-wizard-screen--describe, body .tgms .tgms-wizard-screen--describe {
    padding: 24px !important;
    border-radius: 22px !important;
  }
  .tgms .tgms-wizard-screen--describe h3, body .tgms .tgms-wizard-screen--describe h3 {
    font-size: 28px !important;
  }
  .tgms .tgms-prompt, body .tgms .tgms-prompt {
    min-height: 180px !important;
    font-size: 16px !important;
  }
  .tgms .tgms-example-buttons, body .tgms .tgms-example-buttons {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}
@media (max-width: 640px) {
  .tgms .tgms-workspace-topbar, body .tgms .tgms-workspace-topbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
  }
  .tgms .tgms-workspace-title, body .tgms .tgms-workspace-title {
    text-align: left !important;
  }
  .tgms .tgms-clean-journey, body .tgms .tgms-clean-journey {
    width: 100% !important;
  }
  .tgms .tgms-example-buttons, body .tgms .tgms-example-buttons {
    grid-template-columns: 1fr !important;
  }
  .tgms .tgms-wizard-screen--describe .tgms-wizard-next,
  body .tgms .tgms-wizard-screen--describe .tgms-wizard-next {
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* V3.4.8 — master centering pass for all AI screens + first screen aligns with site header width */
.tgms,
body .tgms {
  --tgms-stage-width: min(1480px, calc(100vw - 96px)) !important;
  --tgms-inner-width: min(1120px, calc(100vw - 96px)) !important;
}

/* Workspace + wizard screens */
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar,
.tgms .tgms-clean-journey,
body .tgms .tgms-clean-journey,
.tgms .tgms-alert,
body .tgms .tgms-alert,
.tgms .tgms-left,
body .tgms .tgms-left,
.tgms .tgms-wizard-screen--review,
body .tgms .tgms-wizard-screen--review {
  margin-left: auto !important;
  margin-right: auto !important;
}
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar {
  width: var(--tgms-stage-width) !important;
  max-width: var(--tgms-stage-width) !important;
}
.tgms .tgms-clean-journey,
body .tgms .tgms-clean-journey,
.tgms .tgms-alert,
body .tgms .tgms-alert,
.tgms .tgms-left,
body .tgms .tgms-left {
  width: var(--tgms-inner-width) !important;
  max-width: var(--tgms-inner-width) !important;
}

/* Keep review screen centered on same content axis */
.tgms .tgms-wizard-screen--review,
body .tgms .tgms-wizard-screen--review {
  width: var(--tgms-inner-width) !important;
  max-width: var(--tgms-inner-width) !important;
}

/* Mobile */
@media (max-width: 980px) {
  .tgms, body .tgms {
    --tgms-stage-width: calc(100vw - 32px) !important;
    --tgms-inner-width: calc(100vw - 32px) !important;
  }
}


/* V3.4.9 — premium redesign for Step 2 / Style screen */
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style {
  display: grid !important;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, .82fr) !important;
  gap: 18px 18px !important;
  width: min(1220px, 100%) !important;
  max-width: 1220px !important;
  padding: 34px 34px 28px !important;
  border-radius: 28px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
.tgms .tgms-wizard-screen--style > h3,
body .tgms .tgms-wizard-screen--style > h3,
.tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro {
  grid-column: 1 / -1 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-height: 34px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: #fcf1e5 !important;
  color: #9b6c4f !important;
  font-size: 14px !important;
  letter-spacing: .08em !important;
  font-weight: 800 !important;
  margin: 0 0 2px !important;
}
.tgms .tgms-wizard-screen--style > h3,
body .tgms .tgms-wizard-screen--style > h3 {
  margin: 0 !important;
  color: #301618 !important;
  font-size: clamp(36px, 4vw, 58px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.03em !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro {
  margin: -4px 0 8px !important;
  color: #7c695f !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle {
  grid-column: 2 !important;
  margin: 0 0 -8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #301618 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle span,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle span {
  color: #8e7c72 !important;
  font-weight: 600 !important;
}

/* Left main style chooser card */
.tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type {
  grid-column: 1 !important;
  grid-row: 4 / span 4 !important;
  margin: 0 !important;
  padding: 18px 18px 16px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  border-radius: 24px !important;
  background: #fffdfb !important;
  box-shadow: 0 10px 24px rgba(75,11,4,.035) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:first-of-type > label,
body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type > label {
  margin-bottom: 4px !important;
  color: #231815 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:first-of-type .tgms-style-intro,
body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type .tgms-style-intro {
  margin: 0 0 14px !important;
  color: #8a756a !important;
  font-size: 13px !important;
}
.tgms .tgms-style-cards,
body .tgms .tgms-style-cards {
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 18px !important;
}
.tgms .tgms-style-card,
body .tgms .tgms-style-card {
  min-height: 220px !important;
  padding: 12px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(75,11,4,.035) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
.tgms .tgms-style-card:hover,
body .tgms .tgms-style-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 24px rgba(75,11,4,.075) !important;
  border-color: rgba(122,22,12,.25) !important;
}
.tgms .tgms-style-card.is-active,
body .tgms .tgms-style-card.is-active {
  border-color: #301618 !important;
  background: #fffaf6 !important;
  box-shadow: 0 0 0 2px rgba(122,22,12,.07), 0 14px 26px rgba(75,11,4,.08) !important;
}
.tgms .tgms-style-thumb,
body .tgms .tgms-style-thumb {
  height: 102px !important;
  padding: 12px !important;
  border-radius: 14px !important;
}
.tgms .tgms-style-word,
body .tgms .tgms-style-word { font-size: 22px !important; }
.tgms .tgms-style-thumb--cute .tgms-style-word,
body .tgms .tgms-style-thumb--cute .tgms-style-word,
.tgms .tgms-style-thumb--funny .tgms-style-word,
body .tgms .tgms-style-thumb--funny .tgms-style-word,
.tgms .tgms-style-thumb--floral .tgms-style-word,
body .tgms .tgms-style-thumb--floral .tgms-style-word { font-size: 26px !important; }
.tgms .tgms-style-arabic,
body .tgms .tgms-style-arabic { font-size: 26px !important; }
.tgms .tgms-style-meta,
body .tgms .tgms-style-meta {
  gap: 4px !important;
  padding: 12px 4px 3px !important;
}
.tgms .tgms-style-meta strong,
body .tgms .tgms-style-meta strong {
  color: #301618 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
.tgms .tgms-style-meta em,
body .tgms .tgms-style-meta em {
  color: #6e5d56 !important;
  font-size: 12px !important;
}

/* Right sidebar cards */
.tgms .tgms-wizard-screen--style > .tgms-upload-box,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box,
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3) {
  grid-column: 2 !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  border-radius: 22px !important;
  background: #fffdfb !important;
  box-shadow: 0 8px 20px rgba(75,11,4,.03) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 180px !important;
  text-align: center !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 18px !important;
  margin: 0 0 4px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box strong,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box strong {
  font-size: 18px !important;
  color: #301618 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box em,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box em {
  font-size: 14px !important;
  line-height: 1.45 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box small,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box small {
  font-size: 12px !important;
  color: #9a8478 !important;
  white-space: normal !important;
}
.tgms .tgms-reference-result,
body .tgms .tgms-reference-result {
  grid-column: 2 !important;
  margin-top: -6px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) > label,
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) > label,
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3) > label,
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3) > label {
  margin-bottom: 12px !important;
  color: #231815 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
.tgms .tgms-wizard-screen--style select,
body .tgms .tgms-wizard-screen--style select {
  min-height: 54px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
}
.tgms .tgms-color-pref,
body .tgms .tgms-color-pref {
  background: #fffdfb !important;
}
.tgms .tgms-color-pref .tgms-check-row,
body .tgms .tgms-color-pref .tgms-check-row {
  margin-bottom: 10px !important;
}
.tgms .tgms-color-pref .tgms-check-row span,
body .tgms .tgms-color-pref .tgms-check-row span {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #301618 !important;
}
.tgms .tgms-helper,
body .tgms .tgms-helper {
  margin: 0 0 14px !important;
  color: #8a756a !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
.tgms .tgms-mini-label,
body .tgms .tgms-mini-label {
  margin-bottom: 8px !important;
  color: #231815 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.tgms .tgms-color-row,
body .tgms .tgms-color-row {
  gap: 10px !important;
  margin-bottom: 14px !important;
}
.tgms .tgms-color,
body .tgms .tgms-color {
  width: 56px !important;
  min-width: 56px !important;
  height: 42px !important;
  border-radius: 12px !important;
}
.tgms .tgms-color-hex,
body .tgms .tgms-color-hex {
  min-height: 42px !important;
  border-radius: 12px !important;
}

/* Bottom action row */
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
  grid-column: 1 / -1 !important;
  margin-top: 6px !important;
  padding-top: 18px !important;
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, 420px) !important;
  align-items: center !important;
  gap: 16px !important;
  border-top: 1px solid rgba(75,11,4,.08) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary {
  justify-self: start !important;
  min-width: 190px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary {
  justify-self: end !important;
  width: 100% !important;
  min-height: 58px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  border-radius: 16px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-note,
body .tgms .tgms-wizard-screen--style > .tgms-note {
  grid-column: 1 / -1 !important;
  margin: -4px 0 0 !important;
  text-align: center !important;
  color: #8e7c72 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

@media (max-width: 1180px) {
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style {
    grid-template-columns: 1fr !important;
    width: min(960px, 100%) !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
  .tgms .tgms-wizard-screen--style > .tgms-upload-box,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box,
  .tgms .tgms-reference-result,
  body .tgms .tgms-reference-result,
  .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
  body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
  .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
  body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
  .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
  body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3) {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .tgms .tgms-style-cards,
  body .tgms .tgms-style-cards {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}
@media (max-width: 760px) {
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style {
    padding: 22px 18px 20px !important;
    border-radius: 24px !important;
  }
  .tgms .tgms-wizard-screen--style > h3,
  body .tgms .tgms-wizard-screen--style > h3 {
    font-size: 38px !important;
  }
  .tgms .tgms-style-cards,
  body .tgms .tgms-style-cards {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .tgms .tgms-style-card,
  body .tgms .tgms-style-card {
    min-height: 188px !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
    grid-template-columns: 1fr !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary {
    justify-self: stretch !important;
    min-width: 0 !important;
  }
}


/* V3.5.0 — premium Style screen + brand palette. Outer layout lives in tgfe-clean.css. */
.tgms,
body .tgms {
  --tg-maroon: #301618;
  --tg-maroon-dark: #301618;
  --tg-gold: #d49a31;
  --tg-cream: #fff7ef;
  --tg-cream-soft: #f8eee7;
  --tg-white: #ffffff;
  --tg-muted: #806c62;
  box-sizing: border-box !important;
}
.tgms *, body .tgms * { box-sizing: border-box !important; }

/* Every visible screen uses the same center axis as the WooCommerce/header container. */
.tgms .tgms-entry-mini-nav,
body .tgms .tgms-entry-mini-nav,
.tgms .tgms-entry-choice,
body .tgms .tgms-entry-choice,
.tgms .tgms-workspace-shell,
body .tgms .tgms-workspace-shell,
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar,
.tgms .tgms-clean-journey,
body .tgms .tgms-clean-journey,
.tgms .tgms-alert,
body .tgms .tgms-alert,
.tgms .tgms-wizard-screen--describe,
body .tgms .tgms-wizard-screen--describe,
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style,
.tgms .tgms-wizard-screen--review,
body .tgms .tgms-wizard-screen--review {
  margin-left: auto !important;
  margin-right: auto !important;
}
.tgms .tgms-workspace-shell,
body .tgms .tgms-workspace-shell,
.tgms .tgms-panel[data-panel="ai"],
body .tgms .tgms-panel[data-panel="ai"],
.tgms .tgms-layout,
body .tgms .tgms-layout {
  width: 100% !important;
  max-width: 100% !important;
}
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar {
  width: min(1500px, 100%) !important;
  max-width: 1500px !important;
}
.tgms .tgms-alert,
body .tgms .tgms-alert,
.tgms .tgms-wizard-screen--describe,
body .tgms .tgms-wizard-screen--describe {
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
}
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style,
.tgms .tgms-wizard-screen--review,
body .tgms .tgms-wizard-screen--review {
  width: min(1460px, 100%) !important;
  max-width: 1460px !important;
}

/* Brand-only UI palette across the choice and AI wizard screens. */
.tgms:not(.is-workspace-open),
body .tgms:not(.is-workspace-open),
.tgms.is-workspace-open,
body .tgms.is-workspace-open {
  color: var(--tg-maroon-dark) !important;
}
.tgms .tgms-card,
body .tgms .tgms-card,
.tgms .tgms-preview-card,
body .tgms .tgms-preview-card {
  background: var(--tg-white) !important;
  border-color: rgba(75,11,4,.12) !important;
}
.tgms h2, body .tgms h2,
.tgms h3, body .tgms h3,
.tgms h4, body .tgms h4,
.tgms strong, body .tgms strong {
  color: var(--tg-maroon-dark) !important;
}
.tgms .tgms-primary,
body .tgms .tgms-primary {
  background: linear-gradient(135deg, var(--tg-maroon-dark), var(--tg-maroon)) !important;
  border-color: var(--tg-gold) !important;
  color: var(--tg-white) !important;
}
.tgms .tgms-primary strong,
body .tgms .tgms-primary strong {
  color: var(--tg-white) !important;
}
.tgms .tgms-wizard-screen-kicker,
body .tgms .tgms-wizard-screen-kicker {
  background: var(--tg-cream) !important;
  color: var(--tg-maroon) !important;
}
.tgms .tgms-back-to-choice,
body .tgms .tgms-back-to-choice,
.tgms .tgms-wizard-secondary,
body .tgms .tgms-wizard-secondary {
  background: var(--tg-white) !important;
  border-color: rgba(75,11,4,.14) !important;
  color: var(--tg-maroon-dark) !important;
}

/* Header row: left action, perfectly centered progress, right mode title. */
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(190px,1fr) minmax(580px,790px) minmax(190px,1fr) !important;
  align-items: center !important;
  min-height: 60px !important;
  padding: 0 !important;
  margin-bottom: 4px !important;
}
.tgms .tgms-back-to-choice,
body .tgms .tgms-back-to-choice {
  position: static !important;
  transform: none !important;
  justify-self: start !important;
}
.tgms .tgms-workspace-title,
body .tgms .tgms-workspace-title {
  grid-column: 3 !important;
  justify-self: end !important;
  width: auto !important;
  margin: 0 !important;
  color: var(--tg-maroon-dark) !important;
  text-align: right !important;
}
.tgms .tgms-clean-journey,
body .tgms .tgms-clean-journey {
  width: min(640px, 100%) !important;
  max-width: 640px !important;
  margin: -55px auto 24px !important;
  background: rgba(255,247,239,.88) !important;
  border-color: rgba(75,11,4,.10) !important;
}
.tgms .tgms-clean-step.is-active,
body .tgms .tgms-clean-step.is-active {
  background: var(--tg-white) !important;
}
.tgms .tgms-clean-step.is-active span,
body .tgms .tgms-clean-step.is-active span {
  background: var(--tg-maroon) !important;
  border-color: var(--tg-maroon) !important;
  color: var(--tg-white) !important;
}
.tgms .tgms-clean-step.is-complete span,
body .tgms .tgms-clean-step.is-complete span {
  background: var(--tg-white) !important;
  border-color: var(--tg-maroon) !important;
  color: var(--tg-maroon) !important;
}

/* Exact Step 2 structure from the approved reference. */
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style {
  display: grid !important;
  grid-template-columns: minmax(0, 1.82fr) minmax(390px, 1fr) !important;
  grid-template-rows: auto auto auto auto auto auto auto !important;
  column-gap: 18px !important;
  row-gap: 14px !important;
  padding: 28px 34px 26px !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  box-shadow: 0 20px 52px rgba(75,11,4,.055) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  width: fit-content !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  font-size: 11px !important;
  letter-spacing: .09em !important;
}
.tgms .tgms-wizard-screen--style > h3,
body .tgms .tgms-wizard-screen--style > h3 {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  margin: 0 !important;
  font-size: clamp(35px,3.3vw,52px) !important;
  line-height: 1.04 !important;
  color: var(--tg-maroon-dark) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  margin: -4px 0 4px !important;
  font-size: 14px !important;
  color: var(--tg-muted) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle {
  display: none !important;
}

/* Left: style chooser. */
.tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type {
  grid-column: 1 !important;
  grid-row: 4 / span 3 !important;
  align-self: stretch !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(75,11,4,.11) !important;
  border-radius: 20px !important;
  background: var(--tg-white) !important;
  box-shadow: none !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:first-of-type > label,
body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type > label {
  margin: 0 0 10px !important;
  color: var(--tg-maroon-dark) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-intro,
body .tgms .tgms-wizard-screen--style .tgms-style-intro {
  display: none !important;
}
.tgms .tgms-style-cards,
body .tgms .tgms-style-cards {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 16px 12px !important;
}
.tgms .tgms-style-card,
body .tgms .tgms-style-card {
  min-height: 162px !important;
  padding: 9px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  background: var(--tg-white) !important;
  box-shadow: none !important;
}
.tgms .tgms-style-card.is-active,
body .tgms .tgms-style-card.is-active {
  border-color: var(--tg-maroon) !important;
  box-shadow: 0 0 0 2px rgba(122,22,12,.08) !important;
  background: var(--tg-cream) !important;
}
.tgms .tgms-style-thumb,
body .tgms .tgms-style-thumb {
  height: 94px !important;
  padding: 10px !important;
  border-radius: 12px !important;
  border-color: rgba(75,11,4,.07) !important;
}
.tgms .tgms-style-meta,
body .tgms .tgms-style-meta {
  padding: 9px 3px 2px !important;
  gap: 2px !important;
}
.tgms .tgms-style-meta strong,
body .tgms .tgms-style-meta strong {
  color: var(--tg-maroon-dark) !important;
  font-size: 13px !important;
}
.tgms .tgms-style-meta em,
body .tgms .tgms-style-meta em {
  color: var(--tg-muted) !important;
  font-size: 10px !important;
}

/* Recolor the sample thumbnails to Think Gifts colors only. */
.tgms .tgms-style-thumb--premium::before,
body .tgms .tgms-style-thumb--premium::before { background: linear-gradient(135deg,#fff7ef,#ead5b2,#d49a31) !important; }
.tgms .tgms-style-thumb--minimal::before,
body .tgms .tgms-style-thumb--minimal::before { background: linear-gradient(135deg,#ffffff,#fff7ef,#f8eee7) !important; }
.tgms .tgms-style-thumb--cute::before,
body .tgms .tgms-style-thumb--cute::before { background: linear-gradient(135deg,#fff7ef,#f8eee7,#ead5b2) !important; }
.tgms .tgms-style-thumb--funny::before,
body .tgms .tgms-style-thumb--funny::before { background: linear-gradient(135deg,#fff7ef,#ead5b2,#d49a31) !important; }
.tgms .tgms-style-thumb--floral::before,
body .tgms .tgms-style-thumb--floral::before { background: linear-gradient(135deg,#ffffff,#fff7ef,#ead5b2) !important; }
.tgms .tgms-style-thumb--luxury::before,
body .tgms .tgms-style-thumb--luxury::before { background: linear-gradient(135deg,#301618,#301618,#d49a31) !important; }
.tgms .tgms-style-thumb--corporate::before,
body .tgms .tgms-style-thumb--corporate::before { background: linear-gradient(135deg,#ffffff,#fff7ef,#f8eee7) !important; }
.tgms .tgms-style-thumb--arabic::before,
body .tgms .tgms-style-thumb--arabic::before { background: linear-gradient(135deg,#fff7ef,#ead5b2,#d49a31) !important; }
.tgms .tgms-style-thumb--cute .tgms-style-word,
body .tgms .tgms-style-thumb--cute .tgms-style-word,
.tgms .tgms-style-thumb--funny .tgms-style-word,
body .tgms .tgms-style-thumb--funny .tgms-style-word,
.tgms .tgms-style-thumb--floral .tgms-style-word,
body .tgms .tgms-style-thumb--floral .tgms-style-word,
.tgms .tgms-style-thumb--corporate .tgms-style-word,
body .tgms .tgms-style-thumb--corporate .tgms-style-word,
.tgms .tgms-style-arabic,
body .tgms .tgms-style-arabic,
.tgms .tgms-style-icon,
body .tgms .tgms-style-icon,
.tgms .tgms-style-flower,
body .tgms .tgms-style-flower {
  color: var(--tg-maroon) !important;
}

/* Right: reference, font and colour cards. */
.tgms .tgms-wizard-screen--style > .tgms-upload-box,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box {
  grid-column: 2 !important;
  grid-row: 4 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 132px !important;
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  border-radius: 18px !important;
  background: var(--tg-white) !important;
  text-align: center !important;
  box-shadow: none !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon {
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  color: var(--tg-maroon) !important;
  background: var(--tg-cream) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box strong,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box strong {
  color: var(--tg-maroon) !important;
  font-size: 15px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box em,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box em {
  color: var(--tg-muted) !important;
  font-size: 11px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box small,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box small { display: none !important; }
.tgms .tgms-reference-result,
body .tgms .tgms-reference-result {
  grid-column: 2 !important;
  grid-row: 4 !important;
  align-self: end !important;
  margin: 0 12px 8px !important;
}
.tgms .tgms-reference-result:empty,
body .tgms .tgms-reference-result:empty { display: none !important; }
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) {
  grid-column: 2 !important;
  grid-row: 5 !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  border-radius: 18px !important;
  background: var(--tg-white) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3) {
  grid-column: 2 !important;
  grid-row: 6 !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  border-radius: 18px !important;
  background: var(--tg-white) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) > label,
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) > label {
  margin-bottom: 8px !important;
  font-size: 12px !important;
}
.tgms .tgms-wizard-screen--style select,
body .tgms .tgms-wizard-screen--style select,
.tgms .tgms-color-hex,
body .tgms .tgms-color-hex {
  min-height: 44px !important;
  border-radius: 11px !important;
  border-color: rgba(75,11,4,.12) !important;
  background-color: var(--tg-white) !important;
  color: var(--tg-maroon-dark) !important;
  font-size: 13px !important;
}
.tgms .tgms-color-pref,
body .tgms .tgms-color-pref { background: var(--tg-white) !important; }
.tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked,
body .tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked {
  background: var(--tg-maroon) !important;
  border-color: var(--tg-maroon) !important;
}
.tgms .tgms-color-pref .tgms-check-row span,
body .tgms .tgms-color-pref .tgms-check-row span {
  color: var(--tg-maroon-dark) !important;
  font-size: 13px !important;
}
.tgms .tgms-helper,
body .tgms .tgms-helper {
  margin: 0 0 12px !important;
  color: var(--tg-muted) !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
}
.tgms .tgms-mini-label,
body .tgms .tgms-mini-label {
  color: var(--tg-maroon-dark) !important;
  font-size: 11px !important;
}
.tgms .tgms-color,
body .tgms .tgms-color {
  width: 44px !important;
  min-width: 44px !important;
  height: 40px !important;
  border-radius: 10px !important;
}

/* Bottom buttons exactly across the two columns. */
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
  grid-column: 1 / -1 !important;
  grid-row: 7 !important;
  display: grid !important;
  grid-template-columns: minmax(280px,1fr) minmax(390px,1fr) !important;
  gap: 18px !important;
  margin: 8px 0 0 !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid rgba(75,11,4,.08) !important;
}
.tgms .tgms-wizard-screen--style .tgms-wizard-secondary,
body .tgms .tgms-wizard-screen--style .tgms-wizard-secondary,
.tgms .tgms-wizard-screen--style .tgms-generate,
body .tgms .tgms-wizard-screen--style .tgms-generate {
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  border-radius: 13px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
.tgms .tgms-wizard-screen--style .tgms-wizard-secondary,
body .tgms .tgms-wizard-screen--style .tgms-wizard-secondary {
  background: var(--tg-white) !important;
  border-color: rgba(75,11,4,.12) !important;
}
.tgms .tgms-wizard-screen--style .tgms-generate,
body .tgms .tgms-wizard-screen--style .tgms-generate {
  background: linear-gradient(135deg,var(--tg-maroon-dark),var(--tg-maroon)) !important;
  border-color: var(--tg-maroon) !important;
  color: var(--tg-white) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-note,
body .tgms .tgms-wizard-screen--style > .tgms-note {
  grid-column: 1 / -1 !important;
  margin: -6px 0 0 !important;
  text-align: center !important;
  color: var(--tg-muted) !important;
  font-size: 10px !important;
}

/* Responsive: preserve centering and hierarchy. */
@media (max-width: 1180px) {
  .tgms .tgms-workspace-topbar,
  body .tgms .tgms-workspace-topbar {
    grid-template-columns: 1fr auto 1fr !important;
  }
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style {
    grid-template-columns: 1fr !important;
    width: min(900px,100%) !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
  .tgms .tgms-wizard-screen--style > h3,
  body .tgms .tgms-wizard-screen--style > h3,
  .tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
  .tgms .tgms-wizard-screen--style > .tgms-upload-box,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box,
  .tgms .tgms-reference-result,
  body .tgms .tgms-reference-result,
  .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
  body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
  .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
  body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
  .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
  body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  .tgms .tgms-wizard-screen--style > .tgms-note,
  body .tgms .tgms-wizard-screen--style > .tgms-note {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .tgms .tgms-style-cards,
  body .tgms .tgms-style-cards { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 760px) {
  .tgms, body .tgms { width: 100% !important; }
  .tgms .tgms-workspace-topbar,
  body .tgms .tgms-workspace-topbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 0 12px !important;
  }
  .tgms .tgms-workspace-title,
  body .tgms .tgms-workspace-title {
    grid-column: 1 !important;
    justify-self: start !important;
    text-align: left !important;
  }
  .tgms .tgms-clean-journey,
  body .tgms .tgms-clean-journey {
    width: calc(100% - 24px) !important;
    margin: 8px auto 18px !important;
  }
  .tgms .tgms-wizard-screen--describe,
  body .tgms .tgms-wizard-screen--describe,
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style,
  .tgms .tgms-wizard-screen--review,
  body .tgms .tgms-wizard-screen--review {
    width: calc(100% - 24px) !important;
  }
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style { padding: 22px 16px !important; }
  .tgms .tgms-style-cards,
  body .tgms .tgms-style-cards { grid-template-columns: 1fr !important; }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav { grid-template-columns: 1fr !important; }
}


/* V3.5.1 — brand variables only. Outer width and page alignment are now
   owned by the unified experience stylesheet, so this file no longer
   creates a competing viewport breakout or adds horizontal padding. */
.tgms,
body .tgms {
  --tg-maroon: #301618 !important;
  --tg-maroon-dark: #301618 !important;
  --tg-gold: #d49a31 !important;
  --tg-cream: #fff7ef !important;
  --tg-cream-soft: #f8eee7 !important;
  --tg-white: #ffffff !important;
  --tg-muted: #806c62 !important;
  box-sizing: border-box !important;
}
.tgms *, body .tgms * { box-sizing: border-box !important; }

/* One shared center axis for the complete flow. */
.tgms .tgms-entry-mini-nav,
body .tgms .tgms-entry-mini-nav,
.tgms .tgms-entry-choice,
body .tgms .tgms-entry-choice,
.tgms .tgms-workspace-shell,
body .tgms .tgms-workspace-shell,
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar,
.tgms .tgms-alert,
body .tgms .tgms-alert,
.tgms .tgms-wizard-screen--describe,
body .tgms .tgms-wizard-screen--describe,
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style,
.tgms .tgms-wizard-screen--review,
body .tgms .tgms-wizard-screen--review {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.tgms .tgms-entry-mini-nav,
body .tgms .tgms-entry-mini-nav,
.tgms .tgms-entry-choice,
body .tgms .tgms-entry-choice,
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar,
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style,
.tgms .tgms-wizard-screen--review,
body .tgms .tgms-wizard-screen--review {
  width: min(1440px, 100%) !important;
  max-width: 1440px !important;
}
.tgms .tgms-alert,
body .tgms .tgms-alert,
.tgms .tgms-wizard-screen--describe,
body .tgms .tgms-wizard-screen--describe {
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
}
.tgms .tgms-workspace-shell,
body .tgms .tgms-workspace-shell,
.tgms .tgms-panel[data-panel="ai"],
body .tgms .tgms-panel[data-panel="ai"],
.tgms .tgms-layout,
body .tgms .tgms-layout {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Keep top controls centered against the same 1440px site/header width. */
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar {
  display: grid !important;
  grid-template-columns: minmax(180px,1fr) minmax(520px,640px) minmax(180px,1fr) !important;
  align-items: center !important;
  min-height: 66px !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}
.tgms .tgms-back-to-choice,
body .tgms .tgms-back-to-choice {
  position: static !important;
  transform: none !important;
  justify-self: start !important;
}
.tgms .tgms-workspace-title,
body .tgms .tgms-workspace-title {
  grid-column: 3 !important;
  justify-self: end !important;
  margin: 0 !important;
  text-align: right !important;
  color: var(--tg-maroon-dark) !important;
}
.tgms .tgms-clean-journey,
body .tgms .tgms-clean-journey {
  position: relative !important;
  left: auto !important;
  transform: none !important;
  width: min(640px, 100%) !important;
  max-width: 640px !important;
  margin: -57px auto 25px !important;
}

/* Reset inherited/old positioning on all direct Style-screen children. */
.tgms .tgms-wizard-screen--style > *,
body .tgms .tgms-wizard-screen--style > * {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  max-width: none !important;
}

/* Exact desktop structure from the supplied screenshot. */
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style {
  display: grid !important;
  grid-template-columns: minmax(0, 1.86fr) minmax(300px, .94fr) !important;
  grid-template-rows: auto auto auto minmax(138px,auto) auto auto auto !important;
  column-gap: 18px !important;
  row-gap: 13px !important;
  padding: 28px 34px 27px !important;
  border-radius: 25px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 22px 54px rgba(75,11,4,.06) !important;
  overflow: visible !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  display: inline-flex !important;
  width: fit-content !important;
  min-height: 29px !important;
  margin: 0 0 1px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  background: var(--tg-cream) !important;
  color: var(--tg-maroon) !important;
  font-size: 11px !important;
  line-height: 29px !important;
  letter-spacing: .09em !important;
  font-weight: 900 !important;
}
.tgms .tgms-wizard-screen--style > h3,
body .tgms .tgms-wizard-screen--style > h3 {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--tg-maroon-dark) !important;
  font-size: clamp(36px, 3.1vw, 50px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
  overflow: visible !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  color: var(--tg-muted) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle {
  display: none !important;
}

/* LEFT — two rows of four style cards. */
.tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type {
  grid-column: 1 !important;
  grid-row: 4 / span 3 !important;
  align-self: stretch !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(75,11,4,.11) !important;
  border-radius: 20px !important;
  background: var(--tg-white) !important;
  box-shadow: none !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:first-of-type > label,
body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type > label {
  display: block !important;
  margin: 0 0 13px !important;
  color: var(--tg-maroon-dark) !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-weight: 900 !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-intro,
body .tgms .tgms-wizard-screen--style .tgms-style-intro { display: none !important; }
.tgms .tgms-wizard-screen--style .tgms-style-cards,
body .tgms .tgms-wizard-screen--style .tgms-style-cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 16px 12px !important;
  width: 100% !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-card,
body .tgms .tgms-wizard-screen--style .tgms-style-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-width: 0 !important;
  min-height: 166px !important;
  padding: 9px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  border-radius: 16px !important;
  background: var(--tg-white) !important;
  box-shadow: none !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-card.is-active,
body .tgms .tgms-wizard-screen--style .tgms-style-card.is-active {
  border-color: var(--tg-maroon) !important;
  background: var(--tg-cream) !important;
  box-shadow: 0 0 0 1px var(--tg-maroon) !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-thumb,
body .tgms .tgms-wizard-screen--style .tgms-style-thumb {
  height: 94px !important;
  min-height: 94px !important;
  padding: 10px !important;
  border-radius: 12px !important;
  border-color: rgba(75,11,4,.07) !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-meta,
body .tgms .tgms-wizard-screen--style .tgms-style-meta {
  padding: 9px 3px 2px !important;
  gap: 2px !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-meta strong,
body .tgms .tgms-wizard-screen--style .tgms-style-meta strong {
  color: var(--tg-maroon-dark) !important;
  font-size: 13px !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-meta em,
body .tgms .tgms-wizard-screen--style .tgms-style-meta em {
  color: var(--tg-muted) !important;
  font-size: 10px !important;
}

/* Brand colours only inside all style thumbnails. */
.tgms .tgms-style-thumb--premium::before,
body .tgms .tgms-style-thumb--premium::before,
.tgms .tgms-style-thumb--funny::before,
body .tgms .tgms-style-thumb--funny::before,
.tgms .tgms-style-thumb--arabic::before,
body .tgms .tgms-style-thumb--arabic::before {
  background: linear-gradient(135deg,var(--tg-cream),#ead5b2,var(--tg-gold)) !important;
}
.tgms .tgms-style-thumb--minimal::before,
body .tgms .tgms-style-thumb--minimal::before,
.tgms .tgms-style-thumb--cute::before,
body .tgms .tgms-style-thumb--cute::before,
.tgms .tgms-style-thumb--floral::before,
body .tgms .tgms-style-thumb--floral::before,
.tgms .tgms-style-thumb--corporate::before,
body .tgms .tgms-style-thumb--corporate::before {
  background: linear-gradient(135deg,var(--tg-white),var(--tg-cream),var(--tg-cream-soft)) !important;
}
.tgms .tgms-style-thumb--luxury::before,
body .tgms .tgms-style-thumb--luxury::before {
  background: linear-gradient(135deg,var(--tg-maroon-dark),var(--tg-maroon),var(--tg-gold)) !important;
}
.tgms .tgms-style-word,
body .tgms .tgms-style-word,
.tgms .tgms-style-arabic,
body .tgms .tgms-style-arabic,
.tgms .tgms-style-icon,
body .tgms .tgms-style-icon,
.tgms .tgms-style-flower,
body .tgms .tgms-style-flower,
.tgms .tgms-style-mini,
body .tgms .tgms-style-mini {
  color: var(--tg-maroon) !important;
}
.tgms .tgms-style-thumb--luxury .tgms-style-word,
body .tgms .tgms-style-thumb--luxury .tgms-style-word,
.tgms .tgms-style-thumb--luxury .tgms-style-crown,
body .tgms .tgms-style-thumb--luxury .tgms-style-crown {
  color: var(--tg-cream) !important;
}
.tgms .tgms-style-grid,
body .tgms .tgms-style-grid {
  background: linear-gradient(90deg,rgba(122,22,12,.18) 33%, transparent 33%, transparent 66%, rgba(212,154,49,.30) 66%), linear-gradient(rgba(122,22,12,.18) 50%, transparent 50%) !important;
  background-size: 14px 100%, 100% 12px !important;
}
.tgms .tgms-style-dot,
body .tgms .tgms-style-dot { background: var(--tg-gold) !important; }

/* RIGHT — upload, font and colour cards. */
.tgms .tgms-wizard-screen--style > .tgms-upload-box,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box {
  grid-column: 2 !important;
  grid-row: 4 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 138px !important;
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  border-radius: 18px !important;
  background: var(--tg-white) !important;
  text-align: center !important;
  box-shadow: none !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon {
  width: 43px !important;
  height: 43px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  background: var(--tg-cream) !important;
  color: var(--tg-maroon) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box strong,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box strong {
  color: var(--tg-maroon) !important;
  font-size: 15px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box em,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box em {
  color: var(--tg-muted) !important;
  font-size: 11px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box small,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box small { display: none !important; }
.tgms .tgms-reference-result,
body .tgms .tgms-reference-result {
  grid-column: 2 !important;
  grid-row: 4 !important;
  align-self: end !important;
  margin: 0 12px 8px !important;
}
.tgms .tgms-reference-result:empty,
body .tgms .tgms-reference-result:empty { display: none !important; }
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) {
  grid-column: 2 !important;
  grid-row: 5 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  border-radius: 18px !important;
  background: var(--tg-white) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3) {
  grid-column: 2 !important;
  grid-row: 6 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  border-radius: 18px !important;
  background: var(--tg-white) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) > label,
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) > label {
  margin-bottom: 8px !important;
  color: var(--tg-maroon-dark) !important;
  font-size: 12px !important;
}
.tgms .tgms-wizard-screen--style select,
body .tgms .tgms-wizard-screen--style select,
.tgms .tgms-color-hex,
body .tgms .tgms-color-hex {
  min-height: 44px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  border-radius: 11px !important;
  background: var(--tg-white) !important;
  color: var(--tg-maroon-dark) !important;
  font-size: 13px !important;
}
.tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked,
body .tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked {
  background: var(--tg-maroon) !important;
  border-color: var(--tg-maroon) !important;
}
.tgms .tgms-color-pref .tgms-check-row span,
body .tgms .tgms-color-pref .tgms-check-row span {
  color: var(--tg-maroon-dark) !important;
  font-size: 13px !important;
}
.tgms .tgms-helper,
body .tgms .tgms-helper {
  margin: 0 0 12px !important;
  color: var(--tg-muted) !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
}
.tgms .tgms-mini-label,
body .tgms .tgms-mini-label {
  color: var(--tg-maroon-dark) !important;
  font-size: 11px !important;
}
.tgms .tgms-color,
body .tgms .tgms-color {
  width: 44px !important;
  min-width: 44px !important;
  height: 40px !important;
  border-radius: 10px !important;
}

/* Bottom actions exactly match the two content columns. */
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
  grid-column: 1 / -1 !important;
  grid-row: 7 !important;
  display: grid !important;
  grid-template-columns: minmax(0,1.86fr) minmax(300px,.94fr) !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid rgba(75,11,4,.08) !important;
}
.tgms .tgms-wizard-screen--style .tgms-wizard-secondary,
body .tgms .tgms-wizard-screen--style .tgms-wizard-secondary,
.tgms .tgms-wizard-screen--style .tgms-generate,
body .tgms .tgms-wizard-screen--style .tgms-generate {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  border-radius: 13px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}
.tgms .tgms-wizard-screen--style .tgms-wizard-secondary,
body .tgms .tgms-wizard-screen--style .tgms-wizard-secondary {
  background: var(--tg-white) !important;
  border-color: rgba(75,11,4,.12) !important;
  color: var(--tg-maroon-dark) !important;
}
.tgms .tgms-wizard-screen--style .tgms-generate,
body .tgms .tgms-wizard-screen--style .tgms-generate {
  background: linear-gradient(135deg,var(--tg-maroon-dark),var(--tg-maroon)) !important;
  border-color: var(--tg-maroon) !important;
  color: var(--tg-white) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-note,
body .tgms .tgms-wizard-screen--style > .tgms-note { display: none !important; }

/* Do not collapse the approved two-column layout at desktop/browser zoom widths. */
@media (max-width: 820px) {
  .tgms, body .tgms {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .tgms .tgms-workspace-topbar,
  body .tgms .tgms-workspace-topbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .tgms .tgms-workspace-title,
  body .tgms .tgms-workspace-title {
    grid-column: 1 !important;
    justify-self: start !important;
    text-align: left !important;
  }
  .tgms .tgms-clean-journey,
  body .tgms .tgms-clean-journey {
    width: 100% !important;
    margin: 8px auto 18px !important;
  }
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    padding: 22px 16px !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
  .tgms .tgms-wizard-screen--style > h3,
  body .tgms .tgms-wizard-screen--style > h3,
  .tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
  .tgms .tgms-wizard-screen--style > .tgms-upload-box,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box,
  .tgms .tgms-reference-result,
  body .tgms .tgms-reference-result,
  .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
  body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
  .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
  body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
  .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
  body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-style-cards,
  body .tgms .tgms-wizard-screen--style .tgms-style-cards {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 520px) {
  .tgms .tgms-wizard-screen--style .tgms-style-cards,
  body .tgms .tgms-wizard-screen--style .tgms-style-cards {
    grid-template-columns: 1fr !important;
  }
}


/* V3.5.2 — exact desktop layout for Style screen to match approved reference */
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style {
  display: grid !important;
  grid-template-columns: minmax(0, 1.72fr) minmax(360px, .95fr) !important;
  grid-template-areas:
    "kicker kicker"
    "title title"
    "intro intro"
    "styles upload"
    "styles font"
    "styles color"
    "nav nav"
    "note note" !important;
  align-items: start !important;
  gap: 16px 18px !important;
  width: min(1260px, calc(100vw - 72px)) !important;
  max-width: 1260px !important;
  margin-inline: auto !important;
  padding: 34px 18px 16px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(117,22,12,.10) !important;
  background: rgba(255,253,251,.96) !important;
  box-shadow: 0 18px 40px rgba(75,11,4,.05) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker { grid-area: kicker !important; }
.tgms .tgms-wizard-screen--style > h3,
body .tgms .tgms-wizard-screen--style > h3 { grid-area: title !important; }
.tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro { grid-area: intro !important; margin-top: -10px !important; }
.tgms .tgms-wizard-screen--style > .tgms-upload-panel,
body .tgms .tgms-wizard-screen--style > .tgms-upload-panel { grid-area: upload !important; }
.tgms .tgms-wizard-screen--style > .tgms-reference-panel,
body .tgms .tgms-wizard-screen--style > .tgms-reference-panel { grid-column: 2 !important; margin-top: -8px !important; }
.tgms .tgms-wizard-screen--style > .tgms-style-panel,
body .tgms .tgms-wizard-screen--style > .tgms-style-panel { grid-area: styles !important; }
.tgms .tgms-wizard-screen--style > .tgms-font-panel,
body .tgms .tgms-wizard-screen--style > .tgms-font-panel { grid-area: font !important; }
.tgms .tgms-wizard-screen--style > .tgms-color-panel,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel { grid-area: color !important; }
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav { grid-area: nav !important; }
.tgms .tgms-wizard-screen--style > .tgms-note,
body .tgms .tgms-wizard-screen--style > .tgms-note { grid-area: note !important; display:none !important; }

.tgms .tgms-wizard-screen--style > .tgms-upload-panel,
body .tgms .tgms-wizard-screen--style > .tgms-upload-panel,
.tgms .tgms-wizard-screen--style > .tgms-style-panel,
body .tgms .tgms-wizard-screen--style > .tgms-style-panel,
.tgms .tgms-wizard-screen--style > .tgms-font-panel,
body .tgms .tgms-wizard-screen--style > .tgms-font-panel,
.tgms .tgms-wizard-screen--style > .tgms-color-panel,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel {
  margin: 0 !important;
  border: 1px solid rgba(117,22,12,.10) !important;
  border-radius: 22px !important;
  background: #fffdfb !important;
  box-shadow: 0 6px 16px rgba(75,11,4,.03) !important;
}

.tgms .tgms-wizard-screen--style > .tgms-upload-panel,
body .tgms .tgms-wizard-screen--style > .tgms-upload-panel {
  min-height: 132px !important;
  padding: 18px 24px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-panel strong,
body .tgms .tgms-wizard-screen--style > .tgms-upload-panel strong { color:#301618 !important; font-size:18px !important; font-weight:800 !important; }
.tgms .tgms-wizard-screen--style > .tgms-upload-panel em,
body .tgms .tgms-wizard-screen--style > .tgms-upload-panel em { color:#8a756a !important; font-size:13px !important; }
.tgms .tgms-wizard-screen--style > .tgms-upload-panel small,
body .tgms .tgms-wizard-screen--style > .tgms-upload-panel small { display:none !important; }

.tgms .tgms-wizard-screen--style > .tgms-style-panel,
body .tgms .tgms-wizard-screen--style > .tgms-style-panel { padding: 14px !important; }
.tgms .tgms-wizard-screen--style > .tgms-style-panel > label,
body .tgms .tgms-wizard-screen--style > .tgms-style-panel > label { font-size:16px !important; font-weight:800 !important; color:#231815 !important; margin-bottom:12px !important; }
.tgms .tgms-wizard-screen--style .tgms-style-intro,
body .tgms .tgms-wizard-screen--style .tgms-style-intro { display:none !important; }
.tgms .tgms-style-cards,
body .tgms .tgms-style-cards { grid-template-columns: repeat(4, minmax(0,1fr)) !important; gap: 14px !important; }
.tgms .tgms-style-card,
body .tgms .tgms-style-card {
  min-height: 152px !important;
  padding: 10px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(117,22,12,.12) !important;
  background: #fff !important;
  box-shadow: none !important;
}
.tgms .tgms-style-card.is-active,
body .tgms .tgms-style-card.is-active {
  border-color: #301618 !important;
  box-shadow: 0 0 0 1px rgba(122,22,12,.08) !important;
  background: #fffdfa !important;
}
.tgms .tgms-style-thumb,
body .tgms .tgms-style-thumb { height: 74px !important; border-radius: 12px !important; }
.tgms .tgms-style-meta,
body .tgms .tgms-style-meta { padding: 10px 2px 2px !important; gap:2px !important; }
.tgms .tgms-style-meta strong,
body .tgms .tgms-style-meta strong { font-size: 13px !important; }
.tgms .tgms-style-meta em,
body .tgms .tgms-style-meta em { font-size: 11px !important; color:#6f5f57 !important; }

.tgms .tgms-wizard-screen--style > .tgms-font-panel,
body .tgms .tgms-wizard-screen--style > .tgms-font-panel,
.tgms .tgms-wizard-screen--style > .tgms-color-panel,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel { padding: 18px 20px !important; }
.tgms .tgms-wizard-screen--style > .tgms-font-panel > label,
body .tgms .tgms-wizard-screen--style > .tgms-font-panel > label,
.tgms .tgms-wizard-screen--style > .tgms-color-panel > label,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel > label { font-size:16px !important; font-weight:700 !important; color:#231815 !important; margin-bottom:12px !important; }
.tgms .tgms-wizard-screen--style > .tgms-font-panel select,
body .tgms .tgms-wizard-screen--style > .tgms-font-panel select,
.tgms .tgms-wizard-screen--style > .tgms-color-panel select,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel select,
.tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-color-hex,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-color-hex {
  min-height: 46px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-helper,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-helper { font-size: 12px !important; margin-bottom: 12px !important; }
.tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-color,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-color { width: 38px !important; min-width:38px !important; height:38px !important; border-radius:10px !important; }
.tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-mini-label,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-mini-label { font-size: 13px !important; margin-bottom: 8px !important; }
.tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-color-controls,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-color-controls { display:block !important; }

.tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
  display:grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  border-top: 0 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary {
  width: 100% !important;
  min-height: 58px !important;
  border-radius: 16px !important;
}

/* only collapse on real tablet */
@media (max-width: 1024px) {
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "kicker"
      "title"
      "intro"
      "upload"
      "styles"
      "font"
      "color"
      "nav"
      "note" !important;
    width: min(960px, calc(100vw - 28px)) !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-reference-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-reference-panel { grid-column:1 !important; }
}
@media (max-width: 760px) {
  .tgms .tgms-style-cards,
  body .tgms .tgms-style-cards { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav { grid-template-columns: 1fr !important; }
}


/* V3.5.3 — exact style-screen desktop layout to match approved reference */
@media (min-width: 1100px) {
  .tgms .tgms-shell,
  body .tgms .tgms-shell {
    max-width: 1480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .tgms .tgms-stage,
  body .tgms .tgms-stage,
  .tgms .tgms-body,
  body .tgms .tgms-body,
  .tgms .tgms-main,
  body .tgms .tgms-main {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style {
    width: min(1320px, calc(100vw - 90px)) !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 28px 36px 28px !important;
    border-radius: 28px !important;
    border: 1px solid #ead9cf !important;
    background: #fffdfb !important;
    box-shadow: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.62fr) minmax(390px, 0.90fr) !important;
    grid-template-areas:
      "kicker spacer"
      "title upload"
      "intro upload"
      "styles font"
      "styles color"
      "nav nav" !important;
    column-gap: 18px !important;
    row-gap: 14px !important;
    align-items: start !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker {
    grid-area: kicker !important;
    margin: 0 !important;
    align-self: start !important;
  }

  .tgms .tgms-wizard-screen--style > h3,
  body .tgms .tgms-wizard-screen--style > h3 {
    grid-area: title !important;
    margin: 0 !important;
    font-size: 32px !important;
    line-height: 1.06 !important;
    letter-spacing: -0.02em !important;
    color: #301618 !important;
    font-weight: 700 !important;
    max-width: none !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro {
    grid-area: intro !important;
    margin: -2px 0 10px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #76655d !important;
    max-width: none !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
  .tgms .tgms-wizard-screen--style > .tgms-reference-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-reference-panel,
  .tgms .tgms-wizard-screen--style > .tgms-note,
  body .tgms .tgms-wizard-screen--style > .tgms-note {
    display: none !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-upload-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-panel {
    grid-area: upload !important;
    min-height: 128px !important;
    margin: 4px 0 0 !important;
    padding: 16px 22px !important;
    border: 1px solid #ead9cf !important;
    border-radius: 22px !important;
    background: #fffdfb !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: auto !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-panel .tgms-upload-icon,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-panel .tgms-upload-icon {
    width: 42px !important;
    height: 42px !important;
    margin: 0 0 8px !important;
    color: #7b1f15 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-panel strong,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-panel strong {
    font-size: 16px !important;
    line-height: 1.35 !important;
    color: #7b1f15 !important;
    font-weight: 700 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-panel em,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-panel em {
    margin-top: 6px !important;
    font-style: normal !important;
    font-size: 12px !important;
    color: #927f76 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-panel small,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-panel small { display:none !important; }

  .tgms .tgms-wizard-screen--style > .tgms-style-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-style-panel {
    grid-area: styles !important;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px solid #ead9cf !important;
    border-radius: 22px !important;
    background: #fffdfb !important;
    box-shadow: none !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-style-panel > label,
  body .tgms .tgms-wizard-screen--style > .tgms-style-panel > label {
    display: block !important;
    margin: 0 0 14px !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    color: #231815 !important;
    font-weight: 700 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-style-panel .tgms-style-intro,
  body .tgms .tgms-wizard-screen--style > .tgms-style-panel .tgms-style-intro { display:none !important; }
  .tgms .tgms-style-cards,
  body .tgms .tgms-style-cards {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .tgms .tgms-style-card,
  body .tgms .tgms-style-card {
    min-height: 156px !important;
    padding: 10px !important;
    border-radius: 16px !important;
    border: 1px solid #e7d7cd !important;
    background: #ffffff !important;
    box-shadow: none !important;
    align-items: stretch !important;
  }
  .tgms .tgms-style-card.is-active,
  body .tgms .tgms-style-card.is-active {
    border-color: #301618 !important;
    box-shadow: none !important;
    background: #fffdfa !important;
  }
  .tgms .tgms-style-thumb,
  body .tgms .tgms-style-thumb {
    height: 76px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
  }
  .tgms .tgms-style-meta,
  body .tgms .tgms-style-meta {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }
  .tgms .tgms-style-meta strong,
  body .tgms .tgms-style-meta strong {
    font-size: 13px !important;
    line-height: 1.25 !important;
    color: #2c1714 !important;
    font-weight: 700 !important;
  }
  .tgms .tgms-style-meta em,
  body .tgms .tgms-style-meta em {
    font-size: 11px !important;
    line-height: 1.3 !important;
    color: #7d6a60 !important;
    font-style: normal !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-font-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-font-panel,
  .tgms .tgms-wizard-screen--style > .tgms-color-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-color-panel {
    margin: 0 !important;
    padding: 16px 18px !important;
    border: 1px solid #ead9cf !important;
    border-radius: 20px !important;
    background: #fffdfb !important;
    box-shadow: none !important;
    width: auto !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-font-panel { grid-area: font !important; }
  .tgms .tgms-wizard-screen--style > .tgms-color-panel { grid-area: color !important; }

  .tgms .tgms-wizard-screen--style > .tgms-font-panel > label,
  body .tgms .tgms-wizard-screen--style > .tgms-font-panel > label,
  .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-check-row,
  body .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-check-row {
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    margin:0 0 12px !important;
    font-size: 16px !important;
    line-height:1.35 !important;
    color:#231815 !important;
    font-weight:700 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-check-row input,
  body .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-check-row input {
    width: 18px !important;
    height: 18px !important;
    accent-color: #301618 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-soft-label,
  body .tgms .tgms-wizard-screen--style .tgms-soft-label { color:#7f7066 !important; font-weight: 500 !important; }
  .tgms .tgms-wizard-screen--style select,
  body .tgms .tgms-wizard-screen--style select,
  .tgms .tgms-wizard-screen--style .tgms-color-hex,
  body .tgms .tgms-wizard-screen--style .tgms-color-hex {
    min-height: 48px !important;
    border-radius: 12px !important;
    border: 1px solid #e6d4ca !important;
    background: #ffffff !important;
    box-shadow: none !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    color: #271715 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-helper,
  body .tgms .tgms-wizard-screen--style .tgms-helper {
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #917f76 !important;
    margin: -2px 0 14px !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-color-controls,
  body .tgms .tgms-wizard-screen--style .tgms-color-controls { display: block !important; }
  .tgms .tgms-wizard-screen--style .tgms-mini-label,
  body .tgms .tgms-wizard-screen--style .tgms-mini-label {
    display:block !important;
    margin: 0 0 8px !important;
    font-size: 13px !important;
    line-height:1.35 !important;
    color:#2e1b16 !important;
    font-weight:600 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-color-row,
  body .tgms .tgms-wizard-screen--style .tgms-color-row { display:flex !important; gap:12px !important; margin:0 0 14px !important; }
  .tgms .tgms-wizard-screen--style .tgms-color,
  body .tgms .tgms-wizard-screen--style .tgms-color {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding:0 !important;
    border-radius: 10px !important;
    border: 0 !important;
    background: transparent !important;
    overflow:hidden !important;
    box-shadow:none !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
    grid-area: nav !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr) !important;
    gap: 18px !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary {
    min-height: 58px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary {
    background: #fffdfb !important;
    border: 1px solid #ead9cf !important;
    color: #301618 !important;
  }
}


/* V3.5.4 — final exact style-step layout matching approved reference */
@media (min-width: 1100px) {
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style {
    width: min(1360px, calc(100vw - 84px)) !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 26px 36px 20px !important;
    border-radius: 28px !important;
    border: 1px solid #ebdbd1 !important;
    background: #fffdfb !important;
    box-shadow: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.68fr) minmax(360px, 0.92fr) !important;
    grid-template-areas:
      "kicker upload"
      "title upload"
      "intro upload"
      "styles font"
      "styles color"
      "nav nav" !important;
    column-gap: 18px !important;
    row-gap: 14px !important;
    align-items: start !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker {
    grid-area: kicker !important;
    margin: 0 !important;
    align-self: end !important;
    justify-self: start !important;
  }

  .tgms .tgms-wizard-screen--style > h3,
  body .tgms .tgms-wizard-screen--style > h3 {
    grid-area: title !important;
    margin: -2px 0 0 !important;
    font-size: 32px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    color: #301618 !important;
    font-weight: 700 !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro {
    grid-area: intro !important;
    margin: -4px 0 12px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #76655d !important;
    max-width: 620px !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
  .tgms .tgms-wizard-screen--style > .tgms-reference-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-reference-panel,
  .tgms .tgms-wizard-screen--style > .tgms-note,
  body .tgms .tgms-wizard-screen--style > .tgms-note {
    display: none !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-upload-box,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box {
    grid-area: upload !important;
    min-height: 130px !important;
    margin: 2px 0 0 !important;
    padding: 16px 22px !important;
    border: 1px solid #ead9cf !important;
    border-radius: 22px !important;
    background: #fffdfb !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: none !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon {
    width: 40px !important;
    height: 40px !important;
    margin: 0 0 8px !important;
    color: #301618 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-box strong,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box strong {
    margin: 0 !important;
    font-size: 16px !important;
    color: #301618 !important;
    font-weight: 700 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-box em,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box em {
    margin: 6px 0 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: #8f7d74 !important;
    font-style: normal !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-box small,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box small { display:none !important; }

  .tgms .tgms-wizard-screen--style > .tgms-style-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-style-panel {
    grid-area: styles !important;
    margin: 0 !important;
    padding: 14px 14px 12px !important;
    border: 1px solid #ead9cf !important;
    border-radius: 20px !important;
    background: #fffdfb !important;
    box-shadow: none !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-style-panel > label,
  body .tgms .tgms-wizard-screen--style > .tgms-style-panel > label {
    display: block !important;
    margin: 0 0 14px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    color: #231815 !important;
    font-weight: 700 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-style-panel .tgms-style-intro,
  body .tgms .tgms-wizard-screen--style > .tgms-style-panel .tgms-style-intro { display:none !important; }
  .tgms .tgms-wizard-screen--style .tgms-style-cards,
  body .tgms .tgms-wizard-screen--style .tgms-style-cards {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-style-card,
  body .tgms .tgms-wizard-screen--style .tgms-style-card {
    min-height: 160px !important;
    padding: 10px !important;
    border-radius: 16px !important;
    border: 1px solid #e7d7cd !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0 !important;
    box-shadow: none !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-style-card.is-active,
  body .tgms .tgms-wizard-screen--style .tgms-style-card.is-active {
    border-color: #301618 !important;
    background: #fffdfa !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-style-thumb,
  body .tgms .tgms-wizard-screen--style .tgms-style-thumb {
    height: 82px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-style-meta,
  body .tgms .tgms-wizard-screen--style .tgms-style-meta {
    padding: 0 2px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-style-meta strong,
  body .tgms .tgms-wizard-screen--style .tgms-style-meta strong {
    font-size: 13px !important;
    line-height: 1.3 !important;
    color: #2b1714 !important;
    font-weight: 700 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-style-meta em,
  body .tgms .tgms-wizard-screen--style .tgms-style-meta em {
    font-size: 11px !important;
    line-height: 1.35 !important;
    color: #7d6a60 !important;
    font-style: normal !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-font-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-font-panel {
    grid-area: font !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-color-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-color-panel {
    grid-area: color !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-font-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-font-panel,
  .tgms .tgms-wizard-screen--style > .tgms-color-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-color-panel {
    margin: 0 !important;
    padding: 16px 18px !important;
    border: 1px solid #ead9cf !important;
    border-radius: 20px !important;
    background: #fffdfb !important;
    box-shadow: none !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-font-panel > label,
  body .tgms .tgms-wizard-screen--style > .tgms-font-panel > label {
    display:block !important;
    margin:0 0 12px !important;
    font-size:16px !important;
    line-height:1.35 !important;
    color:#2a1915 !important;
    font-weight:500 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-soft-label,
  body .tgms .tgms-wizard-screen--style .tgms-soft-label { color:#7f7067 !important; font-weight:500 !important; }

  .tgms .tgms-wizard-screen--style select,
  body .tgms .tgms-wizard-screen--style select,
  .tgms .tgms-wizard-screen--style .tgms-color-hex,
  body .tgms .tgms-wizard-screen--style .tgms-color-hex {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    border: 1px solid #e6d4ca !important;
    background: #ffffff !important;
    box-shadow: none !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    color: #2b1916 !important;
  }

  .tgms .tgms-wizard-screen--style .tgms-check-row,
  body .tgms .tgms-wizard-screen--style .tgms-check-row {
    display:flex !important;
    align-items:flex-start !important;
    gap:12px !important;
    margin: 0 0 10px !important;
    font-size:16px !important;
    line-height:1.35 !important;
    color:#2a1915 !important;
    font-weight:700 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-check-row input,
  body .tgms .tgms-wizard-screen--style .tgms-check-row input {
    width: 20px !important;
    height: 20px !important;
    margin-top: 2px !important;
    accent-color: #301618 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-helper,
  body .tgms .tgms-wizard-screen--style .tgms-helper {
    margin: 0 0 14px 32px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #918076 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-mini-label,
  body .tgms .tgms-wizard-screen--style .tgms-mini-label {
    display:block !important;
    margin: 0 0 8px !important;
    font-size: 14px !important;
    line-height:1.35 !important;
    color:#2e1b16 !important;
    font-weight:600 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-color-row,
  body .tgms .tgms-wizard-screen--style .tgms-color-row {
    display:flex !important;
    gap:12px !important;
    margin:0 0 14px !important;
    align-items:center !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-color,
  body .tgms .tgms-wizard-screen--style .tgms-color {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    overflow: hidden !important;
    box-shadow: none !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
    grid-area: nav !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary {
    min-height: 58px !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary {
    background: #fffdfb !important;
    border: 1px solid #ead9cf !important;
    color: #301618 !important;
  }
}


/* V4.0.13 — visible custom Point Pen outline on customer previews. */
.tgms .tgms-print-area.is-custom-drawn,
.tgms .tgms-ai-product-mask.is-custom-drawn {
  border-color: transparent !important;
}
.tgms .tgms-custom-print-outline {
  position: absolute !important;
  z-index: 8 !important;
  display: block !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
  pointer-events: none !important;
  transform-origin: center center !important;
}
.tgms .tgms-custom-print-outline polygon {
  fill: rgba(245,231,225,.08);
  stroke: rgba(152,93,66,.62);
  stroke-width: 1.4;
  stroke-dasharray: 5 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}


/* V4.0.14 — keep the configured product visible in Design It Yourself. */
.tgds .tgds-product-img,
body .tgds .tgds-product-img {
  position: absolute !important;
  inset: 0 !important;
  z-index: 5 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.tgds .tgds-ai-zone,
body .tgds .tgds-ai-zone {
  visibility: visible !important;
}


/* V4.0.15 — the Design It Yourself canvas is already the live preview. */
.tgds .tgds-canvas-actions.tgds-canvas-actions-single,
body .tgds .tgds-canvas-actions.tgds-canvas-actions-single,
.tgds-easy-mode .tgds-canvas-actions.tgds-canvas-actions-single {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}
.tgds .tgds-canvas-actions-single .tgds-add-cart,
body .tgds .tgds-canvas-actions-single .tgds-add-cart {
  width: 100% !important;
  margin: 0 !important;
}


/* V4.0.16 — independent editor activation, product image, and custom mask outline. */
.tgds .tgds-custom-print-outline,
body .tgds .tgds-custom-print-outline {
  position: absolute !important;
  z-index: 21 !important;
  display: block !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
  pointer-events: none !important;
  transform-origin: center center !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.tgds .tgds-custom-print-outline polygon,
body .tgds .tgds-custom-print-outline polygon {
  fill: rgba(245,231,225,.08) !important;
  stroke: rgba(152,93,66,.72) !important;
  stroke-width: 1.5 !important;
  stroke-dasharray: 5 4 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  vector-effect: non-scaling-stroke !important;
}
.tgds .tgds-ai-zone.is-custom-drawn,
body .tgds .tgds-ai-zone.is-custom-drawn {
  border: 2px dashed rgba(152,93,66,.72) !important;
  background: rgba(245,231,225,.08) !important;
}
.tgds.tgds-has-selection .tgds-custom-print-outline,
body .tgds.tgds-has-selection .tgds-custom-print-outline {
  opacity: .35 !important;
}
.tgms-panel[data-panel="upload"].is-active .tgds-product-img,
.tgms-panel[data-panel="upload"][aria-hidden="false"] .tgds-product-img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* V4.0.18 — reliable Upload Your Design product image on first open. */
.tgds .tgds-stage,
body .tgds .tgds-stage {
  background-color: #fff !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}
.tgds .tgds-product-img:not([src]),
body .tgds .tgds-product-img:not([src]) {
  display: none !important;
}
.tgms-panel[data-panel="upload"].is-active .tgds-ai-zone,
.tgms-panel[data-panel="upload"][aria-hidden="false"] .tgds-ai-zone,
.tgms-panel[data-panel="upload"].is-active .tgds-custom-print-outline,
.tgms-panel[data-panel="upload"][aria-hidden="false"] .tgds-custom-print-outline {
  visibility: visible !important;
}


/* v4.1.00 — make Quick Ideas match the Style boxes */
.tgms .tgms-example-buttons,
body .tgms .tgms-example-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.tgms .tgms-example-buttons button,
body .tgms .tgms-example-buttons button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 10px !important;
  border: 1px solid #E5DAD1 !important;
  border-radius: 10px !important;
  background: #FFFFFF !important;
  color: #4F4742 !important;
  font: 600 13px/1.2 Karla, Arial, sans-serif !important;
  text-align: center !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.tgms .tgms-example-buttons button:hover,
.tgms .tgms-example-buttons button:focus-visible,
body .tgms .tgms-example-buttons button:hover,
body .tgms .tgms-example-buttons button:focus-visible {
  border-color: #E5DAD1 !important;
  background: #FFFFFF !important;
  color: #4F4742 !important;
  box-shadow: none !important;
  transform: none !important;
}

.tgms .tgms-example-buttons button.is-active,
.tgms .tgms-example-buttons button[aria-pressed="true"],
body .tgms .tgms-example-buttons button.is-active,
body .tgms .tgms-example-buttons button[aria-pressed="true"] {
  border: 2px solid #301618 !important;
  padding: 0 9px !important;
  background: #F7F1EC !important;
  color: #301618 !important;
  box-shadow: none !important;
}


/* v4.1.62 — keep Upload Your Design font menu usable inside the scrolling left panel. */
body .tgms .tgds-embedded-in-upload-tab .tgds-font-picker.is-open {
  z-index: 999998 !important;
}
body .tgms .tgds-embedded-in-upload-tab .tgds-font-menu {
  position: fixed !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}
body .tgms .tgds-embedded-in-upload-tab .tgds-font-trigger {
  position: relative !important;
  z-index: 2 !important;
  pointer-events: auto !important;
}
body .tgms .tgds-embedded-in-upload-tab .tgds-font-menu .tgds-font-options {
  max-height: min(320px, calc(100vh - 150px)) !important;
}


/* v4.1.63 — visible text size control in Upload Your Design. */
.tgds-embedded-in-upload-tab .tgds-text-size-control {
  margin-bottom: 20px !important;
}

.tgds-embedded-in-upload-tab .tgds-control-label-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

.tgds-embedded-in-upload-tab .tgds-control-label-row b {
  color: var(--tgup-text) !important;
  font: 700 14px/1.2 Karla, Arial, sans-serif !important;
}

.tgds-embedded-in-upload-tab .tgds-edit-font-size-value {
  flex: 0 0 auto !important;
  color: var(--tgup-muted) !important;
  font: 700 13px/1.2 Karla, Arial, sans-serif !important;
}

.tgds-embedded-in-upload-tab .tgds-text-size-control input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
  width: 100% !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  accent-color: var(--tgup-ink) !important;
  cursor: pointer !important;
}

.tgds-embedded-in-upload-tab .tgds-text-size-control input[type="range"]::-webkit-slider-runnable-track {
  height: 6px !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 999px !important;
  background: #F2EAE5 !important;
}

.tgds-embedded-in-upload-tab .tgds-text-size-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  margin-top: -9px !important;
  border: 3px solid #FFFFFF !important;
  border-radius: 50% !important;
  background: var(--tgup-ink) !important;
  box-shadow: 0 0 0 1px var(--tgup-ink) !important;
}

.tgds-embedded-in-upload-tab .tgds-text-size-control input[type="range"]::-moz-range-track {
  height: 6px !important;
  border: 1px solid var(--tgup-border) !important;
  border-radius: 999px !important;
  background: #F2EAE5 !important;
}

.tgds-embedded-in-upload-tab .tgds-text-size-control input[type="range"]::-moz-range-thumb {
  width: 18px !important;
  height: 18px !important;
  border: 3px solid #FFFFFF !important;
  border-radius: 50% !important;
  background: var(--tgup-ink) !important;
  box-shadow: 0 0 0 1px var(--tgup-ink) !important;
}

.tgds-embedded-in-upload-tab .tgds-text-size-control.is-disabled input[type="range"] {
  cursor: not-allowed !important;
}


/* v4.1.67 — keep the two Upload Your Design font menus attached to the field that opened them. */
body .tgds-font-menu.tgds-font-menu-portal {
  position: fixed !important;
  display: block !important;
  z-index: 2147483000 !important;
  min-width: 260px !important;
  padding: 10px !important;
  border: 1px solid rgba(75,11,4,.18) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px rgba(48,22,24,.18) !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}
body .tgds-font-menu.tgds-font-menu-portal[hidden] {
  display: none !important;
}
body .tgds-font-menu-portal .tgds-font-search {
  display: block !important;
  width: 100% !important;
  height: 42px !important;
  margin: 0 0 8px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(75,11,4,.15) !important;
  border-radius: 8px !important;
  background: #fffaf6 !important;
  color: #301618 !important;
  font: 500 14px/1 Karla,Arial,sans-serif !important;
  box-shadow: none !important;
}
body .tgds-font-menu-portal .tgds-font-options {
  display: grid !important;
  gap: 4px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}
body .tgds-font-menu-portal .tgds-font-option {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #301618 !important;
  box-shadow: none !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  text-align: left !important;
  cursor: pointer !important;
}
body .tgds-font-menu-portal .tgds-font-option:hover,
body .tgds-font-menu-portal .tgds-font-option.is-selected {
  border-color: rgba(75,11,4,.14) !important;
  background: #fff6ef !important;
}
body .tgds-font-menu-portal .tgds-font-option.is-selected {
  box-shadow: inset 3px 0 0 #301618 !important;
}
body .tgds-font-menu-portal .tgds-font-option[hidden] {
  display: none !important;
}
body .tgds-font-menu-portal .tgds-font-option-name {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  font: inherit !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}
.tgds-embedded-in-upload-tab .tgds-font-context-label {
  display: block !important;
  margin: 2px 0 8px !important;
  color: #301618 !important;
  font: 700 14px/1.25 Karla,Arial,sans-serif !important;
}


/* v4.1.68 — compact, anchored Upload Your Design font menus with left-aligned names. */
body .tgds-font-menu.tgds-font-menu-portal {
  box-sizing: border-box !important;
  height: auto !important;
  max-height: 360px !important;
}
body .tgds-font-menu-portal .tgds-font-search {
  box-sizing: border-box !important;
  text-align: left !important;
}
body .tgds-font-menu-portal .tgds-font-options {
  max-height: 294px !important;
  padding-right: 2px !important;
}
body .tgds-font-menu-portal .tgds-font-option {
  justify-content: flex-start !important;
  min-height: 48px !important;
  padding: 9px 14px !important;
  font-size: 20px !important;
  text-align: left !important;
}
body .tgds-font-menu-portal .tgds-font-option-name {
  width: 100% !important;
  text-align: left !important;
}
@media (max-width: 767px) {
  body .tgds-font-menu.tgds-font-menu-portal {
    max-height: 330px !important;
  }
  body .tgds-font-menu-portal .tgds-font-options {
    max-height: 264px !important;
  }
  body .tgds-font-menu-portal .tgds-font-option {
    min-height: 46px !important;
    font-size: 18px !important;
  }
}


/* V3.2.17: unified edit-handle color and easier full-range rotation. */
.tgds .tgds-layer-scale-control,
body .tgds .tgds-layer-scale-control,
.tgds .tgds-layer-rotate-handle,
body .tgds .tgds-layer-rotate-handle {
  background: #7a1608 !important;
  border-color: #ffffff !important;
}

.tgds .tgds-layer-rotate-handle,
body .tgds .tgds-layer-rotate-handle {
  top: -38px !important;
  cursor: grab !important;
}

.tgds .tgds-layer-rotate-handle:active,
body .tgds .tgds-layer-rotate-handle:active {
  cursor: grabbing !important;
}

.tgds .tgds-layer-rotate-handle::before,
body .tgds .tgds-layer-rotate-handle::before {
  height: 32px !important;
  background: #7a1608 !important;
}

.tgds .tgds-layer-rotate-handle::after,
body .tgds .tgds-layer-rotate-handle::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: -12px !important;
  background: transparent !important;
  border: 0 !important;
  pointer-events: auto !important;
}

@media (max-width: 767px) {
  .tgds .tgds-layer-rotate-handle,
  body .tgds .tgds-layer-rotate-handle {
    top: -42px !important;
  }

  .tgds .tgds-layer-rotate-handle::before,
  body .tgds .tgds-layer-rotate-handle::before {
    height: 34px !important;
  }
}
