/* Listes partagées uniquement : photos plus compactes et titres plus visibles.
   Ne touche ni aux cartes du tableau de bord ni à la gestion des cadeaux. */
.ubc-page #ubc-app .ubc-shared-gifts>.ubc-card{
 display:flex;flex-direction:column;align-items:stretch;
 min-width:0;box-sizing:border-box;
}
.ubc-page #ubc-app .ubc-shared-gifts>.ubc-card .ubc-img{
 display:block;width:min(100%,230px);max-width:230px;
 height:164px;max-height:164px;aspect-ratio:auto;
 object-fit:contain;object-position:center;
 padding:8px;margin:0 auto 14px;
 border:1px solid #eee2e8;border-radius:12px;background:#fff;
}
.ubc-page #ubc-app .ubc-shared-gifts>.ubc-card .ubc-no-photo{
 width:min(100%,230px);max-width:230px;height:164px;min-height:0;
 margin:0 auto 14px;display:flex;flex-direction:column;
 align-items:center;justify-content:center;
}
.ubc-page #ubc-app .ubc-shared-gifts>.ubc-card h3{
 font-size:clamp(1.25rem,2.2vw,1.5rem);
 font-weight:750;line-height:1.27;letter-spacing:-.012em;
 margin:0 0 8px;overflow-wrap:anywhere;
}
.ubc-page #ubc-app .ubc-shared-gifts>.ubc-card p{
 margin:7px 0;line-height:1.5;overflow-wrap:anywhere;
}
.ubc-page #ubc-app .ubc-shared-gifts>.ubc-card button[data-action="reserve"]{
 align-self:flex-start;margin-top:13px;
}
@media(max-width:600px){
 .ubc-page #ubc-app .ubc-shared-gifts>.ubc-card .ubc-img{
  width:min(72%,190px);max-width:190px;height:140px;max-height:140px;
  padding:6px;margin:0 auto 13px;
 }
 .ubc-page #ubc-app .ubc-shared-gifts>.ubc-card .ubc-no-photo{
  width:min(72%,190px);max-width:190px;height:140px;margin:0 auto 13px;
 }
 .ubc-page #ubc-app .ubc-shared-gifts>.ubc-card h3{
  font-size:1.4rem;line-height:1.26;margin:0 0 8px;
 }
 .ubc-page #ubc-app .ubc-shared-gifts>.ubc-card p{margin:6px 0}
}
