.lgc-home-art-stage-wrap{width:100%;display:flex;justify-content:center;align-items:flex-start}
.lgc-home-art-stage{position:relative;width:min(100%,680px);aspect-ratio:1/1;overflow:hidden;background:#f5f5f5}
.lgc-home-art-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;user-select:none;-webkit-user-drag:none}
.lgc-home-art-stage .lgc-home-art-artwork{z-index:1}
.lgc-home-art-stage .lgc-home-art-overlay{z-index:2}
.lgc-home-art-missing{padding:18px;border:1px dashed #ccc;text-align:center;color:#666;background:#fafafa}
@media(max-width:849px){
  .cac-step-2-wrapper .product-gallery-column,
  .cac-step-3-wrapper .product-gallery-column,
  .cac-step-4-wrapper .product-gallery-column{margin-bottom:10px!important;padding-bottom:0!important}
  .lgc-home-art-stage{width:92%;max-width:620px}
}

/* v1.0.6: Step 1 uses the same product-specific artwork layer instead of Gallery Start Index. */
.cac-step-1-wrapper .product-gallery.lgc-home-art-step1-live-gallery{width:100%}
.cac-step-1-wrapper .lgc-home-art-step1-live-gallery .lgc-home-art-stage{background:#f5f5f5}
@media(max-width:849px){
  .cac-step-1-wrapper .product-gallery-column{margin-bottom:10px!important;padding-bottom:0!important}
}

/* v1.0.7: keep normal WooCommerce gallery images beneath the Step 1 live artwork preview. */
.lgc-home-art-stage .lgc-home-art-gallery-photo{
  z-index:5;
  background:#f5f5f5;
  object-fit:contain;
}
.lgc-home-art-gallery-strip{
  width:min(100%,680px);
  margin:14px auto 0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.lgc-home-art-gallery-thumb{
  appearance:none;
  -webkit-appearance:none;
  display:block;
  width:100%;
  aspect-ratio:1/1;
  padding:0;
  margin:0;
  overflow:hidden;
  border:2px solid transparent;
  border-radius:3px;
  background:#f4f4f4;
  cursor:pointer;
  box-shadow:none;
}
.lgc-home-art-gallery-thumb:hover,
.lgc-home-art-gallery-thumb:focus-visible{
  border-color:#999;
  outline:none;
}
.lgc-home-art-gallery-thumb.is-active{
  border-color:#111;
}
.lgc-home-art-gallery-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
@media(max-width:849px){
  .lgc-home-art-gallery-strip{
    width:92%;
    gap:8px;
  }
}

/* v1.0.8: dedicated Step 1 gallery per Portrait Style + separate general product photos */
.lgc-home-art-gallery-group{
  width:min(100%,680px);
  margin:14px auto 0;
}
.lgc-home-art-gallery-heading{
  margin:0 0 8px;
  font-size:14px;
  font-weight:600;
  line-height:1.35;
  color:#333;
}
.lgc-home-art-gallery-group .lgc-home-art-gallery-strip{
  width:100%;
  margin:0;
}
.lgc-home-art-general-gallery-group{
  margin-top:18px;
}
@media(max-width:849px){
  .lgc-home-art-gallery-group{
    width:92%;
  }
}

/* v1.0.11: server-rendered Step 1 gallery. This bypasses the Step 2 live compositor entirely. */
.lgc-step1-server-gallery{width:100%}
.lgc-step1-server-main{
  width:min(100%,680px);
  aspect-ratio:1/1;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#f5f5f5;
}
.lgc-step1-server-main img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}
@media(max-width:849px){
  .lgc-step1-server-main{width:92%}
}

/* v1.0.12: compact unified Step 1 gallery row + NEXT loading feedback. */
.cac-step-1-wrapper .lgc-step1-unified-strip-wrap{
  width:min(100%,680px);
  margin:12px auto 0;
  overflow:hidden;
}
.cac-step-1-wrapper .lgc-step1-unified-strip{
  width:100%;
  margin:0;
  display:flex;
  flex-wrap:nowrap;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 2px 7px;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.cac-step-1-wrapper .lgc-step1-unified-strip .lgc-home-art-gallery-thumb{
  flex:0 0 96px;
  width:96px;
  height:96px;
  aspect-ratio:1/1;
  scroll-snap-align:start;
}
.cac-step-1-wrapper .lgc-step1-unified-strip .lgc-home-art-gallery-thumb img{
  object-fit:cover;
}
.cac-step-1-wrapper .cac-next-button.lgc-is-loading{
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:wait!important;
  opacity:.88;
}
.cac-step-1-wrapper .cac-next-button.lgc-is-loading[disabled]{
  pointer-events:none;
}
.lgc-next-spinner{
  width:18px;
  height:18px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  display:inline-block;
  animation:lgcNextSpin .7s linear infinite;
}
@keyframes lgcNextSpin{to{transform:rotate(360deg)}}

@media(max-width:849px){
  .cac-step-1-wrapper .lgc-step1-server-main{width:100%;}
  .cac-step-1-wrapper .lgc-step1-unified-strip-wrap{width:100%;margin-top:9px;}
  .cac-step-1-wrapper .lgc-step1-unified-strip{
    gap:8px;
    padding:2px 2px 6px;
    scrollbar-width:none;
  }
  .cac-step-1-wrapper .lgc-step1-unified-strip::-webkit-scrollbar{display:none}
  .cac-step-1-wrapper .lgc-step1-unified-strip .lgc-home-art-gallery-thumb{
    flex-basis:82px;
    width:82px;
    height:82px;
  }
  .cac-step-1-wrapper .product-gallery-column{margin-bottom:14px!important;}
}


/* v1.0.20: Background Style selector cards should stay sharp and show the
 * complete artwork regardless of portrait/landscape orientation. The theme's
 * original Art Style cards are intentionally untouched. */
.cac-step-1-wrapper .lgc-background-choice-card .cac-art-type-thumb{
  width:100%;
  aspect-ratio:1 / 1;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#fff;
}
.cac-step-1-wrapper .lgc-background-choice-card .cac-art-type-thumb img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  display:block;
}

/* v1.0.22: loading feedback on Steps 2–4. */
.cac-step-2-wrapper .cac-next-button.lgc-is-loading,
.cac-step-3-wrapper .cac-next-button.lgc-is-loading,
.cac-step-4-wrapper .cac-next-button.lgc-is-loading{
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:wait!important;
  opacity:.88;
}
.cac-step-2-wrapper .cac-next-button.lgc-is-loading[disabled],
.cac-step-3-wrapper .cac-next-button.lgc-is-loading[disabled],
.cac-step-4-wrapper .cac-next-button.lgc-is-loading[disabled]{
  pointer-events:none;
}

/* Step 3 reassurance when the optional photo is not available yet. */
.cac-step-3-wrapper .lgc-no-photo-note{
  margin-top:8px;
  font-size:13px;
  line-height:1.45;
  font-weight:600;
  color:#333;
}

/* Final commission review: turn the old order summary into an Artist Brief. */
.cac-step-4-wrapper .lgc-artist-brief{
  background:#fafafa;
  border:1px solid #e5e5e5;
  padding:18px;
}
.cac-step-4-wrapper .lgc-artist-brief .cac-summary-title{
  font-size:20px;
  font-weight:700;
  margin-bottom:8px;
}
.cac-step-4-wrapper .lgc-artist-brief-intro{
  color:#555;
  font-size:14px;
  line-height:1.5;
  padding-bottom:12px;
  margin-bottom:6px;
  border-bottom:1px solid #e8e8e8;
}
.cac-step-4-wrapper .lgc-artist-brief-row{
  gap:16px;
  align-items:flex-start;
}
.cac-step-4-wrapper .lgc-artist-brief-row > span:first-child{
  flex:0 0 118px;
}
.cac-step-4-wrapper .lgc-artist-brief-row > span:last-child{
  flex:1 1 auto;
  min-width:0;
  text-align:right;
  overflow-wrap:anywhere;
}
.cac-step-4-wrapper .lgc-artist-brief-stacked > span:last-child{
  white-space:pre-wrap;
}
.cac-step-4-wrapper .lgc-artist-brief-photo-value{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
.cac-step-4-wrapper .lgc-artist-brief-photo-value img{
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid #ddd;
  background:#fff;
}
@media(max-width:549px){
  .cac-step-4-wrapper .lgc-artist-brief-row{
    display:grid;
    grid-template-columns:1fr;
    gap:3px;
  }
  .cac-step-4-wrapper .lgc-artist-brief-row > span:first-child{
    flex:none;
    font-size:12px;
    font-weight:600;
  }
  .cac-step-4-wrapper .lgc-artist-brief-row > span:last-child{
    text-align:left;
  }
  .cac-step-4-wrapper .lgc-artist-brief-photo-value{
    justify-content:flex-start;
  }
}

/* v1.0.25: real artist-queue urgency on the final step.
 * Intentionally restrained: no red, flashing, fake inventory, or seconds ticker. */
.cac-step-4-wrapper .lgc-artist-queue-urgency{
  margin:14px 0 16px;
  padding:12px 14px;
  border:1px solid #e6e1d8;
  border-radius:8px;
  background:#fbfaf7;
  text-align:center;
}
.cac-step-4-wrapper .lgc-artist-queue-kicker{
  margin-bottom:3px;
  color:#777;
  font-size:10px;
  font-weight:700;
  letter-spacing:.09em;
  line-height:1.3;
  text-transform:uppercase;
}
.cac-step-4-wrapper .lgc-artist-queue-main{
  color:#222;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
}
.cac-step-4-wrapper .lgc-artist-queue-sub{
  margin-top:3px;
  color:#666;
  font-size:12px;
  line-height:1.4;
}
@media(max-width:549px){
  .cac-step-4-wrapper .lgc-artist-queue-urgency{
    margin:12px 0 14px;
    padding:11px 12px;
  }
  .cac-step-4-wrapper .lgc-artist-queue-main{
    font-size:13px;
  }
}


/* v1.0.30: progressive cross-document transition.
 * This keeps normal WordPress/WooCommerce page navigation (so every Step 2
 * script initializes normally) while making supported browsers fade cleanly
 * between builder steps. Unsupported browsers simply use normal navigation. */
@view-transition { navigation: auto; }
::view-transition-old(root){
  animation:lgcBuilderPageOut 110ms ease-out both;
}
::view-transition-new(root){
  animation:lgcBuilderPageIn 170ms ease-out both;
}
@keyframes lgcBuilderPageOut{
  from{opacity:1}
  to{opacity:.94}
}
@keyframes lgcBuilderPageIn{
  from{opacity:.94}
  to{opacity:1}
}
@media (prefers-reduced-motion: reduce){
  ::view-transition-old(root),
  ::view-transition-new(root){animation:none!important}
}


/* v1.0.33: concise post-builder guidance after Step 1. */
.lgc-builder-after-step{
  max-width:1180px;
  margin:26px auto 8px;
  padding:0 15px;
}
.lgc-builder-after-inner{
  max-width:760px;
  margin:0 auto;
  padding:22px 24px;
  border:1px solid #e8e8e8;
  border-radius:10px;
  background:#fafafa;
}
.lgc-builder-after-kicker{
  margin-bottom:5px;
  color:#777;
  font-size:10px;
  font-weight:700;
  letter-spacing:.09em;
}
.lgc-builder-after-step h3{
  margin:0 0 8px;
  font-size:19px;
  line-height:1.3;
}
.lgc-builder-after-step p{
  margin:0;
  color:#555;
  font-size:14px;
  line-height:1.55;
}
.lgc-builder-next-steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}
.lgc-builder-next-steps > div{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.lgc-builder-next-steps > div > strong{
  flex:0 0 28px;
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d8d8d8;
  border-radius:50%;
  background:#fff;
  font-size:12px;
}
.lgc-builder-next-steps span{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.lgc-builder-next-steps b{
  font-size:13px;
  line-height:1.35;
}
.lgc-builder-next-steps small{
  color:#666;
  font-size:12px;
  line-height:1.45;
}
.lgc-builder-faq details{
  border-top:1px solid #e5e5e5;
  padding:11px 0;
}
.lgc-builder-faq details:first-of-type{
  margin-top:8px;
}
.lgc-builder-faq summary{
  cursor:pointer;
  font-size:13px;
  font-weight:700;
}
.lgc-builder-faq details p{
  padding-top:7px;
  font-size:13px;
}
.cac-step-4-wrapper .lgc-artist-brief-edit{
  display:inline-block;
  margin-left:9px;
  color:#666;
  font-size:11px;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:2px;
  white-space:nowrap;
}
.cac-step-4-wrapper .lgc-artist-brief-edit:hover{
  color:#111;
}
@media(max-width:749px){
  .lgc-builder-after-step{
    margin-top:20px;
    padding:0 12px;
  }
  .lgc-builder-after-inner{
    padding:18px;
  }
  .lgc-builder-next-steps{
    grid-template-columns:1fr;
    gap:13px;
  }
}
@media(max-width:549px){
  .cac-step-4-wrapper .lgc-artist-brief-edit{
    margin-left:8px;
  }
}


/* v1.0.36: keep the reusable Step 4 Flatsome block inside the same content
   width as the multi-step builder instead of allowing it to span edge-to-edge. */
.lgc-multistep-summary-block{
  width:100%;
  max-width:1180px;
  margin:26px auto 8px;
  padding:0 15px;
  box-sizing:border-box;
  position:relative;
  overflow:hidden;
}
.lgc-multistep-summary-block > .section,
.lgc-multistep-summary-block > .row,
.lgc-multistep-summary-block .section,
.lgc-multistep-summary-block .row{
  max-width:100%!important;
}
.lgc-multistep-summary-block .section{
  left:auto!important;
  right:auto!important;
  margin-left:0!important;
  margin-right:0!important;
}
@media(max-width:749px){
  .lgc-multistep-summary-block{
    margin-top:20px;
    padding:0 12px;
  }
}

/* v1.0.37 — multi-step-general customer Step 1 (technical builder Step 2):
   restore title, reviews and price only on the first General screen. */
.cac-step-2-wrapper .lgc-general-first-step-header{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  margin:0 0 20px !important;
}
.cac-step-2-wrapper .lgc-general-first-step-header .product_title{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  margin:0 0 6px !important;
}
.cac-step-2-wrapper .lgc-general-first-step-header .cac-rating{
  display:flex !important;
  align-items:center;
  gap:6px;
  visibility:visible !important;
  opacity:1 !important;
  margin:0 0 8px !important;
}
.cac-step-2-wrapper .lgc-general-first-step-header .price{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  margin:0 0 4px !important;
}
