/* Approved reference layout v1.0.2 */
.gtg-wrap.gtg-approved-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.18fr);gap:28px;max-width:1200px;margin:18px auto;padding:16px;background:#fff;border:1px solid #e4e9ef;border-radius:18px;box-shadow:0 3px 12px #1b315015;box-sizing:border-box}
.gtg-live-column{min-width:0}
.gtg-tile{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:28px;background:#fff;box-shadow:0 4px 18px #0002}
.gtg-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
.gtg-text-layer{position:absolute;left:37%;right:5%;top:25%;height:43%;display:flex;flex-direction:column;justify-content:space-between;color:#102e78;font-family:Georgia,serif;font-style:italic;font-weight:700;font-size:clamp(12px,1.55vw,25px);line-height:1.12}
.gtg-line{display:grid;grid-template-columns:max-content minmax(15px,1fr);gap:7px;align-items:end;white-space:nowrap}
.gtg-line b{height:1.05em;border-bottom:3px solid #102e78;position:relative;min-width:15px}
.gtg-line b:after{content:"";position:absolute;left:0;right:0;bottom:5px;border-bottom:2px solid #102e78}
.gtg-line em{font-style:italic;font-weight:700;position:absolute;left:3px;bottom:1px;max-width:calc(100% - 6px);overflow:hidden;white-space:nowrap;text-overflow:clip;background:transparent}
.gtg-specs{margin-top:14px;padding:15px 18px;background:#f4f6f8;border-radius:15px;color:#17284a;font-size:14px;line-height:1.8}
.gtg-form{min-width:0}
.gtg-form h2{font-size:34px;line-height:1.1;color:#102e78;margin:0 0 5px}
.gtg-subtitle{font-size:21px;color:#273655;margin-bottom:18px}
.gtg-designs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 22px}
.gtg-design{display:block;position:relative;min-width:0;padding:4px;border:1px solid #d9e0e9;border-radius:15px;cursor:pointer;background:#fff}
.gtg-design input{position:absolute;opacity:0;pointer-events:none}
.gtg-design img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px}
.gtg-design:has(input:checked){border:3px solid #1764bd;padding:2px;box-shadow:0 0 0 2px #dbeafe}
.gtg-design:has(input:checked):after{content:"✓";position:absolute;right:5px;top:5px;width:29px;height:29px;border-radius:50%;background:#1764bd;color:white;font:bold 22px/29px Arial;text-align:center}
.gtg-fields{display:grid;grid-template-columns:1fr;gap:8px;margin-top:4px}
.gtg-fields label{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;gap:12px;font-size:17px;font-weight:700;color:#102e78}
.gtg-fields input{width:100%;height:44px;padding:7px 14px;border:1px solid #aab2bd;border-radius:11px;background:#fff;font-size:17px;box-sizing:border-box;color:#25344c}
.gtg-buyrow{display:grid;grid-template-columns:max-content 90px minmax(170px,1fr);gap:12px;align-items:center;margin-top:30px}
.gtg-price{font-size:34px;color:#102e78;white-space:nowrap}
.gtg-qty{width:90px;height:56px;border:1px solid #aab2bd;border-radius:10px;padding:8px;font-size:22px}
.gtg-submit{width:100%;min-height:58px;margin:0;padding:12px 15px;border:0;border-radius:14px;background:#10b928;color:#fff;font-size:19px;font-weight:700;cursor:pointer}
.gtg-submit:hover{background:#0a9f20}
.gtg-after{font-size:12px;color:#667085;text-align:center;margin:8px 0 0}
body.postid-12201 div.product .woocommerce-product-gallery,body.postid-12201 div.product .images,body.postid-12201 div.product form.cart:not(.gtg-form){display:none!important}
body.postid-12201 div.product .summary{width:100%!important;float:none!important}
@media(max-width:800px){
 .gtg-wrap.gtg-approved-layout{grid-template-columns:1fr;gap:16px;padding:11px}
 .gtg-live-column{max-width:560px;width:100%;margin:auto}
 .gtg-form h2{font-size:27px}.gtg-subtitle{font-size:17px;margin-bottom:12px}
 .gtg-designs{gap:6px;margin-bottom:14px}
 .gtg-fields label{grid-template-columns:125px minmax(0,1fr);gap:8px;font-size:14px}
 .gtg-fields input{height:39px;font-size:14px}
 .gtg-buyrow{grid-template-columns:max-content 70px minmax(120px,1fr);gap:7px;margin-top:18px}
 .gtg-price{font-size:25px}.gtg-qty{width:70px;height:48px}.gtg-submit{min-height:48px;font-size:15px}
 .gtg-specs{font-size:12px;padding:10px}
}
@media(max-width:420px){
 .gtg-text-layer{font-size:clamp(9px,2.4vw,12px);left:36%;right:4%;gap:0}
 .gtg-line{gap:3px}
 .gtg-fields label{grid-template-columns:105px minmax(0,1fr);font-size:12px}
 .gtg-buyrow{grid-template-columns:max-content 55px minmax(105px,1fr)}
 .gtg-price{font-size:21px}.gtg-qty{width:55px}.gtg-submit{font-size:13px;padding:8px 5px}
}

/* v1.0.3: compact text and form controls only; approved tile artwork is unchanged. */
.gtg-text-layer{font-size:clamp(10px,1.3vw,21px);left:37%;right:5%;top:25%;height:43%}
.gtg-line{gap:5px}
.gtg-line b{border-bottom-width:2px}
.gtg-line b:after{bottom:4px;border-bottom-width:1.5px}
.gtg-fields{gap:6px}
.gtg-fields label{grid-template-columns:165px minmax(0,1fr);gap:9px;font-size:15px}
.gtg-fields input{height:38px;min-height:38px;padding:6px 11px;font-size:15px}
@media(max-width:800px){
 .gtg-text-layer{font-size:clamp(9px,2vw,11px)}
 .gtg-fields{gap:6px}
 .gtg-fields label{grid-template-columns:115px minmax(0,1fr);font-size:13px;gap:7px}
 .gtg-fields input{height:35px;min-height:35px;padding:5px 8px;font-size:13px}
}
@media(max-width:420px){
 .gtg-text-layer{font-size:clamp(8px,2.05vw,10px);left:36%;right:4%}
 .gtg-fields label{grid-template-columns:100px minmax(0,1fr);font-size:12px}
 .gtg-fields input{height:33px;min-height:33px;font-size:12px}
}

/* v1.0.4: fit the complete preview tile in its column and use one writing line. */
.gtg-live-column{max-width:430px;width:100%;margin:0 auto}
.gtg-line b{border-bottom:2px solid #102e78}
.gtg-line b:after{display:none}
@media(max-width:800px){
 .gtg-live-column{max-width:520px}
}

/* v1.0.5: tighter text spacing, narrower labels and shorter writing lines only. */
.gtg-text-layer{
 left:37%;
 right:15%;
 top:25%;
 height:36%;
 font-size:clamp(9px,1.05vw,17px);
 line-height:1;
 letter-spacing:-.35px;
}
.gtg-line{gap:4px}
.gtg-line b{min-width:12px}
@media(max-width:800px){
 .gtg-text-layer{
  left:37%;
  right:15%;
  top:25%;
  height:36%;
  font-size:clamp(8px,1.8vw,10px);
  line-height:1;
  letter-spacing:-.25px;
 }
 .gtg-line{gap:3px}
}
@media(max-width:420px){
 .gtg-text-layer{left:36%;right:14%;font-size:clamp(7px,1.7vw,9px);height:36%}
}

/* v1.0.6: move the text block down 1 cm and tighten it; artwork untouched. */
.gtg-text-layer{
 top:31.6%;
 height:30%;
 font-size:clamp(8px,.95vw,15px);
 line-height:.95;
}
.gtg-line{gap:3px}
@media(max-width:800px){
 .gtg-text-layer{
  top:31.6%;
  height:30%;
  font-size:clamp(7px,1.6vw,9px);
  line-height:.95;
 }
 .gtg-line{gap:2px}
}
@media(max-width:420px){
 .gtg-text-layer{top:31.6%;height:30%;font-size:clamp(7px,1.5vw,8px)}
}

/* v1.0.7: square tile frame and a slightly expanded white writing field. */
.gtg-tile{border-radius:0!important}
.gtg-art{border-radius:0!important}
.gtg-design,.gtg-design img{border-radius:0!important}
.gtg-text-layer{
 left:32%;
 right:8%;
 top:27%;
 height:38%;
 padding:5px 7px;
 box-sizing:border-box;
 background:rgba(255,255,255,.88);
 border-radius:0;
}
.gtg-line{grid-template-columns:max-content minmax(12px,1fr)}
@media(max-width:800px){
 .gtg-text-layer{left:32%;right:8%;top:27%;height:38%;padding:3px 5px}
}
@media(max-width:420px){
 .gtg-text-layer{left:31%;right:7%;top:27%;height:38%;padding:2px 4px}
}

/* v1.0.8: bring the five writing rows closer and shorten their lines. */
.gtg-text-layer{height:32%;top:29%}
.gtg-line{gap:3px}
.gtg-line b{max-width:78%;justify-self:start;width:100%}
.gtg-line{grid-template-columns:max-content minmax(12px,78%)}
@media(max-width:800px){
 .gtg-text-layer{height:32%;top:29%}
 .gtg-line{grid-template-columns:max-content minmax(10px,76%);gap:2px}
}
@media(max-width:420px){
 .gtg-text-layer{height:32%;top:29%}
 .gtg-line{grid-template-columns:max-content minmax(8px,74%)}
}

/* v1.0.9: shift the text block slightly right and down; tighten row spacing. */
.gtg-text-layer{
 left:34%;
 top:32%;
 height:27%;
}
.gtg-line{gap:2px}
@media(max-width:800px){
 .gtg-text-layer{left:34%;top:32%;height:27%}
 .gtg-line{gap:1px}
}
@media(max-width:420px){
 .gtg-text-layer{left:33%;top:32%;height:27%}
}

/* v1.1.0: ten selectable designs; move writing content 1 cm right. */
.gtg-text-layer{left:40.5%}
.gtg-designs{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:800px){.gtg-text-layer{left:40.5%}.gtg-designs{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:420px){.gtg-text-layer{left:39.5%}.gtg-designs{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* v1.1.3: lower the five text rows slightly so the tile border stays clearer. */
.gtg-text-layer{top:35%}
@media(max-width:800px){.gtg-text-layer{top:35%}}
@media(max-width:420px){.gtg-text-layer{top:35%}}

/* v1.1.4: show all ten designs and never crop the full tile preview or thumbnails. */
.gtg-art{object-fit:contain!important}
.gtg-design img{object-fit:contain!important;background:#fff}
.gtg-tile{overflow:hidden}

/* v1.1.5: refreshed ornate Delft-blue cradle/pram borders; lift full preview slightly. */
.gtg-live-column{margin-top:-10px}
.gtg-tile{transform:translateY(-8px)}

/* v1.1.7: reveal a complete lower frame on designs 1–8; shift text right and shorten writing lines. */
.gtg-text-layer{left:47%;right:14%}
.gtg-line{grid-template-columns:max-content minmax(10px,70%);gap:2px}
@media(max-width:800px){
 .gtg-text-layer{left:47%;right:14%}
 .gtg-line{grid-template-columns:max-content minmax(8px,68%);gap:1px}
}
@media(max-width:420px){
 .gtg-text-layer{left:46%;right:13%}
 .gtg-line{grid-template-columns:max-content minmax(7px,66%)}
}

/* v1.1.8: slightly longer writing lines and a little more vertical spacing. */
.gtg-text-layer{height:31%}
.gtg-line{grid-template-columns:max-content minmax(10px,78%);gap:3px}
@media(max-width:800px){
 .gtg-text-layer{height:31%}
 .gtg-line{grid-template-columns:max-content minmax(8px,76%);gap:2px}
}
@media(max-width:420px){
 .gtg-text-layer{height:31%}
 .gtg-line{grid-template-columns:max-content minmax(7px,74%);gap:2px}
}

/* v1.2.0: 15 designs in three rows of five; extend writing rules by about 1 cm. */
.gtg-designs{grid-template-columns:repeat(5,minmax(0,1fr))}
.gtg-line{grid-template-columns:max-content minmax(10px,88%)}
@media(max-width:800px){
 .gtg-designs{grid-template-columns:repeat(5,minmax(0,1fr))}
 .gtg-line{grid-template-columns:max-content minmax(8px,86%)}
}
@media(max-width:420px){
 .gtg-designs{grid-template-columns:repeat(5,minmax(0,1fr))}
 .gtg-line{grid-template-columns:max-content minmax(7px,84%)}
}

/* v1.2.1: ensure all design cards are tappable on touch screens. */
.gtg-design{position:relative;z-index:2;touch-action:manipulation;pointer-events:auto;cursor:pointer}
.gtg-design img{pointer-events:none;user-select:none;-webkit-user-drag:none}
.gtg-design input{pointer-events:none}
@media(max-width:800px){
 .gtg-designs{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
 .gtg-design{min-height:0;padding:3px}
 .gtg-design img{width:100%;height:auto;aspect-ratio:1/1;object-fit:contain}
}

/* v1.2.2: exactly ten designs in two rows; show every tile edge in the thumbnail frame. */
.gtg-designs{grid-template-columns:repeat(5,minmax(0,1fr))}
.gtg-design{overflow:hidden;box-sizing:border-box}
.gtg-design img{
 display:block!important;
 width:100%!important;
 height:auto!important;
 aspect-ratio:1/1!important;
 object-fit:contain!important;
 object-position:center center!important;
 border-radius:0!important;
}
@media(max-width:800px){
 .gtg-designs{grid-template-columns:repeat(5,minmax(0,1fr))}
 .gtg-design img{height:auto!important;object-fit:contain!important}
}

/* v1.2.3: keep each complete tile inside its own selector frame, including the bottom edge. */
.gtg-design{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  aspect-ratio:1/1!important;
  overflow:visible!important;
  padding:5px!important;
  min-width:0!important;
}
.gtg-design img{
  display:block!important;
  flex:0 0 100%!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center center!important;
  border-radius:0!important;
  margin:0!important;
}
.gtg-design:has(input:checked){padding:3px!important}
@media(max-width:800px){
  .gtg-design{aspect-ratio:1/1!important;padding:3px!important;overflow:visible!important}
  .gtg-design img{width:100%!important;height:100%!important;object-fit:contain!important}
}

/* v1.2.4: enforce a square 15.2 x 15.2 cm artwork canvas for every design. */
.gtg-tile{width:100%!important;aspect-ratio:1/1!important;overflow:hidden!important}
.gtg-art{
 width:100%!important;height:100%!important;
 object-fit:fill!important;object-position:center center!important;
}
.gtg-design{aspect-ratio:1/1!important;box-sizing:border-box!important}
.gtg-design img{
 display:block!important;width:100%!important;height:100%!important;
 aspect-ratio:1/1!important;object-fit:fill!important;object-position:center center!important;
}

/* v1.2.5: remove all thumbnail frames; keep the artwork, layout and selected checkmark. */
.gtg-design{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  border-radius:0!important;
  padding:0!important;
}
.gtg-design:has(input:checked){
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  padding:0!important;
}
.gtg-design img{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  border-radius:0!important;
}

/* v1.2.6: remove the blue selection checkmark while keeping tile selection functional. */
.gtg-design:has(input:checked):after{content:none!important;display:none!important}

/* v1.2.7: slightly lengthen the standard writing lines. */
.gtg-line b{max-width:88%!important}


/* v1.3.7: make every design thumbnail independently tappable on mobile. */
.gtg-designs{position:relative;z-index:20;isolation:isolate}
.gtg-design{position:relative!important;z-index:21!important;display:block!important;pointer-events:auto!important;touch-action:manipulation!important;cursor:pointer!important}
.gtg-design img{pointer-events:none!important;user-select:none!important;-webkit-user-drag:none!important}
.gtg-design input{pointer-events:none!important}

/* v1.3.8: identical complete 13-design selector on desktop and mobile.
   Use native label/radio hit targets and fixed grid cells to prevent overlap. */
.gtg-designs{
 display:grid!important;
 grid-template-columns:repeat(5,minmax(0,1fr))!important;
 grid-auto-flow:row!important;
 align-items:stretch!important;
 justify-items:stretch!important;
 gap:8px!important;
 position:relative!important;
 isolation:auto!important;
}
.gtg-design{
 display:block!important;
 position:relative!important;
 float:none!important;
 width:100%!important;
 min-width:0!important;
 min-height:0!important;
 height:auto!important;
 aspect-ratio:1/1!important;
 box-sizing:border-box!important;
 overflow:hidden!important;
 margin:0!important;
 padding:0!important;
 pointer-events:auto!important;
 touch-action:manipulation!important;
}
.gtg-design img{
 display:block!important;
 position:relative!important;
 width:100%!important;
 height:100%!important;
 max-width:100%!important;
 max-height:100%!important;
 aspect-ratio:1/1!important;
 object-fit:contain!important;
 object-position:center!important;
 pointer-events:none!important;
}
.gtg-design input{
 position:absolute!important;
 inset:0!important;
 width:100%!important;
 height:100%!important;
 margin:0!important;
 opacity:0!important;
 pointer-events:none!important;
}
@media(max-width:800px){
 .gtg-designs{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important}
 .gtg-design{aspect-ratio:1/1!important}
}
