/* Preserve existing photo frames, but fit the entire image inside them. */
#compareModal .cmp-photo,
#wishlistModal.wishlist-new .wish-card-open .photo{position:relative!important;min-width:0!important;min-height:0!important}
#compareModal .cmp-photo>img,
#wishlistModal.wishlist-new .wish-card-open .photo>img,
#wishlistModal.wishlist-new .wish-card-open:hover .photo>img{
 position:absolute!important;inset:0!important;display:block!important;
 width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
 min-width:0!important;min-height:0!important;box-sizing:border-box!important;
 object-fit:contain!important;object-position:center!important;
 margin:0!important;padding:0!important;transform:none!important;scale:none!important;
 clip-path:none!important;transition:none!important;
}
/* Browser toolbars cannot be hidden by a page. Keep a toolbar-sized reserve
   beneath the composer while typing on a touch device in a browser tab. */
#customerChatModal[data-chat-mode="order"]{--order-browser-clearance:0px}
@media(pointer:coarse){
 #customerChatModal[data-chat-mode="order"][data-keyboard-open="true"]{--order-browser-clearance:max(24px,env(safe-area-inset-bottom))}
}
@media(display-mode:standalone),(display-mode:fullscreen){
 #customerChatModal[data-chat-mode="order"][data-keyboard-open="true"]{--order-browser-clearance:0px}
}
#customerChatModal[data-chat-mode="order"][data-keyboard-open="true"] .customer-chat-form{
 bottom:var(--order-browser-clearance)!important;
 max-height:calc(100% - var(--order-browser-clearance))!important;
}
#customerChatModal[data-chat-mode="order"][data-keyboard-open="true"] .chat-scroll-content{
 bottom:calc(var(--order-composer-height,80px) + var(--order-browser-clearance))!important;
}
