/* Notificações no celular (push-client-v1.js): cartão na tela Apex e caixa em Meu perfil. */

.apx-push-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 8px 10px 12px;
  border: 1px solid var(--fx-accent-line, var(--fx-line));
  border-radius: 16px;
  background:
    radial-gradient(120% 120% at 0% 0%, var(--fx-accent-soft), transparent 60%),
    var(--fx-surface);
  animation: apxPushIn 0.28s ease-out both;
}

.apx-push-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--fx-accent-soft);
  color: var(--fx-accent-text, var(--fx-accent));
}

.apx-push-icon svg {
  width: 18px;
  height: 18px;
}

.apx-push-icon.on {
  background: var(--fx-ok-soft);
  color: var(--fx-ok-text, var(--fx-ok));
}

.apx-push-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.apx-push-copy strong {
  color: var(--fx-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}

.apx-push-copy small {
  color: var(--fx-muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.apx-push-enable {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--fx-accent);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.apx-push-enable:disabled {
  opacity: 0.7;
  cursor: wait;
}

.apx-push-later {
  display: grid;
  place-items: center;
  width: 32px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--fx-faint);
  cursor: pointer;
}

.apx-push-later svg {
  width: 16px;
  height: 16px;
}

/* Meu perfil */
.apx-push-box {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  background: var(--fx-surface-2);
}

.apx-push-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.apx-push-switch {
  position: relative;
  width: 46px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--fx-line-3, var(--fx-line-2));
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.apx-push-switch::before {
  content: "";
  position: absolute;
  inset: -8px -4px;
}

.apx-push-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.apx-push-switch.on {
  background: var(--fx-accent);
}

.apx-push-switch.on i {
  transform: translateX(18px);
}

.apx-push-switch:disabled {
  opacity: 0.6;
  cursor: wait;
}

.apx-push-test {
  justify-self: start;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--fx-line-2);
  border-radius: 10px;
  background: var(--fx-surface);
  color: var(--fx-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.apx-push-note {
  margin: 0;
  color: var(--fx-muted);
  font-size: 12.5px;
}

@keyframes apxPushIn {
  from { opacity: 0; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .apx-push-card { animation: none; }
  .apx-push-switch, .apx-push-switch i { transition: none; }
}
