/* ==========================================================================
   PrintOut Simcha Gallery — Custom Thank You Cards Studio (A2 5.5" x 4.25")
   ========================================================================== */

/* === PrintOut Curated Hebrew Cover Fonts (shared from /simcha/fonts/cover/) === */
@font-face { font-family: "BA Yefe Tohar";     src: url("../../fonts/cover/BA_Yefe_Tohar_Regular.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Fb Oriya Bold";     src: url("../../fonts/cover/FbOriya_Bold.woff2") format("woff2");          font-weight: 400 700; font-display: swap; }
@font-face { font-family: "BA Casablanca";     src: url("../../fonts/cover/BA_Casablanca_Regular.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "BA Tefilot Meutar"; src: url("../../fonts/cover/BA_Tefilot_Meutar.woff2") format("woff2");     font-weight: 400 700; font-display: swap; }
@font-face { font-family: "BA Ziporen";        src: url("../../fonts/cover/BA_Ziporen_Regular.woff2") format("woff2");    font-weight: 400 700; font-display: swap; }
@font-face { font-family: "BA Ziporen Bold";   src: url("../../fonts/cover/BA_Ziporen_Plus_Bold.woff2") format("woff2");  font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Fb Miznefet";       src: url("../../fonts/cover/FbMiznefet_Medium.woff2") format("woff2");     font-weight: 400 700; font-display: swap; }
@font-face { font-family: "EFT Pnina";         src: url("../../fonts/cover/EFT_Pnina.woff2") format("woff2");             font-weight: 400 700; font-display: swap; }
@font-face { font-family: "EFT Pnina Black";   src: url("../../fonts/cover/EFT_Pnina_Black.woff2") format("woff2");       font-weight: 400 700; font-display: swap; }
@font-face { font-family: "EFT Studentit";     src: url("../../fonts/cover/EFT_Studentit.woff2") format("woff2");         font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Shlomi";            src: url("../../fonts/cover/buShlomi_Regular.woff2") format("woff2");      font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Fb Electron Bold";  src: url("../../fonts/cover/FbElectronConHeb_Bold.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Fb Haim Narrow";    src: url("../../fonts/cover/FbHaimNarrow.woff2") format("woff2");          font-weight: 400 700; font-display: swap; }

:root {
  --ty-font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --navy: #17223D;
  --navy-2: #233359;
  --lime: #B3CB6A;
  --lime-soft: #EEF3DD;
  --ink: #17223D;
  --ink-2: #4A5163;
  --ink-3: #6B7386;
  --line: #E5E4DC;
  --line-2: #D4D2C7;
  --tint: #F1F0EA;
  --surface: #F8F7F4;
  --mat: #ECE9E0;
  --white: #FFFFFF;
  --danger: #B91C1C;
  --gold: #8C7248;
  --hdr: 72px;
  --max: 1280px;
  --pad: clamp(14px, 3.2vw, 40px);
}

body.thankyou-page {
  margin: 0;
  font-family: var(--ty-font);
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.thankyou-page *, .thankyou-page *::before, .thankyou-page *::after {
  box-sizing: border-box;
}

.thankyou-page [hidden] {
  display: none !important;
}

.thankyou-page .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.thankyou-page .skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.thankyou-page .skip:focus { left: 12px; top: 12px; border-radius: 8px; }

/* ---------- Printout Header (.top5) ---------- */
.top.top5 {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top5 .wrap {
  height: var(--hdr);
  display: flex;
  align-items: center;
  gap: 20px;
}
.top5 .brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.top5 .brand img { height: 34px; width: auto; display: block; }
.top5 .tnav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 10px;
}
.top5 .tnav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color .15s;
}
.top5 .tnav a:hover, .top5 .tnav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.top5 .tnav a.mob { display: none; }
.top5 .nr { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top5 .np {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s, transform .12s;
}
.top5 .np:hover { background: var(--navy-2); }
.top5 .tmenu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0 9px;
}
.top5 .tmenu span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

@media (max-width: 880px) {
  .top5 .tnav {
    position: fixed;
    top: var(--hdr);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px var(--pad) 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-left: 0;
    display: none;
    box-shadow: 0 12px 28px rgba(23, 34, 61, 0.12);
  }
  .top5 .tnav.is-open { display: flex; }
  .top5 .tnav a.mob { display: block; }
  .top5 .tmenu { display: inline-flex; }
}

/* ---------- Simcha Gallery Product Switcher Bar ---------- */
.sm-prod-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.sm-prod-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
.sm-prod-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sm-prod-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--tint);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sm-prod-pills::-webkit-scrollbar { display: none; }
.sm-prod-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: all .16s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.sm-prod-pill:hover { color: var(--navy); background: rgba(255, 255, 255, 0.72); }
.sm-prod-pill.is-active {
  background: var(--navy);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(23, 34, 61, 0.18);
}
.sm-prod-dim { font-size: 11px; font-weight: 500; opacity: 0.76; }

/* ---------- Editorial Intro ---------- */
.ty-intro {
  padding: 22px 0 16px;
}
.ty-intro-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ty-eyebrow {
  margin: 0 0 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ty-h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.06;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.ty-sub {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 560px;
}
.ty-intro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ty-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  white-space: nowrap;
}
.ty-badge.accent {
  background: var(--lime-soft);
  border-color: #CADB94;
  color: #2A3B12;
}

/* ---------- Collection Switcher Bar (Tenoyim vs Bar Mitzvah) ---------- */
.ty-col-bar {
  margin-bottom: 20px;
}
.ty-col-tabs {
  display: inline-flex;
  gap: 8px;
  background: var(--white);
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(23, 34, 61, 0.04);
  max-width: 100%;
  flex-wrap: wrap;
}
.ty-col-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s ease;
}
.ty-col-tab:hover { color: var(--navy); background: var(--tint); }
.ty-col-tab.is-active {
  background: var(--navy);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(23, 34, 61, 0.18);
}
.ty-col-count {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(23, 34, 61, 0.08);
  color: var(--ink-2);
}
.ty-col-tab.is-active .ty-col-count {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

/* ---------- Main 2-Column Studio Grid ---------- */
.ty-studio {
  padding-bottom: 72px;
}
.ty-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 980px) {
  .ty-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- Preview Stage (Left Sticky Column) ---------- */
.ty-stage-col {
  position: sticky;
  top: calc(var(--hdr) + 16px);
}
@media (max-width: 980px) {
  .ty-stage-col { position: static; }
}

.ty-stage-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(23, 34, 61, 0.05);
}

.ty-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: #FCFBF9;
  flex-wrap: wrap;
}

.ty-view-pills {
  display: inline-flex;
  gap: 4px;
  background: var(--tint);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.ty-view-pill {
  border: none;
  background: transparent;
  padding: 6px 13px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.ty-view-pill:hover { color: var(--navy); }
.ty-view-pill.is-active {
  background: var(--navy);
  color: #FFFFFF;
}

.ty-stage-specs {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.ty-mat {
  background: radial-gradient(circle at 50% 35%, #F2EFE7 0%, #E4E0D4 100%);
  padding: clamp(18px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ty-canvas-frame {
  width: 100%;
  max-width: 560px;
  position: relative;
  border-radius: 4px;
  box-shadow: 0 18px 38px rgba(23, 34, 61, 0.16), 0 3px 10px rgba(23, 34, 61, 0.08);
  background: #FFFFFF;
  overflow: hidden;
  transition: transform .2s ease;
}

.ty-canvas-frame canvas {
  display: block;
  width: 100%;
  height: auto;
}

.ty-fold-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(23, 34, 61, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.85;
}

/* 3-up live mini-strip below main stage */
.ty-mini-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 16px;
  background: #FAF9F6;
  border-top: 1px solid var(--line);
}
.ty-mini-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.ty-mini-btn:hover { border-color: var(--navy-2); }
.ty-mini-btn.is-active {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(23, 34, 61, 0.14);
}
.ty-mini-btn canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid #EAE7DE;
}
.ty-mini-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.ty-mini-btn.is-active .ty-mini-label { color: var(--navy); }

.ty-stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--white);
  flex-wrap: wrap;
}
.ty-proof-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ty-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.ty-btn-ghost:hover:not(:disabled) { background: var(--tint); border-color: var(--navy); }
.ty-btn-ghost:disabled { opacity: 0.45; cursor: not-allowed; }
.ty-live-summary {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}

/* ---------- Controls Column (Right) ---------- */
.ty-controls-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Step Navigation Tabs */
.ty-step-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  background: var(--white);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.ty-step-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.ty-step-tab:hover { background: var(--tint); color: var(--navy); }
.ty-step-tab.is-active { background: var(--navy); color: #FFFFFF; }
.ty-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(23, 34, 61, 0.09);
  flex-shrink: 0;
}
.ty-step-tab.is-active .ty-step-num {
  background: var(--lime);
  color: var(--navy);
}

@media (max-width: 520px) {
  .ty-step-tab {
    flex-direction: column;
    gap: 3px;
    font-size: 11.5px;
    padding: 8px 4px;
  }
}

/* Wizard Card Panel */
.ty-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 18px rgba(23, 34, 61, 0.04);
}
.ty-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.ty-step-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
}
.ty-panel-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}
.ty-panel-val {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--tint);
  padding: 4px 10px;
  border-radius: 999px;
}
.ty-panel-sub {
  margin: 4px 0 16px;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* Filter chips */
.ty-filter-row {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ty-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .14s;
}
.ty-chip:hover { border-color: var(--navy-2); color: var(--navy); }
.ty-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

/* Style Grid (Outside Front) */
.ty-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 520px) {
  .ty-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ty-style-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 7px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: all .15s;
  text-align: left;
  min-width: 0;
}
.ty-style-card:hover { border-color: var(--navy-2); transform: translateY(-1px); }
.ty-style-card.is-active {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(23, 34, 61, 0.16);
  background: #FAFBF7;
}
.ty-style-thumb {
  width: 100%;
  aspect-ratio: 5.5 / 4.25;
  border-radius: 6px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #ECE9E0;
  position: relative;
}
.ty-style-thumb canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.ty-style-num {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(23, 34, 61, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  line-height: 1.2;
}
.ty-style-num.is-new {
  background: #2F5D28;
  color: #F4FAD9;
}
.ty-style-tag {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  border: 1px solid var(--line);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}
.ty-style-meta {
  padding: 7px 2px 2px;
}
.ty-style-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ty-style-desc {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dynamic Personalization Box (Step 1) */
.ty-front-editor {
  margin-top: 16px;
  padding: 15px;
  border-radius: 14px;
  background: #F6F5EF;
  border: 1px solid var(--line);
}
.ty-front-editor-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Form Elements */
.ty-field {
  margin-bottom: 12px;
}
.ty-field:last-child { margin-bottom: 0; }
.ty-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 520px) {
  .ty-field-row { grid-template-columns: 1fr; }
}
.ty-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
}
.ty-label small {
  font-weight: 500;
  color: var(--ink-3);
}
.ty-input, .ty-textarea, .ty-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line-2);
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.ty-input[dir="rtl"], .ty-textarea[dir="rtl"] {
  font-family: "Frank Ruhl Libre", "Hanken Grotesk", serif;
  font-size: 16px;
}
.ty-input:focus, .ty-textarea:focus, .ty-select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23, 34, 61, 0.10);
}
.ty-textarea {
  resize: vertical;
  min-height: 112px;
}

