/* Mobile first: barra fixa embaixo, largura total */

#simple-lgpd-popup-overlay {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  display: flex !important;
  justify-content: stretch !important;
  align-items: flex-end !important;
  z-index: 99999998 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  pointer-events: none !important;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#simple-lgpd-popup-overlay.slgpd-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.simple-lgpd-popup {
  pointer-events: auto !important;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  max-height: min(72vh, 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-radius: 14px 14px 0 0;
  padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  position: relative;
  box-shadow: 0 -6px 28px rgba(15, 23, 42, 0.12);
  text-align: left;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-bottom: none;
  animation: simpleLgpdSlideUp 0.35s ease;
}

.simple-lgpd-popup h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 10px;
  padding-right: 36px;
  line-height: 1.35;
  color: #0f172a;
}

.simple-lgpd-popup-content {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 12px;
}

.simple-lgpd-popup-content p {
  margin: 0 0 8px;
}

.simple-lgpd-popup-content p:last-child {
  margin-bottom: 0;
}

.simple-lgpd-policy {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #058ee9;
  text-decoration: underline;
  margin-bottom: 14px;
}

.simple-lgpd-policy:hover {
  color: #0470c2;
}

.simple-lgpd-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.simple-lgpd-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#simple-lgpd-popup-overlay .simple-lgpd-btn.simple-lgpd-accept {
  background: linear-gradient(135deg, #058ee9, #0470c2) !important;
  color: #fff !important;
  border: none !important;
}

#simple-lgpd-popup-overlay .simple-lgpd-btn.simple-lgpd-accept:hover {
  background: linear-gradient(135deg, #0478d4, #0361ad) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 142, 233, 0.45);
}

.simple-lgpd-btn.simple-lgpd-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.simple-lgpd-btn.simple-lgpd-btn-secondary:hover {
  background: #e2e8f0;
}

.simple-lgpd-close {
  position: absolute;
  top: 12px;
  right: 10px;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.simple-lgpd-close:hover {
  color: #0f172a;
}

@keyframes simpleLgpdSlideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet/desktop: card lateral (canto inferior direito) */
@media (min-width: 640px) {
  #simple-lgpd-popup-overlay {
    justify-content: flex-end !important;
    align-items: flex-end !important;
    padding: 16px !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .simple-lgpd-popup {
    width: 100%;
    max-width: 400px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 22px 20px 20px;
    max-height: min(80vh, 100%);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
  }

  .simple-lgpd-popup h3 {
    font-size: 1.0625rem;
  }

  .simple-lgpd-popup-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .simple-lgpd-btn {
    width: auto;
    flex: 1 1 auto;
    min-width: 120px;
  }
}
