
/* v1.0.23 Step 1 live preview + tighter mobile spacing + 2-row swatches */
.lgc-background-builder .lgc-step1-live-preview{
  width:100%;
  max-width:600px;
  margin:0 auto;
}
.lgc-background-builder .lgc-step1-live-stage{
  position:relative;
  width:100%;
  aspect-ratio:1 / 1;
  overflow:hidden;
  background:#f7f7f7;
}
.lgc-background-builder .lgc-step1-live-artwork,
.lgc-background-builder .lgc-step1-live-presentation{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.lgc-background-builder .lgc-step1-live-artwork{z-index:1;}
.lgc-background-builder .lgc-step1-live-presentation{z-index:2;pointer-events:none;}
.lgc-background-builder .lgc-bg-swatch-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  width:100%;
  max-width:620px;
}
.lgc-background-builder .lgc-bg-swatch-card{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  box-sizing:border-box;
  min-width:0;
  min-height:82px;
  margin:0;
  padding:10px;
  border:1px solid #ddd;
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.lgc-background-builder .lgc-bg-swatch-card:hover{border-color:#888;}
.lgc-background-builder .lgc-bg-swatch-card.is-selected{
  border:3px solid #111;
  padding:8px;
}
.lgc-background-builder .lgc-bg-swatch-card input[type="radio"]{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
  width:1px!important;
  height:1px!important;
}
.lgc-background-builder .lgc-bg-swatch-chip{
  display:block;
  flex:0 0 54px;
  width:54px;
  height:54px;
  border-radius:9px;
  border:1px solid rgba(0,0,0,.12);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
}
.lgc-background-builder .lgc-bg-custom-gradient{
  background:linear-gradient(135deg,#ff1744 0%,#ff9100 20%,#fff000 38%,#32d74b 55%,#00b8ff 72%,#5b2cff 86%,#ff00b8 100%);
}
.lgc-background-builder .lgc-bg-swatch-name{
  display:block;
  min-width:0;
  font-size:14px;
  font-weight:600;
  line-height:1.2;
  color:#222;
}
@media(max-width:849px){
  .lgc-background-builder .lgc-step1-live-preview{
    max-width:520px;
    margin-bottom:4px;
  }
  .lgc-background-builder.cac-step-1-wrapper .product-gallery-column{
    padding-bottom:6px !important;
    margin-bottom:0 !important;
  }
  .lgc-background-builder.cac-step-1-wrapper .product-summary-column{
    padding-top:0 !important;
    margin-top:0 !important;
  }
  .lgc-background-builder .lgc-bg-swatch-list{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    max-width:none;
    padding:2px 0 0;
  }
  .lgc-background-builder .lgc-bg-swatch-card{
    min-width:0;
    min-height:118px;
    flex-direction:column;
    justify-content:center;
    gap:8px;
    padding:10px 7px;
    text-align:center;
  }
  .lgc-background-builder .lgc-bg-swatch-card.is-selected{padding:8px 5px;}
  .lgc-background-builder .lgc-bg-swatch-chip{
    flex-basis:60px;
    width:60px;
    height:60px;
  }
  .lgc-background-builder .lgc-bg-swatch-name{
    width:100%;
    font-size:12px;
  }
}
@media(max-width:480px){
  .lgc-background-builder .lgc-step1-live-preview{
    width:88%;
    max-width:none;
  }
  .lgc-background-builder .lgc-bg-swatch-list{
    gap:8px;
  }
  .lgc-background-builder .lgc-bg-swatch-card{
    min-height:108px;
    padding:8px 6px;
    gap:6px;
    border-radius:11px;
  }
  .lgc-background-builder .lgc-bg-swatch-card.is-selected{padding:6px 4px;}
  .lgc-background-builder .lgc-bg-swatch-chip{
    flex-basis:52px;
    width:52px;
    height:52px;
    border-radius:10px;
  }
  .lgc-background-builder .lgc-bg-swatch-name{
    font-size:11px;
    line-height:1.15;
  }
}

/* Graffiti art builder specific styles only */
.lgc-background-builder .lgc-background-bg-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  width:100% !important;
  max-width:620px !important;
  gap:10px !important;
}
.lgc-background-builder .lgc-background-bg-card .cac-art-type-inner{
  padding:9px 7px 8px !important;
  min-height:0 !important;
}
.lgc-background-builder .lgc-background-bg-thumb{display:flex;align-items:center;justify-content:center;background:#fff;}
.lgc-background-builder .lgc-background-bg-thumb.has-image img{
  display:block !important;
  width:100% !important;
  max-width:130px !important;
  height:auto !important;
  object-fit:contain !important;
  margin:0 auto !important;
}
.lgc-background-builder .lgc-background-bg-thumb.is-swatch{min-height:120px;}
.lgc-background-builder .lgc-background-swatch-circle{display:block;width:74px;height:74px;border-radius:999px;border:1px solid #ddd;}
.lgc-background-builder .lgc-background-custom-pill{display:inline-flex;align-items:center;justify-content:center;width:74px;height:74px;border-radius:999px;background:#f4f4f4;border:1px solid #ddd;font-weight:700;font-size:24px;color:#444;}
.lgc-background-builder .lgc-print-thumb{width:84px;flex:0 0 auto;margin:0;}
.lgc-background-builder .lgc-print-thumb img{border-radius:10px;}
.lgc-background-builder .lgc-left{text-align:left;margin:0;}
.lgc-background-builder .cac-product-description-section{margin-top:50px;}
.lgc-background-builder .cac-short-description{margin-bottom:30px;}
.lgc-background-builder .cac-extras-list{display:flex;flex-direction:column;gap:12px;}
.lgc-background-builder .cac-extra-item{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid #e0e0e0;border-radius:8px;cursor:pointer;}
.lgc-background-builder .cac-extra-info{flex:1;display:flex;flex-direction:column;gap:2px;}
.lgc-background-builder .cac-extra-name,.lgc-background-builder .cac-extra-price{font-weight:600;font-size:15px;}
.lgc-background-builder .cac-extra-desc{font-size:12px;color:#666;}
.lgc-background-builder .cac-order-summary{background:#f9f9f9;padding:16px;border-radius:8px;}
.lgc-background-builder .cac-summary-title{font-weight:600;font-size:16px;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #e0e0e0;}
.lgc-background-builder .cac-summary-row{display:flex;justify-content:space-between;gap:20px;padding:6px 0;font-size:12px;}
.lgc-background-builder .cac-summary-row span:first-child{color:#666;}
.lgc-background-builder .cac-summary-row span:last-child{font-weight:500;text-align:right;}
.lgc-background-builder .cac-extras-price-line{margin-top:6px;font-size:14px;color:#666;}
@media(max-width:849px){
  .lgc-background-builder .lgc-background-bg-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    max-width:440px !important;
    gap:10px !important;
  }
  .lgc-background-builder .lgc-background-bg-thumb.has-image img{
    max-width:125px !important;
  }
}
@media(max-width:480px){
  .lgc-background-builder .lgc-background-bg-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    max-width:none !important;
    gap:8px !important;
  }
  .lgc-background-builder .lgc-background-bg-card .cac-art-type-inner{
    padding:7px 5px 7px !important;
  }
  .lgc-background-builder .lgc-background-bg-thumb.has-image img{
    max-width:108px !important;
  }
}

/* Step 3 font style selector */
.lgc-background-builder .lgc-font-style-section.is-hidden{
  display:none !important;
}
.lgc-background-builder .lgc-font-style-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:8px !important;
  width:100% !important;
  max-width:470px !important;
}
.lgc-background-builder .lgc-font-style-card{
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:space-between !important;
  box-sizing:border-box !important;
  width:100% !important;
  height:150px !important;
  min-height:0 !important;
  max-height:150px !important;
  gap:5px !important;
  margin:0 !important;
  padding:8px 7px 9px !important;
  border:1px solid #dedede !important;
  border-radius:10px !important;
  background:#fff !important;
  cursor:pointer !important;
  overflow:hidden !important;
}
.lgc-background-builder .lgc-font-style-card:hover{
  border-color:#888 !important;
}
.lgc-background-builder .lgc-font-style-card.is-selected{
  border:3px solid #111 !important;
  padding:6px 5px 7px !important;
}
.lgc-background-builder .lgc-font-style-card input[type="radio"]{
  position:absolute !important;
  opacity:0 !important;
  pointer-events:none !important;
  width:1px !important;
  height:1px !important;
}
.lgc-background-builder .lgc-font-style-preview{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 96px !important;
  width:100% !important;
  height:96px !important;
  min-height:0 !important;
  max-height:96px !important;
  border-radius:7px !important;
  background:#f7f7f7 !important;
  overflow:hidden !important;
}
.lgc-background-builder .lgc-font-style-preview.has-image{
  background:#fff !important;
}
.lgc-background-builder .lgc-font-style-preview img{
  display:block !important;
  width:100% !important;
  height:96px !important;
  min-height:0 !important;
  max-height:96px !important;
  object-fit:contain !important;
  object-position:center !important;
  margin:0 !important;
}
.lgc-background-builder .lgc-font-style-placeholder{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:48px !important;
  height:48px !important;
  border-radius:999px !important;
  background:#eee !important;
  color:#333 !important;
  font-weight:700 !important;
  font-size:19px !important;
  line-height:1 !important;
}
.lgc-background-builder .lgc-font-style-label{
  display:block !important;
  width:100% !important;
  text-align:center !important;
  font-size:13px !important;
  font-weight:600 !important;
  line-height:1.15 !important;
  color:#222 !important;
  margin:0 !important;
}
@media(max-width:480px){
  .lgc-background-builder .lgc-font-style-grid{
    gap:6px !important;
    max-width:none !important;
  }
  .lgc-background-builder .lgc-font-style-card{
    height:130px !important;
    max-height:130px !important;
    padding:6px 4px 7px !important;
  }
  .lgc-background-builder .lgc-font-style-card.is-selected{
    padding:4px 2px 5px !important;
  }
  .lgc-background-builder .lgc-font-style-preview,
  .lgc-background-builder .lgc-font-style-preview img{
    flex-basis:80px !important;
    height:80px !important;
    max-height:80px !important;
  }
  .lgc-background-builder .lgc-font-style-label{
    font-size:11px !important;
  }
}


/* Phase 1 selected-style preview: Steps 2-4 */
.lgc-background-builder .lgc-builder-visual{
  width:100%;
}
.lgc-background-builder .lgc-selected-style-preview{
  width:100%;
  max-width:600px;
  margin:0 auto;
}
.lgc-background-builder .lgc-selected-style-image,
.lgc-background-builder .lgc-custom-preview-stage,
.lgc-background-builder .lgc-custom-preview-fallback{
  position:relative;
  width:100%;
  aspect-ratio:1 / 1;
  overflow:hidden;
  background:#f7f7f7;
}
.lgc-background-builder .lgc-selected-style-image img,
.lgc-background-builder .lgc-custom-preview-fallback img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.lgc-background-builder .lgc-custom-preview-stage{
  display:none;
}
.lgc-background-builder .lgc-custom-preview-stage img{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.lgc-background-builder .lgc-custom-style-preview.is-valid-custom-color .lgc-custom-preview-stage{
  display:block;
}
.lgc-background-builder .lgc-custom-style-preview.is-valid-custom-color .lgc-custom-preview-fallback{
  display:none;
}
.lgc-background-builder .lgc-selected-style-caption{
  margin-top:10px;
  text-align:center;
  font-size:13px;
  line-height:1.35;
  color:#666;
}
@media(max-width:849px){
  .lgc-background-builder .lgc-selected-style-preview{
    max-width:520px;
    margin-bottom:24px;
  }
}

/* v1.0.13 layered Step 2-4 live preview */
.lgc-background-builder .lgc-live-preview-stage{
  position:relative;
  width:100%;
  aspect-ratio:1 / 1;
  overflow:hidden;
  background:#f7f7f7;
}
.lgc-background-builder .lgc-live-preview-artwork,
.lgc-background-builder .lgc-live-preview-presentation{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.lgc-background-builder .lgc-live-preview-artwork{z-index:1;}
.lgc-background-builder .lgc-live-preview-name-wrap{position:absolute;left:20%;right:20%;top:8%;height:20%;display:none;align-items:center;justify-content:center;z-index:2;pointer-events:none;overflow:hidden;}
.lgc-background-builder .lgc-live-preview-name-wrap.has-text{display:flex;}
.lgc-background-builder .lgc-live-preview-name{display:block;width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.05;color:#111;text-align:center;font-size:36px;font-weight:400;letter-spacing:0;transform-origin:center center;}
.lgc-background-builder .lgc-live-preview-name.is-modern{font-family:Arial,sans-serif;font-weight:400;}
.lgc-background-builder .lgc-live-preview-name.is-classic{font-family:"Times New Roman",Times,serif;font-weight:400;}
.lgc-background-builder .lgc-live-preview-name.is-signature{font-family:"brush-script-std",cursive;font-weight:400;line-height:.95;}
.lgc-background-builder .lgc-live-preview-presentation{z-index:3;pointer-events:none;}
@media(max-width:767px){.lgc-background-builder .lgc-live-preview-name-wrap{left:18%;right:18%;top:7.5%;height:21%;}}

/* v1.0.24 Step 2 hierarchy: Print Type -> Frame -> Size -> Total */
.lgc-background-builder.cac-step-2-wrapper .lgc-step2-price-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin:24px 0 10px;
  padding:14px 0 12px;
  border-top:1px solid #e3e3e3;
}
.lgc-background-builder.cac-step-2-wrapper .lgc-step2-price-label{
  font-size:18px;
  font-weight:700;
  line-height:1.2;
  color:#111;
}
.lgc-background-builder.cac-step-2-wrapper .lgc-step2-price{
  margin:0!important;
  font-size:22px;
  font-weight:700;
  line-height:1.2;
  text-align:right;
}
.lgc-background-builder.cac-step-2-wrapper .lgc-step2-price del{
  font-size:.78em;
  font-weight:400;
  opacity:.6;
  margin-right:5px;
}
@media(max-width:849px){
  .lgc-background-builder.cac-step-2-wrapper .product-summary-column{
    padding-top:0!important;
  }
  .lgc-background-builder.cac-step-2-wrapper .lgc-step2-price-row{
    margin-top:20px;
  }
}


/* v1.0.25 tighten Step 2 mobile preview-to-controls spacing */
@media(max-width:849px){
  .lgc-background-builder.cac-step-2-wrapper .product-gallery-column{
    margin-bottom:0!important;
    padding-bottom:0!important;
  }
  .lgc-background-builder.cac-step-2-wrapper .lgc-builder-visual{
    margin-bottom:0!important;
    padding-bottom:0!important;
  }
  .lgc-background-builder.cac-step-2-wrapper .lgc-selected-style-preview{
    margin-bottom:4px!important;
  }
  .lgc-background-builder.cac-step-2-wrapper .lgc-selected-style-caption{
    margin-top:6px!important;
    margin-bottom:0!important;
  }
  .lgc-background-builder.cac-step-2-wrapper .product-summary-column{
    margin-top:0!important;
    padding-top:4px!important;
  }
  .lgc-background-builder.cac-step-2-wrapper .product-summary-column > .cac-section:first-child{
    margin-top:0!important;
    padding-top:0!important;
  }
}


/* v1.0.27 enlarged frame detail selector */
.lgc-background-builder .lgc-frame-choice-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  width:100%;
}
.lgc-background-builder .lgc-frame-choice-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
  min-height:132px;
  margin:0;
  padding:10px 8px;
  box-sizing:border-box;
  border:1px solid #ddd;
  border-radius:12px;
  background:#fff;
  text-align:center;
  cursor:pointer;
}
.lgc-background-builder .lgc-frame-choice-card.is-selected{
  border:3px solid #111;
  padding:8px 6px;
}
.lgc-background-builder .lgc-frame-choice-card input[type="radio"]{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
  width:1px!important;
  height:1px!important;
}
.lgc-background-builder .lgc-frame-choice-visual{
  display:flex;
  align-items:center;
  justify-content:center;
  width:104px;
  height:82px;
  overflow:hidden;
  border-radius:7px;
  background:#f6f6f6;
}
.lgc-background-builder .lgc-frame-choice-visual img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.lgc-background-builder .lgc-no-frame-visual{
  background:#fafafa;
  border:1px solid #e3e3e3;
}
.lgc-background-builder .lgc-no-frame-icon{
  display:block;
  width:62px;
  height:46px;
  border:2px solid #c9c9c9;
  background:#fff;
  box-shadow:0 2px 5px rgba(0,0,0,.08);
}
.lgc-background-builder .lgc-frame-choice-label{
  display:block;
  width:100%;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  color:#222;
}
@media(max-width:849px){
  .lgc-background-builder .lgc-frame-choice-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .lgc-background-builder .lgc-frame-choice-card{
    min-height:154px;
    padding:12px 8px;
    gap:9px;
  }
  .lgc-background-builder .lgc-frame-choice-card.is-selected{
    padding:10px 6px;
  }
  .lgc-background-builder .lgc-frame-choice-visual{
    width:118px;
    height:96px;
    border-radius:9px;
  }
  .lgc-background-builder .lgc-no-frame-icon{
    width:72px;
    height:54px;
  }
  .lgc-background-builder .lgc-frame-choice-label{
    font-size:14px;
  }
}
@media(max-width:480px){
  .lgc-background-builder .lgc-frame-choice-card{
    min-height:148px;
  }
  .lgc-background-builder .lgc-frame-choice-visual{
    width:112px;
    height:92px;
  }
}

/* v1.0.28: No Frame is text-only so it cannot be mistaken for a white frame. */
.lgc-background-builder .lgc-frame-choice-no-frame{
  justify-content:center;
}
.lgc-background-builder .lgc-frame-choice-no-frame-label{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:82px;
  font-size:18px;
  font-weight:700;
  line-height:1.15;
}
@media(max-width:849px){
  .lgc-background-builder .lgc-frame-choice-no-frame-label{
    min-height:96px;
    font-size:18px;
  }
}
@media(max-width:480px){
  .lgc-background-builder .lgc-frame-choice-no-frame-label{
    min-height:92px;
  }
}


/* v1.0.30 tighten Step 3 mobile preview-to-personalization spacing */
@media(max-width:849px){
  .lgc-background-builder.cac-step-3-wrapper .product-gallery-column{
    margin-bottom:0!important;
    padding-bottom:0!important;
  }
  .lgc-background-builder.cac-step-3-wrapper .lgc-builder-visual{
    margin-bottom:0!important;
    padding-bottom:0!important;
  }
  .lgc-background-builder.cac-step-3-wrapper .lgc-selected-style-preview{
    margin-bottom:4px!important;
  }
  .lgc-background-builder.cac-step-3-wrapper .lgc-selected-style-caption{
    margin-top:6px!important;
    margin-bottom:0!important;
  }
  .lgc-background-builder.cac-step-3-wrapper .product-summary-column{
    margin-top:0!important;
    padding-top:8px!important;
  }
  .lgc-background-builder.cac-step-3-wrapper .product-summary-column > .cac-section:first-child{
    margin-top:0!important;
    padding-top:0!important;
  }
}


/* v1.0.32: approved LoveGiftsCo inline subtotal footer */
.lgc-background-builder .lgc-inline-subtotal{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:5px 12px;text-align:center;margin:8px auto 3px}
.lgc-background-builder .lgc-inline-label{font-size:20px;font-weight:700;line-height:1.3;color:#222}
.lgc-background-builder .lgc-inline-subtotal .price{font-size:26px!important;font-weight:700!important;color:#181818!important;line-height:1.25;margin:0!important}
.lgc-background-builder .lgc-inline-subtotal .price ins{color:#181818!important;text-decoration:none!important;font-weight:750!important}
.lgc-background-builder .lgc-inline-subtotal .price del{font-size:16px!important;font-weight:400!important;color:#777!important;opacity:1!important;margin-right:8px}
.lgc-background-builder .lgc-inline-shipping{font-size:14px;text-align:center;color:#4b4b4b;line-height:1.5;margin:8px 0 14px}
.lgc-background-builder .lgc-inline-shipping strong{color:#222;font-weight:750}

/* Sci-Fi 12-scene selector */
.lgc-background-builder .lgc-background-step1-preview{width:100%;aspect-ratio:1;background:#f5f5f5;display:flex;align-items:center;justify-content:center;overflow:hidden}
.lgc-background-builder .lgc-background-step1-preview img{display:block;width:100%;height:100%;object-fit:contain}
.lgc-background-builder .lgc-background-example-note{text-align:center;color:#777;font-size:13px;padding:10px 0}
.lgc-background-builder .lgc-background-background-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px}
.lgc-background-builder .lgc-background-bg-card{cursor:pointer;text-align:center;border:2px solid #ddd;border-radius:7px;overflow:hidden;background:#fff}
.lgc-background-builder .lgc-background-bg-card.is-selected{border-color:#222;box-shadow:0 0 0 1px #222}
.lgc-background-builder .lgc-background-bg-card input,.lgc-background-builder .lgc-background-count-card input{position:absolute;opacity:0;width:1px;height:1px}
.lgc-background-builder .lgc-background-bg-image{display:block;aspect-ratio:1}
.lgc-background-builder .lgc-background-bg-image img{width:100%;height:100%;object-fit:cover}
.lgc-background-builder .lgc-background-bg-label{display:block;padding:5px 2px;font-size:11px;line-height:1.3}
.lgc-background-builder .lgc-background-character-subtitle{font-size:13px;color:#666;margin:6px 0 12px}
.lgc-background-builder .lgc-background-count-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.lgc-background-builder .lgc-background-count-card{border:2px solid #ddd;border-radius:6px;text-align:center;cursor:pointer;padding:12px 4px;font-weight:700}
.lgc-background-builder .lgc-background-count-card.is-selected{border-color:#222;background:#f3f3f3}
.lgc-background-builder .lgc-background-bg-card:focus-within,.lgc-background-builder .lgc-background-count-card:focus-within{outline:2px solid #007cba;outline-offset:2px}
@media(max-width:549px){.lgc-background-builder .lgc-background-background-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Step 1 gallery thumbnails: driven by the same product background library. */
.lgc-background-builder .lgc-background-gallery-thumbs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:12px 0}
.lgc-background-builder .lgc-background-gallery-thumb{display:block;appearance:none;background:#fff;border:2px solid #ddd;border-radius:5px;padding:2px;cursor:pointer;aspect-ratio:1;overflow:hidden;min-width:0}
.lgc-background-builder .lgc-background-gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.lgc-background-builder .lgc-background-gallery-thumb.is-selected{border-color:#222;box-shadow:0 0 0 1px #222}
.lgc-background-builder .lgc-background-gallery-thumb:focus-visible{outline:2px solid #007cba;outline-offset:2px}
@media(max-width:549px){.lgc-background-builder .lgc-background-gallery-thumbs{grid-template-columns:repeat(4,minmax(0,1fr));}}

/* v1.1.4: The chosen finished background is the image being purchased.
   Mockup PNGs (transparent in the art opening) sit above this image. */
.lgc-background-builder .lgc-live-preview-stage { isolation:isolate; }
.lgc-background-builder .lgc-live-preview-artwork { position:absolute!important; inset:0!important; width:100%!important; height:100%!important; object-fit:contain!important; z-index:1!important; opacity:1!important; }
.lgc-background-builder .lgc-live-preview-presentation { position:absolute!important; inset:0!important; width:100%!important; height:100%!important; object-fit:contain!important; z-index:3!important; }
.lgc-background-builder .lgc-selected-style-caption { margin-top:10px; }

/* Multi-photo upload: shared between artwork and personalization steps */
.lgc-multi-upload{max-width:100%;}.lgc-multi-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.lgc-multi-drop{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:23px 15px;border:2px dashed #b7b7b7;border-radius:12px;background:#fafafa;cursor:pointer!important;position:static!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;float:none!important}.lgc-multi-drop:hover,.lgc-multi-drop.is-over{border-color:#2383dc;background:#f2f8ff}.lgc-multi-drop span{font-size:14px;color:#555}.lgc-multi-drop small{font-size:12px;color:#777}.lgc-multi-icon{font-size:30px!important;line-height:1!important;color:#444!important}.lgc-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(95px,1fr));gap:12px;margin-top:14px}.lgc-photo-tile{position:relative;aspect-ratio:1;border:1px solid #ddd;border-radius:9px;overflow:hidden;background:#fff}.lgc-photo-tile img{height:100%!important;width:100%!important;object-fit:cover!important}.lgc-photo-remove{position:absolute;top:3px;right:3px;background:#fff!important;color:#222!important;border-radius:50%!important;border:1px solid #ccc!important;width:25px!important;height:25px!important;padding:0!important;line-height:1!important;font-size:20px!important;cursor:pointer}.lgc-product-rating{display:flex;align-items:center;gap:10px;margin-bottom:12px}.lgc-product-rating a{font-size:14px;color:#444;text-decoration:underline}

/* v1.2.0: theme-native price/reviews, loading state and missing mockup feedback */
.lgc-background-builder .woocommerce-product-rating{display:flex;align-items:center;gap:8px;margin-bottom:12px;}
.lgc-background-builder .woocommerce-product-rating .star-rating{margin:0;}
.lgc-background-builder .woocommerce-review-link{font-size:14px;}
.lgc-background-builder .cac-next-button.is-loading{opacity:.8;cursor:progress;pointer-events:none;}
.lgc-next-spinner{display:none;width:17px;height:17px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:middle;margin-left:10px;animation:lgc-rotate .65s linear infinite;}
.cac-next-button.is-loading .lgc-next-spinner{display:inline-block;}
@keyframes lgc-rotate{to{transform:rotate(360deg)}}
.lgc-preview-overlay-note{font-size:12px;color:#795300;background:#fff6d9;padding:9px 12px;margin-top:10px;border-radius:5px;}

/* v1.2.2: spinner exists only while submitting; avoid Flatsome span styling. */
.lgc-background-builder .cac-next-button:not(.is-loading)::after { content:none!important; animation:none!important; }
.lgc-background-builder .cac-next-button.is-loading::after { content:""!important; display:inline-block!important; width:17px!important; height:17px!important; margin-left:10px!important; vertical-align:middle!important; border:2px solid currentColor!important; border-right-color:transparent!important; border-radius:50%!important; animation:lgc-rotate .65s linear infinite!important; position:static!important; opacity:1!important; }

/* v1.2.3: Same product title, rating and sale price hierarchy as other Flatsome builders */
.lgc-background-builder .product-summary-column .price{display:block!important;font-size:26px!important;font-weight:700!important;color:#111!important;line-height:1.3!important;margin:12px 0 24px!important}
.lgc-background-builder .price del{color:#777!important;font-size:.84em!important;font-weight:400!important;opacity:1!important;margin-right:10px!important}
.lgc-background-builder .price ins{color:#111!important;text-decoration:none!important;font-weight:700!important}
.lgc-background-builder .woocommerce-product-rating{display:flex;align-items:center;gap:8px;margin:8px 0 14px!important}
.lgc-background-builder .woocommerce-product-rating .star-rating{margin:0!important}

/* Artist instructions are part of print selection in the three-step flow. */
.lgc-background-builder .lgc-background-artist-notes { margin-top: 24px; }
.lgc-background-builder .lgc-background-artist-notes textarea { width: 100%; max-width: 100%; min-height: 110px; box-sizing: border-box; }
