/* Consent Notification - Matches Location Notification Styling */

.consent-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  max-width: 380px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.consent-notification.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.consent-notification-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  backdrop-filter: blur(10px);
}

.consent-notification-content > .bi {
  font-size: 24px;
  color: #2e7d32;
  flex-shrink: 0;
  margin-top: 2px;
}

.consent-notification-text {
  flex: 1;
  min-width: 0;
}

.consent-notification-text strong {
  display: block;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.consent-notification-text p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.4;
}

.consent-notification-enable {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.consent-notification-enable:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.consent-notification-enable:active {
  transform: translateY(0);
}

.consent-notification-close {
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: -4px;
}

.consent-notification-close:hover {
  color: #666;
  background: rgba(0, 0, 0, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .consent-notification {
    top: 70px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
  
  .consent-notification-content {
    padding: 14px 16px;
    gap: 10px;
  }
  
  .consent-notification-content > .bi {
    font-size: 20px;
  }
  
  .consent-notification-text strong {
    font-size: 13px;
  }
  
  .consent-notification-text p {
    font-size: 12px;
  }
  
  .consent-notification-enable {
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .consent-notification {
    top: 60px;
    right: 8px;
    left: 8px;
  }
  
  .consent-notification-content {
    flex-wrap: wrap;
    padding: 12px 14px;
  }
  
  .consent-notification-text {
    flex-basis: 100%;
    order: 2;
  }
  
  .consent-notification-enable {
    order: 3;
    flex: 1;
  }
  
  .consent-notification-close {
    order: 1;
    margin-left: auto;
  }
  
  .consent-notification-content > .bi {
    order: 0;
  }
}

/* Animation for entrance */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(400px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Ensure notification appears above map controls */
.consent-notification {
  z-index: 10000 !important;
}