/* Give IT Customizer — product page CTA (new engine). Scoped, theme-resistant. */
.gitpc-app-entry{margin:16px 0 14px;display:flex;flex-direction:column;gap:8px;width:100%}
.gitpc-app-entry__badge{align-self:flex-start;padding:4px 9px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:11px;font-weight:700;letter-spacing:.02em;line-height:1.4}
.gitpc-app-entry .gitpc-app-cta{
  display:flex!important;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;margin:0!important;padding:0 24px!important;
  border:0!important;border-radius:12px!important;background:#111827!important;color:#fff!important;
  font-family:inherit!important;font-size:16px!important;font-weight:800!important;line-height:1.2!important;letter-spacing:.06em!important;text-transform:none!important;cursor:pointer;
  box-shadow:0 8px 20px rgba(17,24,39,.18);transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation
}
.gitpc-app-entry .gitpc-app-cta:hover{background:#000!important;box-shadow:0 10px 26px rgba(17,24,39,.24)}
.gitpc-app-entry .gitpc-app-cta:active{transform:translateY(1px)}
.gitpc-app-entry .gitpc-app-cta:focus-visible{outline:3px solid #6366f1;outline-offset:3px}
.gitpc-app-entry .gitpc-app-cta[disabled]{opacity:.7;cursor:progress}
.gitpc-app-entry .gitpc-app-cta svg{flex:0 0 auto;transition:transform .15s ease}
.gitpc-app-entry .gitpc-app-cta:hover svg{transform:translateX(3px)}
.gitpc-app-entry__note{margin:0!important;min-height:0;font-size:14px;color:#4b5563}
.gitpc-app-entry__note:empty{display:none}
.gitpc-app-entry__note.is-error{color:#b42318;font-weight:600}

/* Preserve the main action while toning down its visual weight. */
.gitpc-app-entry .gitpc-app-cta{min-height:50px;font-size:15px!important;letter-spacing:0!important;box-shadow:0 3px 10px rgba(17,24,39,.12)}
.gitpc-app-entry__note{font-size:12px;line-height:1.5}
@media(prefers-reduced-motion:reduce){.gitpc-app-entry .gitpc-app-cta,.gitpc-app-entry .gitpc-app-cta svg{transition:none}.gitpc-app-entry .gitpc-app-cta:active,.gitpc-app-entry .gitpc-app-cta:hover svg{transform:none}}


/* New Editor owns personalization and the final cart action. Keep WooCommerce
 * variations/pricing and non-duplicated priced addons (e.g. gift wrapping), but
 * remove the old upload/text controls and native single-product Add to Cart. */
body.gitpc-app-product .single_add_to_cart_button,
body.gitpc-app-product .prad-parent.prad-block-upload,
body.gitpc-app-product .prad-parent.prad-block-textarea,
body.gitpc-app-product .prad-parent.prad-block-textfield,
body.gitpc-app-product .prad-block-upload,
body.gitpc-app-product .prad-block-textarea,
body.gitpc-app-product .prad-block-textfield{
  display:none!important;
}

/* v0.10.15 — New Editor product-page cleanup.
 * The wizard owns quantity and the final add-to-cart action. The product page
 * keeps product choices/priced addons, but removes duplicate legacy status/UI. */
body.gitpc-app-product .gitpc-front-entry,
body.gitpc-app-product .gitpc-front-modal,
body.gitpc-app-product .gitpc-front-status,
body.gitpc-app-product .gitpc-next-step,
body.gitpc-app-product .gitpc-saved-preview,
body.gitpc-app-product .gitpc-flow,
body.gitpc-app-product form.cart .quantity,
body.gitpc-app-product .woocommerce-variation-add-to-cart .quantity,
body.gitpc-app-product button[name="add-to-cart"],
body.gitpc-app-product input[name="add-to-cart"]{
  display:none!important;
}

.gitpc-app-entry .gitpc-app-login{background:#111827!important}
.gitpc-app-entry .gitpc-app-login[disabled]{opacity:.7;cursor:progress}


/* v0.10.15 — stronger cleanup for cached/legacy product-page fragments.
 * This stylesheet is enqueued only on products that use the new editor, so these
 * selectors are intentionally not dependent on body.gitpc-app-product. They hide
 * the old ready message and native submit button even before JS/body classes run. */
form.cart .gitpc-front-entry,
form.cart .gitpc-front-modal,
form.cart .gitpc-front-status,
form.cart .gitpc-next-step,
form.cart .gitpc-saved-preview,
form.cart .gitpc-flow,
form.cart button.single_add_to_cart_button,
form.cart button[name="add-to-cart"],
form.cart input[name="add-to-cart"],
form.cart button[type="submit"]:not(.gitpc-app-cta),
form.cart input[type="submit"]:not(.gitpc-app-cta),
.woocommerce-variation-add-to-cart button[type="submit"]:not(.gitpc-app-cta),
.woocommerce-variation-add-to-cart input[type="submit"]:not(.gitpc-app-cta){
  display:none!important;
  visibility:hidden!important;
}


/* v0.10.15 — safety guard: legacy cleanup must never hide the new editor CTA. */
form.cart [data-gitpc-entry],
form.cart .gitpc-app-entry{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
}
form.cart [data-gitpc-entry] .gitpc-app-cta,
form.cart .gitpc-app-entry .gitpc-app-cta{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
}
