/* Информационное уведомление о сторонних сервисах и локальном хранилище.
   Подключается на всех публичных страницах сайта. */

#pdn-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(20, 22, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  color: #f8fafc;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.55;
  display: none;
}

#pdn-notice.is-visible {
  display: block;
  animation: pdn-notice-in 0.25s ease-out;
}

@keyframes pdn-notice-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

#pdn-notice p {
  margin: 0 0 14px;
  color: #cbd5e1;
}

#pdn-notice a {
  color: #f8fafc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#pdn-notice .pdn-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

#pdn-notice button {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #f8fafc;
  transition: all 0.2s ease;
}

#pdn-notice button:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

#pdn-notice button.pdn-primary {
  background: #3b82f6;
  border-color: #3b82f6;
}

#pdn-notice button.pdn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

@media (max-width: 520px) {
  #pdn-notice { font-size: 0.8rem; padding: 16px; }
  #pdn-notice .pdn-notice-actions button { flex: 1 1 auto; }
}
