/* Armeiro Airsoft — PWA/WebPush público
   v20260704-2 — botão + toast discreto para ativar notificações. */
.webpush-footer-btn {
  border: 1px solid var(--line, #ead9bf);
  background: rgba(255,255,255,.68);
  color: var(--muted, #6c6257);
  border-radius: 999px;
  padding: 7px 11px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}

.webpush-footer-btn:hover,
.webpush-footer-btn.is-active {
  color: var(--text, #111);
  background: #fffaf1;
}

.webpush-footer-btn:disabled {
  opacity: .7;
  cursor: wait;
}

.webpush-toast {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(392px, calc(100vw - 32px));
  z-index: 9999;
  border: 1px solid var(--line, #ead9bf);
  border-radius: 24px;
  background: rgba(255, 250, 242, .98);
  box-shadow: 0 22px 60px rgba(17, 17, 17, .18);
  color: var(--text, #111);
  padding: 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.webpush-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.webpush-toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--gold, #dfa129);
  background: var(--black, #111);
}

.webpush-toast-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.2;
}

.webpush-toast-copy strong {
  display: block;
  font-size: 1rem;
  line-height: 1.18;
  letter-spacing: -.025em;
  margin: 0 0 4px;
}

.webpush-toast-copy p {
  margin: 0;
  color: var(--muted, #6c6257);
  line-height: 1.35;
  font-size: .92rem;
}

.webpush-toast-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, #ead9bf);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--muted, #6c6257);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.webpush-toast-close:hover {
  background: #fff;
  color: var(--text, #111);
}

.webpush-toast-actions {
  grid-column: 2 / 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.webpush-toast-primary,
.webpush-toast-secondary {
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.webpush-toast-primary {
  border: 0;
  color: #16120b;
  background: linear-gradient(135deg, #e9b44c, #d8941d);
}

.webpush-toast-secondary {
  border: 1px solid var(--line, #ead9bf);
  background: #fff;
  color: var(--muted, #6c6257);
}

.webpush-toast-primary:hover,
.webpush-toast-secondary:hover {
  transform: translateY(-1px);
}

.webpush-toast-primary:disabled,
.webpush-toast-secondary:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.webpush-toast-status {
  grid-column: 1 / -1;
  display: none;
  margin-top: 4px;
  border-radius: 14px;
  padding: 9px 10px;
  font-size: .86rem;
  line-height: 1.35;
  font-weight: 800;
}

.webpush-toast-status.is-visible {
  display: block;
}

.webpush-toast-status.is-ok {
  color: #14532d;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .24);
}

.webpush-toast-status.is-error {
  color: #7f1d1d;
  background: rgba(239, 68, 68, .10);
  border: 1px solid rgba(239, 68, 68, .24);
}

@media (max-width: 640px) {
  .webpush-toast {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    border-radius: 22px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 14px;
  }

  .webpush-toast-actions {
    grid-column: 1 / -1;
  }

  .webpush-toast-primary,
  .webpush-toast-secondary {
    flex: 1 1 auto;
    justify-content: center;
  }
}
