/* Cartes cadeaux des listes personnelles : une colonne par carte pour supprimer les chevauchements. */
body.ubc-page #ubc-app .ubc-grid.ubc-manage-gifts{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;align-items:stretch!important}
body.ubc-page #ubc-app .ubc-manage-gifts>.ubc-manage-gift-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;min-width:0!important;width:100%!important;max-width:100%!important;height:auto!important;padding:16px!important;overflow:hidden!important;box-sizing:border-box!important}
body.ubc-page #ubc-app .ubc-manage-gift-card>.ubc-manage-gift-media{width:100%!important;min-width:0!important}
body.ubc-page #ubc-app .ubc-manage-gift-card .ubc-manage-gift-media .ubc-img{display:block!important;width:100%!important;max-width:100%!important;height:180px!important;max-height:180px!important;aspect-ratio:auto!important;object-fit:contain!important;margin:0!important;box-sizing:border-box!important}
body.ubc-page #ubc-app .ubc-manage-gift-card>.ubc-manage-gift-body{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-width:0!important;width:100%!important;overflow-wrap:anywhere!important;word-break:normal!important}
body.ubc-page #ubc-app .ubc-manage-gift-card h3{font-size:16px!important;line-height:1.35!important;min-width:0!important;overflow-wrap:anywhere!important;flex:none!important}
body.ubc-page #ubc-app .ubc-manage-gift-card .ubc-gift-quantity,body.ubc-page #ubc-app .ubc-manage-gift-card .ubc-gift-reference{overflow-wrap:anywhere!important;white-space:normal!important}
body.ubc-page #ubc-app .ubc-manage-gift-card .ubc-manage-gift-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:auto!important;padding-top:14px!important;width:100%!important}
body.ubc-page #ubc-app .ubc-manage-gift-card .ubc-manage-gift-actions>button{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:9px 6px!important;white-space:normal!important}
@media(max-width:760px){body.ubc-page #ubc-app .ubc-grid.ubc-manage-gifts{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}body.ubc-page #ubc-app .ubc-manage-gifts>.ubc-manage-gift-card{padding:11px!important}body.ubc-page #ubc-app .ubc-manage-gift-card .ubc-manage-gift-media .ubc-img{height:140px!important;max-height:140px!important}}
@media(max-width:390px){body.ubc-page #ubc-app .ubc-manage-gift-card .ubc-manage-gift-actions{grid-template-columns:minmax(0,1fr)!important}}

/* Autoriser les intitulés complets et éviter tout débordement horizontal. */
body.ubc-page #ubc-app .ubc-manage-gifts .ubc-manage-gift-card .ubc-manage-gift-heading,body.ubc-page #ubc-app .ubc-manage-gifts .ubc-manage-gift-card .ubc-manage-gift-heading h3{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;max-height:none!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;-webkit-line-clamp:unset!important;-webkit-box-orient:initial!important}
body.ubc-page #ubc-app .ubc-manage-gifts .ubc-manage-gift-card .ubc-manage-gift-body{overflow:visible!important}
