/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -4px 20px rgba(26, 27, 58, 0.15);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  backdrop-filter: blur(10px);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.cookie-text h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.cookie-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  font-weight: 300;
}

.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-shrink: 0;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  min-width: 90px;
}

.cookie-btn-accept {
  background: var(--gradient-accent);
  color: var(--white);
  border-color: var(--accent);
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.cookie-btn-decline:hover {
  background: var(--light-bg);
  color: var(--text);
  border-color: var(--text-muted);
}

.cookie-btn-customize {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: var(--primary);
}

.cookie-btn-customize:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26, 27, 58, 0.3);
}

.cookie-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
  text-align: center;
  margin-top: 8px;
}

.cookie-link:hover {
  color: var(--accent-dark);
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Cookie Customization Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

.cookie-category {
  margin-bottom: 24px;
  padding: 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s ease;
}

.cookie-category:hover {
  border-color: var(--accent);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cookie-category h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-toggle.active {
  background: var(--accent);
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle.active::after {
  transform: translateX(24px);
}

.cookie-toggle.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-category p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.cookie-modal-actions .cookie-btn {
  min-width: 120px;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    text-align: center;
  }
  
  .cookie-buttons {
    justify-content: center;
    width: 100%;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 80px;
  }
  
  .cookie-modal-content {
    padding: 24px;
    margin: 10px;
  }
  
  .cookie-modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .cookie-content {
    padding: 16px;
  }
  
  .cookie-text h4 {
    font-size: 14px;
  }
  
  .cookie-text p {
    font-size: 13px;
  }
  
  .cookie-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-modal-content {
    padding: 20px;
  }
}