/* Cookie Consent Banner Styles */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  font-family: Inter, system-ui, sans-serif;
  transform: translateY(100%);
  animation: slideUpFromBottom 0.4s ease-out forwards;
}

.cookie-banner-overlay {
  width: 100%;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1);
}

.cookie-banner-compact {
  background: white;
  width: 100%;
  padding: 1rem 1.5rem;
}

.cookie-compact-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem 0;
}

.cookie-text p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

.cookie-text a {
  color: #0057b7;
  text-decoration: underline;
}

.cookie-actions-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-preferences {
  border-top: 1px solid #e5e7eb;
  padding: 1rem 0 0;
  margin-top: 1rem;
}

.preferences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.preference-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preference-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 3px;
  background: white;
  cursor: pointer;
}

.preference-item input[type="checkbox"]:checked {
  background: #0057b7;
  border-color: #0057b7;
}

.preference-item input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 10px;
  font-weight: bold;
  margin-left: -14px;
  margin-top: -1px;
}

.preference-item input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.preference-item label {
  font-size: 0.85rem;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.preferences-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

@keyframes slideUpFromBottom {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-consent-banner.hiding {
  animation: slideDownToBottom 0.3s ease-in forwards;
}

@keyframes slideDownToBottom {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

/* Compact button styles */
.btn-primary {
  background: #0057b7;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-text {
  background: none;
  color: #6b7280;
  border: none;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.btn-text:hover {
  color: #374151;
}

.link-button {
  background: none;
  border: none;
  color: #0057b7;
  cursor: pointer;
  text-decoration: none;
  font-size: inherit;
}

.link-button:hover {
  text-decoration: underline;
}

/* Cookie Management Link in Footer */
.cookie-management-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0057b7;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 1000;
}

.cookie-management-link:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-compact {
    padding: 1rem;
  }
  
  .cookie-compact-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .cookie-text {
    min-width: auto;
    margin-bottom: 0.5rem;
  }
  
  .cookie-actions-compact {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .preferences-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .preferences-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cookie-management-link {
    bottom: 10px;
    right: 10px;
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .cookie-banner-compact {
    padding: 0.75rem;
  }
  
  .cookie-text h3 {
    font-size: 1rem;
  }
  
  .cookie-text p {
    font-size: 0.85rem;
  }
  
  .cookie-actions-compact {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  
  .cookie-actions-compact button {
    width: 100%;
    justify-content: center;
  }
  
  .preferences-grid {
    grid-template-columns: 1fr;
  }
  
  .preferences-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .preferences-actions button {
    width: 100%;
  }
}