/* Visible uniquement lorsqu'une présence a été confirmée côté serveur. */
#va2u-root .va2u-action-area.va2-owned-attached,
#va2u-root .va2u-app-native-toolbar.va2-owned-attached,
.vae-app .va2u-app-native-toolbar.va2-owned-attached {
  display: inline-flex; align-items: center; gap: 5px;
}
#va2u-root .va2u-owned-check,
.vae-app .va2u-owned-check {
  box-sizing: border-box; width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #edf4ee; border: 1px solid #a4c2a9; color: #276245;
  border-radius: 9px; font-size: 21px; font-weight: 750;
  line-height: 1; font-family: inherit; padding: 0; flex: 0 0 44px;
  cursor: default; vertical-align: middle;
}
.vae-app .va2u-app-native-toolbar .va2u-owned-check {width:34px;height:34px;min-width:34px;min-height:34px;flex-basis:34px;font-size:19px}
@media(max-width:480px) {
 #va2u-root .va2u-action-area.va2-owned-attached,
 #va2u-root .va2u-app-native-toolbar.va2-owned-attached {gap:3px}
}


/* v0.3.0 — Recherche Expert (page 20670) : identité et placement inchangés,
   et coche uniquement après validation de la présence par le serveur Premium. */
body.page-id-20670 .vap-search[data-search-mode="expert"] .va2u-expert-row:has(.va2u-owned-check){
  padding-right:108px!important;
}
body.page-id-20670 .vap-search[data-search-mode="expert"] .va2u-expert-actions.va2-owned-attached{
  display:inline-flex!important;align-items:center!important;gap:6px!important;
  width:auto!important;min-width:94px!important;height:44px!important;
  flex-direction:row!important;flex-wrap:nowrap!important;
  right:9px!important;top:calc(50% - 22px)!important;
}
body.page-id-20670 .vap-search[data-search-mode="expert"] .va2u-expert-actions .va2u-owned-check{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;width:44px!important;min-width:44px!important;height:44px!important;
  min-height:44px!important;flex:0 0 44px!important;margin:0!important;
  background:#edf4ee!important;border:1px solid #a4c2a9!important;
  border-radius:9px!important;color:#276245!important;font:750 21px/1 system-ui,sans-serif!important;
}
body.page-id-20670 .vap-search[data-search-mode="expert"] .va2u-expert-actions>.va2u-plus{
  flex:0 0 44px!important;margin:0!important;
}
/* Recherche Expert — menu d'actions dans la couche native du navigateur.
   Un seul positionnement, sans z-index cumulés sur les lignes successives. */
body.page-id-20670 .vap-search[data-search-mode="expert"] .vap-results,
body.page-id-20670 .vap-search[data-search-mode="expert"] .va2u-expert-row {
  overflow:visible;
}
body.page-id-20670 .vap-search[data-search-mode="expert"] .vap-results .va2u-expert-menu-active {
  position:relative;z-index:3; /* repli pour les navigateurs sans Popover API */
}
body.page-id-20670 .vap-search[data-search-mode="expert"] .vap-results .va2u-expert-floating:popover-open {
  position:fixed!important;
  inset:auto!important;
  left:var(--va2u-expert-x,12px)!important;
  top:var(--va2u-expert-y,12px)!important;
  margin:0!important;
  box-sizing:border-box!important;
  width:min(290px,calc(100vw - 24px))!important;
  max-width:calc(100vw - 24px)!important;
  max-height:calc(100dvh - 24px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:580px){
 body.page-id-20670 .vap-search[data-search-mode="expert"] .va2u-expert-row:has(.va2u-owned-check){padding-right:103px!important;}
 body.page-id-20670 .vap-search[data-search-mode="expert"] .va2u-expert-actions.va2-owned-attached{gap:4px!important;}
}

/* v0.3.1 — priorité à la largeur réelle de deux boutons dans Expert.
   Le sélecteur reprend explicitement l'ID du gabarit source. */
body.va2u-expert-preview.page-id-20670 #vap-premium-start.vap-search[data-search-mode="expert"]
.vap-results article.vap-card.va2u-expert-row > .va2u-expert-actions.va2-owned-attached {
  width:94px!important;min-width:94px!important;height:44px!important;
  display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;
  right:9px!important;top:calc(50% - 22px)!important;gap:6px!important;
}
body.va2u-expert-preview.page-id-20670 #vap-premium-start.vap-search[data-search-mode="expert"]
.vap-results article.vap-card.va2u-expert-row:has(.va2u-owned-check) {
  padding-right:111px!important;
}

/* v0.3.2 — Généalogie Premium : même témoin que dans la recherche universelle.
   Aucun bloc vide n'est ajouté lorsque la présence n'est pas confirmée. */
.vag-root .vag-row-controls > .va2u-action-area.va2-owned-attached{
 display:inline-flex;align-items:center;gap:5px;
}
.vag-root .vag-row-controls > .va2u-action-area > .va2u-owned-check{
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
 width:38px;height:38px;min-width:38px;min-height:38px;flex:0 0 38px;
 background:#edf4ee;border:1px solid #a4c2a9;color:#276245;border-radius:9px;
 font:750 21px/1 system-ui,sans-serif;padding:0;cursor:default;
}
@media(max-width:650px){
 .vag-root .vag-row-controls > .va2u-action-area > .va2u-owned-check{width:36px;height:36px;min-width:36px;min-height:36px;flex-basis:36px;font-size:19px}
}
