.lgc-pet-art-v2 {
  margin: 0 0 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

.lgc-v2-builder-heading h3,
.lgc-v2-section-heading h4,
.lgc-related-heading h2 {
  margin: 0;
}

.lgc-v2-step-label,
.lgc-related-heading > span,
.lgc-v2-section-number {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .62;
}

.lgc-v2-subhead {
  margin: 7px 0 0;
  font-size: 14px;
  opacity: .76;
}

.lgc-v2-builder-top {
  margin-bottom: 24px;
}

.lgc-v2-builder-heading {
  padding: 0;
}

.lgc-v2-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 20px 0 2px;
  position: relative;
}

.lgc-v2-stepper::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 11px;
  height: 1px;
  background: #ddd7ce;
  z-index: 0;
}

.lgc-v2-stepper li {
  position: relative;
  z-index: 1;
  padding: 0 5px;
  text-align: center;
  color: #8a857e;
  background: transparent;
  border: 0;
}

.lgc-v2-stepper li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  margin: 0 auto 7px;
  border: 1px solid #d9d3ca;
  border-radius: 50%;
  background: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
}

.lgc-v2-stepper li strong {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
}

.lgc-v2-stepper li.is-active {
  color: #111;
}

.lgc-v2-stepper li.is-active span {
  border-color: #111;
  background: #111;
  color: #fff;
}

.lgc-v2-stepper li.is-complete {
  color: #397b4d;
}

.lgc-v2-stepper li.is-complete span {
  border-color: #397b4d;
  background: #397b4d;
  color: #fff;
}

.lgc-v2-step-card {
  margin-top: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.lgc-v2-section-heading {
  margin-bottom: 13px;
}

.lgc-v2-photo-guide {
  margin: 0 0 14px;
  padding: 13px 14px;
  border-radius: 11px;
  background: #f7f5f1;
  line-height: 1.45;
  font-size: 14px;
}

.lgc-v2-photo-guide strong,
.lgc-v2-photo-guide span {
  display: block;
}

.lgc-v2-upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 122px;
  padding: 18px;
  border: 1.5px dashed #bdb5a9;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  background: #fcfbf9;
}

.lgc-v2-upload-title {
  font-weight: 700;
  font-size: 17px;
}

.lgc-v2-upload-sub {
  margin-top: 4px;
  font-size: 12px;
  opacity: .63;
}

.lgc-v2-upload-box input[type="file"] {
  margin-top: 12px;
  max-width: 100%;
}

.lgc-v2-reuse-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #faf8f5;
}

.lgc-v2-reuse-copy {
  font-size: 12px;
}

.lgc-v2-reuse-photo {
  padding: 7px 10px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
}

.lgc-v2-uploaded-preview-wrap {
  max-width: 170px;
  margin-top: 14px;
}

.lgc-v2-uploaded-preview-label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.lgc-v2-uploaded-preview {
  display: block;
  width: 100%;
  max-width: 170px;
  height: auto;
  border: 1px solid #ece5db;
  border-radius: 10px;
}

.lgc-v2-photo-feedback {
  min-height: 20px;
  margin-top: 11px;
  font-size: 13px;
}

.lgc-v2-photo-feedback.is-ready,
.lgc-v2-photo-feedback.is-checking,
.lgc-v2-photo-feedback.is-usable {
  color: #6b5b3e;
}

.lgc-v2-photo-feedback.is-good {
  color: #287a45;
}

.lgc-v2-photo-feedback.is-error,
.lgc-v2-cart-error {
  color: #b42318;
}

.lgc-v2-generate,
.lgc-v2-continue-print,
.lgc-v2-continue-review,
.lgc-v2-final-add-cart {
  min-height: 44px;
}

.lgc-v2-generate {
  width: 100%;
  margin-top: 11px !important;
}

.lgc-v2-status {
  margin-top: 10px;
  font-size: 13px;
}

.lgc-v2-preview-wrap {
  margin-top: 10px;
}

.lgc-v2-preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.lgc-v2-step-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 16px;
}

.lgc-v2-step-actions .button {
  min-width: 210px;
  text-align: center;
}

.lgc-v2-text-action {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 2px;
  color: #555;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- PRINT CONFIGURATOR ---------- */

.lgc-v2-print-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 28px;
  align-items: start;
}

.lgc-live-mockup-column {
  position: sticky;
  top: 20px;
}

.lgc-live-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #efefef;
}

.lgc-live-art-slot {
  position: absolute;
  overflow: hidden;
  z-index: 1;
  background: #fff;
}

.lgc-live-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lgc-live-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.lgc-live-caption {
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
  opacity: .72;
}

.lgc-print-section {
  margin-bottom: 18px;
}

.lgc-print-section-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

.lgc-print-grid {
  display: grid;
  gap: 8px;
}

.lgc-printtype-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lgc-frame-grid,
.lgc-size-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lgc-option-card {
  display: block;
  position: relative;
  margin: 0;
  cursor: pointer;
}

.lgc-option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lgc-option-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 10px;
  border: 1px solid #ded8ce;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-sizing: border-box;
}

.lgc-option-row {
  flex-direction: row;
  justify-content: flex-start;
  gap: 9px;
  min-height: 92px;
  text-align: left;
}

.lgc-option-inner img {
  display: block;
  width: 100%;
  max-width: 96px;
  max-height: 96px;
  object-fit: contain;
  border-radius: 8px;
}

.lgc-option-row img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}

.lgc-option-label {
  display: block;
  font-weight: 700;
  line-height: 1.2;
  font-size: 13px;
}

.lgc-option-inner small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.3;
  opacity: .68;
}

.lgc-option-card input:checked + .lgc-option-inner {
  border: 2px solid #111;
  box-shadow: inset 0 0 0 1px #111;
}

