.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem;
  background-color: rgba(41, 45, 62, 0.95);
  color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

.cookie-consent.active {
  transform: translateY(0);
}

.cookie-consent-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  gap: 1rem;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
}

.cookie-text h3 {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: white;
}

.cookie-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-text a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cookie-btn {
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-width: 120px;
  text-align: center;
}

.cookie-btn-accept {
  background: var(--primary-color);
  color: white;
}

.cookie-btn-accept:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.cookie-btn-settings {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-settings:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.cookie-settings-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-settings-panel.active {
  opacity: 1;
  visibility: visible;
}

.cookie-settings-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
}

.cookie-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 1rem;
}

.cookie-settings-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--dark-color);
}

.cookie-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-color);
  transition: color 0.3s ease;
}

.cookie-close-btn:hover {
  color: var(--dark-color);
}

.cookie-settings-body {
  margin-bottom: 1.5rem;
}

.cookie-category {
  margin-bottom: 1.5rem;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.cookie-category-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .toggle-slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.cookie-category-description {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-top: 0.5rem;
}

.cookie-settings-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 1.5rem;
}

.cookie-settings-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.cookie-save-btn {
  background: var(--primary-color);
  color: white;
}

.cookie-save-btn:hover {
  background: var(--primary-light);
}

.cookie-cancel-btn {
  background: var(--light-color);
  color: var(--dark-color);
}

.cookie-cancel-btn:hover {
  background: #e2e8f0;
}

body.dark-mode .cookie-settings-content {
  background: #2d3748;
}

body.dark-mode .cookie-settings-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .cookie-settings-header h3,
body.dark-mode .cookie-category-header h4 {
  color: white;
}

body.dark-mode .cookie-close-btn {
  color: #a0aec0;
}

body.dark-mode .cookie-close-btn:hover {
  color: white;
}

body.dark-mode .cookie-category-description {
  color: #a0aec0;
}

body.dark-mode .toggle-slider {
  background-color: #4a5568;
}

body.dark-mode .cookie-settings-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .cookie-cancel-btn {
  background: #4a5568;
  color: white;
}

body.dark-mode .cookie-cancel-btn:hover {
  background: #2d3748;
}

@media (max-width: 768px) {
  .cookie-consent {
    padding: 1rem;
  }
  
  .cookie-consent-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cookie-text {
    margin-bottom: 1rem;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
  
  .cookie-settings-content {
    padding: 1.5rem;
    max-height: 90vh;
  }
}

@media (max-width: 480px) {
  .cookie-btn {
    width: 100%;
  }
  
  .cookie-settings-footer {
    flex-direction: column;
  }
  
  .cookie-settings-btn {
    width: 100%;
  }
  
  .cookie-settings-header h3 {
    font-size: 1.2rem;
  }
}

.cookie-settings-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
}

.cookie-settings-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  background-color: var(--primary-dark);
}

.cookie-settings-icon i {
  font-size: 1.5rem;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.cookie-settings-icon.pulse {
  animation: pulse 2s infinite;
}

@media (max-width: 768px) {
  .cookie-settings-icon {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }
  
  .cookie-settings-icon i {
    font-size: 1.3rem;
  }
}

body.dark-mode .cookie-settings-icon {
  background-color: var(--primary-dark);
}

body.dark-mode .cookie-settings-icon:hover {
  background-color: var(--primary-light);
}