/* pdaudit.ru — Cookie-баннер v3, изолированные стили под #cookie-banner.
   Не блокирует сайт (pointer-events:none у контейнера); карточка перехватывает
   клики через pointer-events:auto. Кнопки одной ширины 200px десктоп + flex mobile. */
#cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  pointer-events: none;
}
#cookie-banner[hidden] { display: none; }
#cookie-banner .pdacb-card {
  pointer-events: auto;
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 720px;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(37, 99, 235, 0.04);
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
#cookie-banner .pdacb-head strong { font-size: 15px; color: #0f172a; }
#cookie-banner .pdacb-body { color: #374151; margin: 6px 0 10px; }
#cookie-banner .pdacb-body p { margin: 0 0 4px; font-size: 13.5px; }
#cookie-banner .pdacb-body a { color: #2563eb; text-decoration: underline; }
#cookie-banner .pdacb-body a:hover { text-decoration: none; }
#cookie-banner .pdacb-settings-link { color: #2563eb; text-decoration: underline; text-decoration-style: dotted; }
#cookie-banner .pdacb-categories {
  margin: 10px 0;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
}
#cookie-banner .pdacb-cat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 13px;
  cursor: pointer;
}
#cookie-banner .pdacb-cat input { margin-top: 2px; flex-shrink: 0; }
#cookie-banner .pdacb-cat strong { font-weight: 600; }
#cookie-banner .pdacb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 4px;
}
#cookie-banner .pdacb-btn {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #1f2937;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}
#cookie-banner .pdacb-actions .pdacb-btn-decline,
#cookie-banner .pdacb-actions .pdacb-btn-accept,
#cookie-banner .pdacb-actions .pdacb-btn-save { width: 200px; text-align: center; }
#cookie-banner .pdacb-btn-decline:hover { background: #f3f4f6; border-color: #d1d5db; }
#cookie-banner .pdacb-btn-accept,
#cookie-banner .pdacb-btn-save { background: #2563eb; border-color: #2563eb; color: #ffffff; }
#cookie-banner .pdacb-btn-accept:hover,
#cookie-banner .pdacb-btn-save:hover { background: #1d4ed8; border-color: #1d4ed8; }
@media (max-width: 640px) {
  #cookie-banner .pdacb-card {
    left: 8px; right: 8px; bottom: 8px;
    transform: none;
    width: calc(100% - 16px);
    padding: 12px 14px;
    font-size: 13px;
  }
  #cookie-banner .pdacb-actions .pdacb-btn-decline,
  #cookie-banner .pdacb-actions .pdacb-btn-accept,
  #cookie-banner .pdacb-actions .pdacb-btn-save {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    padding: 13px 6px;
    font-size: 14px;
    min-height: 44px;
  }
}