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

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

.cookie-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cookie-banner-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cookie-banner-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.cookie-banner-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
}

.cookie-banner-text a {
  color: #667eea;
  text-decoration: underline;
}

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

.cookie-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.cookie-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cookie-btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.cookie-btn-secondary:hover {
  background: #eee;
}

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

.cookie-btn-settings:hover {
  background: rgba(102, 126, 234, 0.08);
}

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

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

.cookie-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  animation: cookieModalIn 0.3s ease;
}

@keyframes cookieModalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cookie-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.cookie-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #666;
  transition: all 0.2s ease;
}

.cookie-modal-close:hover {
  background: #eee;
  color: #333;
}

.cookie-modal-body {
  padding: 20px 24px;
}

.cookie-category {
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.cookie-category-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #fafafa;
  transition: background 0.2s ease;
}

.cookie-category-header:hover {
  background: #f5f5f5;
}

.cookie-category-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-category-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cookie-category-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.cookie-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  background: #ddd;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.cookie-toggle.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  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(22px);
}

.cookie-category-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cookie-category.expanded .cookie-category-body {
  padding: 16px 20px;
  max-height: 200px;
}

.cookie-category-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.cookie-category-expand {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #999;
  transition: transform 0.3s ease;
  font-size: 12px;
}

.cookie-category.expanded .cookie-category-expand {
  transform: rotate(180deg);
}

.cookie-modal-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cookie-banner-container {
    flex-direction: column;
  }
  
  .cookie-banner-buttons {
    width: 100%;
    justify-content: stretch;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }
  
  .cookie-banner-title {
    font-size: 16px;
  }
  
  .cookie-banner-text {
    font-size: 13px;
  }
}