/* Product-scoped: no global APF input styling, WooCommerce pricing, or product graphics modified. */
.flg-lettering-preview-slot{display:block;width:100%;max-width:100%;margin:12px 0 20px}
.flgl-widget{box-sizing:border-box;width:100%;max-width:100%;color:inherit;font-family:inherit}
.flgl-widget *{box-sizing:border-box}
.flgl-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.flgl-heading strong{font-size:14px}
.flgl-switch{display:inline-flex;gap:3px;align-items:center}
.flgl-switch button{padding:7px 10px!important;border:1px solid #878787!important;border-radius:4px!important;min-height:33px!important;font-size:12px!important;line-height:1.2!important;background:#eee!important;color:#111!important;cursor:pointer!important;box-shadow:none!important}
.flgl-switch button[aria-pressed=true]{background:#b80000!important;color:white!important;border-color:#b80000!important}
.flgl-stage{display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden;padding:14px;border:1px solid #777;border-radius:5px;transition:background-color .15s linear}
.flgl-stage-dark{background:#000}
.flgl-stage-light{background:#fff}
.flgl-svg{display:block;width:100%;height:auto;max-height:none;min-height:0;overflow:visible}
.flgl-info{font-size:12px;margin-top:8px;line-height:1.5}
.flgl-info{white-space:pre-line}
.flgl-info.flgl-warning{color:#ed3b3b;font-weight:600}
.flgl-info.flgl-error{color:#d02c2c;font-weight:600}
.flgl-disclaimer{opacity:.75;font-size:11px!important;margin:8px 0 0!important;line-height:1.35!important}
.flgl-working{opacity:.6!important;cursor:wait!important}
@media(max-width:500px){.flgl-heading{align-items:flex-start}.flgl-stage{min-height:0;padding:8px}.flgl-svg{max-height:none}}

/* Express payments on a configured product may bypass APF proof capture.
 * Hide only those product-page express shortcuts; customers can still use
 * these methods normally in WooCommerce checkout after Add to Cart. */
body.single-product .wcpay-payment-request-wrapper,
body.single-product .wc-stripe-payment-request-wrapper,
body.single-product #wc-stripe-payment-request-wrapper,
body.single-product #wc-stripe-payment-request-button-separator,
body.single-product .wc-stripe-express-checkout-element{display:none!important}
/* Resizing never changes ordered artwork dimensions. */
.flgl-widget .flgl-stage,.flgl-widget .flgl-svg{max-width:100%}
.flgl-widget .flgl-svg{object-fit:contain}
.flgl-widget .flgl-stage{width:100%;min-width:0}
.flgl-widget .flgl-switch{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:640px){
 .flg-lettering-preview-slot{margin:8px 0 16px}
 .flgl-widget .flgl-heading{gap:8px}
 .flgl-widget .flgl-stage{min-height:0;padding:8px}
 .flgl-widget .flgl-svg{max-height:none}
 .flgl-widget .flgl-switch button{font-size:12px!important;min-height:40px!important;padding:9px 12px!important}
}

/* FLG owns these calculated APF inputs in automatic mode; they still post to APF. */
.wapf-field-container.flgl-derived-field{display:none!important}
