﻿.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-top: 3px solid #ffc107;
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cookie-consent-text {
  flex: 1;
  min-width: 0;
}

.cookie-consent-text h5 {
  color: #ffc107;
  font-weight: 600;
  margin-bottom: 10px;
}

.cookie-consent-text p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-details {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

.cookie-consent-details small {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cookie-consent-actions .btn {
  white-space: nowrap;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.3s ease;
  border-width: 2px;
}

.cookie-consent-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-consent-actions .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-actions .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

.cookie-consent-actions .btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

.cookie-consent-actions .btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

.cookie-consent-actions .btn-primary {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #212529;
  font-weight: 600;
}

.cookie-consent-actions .btn-primary:hover {
  background-color: #e0a800;
  border-color: #d39e00;
  color: #212529;
}

/* Cookie Settings Modal Styles */
.cookie-category {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #007bff;
  transition: all 0.3s ease;
}

.cookie-category:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.cookie-category h6 {
  color: #495057;
  font-weight: 600;
}

.cookie-category .form-check-input:checked {
  background-color: #007bff;
  border-color: #007bff;
}

.cookie-category .form-check-input:disabled {
  background-color: #6c757d;
  border-color: #6c757d;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1199px) {
  .cookie-consent-content {
      flex-direction: column;
      gap: 20px;
  }

  .cookie-consent-actions {
      justify-content: center;
      width: 100%;
  }

  .cookie-consent-actions .btn {
      flex: 1;
      min-width: 120px;
  }

  .cookie-consent-banner {
      padding: 15px;
  }
}

@media (max-width: 576px) {
  .cookie-consent-actions {
      flex-direction: column;
      width: 100%;
  }

  .cookie-consent-actions .btn {
      width: 100%;
      margin-bottom: 5px;
  }

  .cookie-consent-text h5 {
      font-size: 1.1rem;
  }

  .cookie-consent-text p {
      font-size: 0.9rem;
  }
}

/* Animation for smooth appearance */
@keyframes slideUp {
  from {
      transform: translateY(100%);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

.cookie-consent-banner.animate-in {
  animation: slideUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Hidden state */
.cookie-consent-banner.hidden {
  display: none;
}

/* Cookie status indicator (optional) */
.cookie-status-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-status-indicator:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.cookie-status-indicator.accepted {
  background: rgba(40, 167, 69, 0.9);
}

.cookie-status-indicator.rejected {
  background: rgba(220, 53, 69, 0.9);
}

.cookie-status-indicator.partial {
  background: rgba(255, 193, 7, 0.9);
  color: #212529;
}

.es-text-mute {
  color: #979b9c;
}