/* Inside Presets List */
.ty-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: 320px;
  overflow-y: auto;
  padding: 2px;
  margin-bottom: 16px;
}
@media (max-width: 520px) {
  .ty-preset-grid { grid-template-columns: 1fr; }
}
.ty-preset-card {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: all .14s;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ty-preset-card:hover { border-color: var(--navy-2); background: #FCFBF8; }
.ty-preset-card.is-active {
  border-color: var(--navy);
  background: #F4F6FA;
  box-shadow: 0 0 0 2px rgba(23, 34, 61, 0.14);
}
.ty-preset-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.ty-preset-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  background: var(--tint);
  padding: 2px 7px;
  border-radius: 6px;
}
.ty-preset-lang {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.ty-preset-snippet {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ty-preset-snippet[dir="rtl"] {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 14px;
  text-align: right;
}

/* Font Grid */
.ty-font-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 7px;
  margin-top: 6px;
}
.ty-font-btn {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 8px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all .14s;
}
.ty-font-btn:hover { border-color: var(--navy-2); }
.ty-font-btn.is-active {
  border-color: var(--navy);
  background: #F4F6FA;
  box-shadow: 0 0 0 2px rgba(23, 34, 61, 0.14);
}
.ty-font-sample {
  font-size: 18px;
  line-height: 1.2;
  color: var(--navy);
}
.ty-font-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.15;
}

/* Segmented Cards (Format, Paper, Envelope) */
.ty-seg-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.ty-seg-btn {
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: all .15s;
}
.ty-seg-btn:hover { border-color: var(--navy-2); }
.ty-seg-btn.is-active {
  border-color: var(--navy);
  background: #F5F7FB;
  box-shadow: 0 0 0 2px rgba(23, 34, 61, 0.14);
}
.ty-paper-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid #D1CDC2;
  flex-shrink: 0;
}
.ty-seg-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}
.ty-seg-sub {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
}

