/*
 * OneSignal — стили кастомного push-промпта
 * Подключение: <link rel="stylesheet" href="push-prompt.css">
 */

/* Скрываем все встроенные элементы OneSignal */
#onesignal-slidedown-container,
#onesignal-bell-container,
.onesignal-slidedown-container,
#onesignal-popover-container,
.onesignal-reset {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Промпт — обёртка */
#push-prompt {
  display: none; /* показывается через JS */
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  padding: 18px 22px;
  z-index: 9999;
  max-width: 420px;
  width: calc(100% - 32px);
  align-items: center;
  gap: 14px;
  animation: push-prompt-fadein 0.3s ease;
}

@keyframes push-prompt-fadein {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Картинка */
#push-prompt-img {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

/* Текст */
#push-prompt-msg {
  flex: 1;
  font-size: 0.95em;
  color: #333;
  line-height: 1.4;
  text-align: left;
}

/* Кнопки */
.push-prompt-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

#push-prompt-accept {
  background: #2d6be4;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
#push-prompt-accept:hover { background: #1f55c4; }

#push-prompt-cancel {
  background: none;
  border: none;
  color: #2d6be4;
  font-size: 0.9em;
  cursor: pointer;
  white-space: nowrap;
  padding: 4px 0;
}
#push-prompt-cancel:hover { text-decoration: underline; }
