/* Diálogo de opt-in Web Push — estilo cercano a Elastic / Brindis */
.brindis-webpush-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding-top: max(1.25rem, env(safe-area-inset-top, 0px));
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

.brindis-webpush-dialog {
  width: min(100%, 26rem);
  background: #111;
  color: #f5f5f5;
  border: 1px solid rgba(255, 181, 0, 0.55);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  padding: 1.35rem 1.4rem 1.2rem;
  box-sizing: border-box;
}

.brindis-webpush-dialog h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.brindis-webpush-dialog p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.brindis-webpush-dialog p:last-of-type {
  margin-bottom: 1.15rem;
}

.brindis-webpush-dialog .brindis-webpush-hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.15rem;
}

.brindis-webpush-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.brindis-webpush-actions .button {
  margin: 0;
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
}

.brindis-webpush-actions .button.mainaction {
  background: #ffb500 !important;
  color: #050505 !important;
  border-color: #ffb500 !important;
  font-weight: 700;
}

.brindis-webpush-actions .button:not(.mainaction) {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

@media (max-width: 640px) {
  .brindis-webpush-overlay {
    align-items: flex-end;
    padding: 0.75rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  .brindis-webpush-dialog {
    width: 100%;
    border-radius: 14px 14px 10px 10px;
    padding: 1.25rem 1.1rem 1.1rem;
  }

  .brindis-webpush-actions {
    flex-direction: column-reverse;
  }

  .brindis-webpush-actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* Tema claro de Elastic: diálogo un poco más suave */
html:not(.dark-mode) .brindis-webpush-dialog {
  background: #fff;
  color: #1a1a1a;
  border-color: #ffb500;
}

html:not(.dark-mode) .brindis-webpush-dialog h2 {
  color: #111;
}

html:not(.dark-mode) .brindis-webpush-dialog p {
  color: #333;
}

html:not(.dark-mode) .brindis-webpush-dialog .brindis-webpush-hint {
  color: #666;
}

html:not(.dark-mode) .brindis-webpush-actions .button:not(.mainaction) {
  color: #222;
  border-color: #ccc;
}
