/* Cookie Consent Banner — Bottom Bar Style */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 12px 16px;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.12);
  border-top: 1px solid #e2e8f0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.cookie-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 280px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

.cookie-banner__text strong {
  color: #1e293b;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cookie-banner__btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-banner__btn--primary {
  background: #134cc9;
  color: #fff;
}

.cookie-banner__btn--primary:hover {
  background: #0d3a9e;
}

.cookie-banner__btn--secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.cookie-banner__btn--secondary:hover {
  background: #e2e8f0;
}

.cookie-banner__btn--ghost {
  background: transparent;
  color: #134cc9;
  border: 1px solid #134cc9;
}

.cookie-banner__btn--ghost:hover {
  background: #eff6ff;
}

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

/* Expanded panel (when user clicks "Настройки") */
.cookie-banner__panel {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  animation: slideDown 0.2s ease;
}

.cookie-banner__panel--visible {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.cookie-banner__header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.cookie-banner__close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.cookie-banner__close:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.cookie-banner__categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cookie-banner__category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.cookie-banner__category:hover {
  border-color: #cbd5e1;
}

.cookie-banner__category--required {
  opacity: 0.7;
  background: #f1f5f9;
}

.cookie-banner__category input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: #134cc9;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-banner__category-info {
  flex: 1;
  min-width: 0;
}

.cookie-banner__category-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}

.cookie-banner__category-info span {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}

.cookie-banner__panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-banner__policy {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
  text-align: center;
}

.cookie-banner__policy a {
  color: #134cc9;
  text-decoration: none;
}

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

/* Settings button in footer */
.cookie-settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.cookie-settings-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
  text-decoration: none;
}

@media (max-width: 640px) {
  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-banner__actions {
    justify-content: stretch;
  }
  .cookie-banner__btn {
    flex: 1;
    text-align: center;
  }
  .cookie-banner__panel-actions {
    justify-content: stretch;
  }
  .cookie-banner__panel-actions .cookie-banner__btn {
    flex: 1;
  }
}