.rev-photo{display:inline-flex;position:relative;align-items:center;justify-content:center;width:76px;height:76px;flex:none;background:#fff;border:1px solid #e7e7e7;border-radius:9px;overflow:hidden;vertical-align:middle}
.rev-photo img{width:100%;height:100%;object-fit:contain;display:block}
.rev-photo-fallback{display:none;font-size:10px;color:#727272}
.rev-photo.failed .rev-photo-fallback{display:inline}
.item.hasimg>.rev-photo{grid-column:1;grid-row:1/3}.rev-photo.small{width:42px;height:42px;margin-right:8px}.rev-photo.editor{width:96px;height:96px;margin:10px 0}.rev-photo.cart{width:40px;height:40px;margin-right:8px}
.prod.has-photo>.rev-photo{grid-column:1;grid-row:1/3;width:52px;height:76px}.prod.has-photo .nm,.prod.has-photo .ft{grid-column:2;min-width:0}
#bag .line>.t{display:flex;align-items:center;min-width:0}

.rev-photo.multiple{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:auto;min-height:76px}.rev-photo.multiple img{min-width:0;height:38px}.rev-photo.cart.multiple{min-height:40px}.rev-photo.cart.multiple img{height:20px}

/* fotos cadastradas pelo PDV */
.rev-foto-box{display:flex;gap:12px;align-items:center;margin:10px 0;flex-wrap:wrap}
.rev-foto-prev{width:96px;height:96px;object-fit:contain;background:#fff;border:1px solid #e7e7e7;border-radius:10px;flex:none}
.rev-foto-ctl{display:grid;gap:6px;min-width:0;flex:1}
.rev-foto-btns{display:flex;gap:6px;flex-wrap:wrap}
.rev-foto-btns label.btn{cursor:pointer}
.rev-foto-msg{font-size:13px;opacity:.85}.rev-foto-msg.bad{color:#ff6b6b;opacity:1}
.rev-foto-toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);background:#1d1d1d;color:#fff;padding:10px 14px;border-radius:10px;z-index:9999;max-width:90vw;font-size:14px}
.rev-foto-toast.bad{background:#7a1f1f}
