/* Privacy Policy Popup - Bottom Left Corner, Non-Obstructive */

/* Remove backdrop - no longer needed */
.privacy-backdrop {
  display: none !important;
}

/* Main popup container - Bottom Left Position */
.privacy-popup {
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
  z-index: 999999 !important;
  width: 320px !important;
  max-width: calc(100vw - 40px) !important;
  animation: slideInFromLeft 0.4s ease-out !important;
}

/* Popup content wrapper */
.privacy-content {
  padding: 20px !important;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Privacy header with title and close button */
.privacy-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}

/* Heading styles */
.privacy-popup h3 {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #333333 !important;
  flex: 1 !important;
}

/* Close button */
.privacy-close-btn {
  background: none !important;
  border: none !important;
  color: #666666 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  padding: 4px !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  flex-shrink: 0 !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}

.privacy-close-btn:hover {
  background: #f5f5f5 !important;
  color: #333333 !important;
}

.privacy-close-btn:active {
  background: #e0e0e0 !important;
}

/* Paragraph styles */
.privacy-popup p {
  margin: 0 0 15px 0 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #666666 !important;
}

/* Link styles */
.privacy-popup a {
  color: #00A0DF !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
}

.privacy-popup a:hover {
  color: #0088cc !important;
  text-decoration: underline !important;
}

/* Button container */
.privacy-buttons {
  display: flex !important;
  gap: 10px !important;
  margin-top: 15px !important;
}

/* Base button styles */
.privacy-accept-btn {
  flex: 1 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  min-height: 44px !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Accept button */
.privacy-accept-btn {
  background: #00A0DF !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(0, 160, 223, 0.3) !important;
}

.privacy-accept-btn:hover {
  background: #0088cc !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 18px rgba(0, 160, 223, 0.4) !important;
}

.privacy-accept-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(0, 160, 223, 0.3) !important;
}



/* Animation keyframes - Slide in from left */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .privacy-popup {
    width: calc(100vw - 30px) !important;
    max-width: 320px !important;
    bottom: 15px !important;
    left: 15px !important;
  }
  
  .privacy-content {
    padding: 18px !important;
  }
  
  .privacy-popup h3 {
    font-size: 15px !important;
  }
  
  .privacy-popup p {
    font-size: 12px !important;
  }
  
  .privacy-accept-btn {
    font-size: 12px !important;
    padding: 10px 14px !important;
    min-height: 42px !important;
  }
  
  .privacy-buttons {
    gap: 8px !important;
  }
  
  .privacy-close-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .privacy-popup {
    width: calc(100vw - 20px) !important;
    max-width: 300px !important;
    bottom: 10px !important;
    left: 10px !important;
  }
  
  .privacy-content {
    padding: 16px !important;
  }
  
  .privacy-accept-btn {
    padding: 12px 14px !important;
    min-height: 44px !important;
    font-size: 12px !important;
  }
  

  
  .privacy-close-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 13px !important;
  }
}

/* Ensure popup doesn't interfere with page interaction */
.privacy-popup {
  pointer-events: auto !important;
}

/* No body scroll lock - allow normal browsing */
body.privacy-active {
  overflow: auto !important;
}

/* Force appropriate z-index without being too aggressive */
#privacyPolicyPopup,
.privacy-popup {
  z-index: 999999 !important;
}

/* Override any conflicting styles */
.privacy-popup * {
  box-sizing: border-box !important;
}

/* Subtle hover effect for the entire popup */
.privacy-popup:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
}

/* Focus styles for accessibility */
.privacy-accept-btn:focus,
.privacy-close-btn:focus {
  outline: 2px solid #00A0DF !important;
  outline-offset: 2px !important;
}

/* Hidden state */
.privacy-popup-hidden {
  display: none !important;
}

/* Ensure proper stacking and visibility */
.privacy-popup {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Animation for smooth transitions */
.privacy-popup {
  transition: opacity 0.3s ease, transform 0.3s ease !important;
}

/* Ensure buttons are properly sized on touch devices */
@media (hover: none) and (pointer: coarse) {
  .privacy-accept-btn {
    min-height: 48px !important;
    font-size: 14px !important;
  }
  
  .privacy-close-btn {
    min-width: 32px !important;
    min-height: 32px !important;
  }
}