.lgc-no-frame-inner {
  min-height: 104px;
}

.lgc-print-validation {
  min-height: 18px;
  margin: 7px 0 11px;
  font-size: 12px;
  opacity: .75;
}

.lgc-v2-continue-review {
  width: 100%;
}

/* ---------- REVIEW ---------- */

.lgc-v2-review-layout {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: center;
}

.lgc-live-mockup-review {
  max-width: 420px;
}

.lgc-v2-review-summary h5 {
  margin: 0 0 14px;
  font-size: 19px;
}

.lgc-v2-review-summary dl {
  margin: 0;
}

.lgc-v2-review-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid #eee7de;
}

.lgc-v2-review-summary dt {
  font-weight: 600;
}

.lgc-v2-review-summary dd {
  margin: 0;
  text-align: right;
}

.lgc-review-price {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 700;
}

.lgc-v2-review-actions {
  margin-top: 18px;
}

.lgc-v2-cart-error {
  margin-top: 10px;
  font-size: 13px;
}

/* Native Woo form stays operational but visually out of the builder flow. */
form.cart.lgc-native-cart-hidden {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Related styles */
.lgc-related-ai-styles {
  clear: both;
  margin: 42px 0;
}

.lgc-related-heading {
  margin-bottom: 18px;
}

.lgc-related-heading p {
  margin-top: 8px;
  opacity: .75;
}

.lgc-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.lgc-related-card {
  border: 1px solid #e5e2dc;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.lgc-related-image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6f4f0;
}

.lgc-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lgc-related-card-body {
  padding: 14px;
}

.lgc-related-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.lgc-related-card h3 a {
  text-decoration: none;
}

.lgc-related-price {
  margin-bottom: 10px;
}

.lgc-related-preview-link {
  width: 100%;
  text-align: center;
}

@media (max-width: 849px) {
  .lgc-v2-print-layout,
  .lgc-v2-review-layout {
    grid-template-columns: 1fr;
  }

  .lgc-live-mockup-column {
    position: static;
  }

  .lgc-live-mockup-main,
  .lgc-live-mockup-review {
    max-width: 560px;
    margin: 0 auto;
  }

  .lgc-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 549px) {
  .lgc-pet-art-v2 {
    padding: 0;
    border-radius: 0;
  }

  .lgc-v2-stepper {
    gap: 5px;
  }

  .lgc-v2-stepper li {
    padding: 8px 4px;
  }

  .lgc-v2-stepper li strong {
    font-size: 10px;
  }

  .lgc-v2-step-card {
    padding: 0;
  }

  .lgc-v2-reuse-wrap {
    align-items: center;
  }

  .lgc-v2-step-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .lgc-v2-step-actions .button {
    width: 100%;
    min-width: 0;
  }

  .lgc-v2-text-action {
    width: 100%;
    text-align: center;
  }

  .lgc-printtype-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lgc-frame-grid,
  .lgc-size-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lgc-option-inner {
    min-height: 96px;
    padding: 8px;
  }

  .lgc-option-row {
    flex-direction: column;
    text-align: center;
  }

  .lgc-option-row img {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .lgc-live-mockup-main,
  .lgc-live-mockup-review {
    max-width: 100%;
  }

  .lgc-related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}


/* v0.7.1 visual cleanup */
.lgc-v2-section-heading {
  margin-bottom: 14px;
}

.lgc-v2-section-heading h4 {
  font-size: 21px;
  line-height: 1.2;
}

.lgc-v2-step-card-preview .lgc-v2-preview-wrap {
  margin-top: 12px;
}

.lgc-v2-step-card-preview .lgc-v2-preview {
  border: 0;
  box-shadow: none;
}

@media (min-width: 850px) {
  .lgc-v2-step-card-preview .lgc-v2-preview {
    max-height: 560px;
    object-fit: contain;
    object-position: center;
  }
}


/* v0.7.4 Phase 1 layout cleanup
   - removed outer builder card/border
   - reclaimed horizontal space
   - kept existing builder logic and selection UI intact
*/


/* v0.7.5 Phase 1b — simplified upload screen */
.lgc-pet-art-v2[data-current-step="1"] .lgc-v2-builder-top {
  display: none;
}

.lgc-pet-art-v2[data-current-step="1"] .lgc-v2-step-card-photo {
  margin-top: 0;
}

.lgc-v2-upload-heading {
  margin-bottom: 18px;
}

.lgc-v2-upload-heading h4 {
  margin: 0;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.08;
}

.lgc-v2-upload-heading p {
  margin: 7px 0 0;
  font-size: 15px;
  color: #676767;
}

.lgc-v2-photo-guide {
  display: none;
}

.lgc-v2-upload-box {
  min-height: 220px;
  padding: 32px 28px;
  border: 1.5px dashed #8f8f8f;
  border-radius: 16px;
  background: #fcfbf8;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.lgc-v2-upload-box:hover {
  border-color: #111;
  background: #fff;
}

.lgc-v2-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border: 1px solid #e6e2dc;
  border-radius: 50%;
  background: #fff;
  color: #171717;
}

.lgc-v2-upload-title {
  font-size: 18px;
  font-weight: 700;
}

.lgc-v2-upload-guidance {
  max-width: 500px;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.45;
  color: #666;
}

.lgc-v2-upload-sub {
  margin-top: 10px;
  font-size: 11px;
  color: #858585;
  opacity: 1;
}

.lgc-v2-upload-box input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.lgc-v2-uploaded-preview-wrap {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  max-width: none;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #e9e5de;
  border-radius: 12px;
  background: #fff;
}

.lgc-v2-uploaded-preview {
  width: 72px;
  height: 72px;
  max-width: none;
  object-fit: cover;
  border: 0;
  border-radius: 9px;
}

.lgc-v2-uploaded-preview-copy {
  min-width: 0;
}

.lgc-v2-uploaded-preview-copy strong,
.lgc-v2-uploaded-preview-copy span {
  display: block;
}

.lgc-v2-uploaded-preview-copy strong {
  font-size: 14px;
}

.lgc-v2-uploaded-preview-copy span {
  margin-top: 2px;
  font-size: 12px;
  color: #6e6e6e;
}

.lgc-v2-photo-feedback {
  min-height: 0;
  margin-top: 10px;
}

.lgc-v2-generate {
  min-height: 54px;
  margin-top: 12px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

.lgc-v2-upload-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 14px;
  font-size: 12px;
  color: #333;
}

.lgc-v2-upload-trust span {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .lgc-v2-upload-box {
    min-height: 190px;
    padding: 26px 18px;
  }

  .lgc-v2-upload-heading h4 {
    font-size: 27px;
  }

  .lgc-v2-upload-trust {
    gap: 8px 16px;
    font-size: 11px;
  }
}


/* v0.7.10 — use the WooCommerce gallery as the single Step 2 preview */

/* The generated artwork is already shown in the main product gallery.
   Hide the duplicate preview image inside Step 2. */
.lgc-v2-step-card-preview .lgc-v2-preview-wrap {
  display: none !important;
}

/* Keep the main generated preview vertical without letting it become so tall
   that the controls are pushed far down the page. */
.product.lgc-v2-preview-active .woocommerce-product-gallery__image {
  text-align: center;
}

.product.lgc-v2-preview-active .woocommerce-product-gallery__image > a {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.product.lgc-v2-preview-active .woocommerce-product-gallery__image img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 640px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: top center !important;
}

/* Flatsome/Woo gallery wrappers can inherit a square-ish image height.
   Let the generated portrait determine its own height. */
.product.lgc-v2-preview-active .woocommerce-product-gallery__image,
.product.lgc-v2-preview-active .woocommerce-product-gallery__image > a {
  height: auto !important;
  min-height: 0 !important;
}

@media (max-width: 849px) {
  .product.lgc-v2-preview-active .woocommerce-product-gallery__image img {
    max-height: 560px !important;
  }
}


/* v0.7.12 — safe return to an existing preview */
.lgc-v2-back-to-preview {
  display: inline-block;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.lgc-v2-back-to-preview[hidden] {
  display: none !important;
}


/* v0.7.13 — direct Photo -> Print -> Review flow */
.lgc-v2-stepper {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lgc-v2-step-card-preview {
  display: none !important;
}

.lgc-v2-print-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lgc-v2-print-heading-row .lgc-v2-section-heading,
.lgc-v2-print-heading-row .lgc-v2-section-heading h4 {
  margin: 0;
}

.lgc-v2-step-card-print .lgc-print-controls-column {
  width: 100%;
  max-width: none;
}

/* Use the main Woo gallery on the left as the only artwork preview.
   Give the right-side selections the full width, like the prior builder. */
.lgc-v2-step-card-print .lgc-printtype-grid,
.lgc-v2-step-card-print .lgc-frame-grid,
.lgc-v2-step-card-print .lgc-size-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lgc-v2-step-card-print .lgc-option-inner {
  min-height: 112px;
  padding: 12px;
}

.lgc-v2-step-card-print .lgc-frame-grid .lgc-option-inner,
.lgc-v2-step-card-print .lgc-no-frame-inner {
  min-height: 150px;
}

.lgc-v2-step-card-print .lgc-frame-grid .lgc-option-inner img {
  display: block;
  width: auto;
  height: auto;
  max-width: 170px;
  max-height: 115px;
  margin: 0 auto 9px;
  object-fit: contain;
}

.lgc-v2-back-to-print-options {
  display: inline-block;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.lgc-v2-back-to-print-options[hidden] {
  display: none !important;
}

@media (max-width: 549px) {
  .lgc-v2-print-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


/* v0.7.14 — live print mockup in the main WooCommerce gallery */
.product .woocommerce-product-gallery__image {
  position: relative;
}

.product .lgc-main-gallery-mockup {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background: transparent;
}

.product .lgc-main-gallery-mockup[hidden] {
  display: none !important;
}

.product .lgc-main-gallery-mockup .lgc-live-art-slot {
  position: absolute;
  overflow: hidden;
  z-index: 1;
  background: #fff;
}

.product .lgc-main-gallery-mockup .lgc-live-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product .lgc-main-gallery-mockup .lgc-live-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

@media (max-width: 849px) {
  .product .lgc-main-gallery-mockup {
    max-width: 560px;
  }
}


/* v0.7.16 — main-gallery mockup placement fix
   The live print mockup occupies the SAME WooCommerce gallery area.
   It no longer flows underneath as a second preview. */

.product.lgc-v2-main-mockup-active .woocommerce-product-gallery__image {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  background: #f3f3f3;
}

.product.lgc-v2-main-mockup-active .woocommerce-product-gallery__image > a {
  display: none !important;
}

.product.lgc-v2-main-mockup-active .lgc-main-gallery-mockup {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: #f3f3f3 !important;
}

.product.lgc-v2-main-mockup-active .lgc-main-gallery-mockup[hidden] {
  display: none !important;
}

.product.lgc-v2-main-mockup-active .lgc-main-gallery-mockup .lgc-live-art-slot {
  position: absolute !important;
  overflow: hidden !important;
  z-index: 1 !important;
  background: #fff !important;
}

.product.lgc-v2-main-mockup-active .lgc-main-gallery-mockup .lgc-live-art {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.product.lgc-v2-main-mockup-active .lgc-main-gallery-mockup .lgc-live-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  pointer-events: none !important;
}

/* Raw generated artwork remains vertical before a print mockup is active. */
.product.lgc-v2-preview-active:not(.lgc-v2-main-mockup-active)
.woocommerce-product-gallery__image img {
  width: auto !important;
  max-width: 100% !important;
  max-height: 640px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}


/* v0.7.17 — slightly larger portrait preview, never distort artwork */
.product.lgc-v2-main-mockup-active .lgc-main-gallery-mockup .lgc-live-art {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Keep the artwork itself proportional even when the mockup aperture
   has a different ratio than the generated 4:5 image. */
.product.lgc-v2-main-mockup-active .lgc-main-gallery-mockup .lgc-live-art-slot {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}


/* v0.7.18 — ratio-matched portrait artwork aperture
   700x875 = exact 4:5, centered inside the 1080x1080 mockup.
   This makes the artwork visibly larger without stretching/skewing. */
.product.lgc-v2-main-mockup-active .lgc-main-gallery-mockup .lgc-live-art {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}


/* v0.7.20 — cleaner print flow */

/* Progress dots/steps are no longer needed. */
.lgc-v2-builder-top {
  display: none !important;
}

/* Move pricing out of the top product summary.
   The selected variation price is shown at the bottom of the configurator. */
.product.lgc-v2-builder-product .summary > .price-wrapper,
.product.lgc-v2-builder-product .summary > .price,
.product.lgc-v2-builder-product .summary > .product-page-price {
  display: none !important;
}

.lgc-v2-live-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  padding: 18px 0;
  border-top: 1px solid #e6e1da;
  border-bottom: 1px solid #e6e1da;
}

.lgc-v2-live-price-label {
  font-size: 16px;
  font-weight: 600;
}

.lgc-v2-live-price {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  text-align: right;
}

.lgc-v2-live-price .price {
  font-size: inherit;
  font-weight: inherit;
}

.lgc-v2-continue-review {
  width: 100%;
  margin-top: 14px !important;
}

@media (max-width: 549px) {
  .lgc-v2-live-price {
    font-size: 21px;
  }
}


/* v0.7.21 — portrait size thumbnails + prior-builder pricing layout */

@media (min-width: 850px) {
  .lgc-v2-step-card-print .lgc-size-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.lgc-v2-step-card-print .lgc-size-grid .lgc-option-inner {
  min-height: 154px;
  padding: 10px 8px 9px;
}

.lgc-v2-step-card-print .lgc-size-grid .lgc-option-inner img {
  display: block;
  width: 100%;
  max-width: 145px;
  height: 108px;
  margin: 0 auto 7px;
  object-fit: contain;
  border-radius: 10px;
}

.lgc-v2-step-card-print .lgc-size-grid .lgc-option-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.lgc-v2-live-price-row {
  margin-top: 22px;
  padding: 17px 0;
  border-top: 1px solid #e2ddd5;
  border-bottom: 0;
}

.lgc-v2-live-price-label {
  font-size: 17px;
  font-weight: 700;
}

.lgc-v2-live-price {
  font-size: 24px;
  font-weight: 700;
}

.lgc-v2-continue-review {
  margin-top: 10px !important;
}


/* v0.7.22 — match established LoveGiftsCo builder option layout */

/* PRINT TYPE: one full-width row per option, like the older builder. */
.lgc-v2-step-card-print .lgc-printtype-grid {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.lgc-v2-step-card-print .lgc-printtype-grid .lgc-option-inner {
  min-height: 108px !important;
  padding: 12px 16px !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 16px !important;
  text-align: left !important;
}

.lgc-v2-step-card-print .lgc-printtype-grid .lgc-option-inner img {
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  max-height: 88px !important;
  flex: 0 0 88px !important;
  margin: 0 !important;
  object-fit: contain !important;
}

.lgc-v2-step-card-print .lgc-printtype-grid .lgc-option-label {
  font-size: 15px !important;
}

.lgc-v2-step-card-print .lgc-printtype-grid small {
  font-size: 12px !important;
  margin-top: 4px !important;
}

/* FRAME: compact four-across layout using the actual Woo term images. */
@media (min-width: 850px) {
  .lgc-v2-step-card-print .lgc-frame-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

.lgc-v2-step-card-print .lgc-frame-grid .lgc-option-inner,
.lgc-v2-step-card-print .lgc-frame-grid .lgc-no-frame-inner {
  min-height: 142px !important;
  padding: 10px 8px !important;
}

.lgc-v2-step-card-print .lgc-frame-grid .lgc-option-inner img {
  display: block !important;
  width: 100% !important;
  height: 94px !important;
  max-width: 122px !important;
  max-height: 94px !important;
  margin: 0 auto 6px !important;
  object-fit: contain !important;
}

.lgc-v2-step-card-print .lgc-frame-grid .lgc-option-label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

/* SIZE: keep four-across, but use the real pa_size term image instead of
   generated replacement artwork. */
@media (min-width: 850px) {
  .lgc-v2-step-card-print .lgc-size-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

.lgc-v2-step-card-print .lgc-size-grid .lgc-option-inner {
  min-height: 142px !important;
  padding: 9px 7px !important;
}

.lgc-v2-step-card-print .lgc-size-grid .lgc-option-inner img {
  display: block !important;
  width: 100% !important;
  height: 92px !important;
  max-width: 122px !important;
  margin: 0 auto 6px !important;
  object-fit: contain !important;
}

.lgc-v2-step-card-print .lgc-size-grid .lgc-option-label {
  font-size: 13px !important;
}

/* Keep the established compact spacing between sections. */
.lgc-v2-step-card-print .lgc-print-section {
  margin-bottom: 18px !important;
}

@media (max-width: 849px) {
  .lgc-v2-step-card-print .lgc-frame-grid,
  .lgc-v2-step-card-print .lgc-size-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .lgc-v2-step-card-print .lgc-printtype-grid .lgc-option-inner {
    min-height: 96px !important;
  }

  .lgc-v2-step-card-print .lgc-printtype-grid .lgc-option-inner img {
    width: 72px !important;
    height: 72px !important;
    flex-basis: 72px !important;
  }
}


/* v0.7.24 — Stage 2: optional AI text/name customer UI */
.lgc-v2-personalization {
  margin: 24px 0 18px;
  padding-top: 22px;
  border-top: 1px solid #e3ded7;
}

.lgc-v2-personalization-heading {
  margin-bottom: 12px;
}

.lgc-v2-personalization-heading h5 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.lgc-v2-personalization-heading h5 span {
  color: #777;
  font-size: 13px;
  font-weight: 500;
}

.lgc-v2-text-field-label {
  display: block;
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 700;
}

.lgc-v2-art-text {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cfc9c0;
  border-radius: 0;
  background: #fff;
  font-size: 16px;
  box-sizing: border-box;
}

.lgc-v2-art-text:focus {
  outline: 2px solid #111;
  outline-offset: 1px;
}

.lgc-v2-font-style-section {
  margin-top: 18px;
}

.lgc-v2-font-style-section[hidden] {
  display: none !important;
}

.lgc-v2-font-style-title {
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 700;
}

.lgc-v2-font-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lgc-v2-font-style-card {
  position: relative;
  display: flex;
  min-height: 132px;
  padding: 14px 10px 10px;
  border: 1px solid #d9d3ca;
  border-radius: 12px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-sizing: border-box;
}

.lgc-v2-font-style-card.is-selected {
  border: 2px solid #111;
  padding: 13px 9px 9px;
}

.lgc-v2-font-style-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lgc-v2-font-preview {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1;
  text-align: center;
}

.lgc-v2-font-preview.is-modern {
  font-family: "Arimo", sans-serif;
}

.lgc-v2-font-preview.is-classic {
  font-family: "Tinos", serif;
}

.lgc-v2-font-preview.is-signature {
  font-family: "Kaushan Script", cursive;
  font-style: normal;
}

.lgc-v2-font-label {
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 549px) {
  .lgc-v2-font-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .lgc-v2-font-style-card {
    min-height: 108px;
    padding: 10px 6px 8px;
  }

  .lgc-v2-font-style-card.is-selected {
    padding: 9px 5px 7px;
  }

  .lgc-v2-font-preview {
    min-height: 50px;
    font-size: 21px;
  }

  .lgc-v2-font-label {
    font-size: 11px;
  }
}


/* v0.7.25 — optional text is its own page/step */
.lgc-v2-step-card-personalize {
  width: 100%;
}

.lgc-v2-optional-note {
  color: #777;
  font-size: 13px;
  font-weight: 500;
}

.lgc-v2-step-card-personalize .lgc-v2-personalization {
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

.lgc-v2-step-card-personalize .lgc-v2-art-text {
  margin-bottom: 0;
}

.lgc-v2-step-card-personalize .lgc-v2-font-style-grid {
  margin-top: 8px;
}

.lgc-v2-step-card-personalize .lgc-v2-font-style-card {
  min-height: 150px;
  overflow: hidden;
}

.lgc-v2-step-card-personalize .lgc-v2-font-style-card img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: 84px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.lgc-v2-personalize-actions {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.lgc-v2-personalize-actions .button {
  width: 100%;
}

@media (max-width: 549px) {
  .lgc-v2-personalize-actions {
    grid-template-columns: 1fr;
  }

  .lgc-v2-personalize-actions .lgc-v2-text-action {
    order: 2;
    text-align: center;
  }

  .lgc-v2-step-card-personalize .lgc-v2-font-style-card img {
    height: 62px;
  }
}


/* v0.7.26 — Stage 3: live AI name/text on artwork preview */
.lgc-live-art-slot {
  position: absolute;
}

.lgc-v2-art-text-overlay {
  position: absolute;
  left: 7%;
  right: 7%;
  height: 18%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.lgc-v2-art-text-overlay.has-text {
  display: flex;
}

.lgc-v2-art-text-overlay.is-top-center {
  top: 4%;
}

.lgc-v2-art-text-overlay.is-bottom-center {
  bottom: 4%;
}

.lgc-v2-art-text-overlay-value {
  display: block;
  width: 100%;
  max-width: 100%;
  color: #111;
  text-align: center;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.lgc-v2-art-text-overlay-value.is-modern {
  font-family: "Arimo", sans-serif;
}

.lgc-v2-art-text-overlay-value.is-classic {
  font-family: "Tinos", serif;
}

.lgc-v2-art-text-overlay-value.is-signature {
  font-family: "Kaushan Script", cursive;
  line-height: .95;
}

/* Keep the text ABOVE the generated art but BELOW the physical print/frame overlay. */
.lgc-main-gallery-mockup .lgc-live-art {
  position: relative;
  z-index: 1;
}

.lgc-main-gallery-mockup .lgc-v2-art-text-overlay {
  z-index: 2;
}

.lgc-main-gallery-mockup .lgc-live-overlay {
  z-index: 3 !important;
}

.lgc-live-mockup-review .lgc-live-art {
  position: relative;
  z-index: 1;
}

.lgc-live-mockup-review .lgc-v2-art-text-overlay {
  z-index: 2;
}

.lgc-live-mockup-review .lgc-live-overlay {
  z-index: 3;
}


/* v0.7.27 — personalization navigation + softer text treatment */

/* Slightly smaller text zone so a normal pet name does not dominate the portrait. */
.lgc-v2-art-text-overlay {
  left: 10%;
  right: 10%;
  height: 14%;
}

/* Warm light gray works better than pure black on this style's dark brown/charcoal background. */
.lgc-v2-art-text-overlay-value {
  color: #d8d2c8 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}

/* Keep the top name comfortably away from the edge. */
.lgc-v2-art-text-overlay.is-top-center {
  top: 5%;
}

.lgc-v2-art-text-overlay.is-bottom-center {
  bottom: 5%;
}


/* v0.7.30 — AI final review / digital add-on / direct checkout */
.lgc-v2-step-card-review .lgc-v2-review-summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lgc-v2-review-extras h5,
.lgc-v2-order-summary h5 {
  margin: 0 0 12px;
  font-size: 17px;
}

.lgc-v2-extra-option {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid #ddd7cf;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

.lgc-v2-extra-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lgc-v2-extra-check {
  display: block;
  width: 16px;
  height: 16px;
  border: 1.5px solid #888;
  border-radius: 4px;
  box-sizing: border-box;
}

.lgc-v2-extra-option input:checked + .lgc-v2-extra-check {
  border-color: #111;
  background:
    linear-gradient(135deg, transparent 43%, #fff 43% 53%, transparent 53%),
    linear-gradient(45deg, transparent 38%, #fff 38% 48%, transparent 48%),
    #111;
}

.lgc-v2-extra-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lgc-v2-extra-copy strong {
  font-size: 15px;
}

.lgc-v2-extra-copy small {
  color: #666;
  font-size: 12px;
}

.lgc-v2-extra-price {
  font-size: 15px;
  font-weight: 700;
}

.lgc-v2-order-summary {
  padding: 16px;
  background: #f7f7f6;
}

.lgc-v2-order-summary dl {
  margin: 0;
}

.lgc-v2-order-summary dl > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 7px 0;
}

.lgc-v2-order-summary dt {
  color: #666;
  font-weight: 400;
}

.lgc-v2-order-summary dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

.lgc-v2-review-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0 4px;
  border-top: 1px solid #ded9d1;
  font-size: 18px;
  font-weight: 700;
}

.lgc-v2-review-total-row .lgc-review-price {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
}

.lgc-v2-review-actions .lgc-v2-final-add-cart {
  text-transform: uppercase;
}

@media (max-width: 549px) {
  .lgc-v2-extra-option {
    grid-template-columns: 22px 1fr auto;
    padding: 12px;
  }

  .lgc-v2-order-summary {
    padding: 14px;
  }
}


/* v0.7.31 — remove duplicate review preview.
   The large WooCommerce gallery image on the left remains the single artwork preview. */
.lgc-v2-step-card-review .lgc-v2-review-layout {
  display: block !important;
}

.lgc-v2-step-card-review .lgc-v2-review-summary {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.lgc-v2-step-card-review .lgc-live-mockup-review {
  display: none !important;
}


/* v0.7.38 — compact single previous-photo reuse */
.lgc-v2-reuse-wrap {
  margin: 12px 0 4px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left !important;
}

.lgc-v2-reuse-copy {
  display: none !important;
}

.lgc-v2-reuse-card {
  width: 132px;
  overflow: hidden;
  border: 1px solid #ddd7cf;
  border-radius: 8px;
  background: #fff;
}

.lgc-v2-reuse-thumb {
  display: block;
  width: 132px;
  height: 104px;
  object-fit: cover;
  object-position: center;
  background: #f6f4f1;
}

.lgc-v2-reuse-photo {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 9px 8px !important;
  border: 0 !important;
  border-top: 1px solid #e8e3dc !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #222 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  cursor: pointer;
}

.lgc-v2-reuse-photo:hover {
  background: #f7f5f2 !important;
}

@media (max-width: 549px) {
  .lgc-v2-reuse-card,
  .lgc-v2-reuse-thumb {
    width: 116px;
  }

  .lgc-v2-reuse-thumb {
    height: 92px;
  }
}


/* v0.7.39 — respect JS hidden states on Step 1 reusable/source photo UI */
.lgc-v2-reuse-wrap[hidden],
.lgc-v2-uploaded-preview-wrap[hidden],
.lgc-v2-reuse-thumb[hidden] {
  display: none !important;
}


/* v0.7.40 — current-photo state */
.lgc-v2-reuse-label {
  padding: 8px 9px 7px;
  border-bottom: 1px solid #e8e3dc;
  color: #555;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.lgc-v2-reuse-photo:disabled,
.lgc-v2-reuse-photo[aria-disabled="true"] {
  cursor: default !important;
  background: #f4f2ee !important;
  color: #777 !important;
  opacity: 1 !important;
}

.lgc-v2-reuse-photo:disabled:hover,
.lgc-v2-reuse-photo[aria-disabled="true"]:hover {
  background: #f4f2ee !important;
}


/* v0.7.42 — single current-photo status only */
.lgc-v2-reuse-label {
  display: none !important;
}


/* v0.7.46 — processing modal */
html.lgc-v2-processing-open,
body.lgc-v2-processing-open {
  overflow: hidden !important;
}

.lgc-v2-processing-modal[hidden] {
  display: none !important;
}

.lgc-v2-processing-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.lgc-v2-processing-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 13, 10, 0.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.lgc-v2-processing-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 480px);
  padding: 40px 34px 34px;
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  text-align: center;
}

.lgc-v2-processing-spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  border: 4px solid #ece5de;
  border-top-color: #4b2f21;
  border-radius: 50%;
  animation: lgc-v2-processing-spin .95s linear infinite;
}

.lgc-v2-processing-card h3 {
  margin: 0;
  color: #191919;
  font-size: clamp(24px, 4vw, 31px);
  line-height: 1.15;
  font-weight: 700;
}

.lgc-v2-processing-message {
  min-height: 30px;
  margin: 15px 0 0;
  color: #4b2f21;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
}

.lgc-v2-processing-message.is-changing {
  animation: lgc-v2-processing-message .35s ease;
}

.lgc-v2-processing-note {
  max-width: 390px;
  margin: 10px auto 0;
  color: #6f6964;
  font-size: 13px;
  line-height: 1.55;
}

.lgc-v2-processing-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}

.lgc-v2-processing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9a99d;
  animation: lgc-v2-processing-dot 1.25s ease-in-out infinite;
}

.lgc-v2-processing-dots span:nth-child(2) { animation-delay: .16s; }
.lgc-v2-processing-dots span:nth-child(3) { animation-delay: .32s; }

@keyframes lgc-v2-processing-spin {
  to { transform: rotate(360deg); }
}

@keyframes lgc-v2-processing-message {
  from { opacity: .25; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lgc-v2-processing-dot {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 640px) {
  .lgc-v2-processing-modal {
    padding: 16px;
  }

  .lgc-v2-processing-card {
    width: min(94vw, 430px);
    padding: 34px 22px 28px;
    border-radius: 16px;
  }

  .lgc-v2-processing-spinner {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
  }

  .lgc-v2-processing-message {
    font-size: 16px;
  }

  .lgc-v2-processing-note {
    font-size: 12.5px;
  }
}


/* v0.7.47 — photo checking starts immediately */
.lgc-v2-processing-icon {
  display: none;
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #f6e9e5;
  color: #8a3c31;
  font-size: 28px;
  font-weight: 800;
}

.lgc-v2-processing-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
  min-height: 46px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: #2f211a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.lgc-v2-processing-retry[hidden] {
  display: none !important;
}

.lgc-v2-processing-card.is-error .lgc-v2-processing-spinner,
.lgc-v2-processing-card.is-error .lgc-v2-processing-dots {
  display: none;
}

.lgc-v2-processing-card.is-error .lgc-v2-processing-icon {
  display: inline-flex;
}

.lgc-v2-processing-card.is-error .lgc-v2-processing-message {
  color: #7a332a;
}

@media (max-width: 640px) {
  .lgc-v2-processing-retry {
    width: 100%;
  }
}


/* v0.7.49 — keep all progress messaging inside the modal */
.lgc-v2-photo-feedback:empty,
.lgc-v2-status:empty {
  display: none !important;
}

.lgc-v2-uploaded-preview-wrap {
  gap: 0;
}

.lgc-v2-uploaded-preview-copy {
  display: none !important;
}


/* v0.7.50 — Step 1 flow polish */
.lgc-v2-uploaded-preview-wrap {
  display: flex;
  align-items: center;
  gap: 14px !important;
  max-width: none;
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #e5dfd7;
  border-radius: 12px;
  background: #fff;
}

.lgc-v2-uploaded-preview-wrap[hidden] {
  display: none !important;
}

.lgc-v2-uploaded-preview {
  flex: 0 0 auto;
  width: 74px;
  max-width: 74px;
  height: 74px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.lgc-v2-uploaded-preview-copy {
  display: flex !important;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.lgc-v2-uploaded-preview-copy strong {
  color: #111;
  font-size: 16px;
  line-height: 1.2;
}

.lgc-v2-uploaded-preview-copy span {
  color: #777;
  font-size: 13px;
  line-height: 1.3;
}

/* Make the previously used photo state clearly visible after Change Photo */
.lgc-v2-reuse-wrap:not([hidden]) {
  display: block !important;
}

.lgc-v2-reuse-photo:disabled,
.lgc-v2-reuse-photo[aria-disabled="true"] {
  opacity: 1 !important;
  color: #555 !important;
  background: #f4f2ee !important;
}

@media (max-width: 640px) {
  .lgc-v2-upload-box {
    min-height: 0 !important;
    padding: 18px 16px !important;
  }

  .lgc-v2-upload-icon {
    transform: scale(.84);
    transform-origin: center;
    margin-bottom: -4px;
  }

  .lgc-v2-upload-title {
    font-size: 16px !important;
    line-height: 1.25;
  }

  .lgc-v2-upload-sub {
    margin-top: 6px !important;
    font-size: 11.5px !important;
    line-height: 1.35;
  }

  .lgc-v2-uploaded-preview-wrap {
    margin-top: 10px;
    padding: 9px 10px;
    gap: 11px !important;
  }

  .lgc-v2-uploaded-preview {
    width: 64px;
    max-width: 64px;
    height: 64px;
  }

  .lgc-v2-generate {
    margin-top: 9px !important;
  }
}


/* v0.7.52 — cleaner Step 2 change-photo action */
.lgc-v2-step-card-print > .lgc-v2-section-heading {
  margin-bottom: 10px;
}

.lgc-v2-change-photo-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin: 0 0 22px;
  padding: 9px 16px;
  border: 1.5px solid #d8d2cb;
  border-radius: 999px;
  background: #fff;
  color: #3e3a37;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color .18s ease,
    background-color .18s ease,
    color .18s ease,
    transform .18s ease;
}

.lgc-v2-change-photo-button:hover,
.lgc-v2-change-photo-button:focus-visible {
  border-color: #8d837b;
  background: #faf8f5;
  color: #111;
}

.lgc-v2-change-photo-button:active {
  transform: translateY(1px);
}

.lgc-v2-change-photo-icon {
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  font-weight: 500;
}

@media (max-width: 640px) {
  .lgc-v2-change-photo-button {
    width: 100%;
    min-height: 44px;
    margin-bottom: 20px;
    font-size: 14px;
  }
}


/* v0.7.54 — change-photo flow polish */
.lgc-v2-back-to-print-top {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #444;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.lgc-v2-back-to-print-top[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .lgc-v2-upload-trust {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 10px !important;
    margin-top: 18px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    color: #2f2f2f !important;
    font-weight: 500;
  }

  .lgc-v2-upload-trust span {
    flex: 1 1 0;
    text-align: center;
    white-space: nowrap;
  }

  .lgc-v2-back-to-print-top {
    font-size: 15px;
    margin-bottom: 12px;
  }
}


/* v0.7.55 — Back to Print Options sits directly above the primary CTA */
.lgc-v2-back-to-print-top {
  width: 100%;
  justify-content: center;
  margin: 10px 0 10px;
  text-align: center;
}

@media (max-width: 640px) {
  .lgc-v2-back-to-print-top {
    font-size: 15px;
    margin: 10px 0 10px;
  }
}

/* v0.7.56 optional pet accessory controls */
.lgc-v2-accessory-choice{margin:14px 0 16px;padding:14px 16px;border:1px solid #ddd6ca;border-radius:10px;background:#faf9f6}
.lgc-v2-accessory-choice[hidden]{display:none!important}
.lgc-v2-accessory-choice strong{display:block;font-size:15px;color:#28231d}
.lgc-v2-accessory-choice p{margin:5px 0 12px;font-size:13px;line-height:1.45}
.lgc-v2-accessory-items{display:flex;flex-wrap:wrap;gap:9px}
.lgc-v2-accessory-item{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid #d8d1c5;border-radius:8px;background:white;cursor:pointer;font-size:14px}
.lgc-v2-accessory-item input{width:17px;height:17px;margin:0;accent-color:#435447}
.lgc-v2-accessory-choice small{display:block;margin-top:10px;color:#686056;line-height:1.4}

/* v0.7.57 — visible photo upload/accessory-analysis progress */
.lgc-v2-accessory-progress{display:flex;align-items:center;gap:10px;margin:12px 0 14px;padding:12px 14px;border:1px solid #d8d1c5;border-radius:10px;background:#faf9f6;color:#40362e;font-size:14px;line-height:1.45}
.lgc-v2-accessory-progress[hidden]{display:none!important}
.lgc-v2-accessory-spinner{display:inline-block;flex:none;width:17px;height:17px;border:2px solid #d6d0c8;border-top-color:#544234;border-radius:50%;animation:lgcAccessorySpin .85s linear infinite}
.lgc-v2-accessory-progress:not(.is-busy) .lgc-v2-accessory-spinner{display:none}
@keyframes lgcAccessorySpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.lgc-v2-accessory-spinner{animation:none}}

/* v0.7.59: use Flatsome/WooCommerce native price and review typography. */
.single-product .lgc-ai-title-meta { margin: 10px 0 20px; }
.single-product .lgc-ai-title-meta .cac-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.single-product .lgc-ai-title-meta .cac-rating .star-rating { float: none; margin: 0; }
.single-product .lgc-ai-title-meta .price { margin: 0; }


/* v0.7.61 — compact title price to match Modern Pet builder visual scale. */
.single-product .product .lgc-ai-title-meta .lgc-ai-title-price {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  margin: 5px 0 18px !important;
}
.single-product .product .lgc-ai-title-meta .lgc-ai-title-price del,
.single-product .product .lgc-ai-title-meta .lgc-ai-title-price ins,
.single-product .product .lgc-ai-title-meta .lgc-ai-title-price .amount,
.single-product .product .lgc-ai-title-meta .lgc-ai-title-price bdi {
  font-size: inherit !important;
  line-height: inherit !important;
}
.single-product .product .lgc-ai-title-meta .lgc-ai-title-price del {
  opacity: .65;
  color: #777;
  font-weight: 400 !important;
  margin-right: 8px;
}
.single-product .product .lgc-ai-title-meta .lgc-ai-title-price ins {
  text-decoration: none;
  font-weight: 700 !important;
  color: #111;
}
.single-product .product .lgc-ai-title-meta .lgc-ai-title-price:not(:has(ins)) {
  font-weight: 700 !important;
}
@media (max-width: 640px) {
  .single-product .product .lgc-ai-title-meta .lgc-ai-title-price { font-size: 13px !important; }
}

/* v0.7.64 — show product heading/meta only on Step 1 of this builder.
   Keep step-specific selection prices, and Step 4 order details, visible. */
.single-product .product.lgc-v2-hide-top-meta .summary > .product-title,
.single-product .product.lgc-v2-hide-top-meta .summary > .product_title,
.single-product .product.lgc-v2-hide-top-meta .summary > .lgc-ai-title-meta,
.single-product .product.lgc-v2-hide-top-meta .summary > .woocommerce-product-rating,
.single-product .product.lgc-v2-hide-top-meta .summary > .price-wrapper,
.single-product .product.lgc-v2-hide-top-meta .summary > .product-page-price,
.single-product .product.lgc-v2-hide-top-meta .summary > .price {
  display: none !important;
}

/* v0.7.65: font choice previews use the exact font used by artwork and print. */
.lgc-v2-step-card-personalize .lgc-v2-font-style-card .lgc-v2-font-preview {
  width: 100%;
  min-height: 84px;
  margin: 0 auto 8px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  font-size: clamp(19px, 2.5vw, 32px);
}
@media (max-width: 549px) {
  .lgc-v2-step-card-personalize .lgc-v2-font-style-card .lgc-v2-font-preview {
    min-height: 62px;
    font-size: clamp(16px, 4.8vw, 22px);
  }
}

/* v0.7.71 — approved portrait 2:3 mockup PNG apertures. 
   The tiny source/model ratio variance must not reveal transparent side slivers. */
.product.lgc-v2-main-mockup-active .lgc-main-gallery-mockup[data-orientation="portrait"] .lgc-live-art,
.lgc-live-mockup[data-orientation="portrait"] .lgc-live-art {
  object-fit: cover !important;
}
