/* Sticky Cookie Panel */
.cookie-sticky-panel {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
  animation: slideInLeft 0.5s ease-out;
}

.cookie-panel-toggle {
  background: #9BBB59;
  border: none;
  border-radius: 25px 25px 25px 5px;
  padding: 12px 16px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(155, 187, 89, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  justify-content: center;
}

.cookie-panel-toggle:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(155, 187, 89, 0.6);
  background: #8aac4f;
}

.cookie-icon {
  font-size: 16px;
  animation: bounce 2s infinite;
}

.cookie-text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookies-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-in-out;
}

.cookies-consent-banner {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

.cookies-consent-content {
  padding: 30px;
}

.cookies-consent-header h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background-color: #f8f9fa;
  color: #495057;
}

.cookies-consent-header p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 25px;
}

.cookies-consent-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cookies-consent-actions .btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 120px;
}

.cookies-consent-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookies-consent-preferences {
  margin-bottom: 20px;
}

.preference-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #e9ecef;
}

.preference-item:last-child {
  border-bottom: none;
}

.preference-info {
  flex: 1;
  margin-right: 20px;
}

.preference-info h4 {
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.preference-info p {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.preference-toggle {
  flex-shrink: 0;
}

.preference-toggle .form-check-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.preference-toggle .form-check-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.preferences-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.preferences-actions .btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 120px;
}

.preferences-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookies-consent-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.cookies-consent-footer p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0;
}

.cookies-consent-footer a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.cookies-consent-footer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-2px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-sticky-panel {
    left: 10px;
    bottom: 20px;
  }
  
  .cookie-panel-toggle {
    min-width: 100px;
    padding: 10px 14px;
    font-size: 12px;
  }
  
  .cookie-text {
    font-size: 10px;
  }
  
  .cookies-consent-overlay {
    padding: 10px;
  }
  
  .cookies-consent-content {
    padding: 20px;
  }
  
  .cookies-consent-actions {
    flex-direction: column;
  }
  
  .cookies-consent-actions .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .preference-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .preference-info {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .preference-toggle {
    align-self: flex-end;
  }
  
  .preferences-actions {
    flex-direction: column;
  }
  
  .preferences-actions .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .cookie-sticky-panel {
    left: 5px;
    bottom: 10px;
  }
  
  .cookie-panel-toggle {
    min-width: 80px;
    padding: 8px 12px;
    font-size: 11px;
  }
  
  .cookie-icon {
    font-size: 14px;
  }
  
  .cookie-text {
    font-size: 9px;
  }
  
  .cookies-consent-header h3 {
    font-size: 1.3rem;
  }
  
  .cookies-consent-content {
    padding: 15px;
  }
}
