/* styles-notifications.css — карточка «Пуш-уведомления» в профиле мини-приложения.
   Использует переменные темы из styles.css. */

/* ── Тумблеры ── */

#profile-notif-card .notif-rows {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

.notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 2px;
  cursor: pointer;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.notif-row:first-child { border-top: none; }

.notif-row-info { min-width: 0; }

.notif-row-title {
  font-size: 15px;
  color: var(--text);
  line-height: 1.25;
}

.notif-row-desc {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* iOS-style toggle */
.notif-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 28px;
  display: inline-block;
}

.notif-toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.notif-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg3, #313131);
  border-radius: 999px;
  transition: background .22s ease;
  pointer-events: none;
}

.notif-toggle-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}

.notif-toggle input:checked + .notif-toggle-slider {
  background: var(--accent, #ff6b6b);
}

.notif-toggle input:checked + .notif-toggle-slider::before {
  transform: translateX(18px);
}

.notif-toggle input:disabled + .notif-toggle-slider { opacity: .6; }

/* ── Кнопка отключения привязки ── */

.notif-disable-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 10px 0 14px;
}

.notif-disable-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 90, 90, 0.22);
  border-radius: 12px;
  color: #ff6060;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  cursor: pointer;
  transition: background .14s ease, transform .07s ease;
  font-family: inherit;
}

.notif-disable-btn:active {
  transform: scale(0.98);
  background: rgba(255, 90, 90, 0.07);
}

.notif-disable-btn.hidden { display: none; }

/* ── Блок подтверждения ── */

.notif-confirm-box {
  margin-top: 4px;
}

.notif-confirm-box.hidden { display: none; }

.notif-confirm-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.notif-confirm-btns {
  display: flex;
  gap: 8px;
}

.notif-confirm-yes,
.notif-confirm-no {
  flex: 1;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 8px;
  cursor: pointer;
  transition: opacity .14s, transform .07s;
  font-family: inherit;
}

.notif-confirm-yes:active,
.notif-confirm-no:active { transform: scale(0.97); }

.notif-confirm-yes:disabled { opacity: .5; }

.notif-confirm-yes {
  background: rgba(255, 90, 90, 0.15);
  border: 1px solid rgba(255, 90, 90, 0.28);
  color: #ff6060;
}

.notif-confirm-no {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text-dim);
}
