/* v3.4.0: conserva componentes nativos de gateways, não reestiliza campos Pix/cartão */
.enm-checkout-page form.checkout{display:grid!important;grid-template-columns:minmax(310px,.78fr) minmax(480px,1.22fr)!important;gap:22px!important;align-items:start!important}
.enm-checkout-page form.checkout>#customer_details{grid-column:1!important;grid-row:1!important;align-self:start!important;position:static!important}
.enm-checkout-page .enm-commerce-review-column{grid-column:2!important;grid-row:1!important;min-width:0;align-self:start!important}
.enm-checkout-page .enm-commerce-review-column #order_review_heading,.enm-checkout-page .enm-commerce-review-column #order_review{grid-column:auto!important;grid-row:auto!important;width:100%!important;float:none!important;min-height:0!important}
.enm-checkout-page .enm-commerce-review-column #order_review_heading{margin:0!important;padding:22px 26px 12px!important}
.enm-checkout-page .enm-commerce-review-column #order_review{padding:0 26px 24px!important;margin:0!important}
.enm-commerce-checkout-thumbs{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px}
.enm-commerce-photo-open{border:0!important;background:transparent!important;padding:0!important;display:block;cursor:zoom-in;position:relative;overflow:hidden;border-radius:12px;min-height:0!important;min-width:0!important;box-shadow:none!important;transform:none!important}
.enm-commerce-photo-open img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.enm-commerce-checkout-thumbs .enm-commerce-photo-open{width:65px!important;height:65px!important;max-width:65px!important;border-radius:9px!important;display:block!important;flex:none}
.enm-commerce-checkout-thumbs .enm-commerce-photo-more{font-size:13px;font-weight:800;color:#517487}
.enm-commerce-item-title{display:block;font-weight:800;font-size:14px;line-height:1.3}
.enm-commerce-item-count{display:block;font-size:12px;font-weight:500;color:#637d89;margin-top:4px}
.enm-cart-photo-grid figure{position:relative;overflow:hidden;border-radius:14px}
.enm-cart-photo-grid figure>.enm-commerce-photo-open{width:100%!important;height:100%!important;aspect-ratio:1}
.enm-cart-photo-grid figure>.enm-commerce-photo-open span{position:absolute;bottom:7px;right:7px;font-size:11px;font-weight:800;color:#fff;background:#082f45db;border-radius:99px;padding:5px 9px}
.enm-cart-session-image-note{margin:2px 0 0;color:#567483;font-size:12px}
.enm-mini-photos .enm-commerce-photo-open{aspect-ratio:1;width:100%!important;height:auto!important}
.enm-mini-photos .enm-commerce-photo-open img{width:100%;height:100%}
.enm-commerce-lightbox{position:fixed;inset:0;z-index:2147483600;display:flex;align-items:center;justify-content:center;padding:54px 18px 20px}
.enm-commerce-lightbox-backdrop{position:absolute;inset:0;border:0!important;background:rgba(1,18,29,.93)!important;cursor:zoom-out;min-height:0!important}
.enm-commerce-lightbox img{position:relative;max-height:calc(100dvh - 85px);max-width:min(96vw,1400px);width:auto;height:auto;object-fit:contain;border-radius:10px;box-shadow:0 20px 70px rgba(0,0,0,.3);pointer-events:none}
.enm-commerce-lightbox-close{position:absolute;right:15px;top:13px;border:1px solid rgba(255,255,255,.6)!important;border-radius:50%!important;background:#fff!important;color:#082f45!important;font-size:28px!important;width:42px!important;height:42px!important;min-height:42px!important;line-height:1!important;padding:0!important;cursor:pointer}
.enm-commerce-order-page{min-height:85vh;padding-top:145px}
.enm-commerce-state{background:#fff;border:1px solid #d5e4eb;padding:clamp(24px,3.4vw,44px);border-radius:24px;margin:0 auto 24px;max-width:1080px;color:#082f45}
.enm-commerce-state small{font-size:11px;letter-spacing:.13em;color:#0787c8;font-weight:850}
.enm-commerce-state h1{font-size:clamp(30px,4vw,51px);letter-spacing:-.03em;line-height:1.1;margin:13px 0 14px}
.enm-commerce-state p{font-size:15px;line-height:1.55;color:#587584;max-width:710px}
.enm-commerce-state-paid{border-top:5px solid #0c9b70}.enm-commerce-state-failed{border-top:5px solid #da7142}.enm-commerce-state-pending{border-top:5px solid #0787c8}
.enm-commerce-cta{display:inline-flex!important;align-items:center;justify-content:center;border-radius:99px;background:#0787c8!important;color:#fff!important;text-decoration:none!important;padding:14px 22px;font-size:14px;font-weight:850;margin-top:12px}
.enm-commerce-7days{background:#edf7fb;border-radius:12px;padding:14px}
.enm-commerce-poll{font-weight:800;color:#0787c8!important}
.enm-commerce-native-payment{max-width:1080px;margin:0 auto;background:#fff;border:1px solid #d5e4eb;border-radius:24px;padding:clamp(18px,3vw,38px);overflow-wrap:anywhere}
.enm-commerce-order-page .woocommerce-order .woocommerce-thankyou-order-received{background:#edf7fb;padding:14px 18px;border-radius:12px;color:#082f45!important}
.enm-commerce-order-page .woocommerce-order .woocommerce-order-overview{display:flex;flex-wrap:wrap;gap:15px;margin:18px 0!important;padding:18px!important;background:#f6fafc;border-radius:12px}
.enm-commerce-order-page .woocommerce-order .woocommerce-order-overview>li{float:none!important;border-right:0!important;margin:0!important;padding:0 12px 0 0!important}
.enm-commerce-order-page .woocommerce-order .woocommerce-order-details,.enm-commerce-order-page .woocommerce-order .woocommerce-customer-details{max-width:100%;overflow-x:auto}
.enm-commerce-order-page .enm-order-downloads{background:#f0f9fc;border-radius:14px;padding:18px;margin:20px 0}
.enm-commerce-order-page .enm-download-list{display:flex;gap:9px;flex-wrap:wrap}
.enm-commerce-order-page .enm-download-photo{display:inline-flex;background:#0787c8!important;color:#fff!important;border-radius:99px;padding:10px 16px;text-decoration:none!important}
@media(max-width:1000px){.enm-checkout-page form.checkout{grid-template-columns:1fr!important}.enm-checkout-page form.checkout>#customer_details{grid-column:1!important;grid-row:auto!important}.enm-checkout-page .enm-commerce-review-column{grid-column:1!important;grid-row:auto!important}}
@media(max-width:620px){.enm-commerce-order-page{padding:105px 14px 60px}.enm-commerce-state{border-radius:18px}.enm-commerce-native-payment{border-radius:18px}.enm-commerce-checkout-thumbs .enm-commerce-photo-open{width:54px!important;height:54px!important}}

/* v3.4.1: thumbnails stay square; override legacy popover and cart button styles. */
.enm-site-popover .enm-mini-photos > button.enm-commerce-photo-open,
.enm-cart-popover .enm-mini-photos > button.enm-commerce-photo-open{display:block!important;position:relative!important;inset:auto!important;width:100%!important;min-width:0!important;height:auto!important;aspect-ratio:1!important;padding:0!important;margin:0!important;border:0!important;border-radius:9px!important;outline-offset:2px!important;background:transparent!important;box-shadow:none!important;filter:none!important;overflow:hidden!important;appearance:none!important;}
.enm-site-popover .enm-mini-photos > button.enm-commerce-photo-open img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:1!important;object-fit:cover!important;border:0!important;border-radius:8px!important;box-shadow:none!important;}
.enm-cart-photo-grid figure{position:relative!important;overflow:hidden!important;border-radius:14px!important;aspect-ratio:1!important;}
.enm-cart-photo-grid figure > button.enm-commerce-photo-open{position:relative!important;top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;inset:auto!important;display:block!important;width:100%!important;height:100%!important;aspect-ratio:1!important;min-width:0!important;min-height:0!important;max-width:none!important;border:0!important;border-radius:14px!important;box-shadow:none!important;background:transparent!important;padding:0!important;outline-offset:2px!important;}
.enm-cart-photo-grid figure > button.enm-commerce-photo-open img{display:block!important;position:static!important;width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:1!important;object-fit:cover!important;border:0!important;border-radius:14px!important;box-shadow:none!important;}
.enm-commerce-resume{margin:14px auto;padding:17px;border:1px solid #cfe3eb;border-radius:16px;max-width:630px;background:#eef8fb;text-align:left;}
.enm-commerce-resume strong{display:block;color:#082f45;font-size:15px}.enm-commerce-resume p{margin:8px 0 12px!important;color:#52717f!important;font-size:13px;line-height:1.5}
.enm-commerce-resume .enm-commerce-cta{margin:0!important;text-align:center}.enm-commerce-retry-note{padding:22px;margin-bottom:16px;border:1px solid #cce3ec;background:#f0f9fc;border-radius:16px;color:#082f45}
.enm-commerce-retry-note strong{font-size:19px}.enm-commerce-retry-note p{margin:6px 0 0;color:#587584;font-size:13px;line-height:1.5}
.enm-commerce-change-payment{margin:15px 0 18px}.enm-commerce-change-payment p{margin-top:10px;font-size:12px;color:#647d89}
