/* =============== Wrapper du bloc : ne prend pas de place =============== */
#block-video-drawer-block,
.block-video-drawer-block {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

/* =============== Bouton flottant (si tu l'utilises) =============== */
.video-drawer__toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 12010;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 9999px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 18px;
}

/* =============== Tiroir latéral droit (élément principal) =============== */
/* On cible explicitement l’élément avec id + classe pour éviter les fuites de style */
#video-drawer.video-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;            /* empêche tout centrage */
  margin: 0 !important;
  width: min(420px, 92vw) !important;
  height: 100vh !important;
  max-height: 100vh !important;
  background: #fff;
  color: inherit;
  z-index: 12000 !important;

  /* État fermé : en dehors de l'écran à droite */
  transform: translateX(100%) !important;
  transition: transform .25s ease !important;

  /* Scrolling interne */
  overflow: auto;
}

/* État ouvert : 2 façons d’ouvrir prises en charge */
#video-drawer.video-drawer.apb-open,
#video-drawer.video-drawer.is-open {
  transform: translateX(0) !important;
}

/* =============== Overlay unique =============== */
#video-overlay,
.video-overlay {
  position: fixed !important;
  inset: 0 !important;               /* top/right/bottom/left: 0 */
  z-index: 11990 !important;         /* juste sous le tiroir */
  background: rgba(0,0,0,.45);
  display: none;
}

/* Visible quand ouvert (via JS) */
.video-overlay.is-visible,
#video-overlay.is-visible {
  display: block;
}

/* =============== Accessibilité & confort =============== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Bloque le scroll du fond quand le tiroir est ouvert */
html.apb-drawer-open,
body.apb-drawer-open {
  overflow: hidden !important;
}
