/* Basic styles for LGPD popup */
#lgpd-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99998;
  background: rgba(255,255,255,0.9); /* will be overridden by JS */
}
#lgpd-popup {
  position: fixed;
  z-index: 99999;
  display: none;
  max-width: 480px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.5;
}
#lgpd-popup .lgpd-content { display: flex; gap: 12px; align-items: center; }
#lgpd-popup .lgpd-message { margin: 0; }
#lgpd-popup .lgpd-actions { margin-left: auto; display: flex; gap: 8px; }
#lgpd-popup button {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}
#lgpd-overlay.lgpd-blocking { display: block; }
#lgpd-popup.lgpd-visible { display: block; }
.lgpd-hidden { display: none !important; }

/* Overlay refusal banner inside overlay */
#lgpd-refusal-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 100000;
  font-size: 13px;
}
.lgpd-privacy-link { text-decoration: underline; }


/* Mobile optimizations */
@media (max-width: 600px) {
  #lgpd-popup {
    max-width: 92vw;
    padding: 16px; /* base; JS can clamp further */
    border-radius: 12px;
  }
  #lgpd-popup .lgpd-content {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #lgpd-popup .lgpd-actions {
    margin-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  #lgpd-popup button {
    width: 100%;
    padding: 10px;
  }
  #lgpd-popup .lgpd-message {
    max-height: 38vh; /* avoid covering screen */
    overflow: auto;
  }
}

/* Keep privacy link the same color as the popup text */
#lgpd-popup .lgpd-privacy-link,
#lgpd-popup .lgpd-privacy-link:visited,
#lgpd-popup .lgpd-privacy-link:hover,
#lgpd-popup .lgpd-privacy-link:focus {
  color: inherit !important;
  text-decoration: underline;
}

