@import url('root.css');

.cookie-icon {
  z-index: 100000;
  position: fixed;
  bottom: 50px;
  left: 0;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0 10px 10px 0;
  padding: 5px;
  font-size: 2rem !important;
  cursor: pointer;
  display: none;
  transition: transform var(--transition-fast);
}

.cookie-icon:hover {
    transform: scale(1.1);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  padding: 30px;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 1000;
}

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

.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cookie-icon {
  font-size: 3em;
}

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

.cookie-content h2 {
  color: var(--text-primary);
  margin-bottom: 10px;
  font-size: 1.5em;
}

.cookie-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 5px;
}

.cookie-content a {
  color: #667eea;
  text-decoration: none;
  font-weight: bold;
}

.cookie-content a:hover {
  text-decoration: underline;
}

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

.cookie-modal .btn {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-accept {
  background: #667eea;
  color: white;
}

.btn-accept:hover {
  background: #5568d3;
  transform: translateY(-2px);
}

.btn-reject {
  background: #f1f1f1;
  color: #333;
}

.btn-reject:hover {
  background: #e0e0e0;
}

.btn-settings {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-settings:hover {
  background: #667eea;
  color: white;
}

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

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

.modal-content {
  background: var(--bg-primary);
  border-radius: 15px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

.modal-close {
  position: absolute;
  background: var(--primary);
  top: 20px;
  right: 20px;
  font-size: 1.5em;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--primary-dark);
  color: white;
}

.modal-content h2 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 1.8em;
}

.cookie-category {
  margin-bottom: 25px;
  padding: 20px;
  background: var(--bg-tertiary);
  border-radius: 10px;
}

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

.category-header h3 {
  color: var(--text-primary);
  font-size: 1.2em;
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #667eea;
}

input:checked + .slider:before {
  transform: translateX(30px);
}

input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.category-description {
  color: var(--text-secondary);
  font-size: 0.95em;
  line-height: 1.6;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .cookie-container {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .btn {
    flex: 1;
  }

  .modal-content {
    padding: 30px 20px;
  }
}
