/* R260 — corrections strictement ciblées : Profil + Mes documents
   2026-08-07
   - Profil : Fermer reprend exactement la largeur de l'action Connexion/Déconnexion.
   - Mes documents : Fermer conserve le standard officiel sur tous les formats.
*/

/* PROFIL — largeur identique à Connexion/Déconnexion. */
html[data-ethnos-ui] body .memberProfileDrawer > button.memberProfileBottomClose{
  box-sizing:border-box !important;
  width:calc(57.5% - 5.75px) !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

@media (min-width:1650px) and (max-width:1750px) and (min-height:980px) and (max-height:1120px){
  html[data-ethnos-ui] body .memberProfileDrawer > button.memberProfileBottomClose{
    width:calc(59% - 4.72px) !important;
  }
}

@media (min-width:1200px) and (max-width:1299px) and (max-height:760px){
  html[data-ethnos-ui] body .memberProfileDrawer > button.memberProfileBottomClose{
    width:calc(61% - 3.05px) !important;
  }
}

/* MES DOCUMENTS / MÉDIAS — standard Fermer officiel, sans variation de format. */
html[data-ethnos-ui] body
.memberMediaShell .memberMediaScroll > button.memberMediaCloseButton.memberDrawerCloseButton{
  appearance:none !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  justify-self:center !important;
  width:auto !important;
  min-width:116px !important;
  max-width:none !important;
  height:auto !important;
  min-height:34px !important;
  max-height:none !important;
  margin:10px auto 14px !important;
  padding:0 22px !important;
  border:1px solid var(--r213-clear-button-border) !important;
  border-radius:999px !important;
  background:var(--r213-clear-button-bg) !important;
  color:var(--r213-clear-button-ink) !important;
  font-family:var(--font-interface,Manrope,"Segoe UI",Arial,sans-serif) !important;
  font-size:clamp(10px,.72vw,13px) !important;
  font-weight:500 !important;
  font-style:normal !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  text-align:center !important;
  text-decoration:none !important;
  text-transform:none !important;
  text-shadow:none !important;
  white-space:nowrap !important;
  box-shadow:none !important;
  filter:none !important;
  transform:none !important;
  cursor:pointer !important;
}

html[data-ethnos-ui] body
.memberMediaShell .memberMediaScroll > button.memberMediaCloseButton.memberDrawerCloseButton:hover,
html[data-ethnos-ui] body
.memberMediaShell .memberMediaScroll > button.memberMediaCloseButton.memberDrawerCloseButton:focus-visible{
  border-color:rgba(7,26,57,.48) !important;
  background:var(--r213-clear-button-bg) !important;
  color:var(--r213-clear-button-ink) !important;
  filter:none !important;
  transform:none !important;
  outline:none !important;
  box-shadow:none !important;
}