/* Swatches */
.ty-swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 16px;
}
.ty-swatch {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--line-2);
  cursor: pointer;
  transition: transform .13s, box-shadow .13s;
  padding: 0;
}
.ty-swatch:hover { transform: scale(1.08); }
.ty-swatch.is-active {
  box-shadow: 0 0 0 2.5px var(--navy);
  transform: scale(1.08);
}
.ty-custom-color-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.ty-custom-color-wrap input[type="color"] {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

/* Pricing Tier Grid (Step 4) */
.ty-qty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.ty-qty-card {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 13px 14px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: all .15s;
}
.ty-qty-card:hover { border-color: var(--navy-2); }
.ty-qty-card.is-active {
  border-color: var(--navy);
  background: #F4F6FA;
  box-shadow: 0 0 0 2px rgba(23, 34, 61, 0.16);
}
.ty-qty-pop {
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--lime);
  color: var(--navy);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
}
.ty-qty-sets {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.ty-qty-price {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin: 2px 0;
}
.ty-qty-unit {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
}

/* Totals Box */
.ty-totals {
  background: #F7F6F1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 14px 0 16px;
}
.ty-tot-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 3px 0;
}
.ty-tot-row.grand {
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--line-2);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

/* Rush Toggle Box */
.ty-rush-box {
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  background: #FCFBF8;
  margin-bottom: 14px;
}
.ty-check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}
.ty-check-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--navy);
}
.ty-rush-fields {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
  display: grid;
  gap: 10px;
}

