/* Geboortetegeltjes.com: design page with the live example (#1202). Left: choose + fill in. Right: the tile. */
body.gt main.gt-main.gt-page:has(.gte),body.gt main.gt-main.gt-page:has(.gte-pick){max-width:1180px}
body.gt main.gt-main.gt-page:has(.gte){padding-top:26px;padding-bottom:36px}

/* ---- a chosen design: fields left, tile right, all on one screen ---- */
body.gt .gte{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);grid-template-areas:"fields prev" "others prev";grid-template-rows:auto 1fr;gap:18px 48px;align-items:start;margin:0}
body.gt .gte-fields{grid-area:fields;min-width:0}
body.gt .gte-preview{grid-area:prev;position:sticky;top:104px;align-self:start}
body.gt .gte-others{grid-area:others}
body.gt .gte .gte-back{display:inline-flex;align-items:center;gap:6px;font:700 14px/1.2 var(--gt-font);color:var(--gt-soft);text-decoration:none}
body.gt .gte .gte-back:hover{color:var(--gt-pink)}
body.gt .gte h1{margin:8px 0 2px;font-size:34px;line-height:1.15}
body.gt .gte .gte-lead{margin:0 0 16px;color:var(--gt-soft);font-size:16px}

/* filter chips */
body.gt .gte-chips{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}
body.gt .gte-pick .gte-chip{margin:0;padding:9px 16px;border-radius:999px;background:#fff;border:1.5px solid var(--gt-line);font:800 15px/1.2 var(--gt-font);color:var(--gt-soft);cursor:pointer;box-shadow:none;text-shadow:none;text-transform:none;transition:all .15s}
body.gt .gte-pick .gte-chip .fa{margin-right:4px}
body.gt .gte-pick .gte-chip-jongen.on{color:#1d8fc8;border-color:#bfe3f6;background:#f1f9fe}
body.gt .gte-pick .gte-chip-meisje.on{color:var(--gt-pink);border-color:#f9cfe4;background:#fef4f9}
body.gt .gte-pick .gte-chip-foto.on{color:#d57f00;border-color:#fbdcae;background:#fff8ec}

/* design list: the cards are the ones of the home page */
body.gt .gte-pick h1{margin:0 0 18px}
body.gt .gte-pick .gt-design[hidden]{display:none}

/* fields */
body.gt .gte-box{background:#fff;border:1px solid var(--gt-line);border-radius:var(--gt-r);box-shadow:var(--gt-shadow-s);padding:18px 20px}
body.gt .gte .gte-row{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:12px;margin:0 0 10px}
body.gt .gte .gte-row:last-child{margin-bottom:0}
body.gt .gte .gte-row > label{margin:0;width:auto;font:800 15px/1.3 var(--gt-font);color:var(--gt-ink);white-space:normal}
body.gt .gte .gte-in{display:flex;align-items:center;gap:10px;min-width:0}
body.gt .gte .gte-in input:not([type=file]){flex:1 1 auto;min-width:0;width:100%;margin:0;padding:11px 14px;font:400 16px/1.3 var(--gt-font);color:var(--gt-ink);background:#fff;border:1.5px solid #ddd8e6;border-radius:12px;box-shadow:none;transition:border-color .15s,box-shadow .15s}
body.gt .gte .gte-in input:focus{outline:0;border-color:var(--gt-pink);box-shadow:0 0 0 4px rgba(230,0,126,.12)}
body.gt .gte .gte-in em{flex:0 0 auto;min-width:36px;font-style:normal;white-space:nowrap;color:var(--gt-soft)}
body.gt .gte .gte-file{position:absolute;width:1px;height:1px;opacity:0}
body.gt .gte .gte-upload{display:inline-flex;align-items:center;gap:8px;margin:0;width:100%;box-sizing:border-box;padding:11px 16px;border:1.5px dashed #cfc8dc;border-radius:12px;background:#faf8fc;font:600 15px/1.3 var(--gt-font);color:var(--gt-ink);cursor:pointer;white-space:normal;overflow-wrap:anywhere}
body.gt .gte .gte-upload.ok{border-style:solid;border-color:var(--gt-green);background:#f6f9ea}
body.gt .gte .gte-err{margin:12px 0 0;padding:10px 14px;border-radius:10px;background:#fdebe6;border:1px solid #f6c9bc;color:#8f2d14;font-weight:600}
/* a design with many fields: two fields next to each other, label above */
body.gt .gte-many .gte-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}
body.gt .gte-many .gte-row{grid-template-columns:minmax(0,1fr);gap:5px;margin:0}
body.gt .gte-many .gte-row-photo{grid-column:1 / -1}

/* price + button */
body.gt .gte-buy{display:flex;align-items:center;gap:22px;margin-top:16px}
body.gt .gte-price{color:var(--gt-soft);white-space:nowrap}
body.gt .gte-price b{font-size:24px;color:var(--gt-pink)}
body.gt .gte .gte-go{flex:1 1 auto;display:flex;justify-content:center;margin:0;border:0;cursor:pointer;font-size:17px;padding:15px 22px}
body.gt .gte .gte-go.busy{opacity:.6;pointer-events:none}
body.gt .gte-note{margin-top:10px;font-size:13.5px;color:var(--gt-soft)}

/* the tile */
body.gt .gte-tile{position:relative;aspect-ratio:1/1;border-radius:22px;background:linear-gradient(135deg,#fdeef6,#eef7fd 55%,#f6f9ea);padding:30px;border:1px solid var(--gt-line);box-shadow:var(--gt-shadow)}
body.gt .gte-tile img{display:block;width:100%;height:100%;object-fit:cover;border-radius:6px;box-shadow:5px 6px 0 #e3d3c3,8px 18px 34px rgba(42,39,51,.22);transition:opacity .2s}
body.gt .gte-tile.busy img{opacity:.55}
body.gt .gte-spin{display:none;position:absolute;left:50%;top:50%;width:38px;height:38px;margin:-19px 0 0 -19px;border-radius:50%;border:4px solid rgba(230,0,126,.2);border-top-color:var(--gt-pink);animation:gteSpin .7s linear infinite}
body.gt .gte-tile.busy .gte-spin{display:block}
@keyframes gteSpin{to{transform:rotate(360deg)}}

/* other designs: small pictures */
body.gt .gte-others{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
body.gt .gte-others-t{font:800 14px/1.2 var(--gt-font);color:var(--gt-soft);margin-right:4px}
body.gt .gte .gte-other{display:block;width:56px;height:56px;padding:3px;background:#fff;border:1.5px solid var(--gt-line);border-radius:10px;transition:border-color .15s,transform .15s}
body.gt .gte .gte-other:hover{border-color:var(--gt-pink);transform:translateY(-2px)}
body.gt .gte .gte-other img{display:block;width:100%;height:100%;border-radius:6px}

/* phone: the tile on top and it stays in view while typing */
@media (max-width:900px){
  body.gt main.gt-main.gt-page:has(.gte){padding-top:14px}
  body.gt .gte{grid-template-columns:minmax(0,1fr);grid-template-areas:"prev" "fields" "others";grid-template-rows:auto;gap:14px}
  body.gt .gte-preview{top:62px;z-index:20;display:flex;justify-content:center;margin:0 -8px;padding:8px 0;background:rgba(250,250,252,.94);backdrop-filter:blur(6px)}
  body.gt .gte-tile{width:min(52vw,210px);padding:10px;border-radius:14px;box-shadow:var(--gt-shadow-s)}
  body.gt .gte-tile img{box-shadow:3px 3px 0 #e3d3c3,4px 8px 14px rgba(42,39,51,.2)}
  body.gt .gte h1{font-size:25px;margin-top:6px}
  body.gt .gte .gte-lead{margin-bottom:12px;font-size:15px}
  body.gt .gte-box{padding:14px}
  body.gt .gte .gte-row{grid-template-columns:minmax(0,1fr);gap:5px}
  body.gt .gte-many .gte-box{gap:10px 12px}
  body.gt .gte-buy{gap:14px}
  body.gt .gte-price b{font-size:20px}
  body.gt .gte .gte-go{font-size:15.5px;padding:13px 14px}
  body.gt .gte-pick .gte-designs{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}

/* design list: nothing matches the chosen filters */
body.gt .gte-none{text-align:center;background:#fff;border:1.5px dashed var(--gt-line);border-radius:var(--gt-r);padding:34px 20px;color:var(--gt-soft)}
body.gt .gte-none[hidden]{display:none}
body.gt .gte-none .fa{display:block;font-size:30px;color:#cfc8dc;margin:0 0 10px}
body.gt .gte-none b{display:block;font:800 19px/1.3 var(--gt-font);color:var(--gt-ink)}
body.gt .gte-none p{margin:6px 0 16px}

/* ---------- #1213 the tile drawn in the browser ---------- */
body.gt .gte-stage{position:relative;display:none;border-radius:6px;box-shadow:5px 6px 0 #e3d3c3,8px 18px 34px rgba(42,39,51,.22)}
body.gt .gte-tile.live .gte-stage{display:block}
body.gt .gte-tile canvas{display:block;width:100%;height:auto;aspect-ratio:1/1;border-radius:6px}
body.gt .gte-tile.live #gteImg{display:none}
/* the photo frame on the tile: click to choose, drag and zoom when there is a photo */
body.gt .gte-hot{position:absolute;display:flex;align-items:center;justify-content:center;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none;outline:0;border-radius:2px}
body.gt .gte-hot[hidden]{display:none}
body.gt .gte-hot:focus-visible{box-shadow:0 0 0 3px rgba(226,0,122,.45)}
body.gt .gte-hot-add{display:flex;flex-direction:column;align-items:center;gap:4px;font:800 11px/1.15 var(--gt-font);color:#6f629a;text-align:center;padding:0 2px;margin-top:38%}
body.gt .gte-hot-add .fa{display:none}
body.gt .gte-hot:hover:not(.has){background:rgba(226,0,122,.07);box-shadow:inset 0 0 0 2px rgba(226,0,122,.5)}
body.gt .gte-hot.has{cursor:grab}
body.gt .gte-hot.has .gte-hot-add{display:none}
body.gt .gte-hot.has:hover{box-shadow:inset 0 0 0 2px rgba(255,255,255,.9),0 0 0 2px rgba(226,0,122,.6)}
body.gt .gte-hot.drag{cursor:grabbing}
body.gt .gte-photo-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px;color:var(--gt-soft);font-size:13px}
body.gt .gte-photo-tools[hidden]{display:none}
body.gt .gte-photo-tools input[type=range]{flex:1 1 120px;min-width:100px;max-width:220px;accent-color:var(--gt-pink);padding:0;border:0;box-shadow:none;background:none;height:22px}
body.gt .gte-photo-tip{flex:1 1 100%}
/* ---------- #1218 font and size: a small button inside the field, a small panel under it ---------- */
body.gt .gte .gte-fx{flex:0 0 40px;width:40px;height:40px;margin:0;padding:0;border:0;border-radius:11px;background:#f4f1f8;color:var(--gt-soft);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:15px;box-shadow:none;min-width:0;text-shadow:none}
body.gt .gte .gte-in-fx{gap:6px}
body.gt .gte .gte-in-fx em{min-width:0}
body.gt .gte .gte-fx:hover,body.gt .gte .gte-fx.on{background:var(--gt-pink);color:#fff}
body.gt .gte .gte-fx.set:not(.on){background:#fde7f3;color:var(--gt-pink)}
body.gt .gte-row{position:relative}
body.gt .gte-pop{grid-column:1/-1;margin-top:8px;background:#fff;border:1.5px solid var(--gt-line);border-radius:14px;box-shadow:0 14px 34px rgba(40,30,70,.16);padding:12px 14px;position:absolute;left:0;top:100%;z-index:30;width:min(360px,calc(100vw - 40px))}
body.gt .gte-pop[hidden]{display:none}
body.gt .gte-pop-h{display:flex;align-items:center;gap:8px;font:800 14px/1.2 var(--gt-font);color:var(--gt-ink);margin:0 0 10px}
body.gt .gte-pop-t{font-weight:600;color:var(--gt-soft)}
body.gt .gte .gte-pop-x{margin:0 0 0 auto;width:28px;height:28px;padding:0;border:0;border-radius:8px;background:#f4f1f8;color:var(--gt-ink);font-size:18px;line-height:1;cursor:pointer;box-shadow:none;min-width:0}
body.gt .gte-fonts{display:grid;grid-template-columns:1fr 1fr;gap:6px;max-height:190px;overflow:auto;margin:0 0 12px}
body.gt .gte .gte-font{margin:0;padding:7px 8px;border:1.5px solid var(--gt-line);border-radius:10px;background:#fff;color:var(--gt-ink);font-size:17px;line-height:1.2;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:none;min-width:0;text-shadow:none;font-weight:400;text-transform:none}
body.gt .gte .gte-font:hover{border-color:#f3a9d0}
body.gt .gte .gte-font.on{border-color:var(--gt-pink);background:#fef4f9}
body.gt .gte-size{display:flex;align-items:center;gap:8px;font:700 13px/1.2 var(--gt-font);color:var(--gt-soft)}
body.gt .gte-size input[type=range]{flex:1;min-width:60px;accent-color:var(--gt-pink);padding:0;border:0;box-shadow:none;background:none;height:22px}
body.gt .gte-size output{width:42px;text-align:right;color:var(--gt-ink)}
body.gt .gte .gte-pop-reset{margin:0;padding:6px 10px;border:0;border-radius:8px;background:#f4f1f8;color:var(--gt-ink);font:700 12px/1 var(--gt-font);cursor:pointer;box-shadow:none;min-width:0;text-shadow:none}
body.gt .gte.sending .gte-go{opacity:.6}
@media (max-width:900px){ body.gt .gte-stage{box-shadow:3px 3px 0 #e3d3c3,4px 8px 14px rgba(42,39,51,.2)} body.gt .gte-hot-add{font-size:8px} }
/* #1213 phone: one field per line, so every field shows what is typed in it */
@media (max-width:560px){ body.gt .gte-many .gte-box{grid-template-columns:minmax(0,1fr)} }
/* #1216 button that opens the small designer for the photo */
body.gt .gte-photo-edit{flex:0 0 auto;margin-left:auto;display:inline-flex;align-items:center;gap:7px;padding:7px 14px;border:1.5px solid #f9cfe4;border-radius:999px;background:#fef4f9;color:var(--gt-pink);font:700 14px/1.2 var(--gt-font);cursor:pointer;transition:background .15s,border-color .15s}
body.gt .gte-photo-edit:hover{background:#fde6f2;border-color:var(--gt-pink)}
body.gt .gte-photo-edit.busy{opacity:.6;cursor:progress}
/* #1216 the shop's old style sheet has a rule for "#sidebar"; the designer has a part with that name */
.dz #sidebar{background:var(--surface)}
@media (min-width:769px){ .dz.dz-full #sidebar{width:var(--sidebar-w)} }
/* #1218 one field: the text, its unit and the font button share one box */
body.gt .gte .gte-in-fx{gap:0;background:#fff;border:1.5px solid #ddd8e6;border-radius:12px;padding:0 5px 0 0;transition:border-color .15s,box-shadow .15s}
body.gt .gte .gte-in-fx:focus-within{border-color:var(--gt-pink);box-shadow:0 0 0 4px rgba(230,0,126,.12)}
body.gt .gte .gte-in-fx input:not([type=file]){border:0 !important;box-shadow:none !important;background:transparent;border-radius:12px 0 0 12px}
body.gt .gte .gte-in-fx em{padding:0 8px 0 2px;font-size:15px}
body.gt .gte .gte-in-fx .gte-fx{flex:0 0 34px;width:34px;height:34px;border-radius:9px;font-size:14px}
/* #1226 the example lights up when the chat helper changed it */
@keyframes gteFlash{0%{box-shadow:0 0 0 0 rgba(230,0,126,.55)}100%{box-shadow:0 0 0 22px rgba(230,0,126,0)}}
body.gt .gte-tile.gte-flash{animation:gteFlash .9s ease-out 1}
/* the words under the camera drawing of the empty photo frame, not across it */
body.gt .gte-hot-add{position:absolute;left:0;right:0;bottom:9%;margin-top:0}

/* #1251 the tile as a stack of plain pictures (no canvas): design picture, photo in its frame, written text on top */
body.gt .gte-stage{display:block;aspect-ratio:1/1;overflow:hidden}
body.gt .gte-tile .gte-l{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;border-radius:0;box-shadow:none;opacity:1;pointer-events:none;user-select:none;-webkit-user-select:none}
body.gt .gte-tile .gte-l[hidden]{display:none}
body.gt .gte-tile.busy .gte-art{opacity:1}
body.gt .gte-hot{overflow:hidden;background:#ece8f6}
body.gt .gte-hot.has{background:#fff}
body.gt .gte-tile #gtePic{position:absolute;left:0;top:0;width:auto;height:auto;max-width:none;object-fit:fill;border-radius:0;box-shadow:none;opacity:1;transform-origin:0 0;will-change:transform;pointer-events:none;user-select:none;-webkit-user-select:none}
body.gt .gte-tile #gtePic[hidden]{display:none}
body.gt .gte-hot-add{bottom:auto;top:50%;transform:translateY(-50%);color:#8d80b8;gap:6px}
body.gt .gte-hot-add svg{width:38%;height:auto;max-width:34px}
body.gt .gte-hot.load::after{content:"";position:absolute;left:50%;top:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;border:3px solid rgba(226,0,122,.25);border-top-color:#e2007a;animation:gteSpin .8s linear infinite}
body.gt .gte-hot.load .gte-hot-add{visibility:hidden}
@keyframes gteSpin{to{transform:rotate(360deg)}}
body.gt .gte-zb{appearance:none;border:0;background:none;padding:6px;margin:-6px;cursor:pointer;color:inherit;font:inherit;line-height:1;border-radius:8px}
body.gt .gte-zb:hover{color:var(--gt-pink)}
body.gt .gte-zb:focus-visible{box-shadow:0 0 0 3px rgba(226,0,122,.35);outline:0}
/* #1253 language of the words on the tile */
body.gt .gte .gte-in select{flex:1 1 auto;min-width:0;width:100%;margin:0;padding:11px 38px 11px 14px;font:400 16px/1.3 var(--gt-font);color:var(--gt-ink);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8796' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;border:1.5px solid #ddd8e6;border-radius:12px;appearance:none;-webkit-appearance:none;cursor:pointer}
body.gt .gte .gte-in select:focus{outline:0;border-color:var(--gt-pink);box-shadow:0 0 0 4px rgba(230,0,126,.12)}

/* #1254 "Edit photo": the small designer (slim bar of tools beside the photo) in a box over the page */
html.gte-dz-open{overflow:hidden}
body.gt .gte-dzbox{position:fixed;inset:0;z-index:2147470000;background:rgba(32,28,44,.55);display:flex;align-items:center;justify-content:center;padding:16px}
body.gt .gte-dzbox[hidden]{display:none}
body.gt .gte-dzcard{width:min(560px,100%);max-height:100%;display:flex;flex-direction:column;background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(20,16,36,.35);overflow:hidden}
body.gt .gte-dzhead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--gt-line);font:800 17px/1.2 var(--gt-font);color:var(--gt-ink)}
body.gt .gte-dzhead .gt-btn{margin:0}
body.gt .gte-dzarea{position:relative;height:min(66vh,540px);background:#f4f2f8}
body.gt .gte-dzarea .dz-compact{position:absolute;inset:0;pointer-events:auto;margin:0;aspect-ratio:auto}
body.gt .gte-dzarea .dz-compact #stageInner{opacity:1}
body.gt .gte-dzarea .dz-compact .canvas-area{inset:10px 10px 10px 62px;width:auto!important;height:auto!important;min-width:0;max-width:none;flex:none;pointer-events:auto}
body.gt .gte-dzarea .dz-compact .toolbar,body.gt .gte-dzarea .dz-compact .topbar{background:#fff}
}
body.gt .gte-dzarea .dz-compact .toolbar,body.gt .gte-dzarea .dz-compact .topbar{width:42px!important;min-width:0!important;max-width:42px!important;flex:none!important;align-self:flex-start}
/* what lies outside the photo frame is faded: only the part inside the line is printed */
body.gt .gte-dzmask{position:absolute;z-index:1;pointer-events:none;box-shadow:0 0 0 3000px rgba(244,242,248,.86);outline:2px solid var(--gt-pink);border-radius:1px}
body.gt .gte-dzarea .dz-compact .topbar-actions{width:auto!important;min-width:0!important;background:none!important;flex:none!important}
/* phone: the same small look (tools on the left, photo beside them), the box comes up from the bottom */
@media (max-width:759px){
  body.gt .gte-dzbox{padding:0;align-items:flex-end}
  body.gt .gte-dzcard{width:100%;border-radius:18px 18px 0 0;max-height:94vh}
  body.gt .gte-dzarea{height:62vh}
  body.gt .gte-dzarea .dz-compact #editorSection{height:100%;flex-direction:column;flex-wrap:nowrap;align-items:flex-start;gap:8px;padding:10px}
  body.gt .gte-dzarea .dz-compact #editorSection::before{display:none}
  body.gt .gte-dzarea .dz-compact .canvas-area{inset:10px 10px 10px 62px;aspect-ratio:auto}
  body.gt .gte-dzarea .dz-compact .toolbar,body.gt .gte-dzarea .dz-compact .topbar,body.gt .gte-dzarea .dz-compact .topbar-actions{flex-direction:column}
  body.gt .gte-dzarea .dz-compact .sidebar{position:absolute;left:62px;top:10px;width:min(210px,calc(100% - 72px));max-height:calc(100% - 20px)}
  body.gt .gte-dzarea .dz-compact .dz-card{position:absolute;left:62px;top:10px;width:min(236px,calc(100% - 72px))}
}
/* phone: "Edit photo" on its own line at the left, clear of the chat button in the corner */
@media (max-width:560px){ body.gt .gte-photo-tools{flex-wrap:wrap} body.gt .gte-photo-edit{margin-left:0;order:3} }

/* #1262 phone: the tile bar that stays in view is solid over the full width and smaller, so the form never shows through */
@media (max-width:900px){
  body.gt .gte-preview{background:#fafafc;backdrop-filter:none;box-shadow:0 0 0 100vmax #fafafc;clip-path:inset(0 -100vmax);padding:6px 0;border-bottom:1px solid var(--gt-line)}
  body.gt .gte-tile{width:min(40vw,160px);padding:7px}
}
