/* cookie-consent.css — Powerdeal (POPUP ROBUSTE) */

/* Par défaut caché : empêche tout rendu "dans le footer" si CSS global casse tout */
.vy-cc-overlay{
  display:none !important;

  position:fixed !important;
  inset:0 !important;
  z-index:999999 !important;

  align-items:flex-end;
  justify-content:center;

  padding:14px !important;
  background:rgba(0,0,0,.35) !important;
}

/* Quand ouvert, le JS ajoute html.vy-cc-open */
html.vy-cc-open .vy-cc-overlay{
  display:flex !important;
}

/* Si hidden, ça reste caché */
.vy-cc-overlay[hidden]{ display:none !important; }

/* Bloque le scroll derrière */
html.vy-cc-open,
html.vy-cc-open body{
  overflow:hidden !important;
}

/* Carte */
.vy-cc{
  width:min(720px, 100%) !important;
  max-height:calc(100vh - 28px) !important;
  overflow:auto !important;

  background:#fff !important;
  border-radius:14px !important;
  box-shadow:0 14px 40px rgba(0,0,0,.22) !important;
  padding:16px !important;
  outline:none;

  box-sizing:border-box !important;
  text-align:left !important;
  color:#111 !important;
  font-family:inherit !important;
}

.vy-cc *,
.vy-cc *::before,
.vy-cc *::after{ box-sizing:border-box !important; }

.vy-cc__top h2{
  margin:0 0 8px 0 !important;
  font-size:18px !important;
}

.vy-cc p{
  margin:0 0 14px 0 !important;
  line-height:1.35 !important;
  font-size:14px !important;
}

.vy-cc__actions{
  display:flex !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  margin:8px 0 6px 0 !important;
}

.vy-btn{
  appearance:none !important;
  -webkit-appearance:none !important;

  border:1px solid #ddd !important;
  background:#f7f7f7 !important;
  color:#111 !important;

  border-radius:10px !important;
  padding:10px 12px !important;
  font-weight:600 !important;
  cursor:pointer !important;
  font-size:14px !important;
}

.vy-btn:focus{ outline:2px solid #111 !important; outline-offset:2px !important; }

.vy-btn--primary{
  background:#111 !important;
  border-color:#111 !important;
  color:#fff !important;
}

.vy-btn--ghost{ background:#fff !important; }

.vy-cc__links{ margin-top:8px !important; }

.vy-cc__link{
  font-size:13px !important;
  color:#111 !important;
  text-decoration:underline !important;
}

.vy-cc__prefs{
  margin-top:14px !important;
  border-top:1px solid #eee !important;
  padding-top:12px !important;
}

.vy-cc__prefs h3{
  margin:0 0 10px 0 !important;
  font-size:16px !important;
}

.vy-cc__pref{
  display:grid !important;
  grid-template-columns:1fr auto !important;
  gap:10px !important;
  padding:10px 0 !important;
  border-bottom:1px solid #f0f0f0 !important;
}

.vy-cc__muted{
  font-size:12px !important;
  color:#555 !important;
  margin-top:3px !important;
}

.vy-cc__actions--prefs{ margin-top:12px !important; }

/* Switch */
.vy-switch{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
}

.vy-switch input{
  position:absolute !important;
  opacity:0 !important;
  width:1px !important;
  height:1px !important;
}

.vy-switch__ui{
  width:46px !important;
  height:28px !important;
  border-radius:999px !important;
  background:#ddd !important;
  position:relative !important;
  transition:background .2s ease !important;
}

.vy-switch__ui::after{
  content:"" !important;
  width:22px !important;
  height:22px !important;
  border-radius:50% !important;
  background:#fff !important;
  position:absolute !important;
  top:3px !important;
  left:3px !important;
  transition:transform .2s ease !important;
  box-shadow:0 2px 8px rgba(0,0,0,.18) !important;
}

.vy-switch input:checked + .vy-switch__ui{ background:#111 !important; }
.vy-switch input:checked + .vy-switch__ui::after{ transform:translateX(18px) !important; }

@media (max-width:480px){
  .vy-cc-overlay{ padding:10px !important; }
  .vy-cc{ padding:14px !important; }
}