/* Buttons */
.ty-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.ty-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  background: var(--navy);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .12s;
}
.ty-btn-primary:hover:not(:disabled) { background: var(--navy-2); }
.ty-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.ty-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line-2);
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ty-btn-secondary:hover { background: var(--tint); }

/* Stripe Payment Container */
.ty-stripe-wrap {
  margin-top: 14px;
  padding: 14px;
  border-radius: 13px;
  border: 1.5px solid var(--line);
  background: #FFFFFF;
}
.ty-status-msg {
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.ty-status-msg.info { background: #EEF2FA; color: var(--navy); border: 1px solid #CFD9EC; }
.ty-status-msg.err  { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.ty-status-msg.ok   { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }

/* Footer */
.ty-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 28px 0;
  font-size: 13px;
  color: var(--ink-3);
}
.ty-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ty-footer a { color: var(--navy); text-decoration: none; font-weight: 600; }

/* Subtle utility */
.ty-divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}
.ty-hint {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}


/* ---------- Visual Inspection Polish Overrides (Beat /css/site.css section padding) ---------- */
body.thankyou-page section.ty-intro {
  padding: 16px 0 10px !important;
  margin: 0 !important;
  border: none !important;
}
body.thankyou-page section.ty-studio {
  padding: 6px 0 64px !important;
  margin: 0 !important;
  border: none !important;
}
body.thankyou-page .ty-col-bar {
  margin-bottom: 14px;
}
body.thankyou-page .ty-mat {
  padding: clamp(14px, 2.2vw, 24px);
  gap: 8px;
}
body.thankyou-page .ty-fold-badge {
  position: static;
  transform: none;
  background: rgba(23, 34, 61, 0.10);
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  opacity: 1;
}

@media (max-width: 600px) {
  .sm-prod-bar-inner {
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .sm-prod-pills {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    overflow: visible;
  }
  .sm-prod-pill {
    justify-content: center;
    padding: 7px 6px;
    font-size: 11.5px;
    gap: 0;
  }
  .sm-prod-dim { display: none; }

  .ty-col-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 5px;
    padding: 5px;
  }
  .ty-col-tab {
    justify-content: center;
    padding: 9px 8px;
    font-size: 13px;
    gap: 6px;
  }
  .ty-col-count { font-size: 10.5px; padding: 2px 6px; }
  .ty-intro-badges { gap: 6px; }
  .ty-badge { font-size: 11.5px; padding: 5px 10px; }
}
