.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

.cookie-banner-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-banner-text h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.cookie-banner-text p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--secondary);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.cookie-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.cookie-btn-accept {
  background: var(--primary);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background: var(--primary-light);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--gray);
}

.cookie-btn-reject:hover {
  background: var(--gray-light);
}

.cookie-btn-customize {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

.cookie-btn-customize:hover {
  background: var(--secondary);
  color: var(--white);
}

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

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

.cookie-modal {
  background: var(--white);
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.cookie-modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid var(--gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h3 {
  font-size: 1.3rem;
  color: var(--primary);
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 5px;
  line-height: 1;
}

.cookie-modal-close:hover {
  color: var(--primary);
}

.cookie-modal-body {
  padding: 25px 30px;
}

.cookie-modal-body p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.cookie-category {
  margin-bottom: 20px;
  padding: 20px;
  background: var(--gray-light);
  border-radius: 8px;
}

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

.cookie-category-header h4 {
  font-size: 1rem;
  color: var(--primary);
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

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

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray);
  transition: 0.3s;
  border-radius: 26px;
}

.cookie-toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white);
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: var(--success);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background-color: var(--secondary);
  opacity: 0.7;
  cursor: not-allowed;
}

.cookie-toggle input:focus + .cookie-toggle-slider {
  box-shadow: 0 0 0 2px var(--secondary);
}

.cookie-category p {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.cookie-category.always-active .cookie-toggle-slider {
  background-color: var(--secondary);
}

.cookie-modal-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--gray);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .cookie-banner-content {
    gap: 15px;
  }
  
  .cookie-banner-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
    text-align: center;
  }
  
  .cookie-modal {
    margin: 10px;
    max-height: 90vh;
  }
  
  .cookie-modal-header,
  .cookie-modal-body,
  .cookie-modal-footer {
    padding: 20px;
  }
  
  .cookie-modal-footer {
    flex-direction: column;
  }
  
  .cookie-modal-footer .cookie-btn {
    width: 100%;
  }
}
