/* PRONTO FLUX · Compras de aparelhos · ajustes de fotos, memória, título e pagamento */
.trade-photo-grid figure{position:relative}
.trade-photo-grid figure [data-trade-edit]{position:absolute;left:4px;bottom:4px;font-size:11px;font-weight:800;border:0;border-radius:6px;background:#151a25;color:#fff;padding:5px 7px;cursor:pointer;z-index:2}
.pf-device-photo-editor{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.86);display:flex;align-items:center;justify-content:center;padding:12px;color:#f7f7f7}
.pf-dpe-dialog{width:min(820px,100%);max-height:96vh;overflow:auto;background:#1c1d22;border:1px solid #484951;border-radius:16px;padding:16px;box-shadow:0 16px 60px #0008}
.pf-dpe-dialog header{display:flex;justify-content:space-between;gap:14px;align-items:start}
.pf-dpe-dialog header strong{display:block;font-size:17px}
.pf-dpe-dialog header small{display:block;margin-top:3px;color:#c2c7d0;font-size:12px}
.pf-dpe-dialog button{cursor:pointer;min-height:36px;border:1px solid #4a4d58;border-radius:8px;background:#30333c;color:#fff;padding:7px 12px;font-weight:700}
.pf-dpe-dialog header button{font-size:23px;line-height:1;min-width:38px}
.pf-dpe-stage{background:repeating-conic-gradient(#353740 0 25%,#242630 0 50%) 0 0/24px 24px;border:1px solid #4b4b55;border-radius:12px;min-height:180px;display:flex;align-items:center;justify-content:center;margin:12px 0;overflow:hidden}
.pf-dpe-stage canvas{display:block;max-width:100%;max-height:53vh;width:auto;height:auto;cursor:grab;touch-action:none}
.pf-dpe-stage canvas:active{cursor:grabbing}
.pf-dpe-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pf-dpe-tools label{display:inline-flex;gap:8px;align-items:center;font-size:12px}
.pf-dpe-tools input{accent-color:#D71920;width:110px}
.pf-dpe-dialog footer{display:flex;gap:8px;margin-top:16px;align-items:center;flex-wrap:wrap}
.pf-dpe-dialog footer span{flex:1}
.pf-dpe-dialog .pf-dpe-save{background:#D71920;border-color:#D71920}
.pf-dpe-error{color:#ff7b7b;margin:6px}
.pf-device-photo-edit-actions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:8px}
.pf-device-photo-edit-actions button{font-size:11px}
.pf-device-payment-note{font-size:12px;line-height:1.4;margin-top:5px}
@media(max-width:560px){.pf-dpe-dialog{padding:12px}.pf-dpe-tools button{font-size:11px}.pf-dpe-dialog footer button{flex:1}}
