/* Phone browser tabs never show this prompt.
   An installed app on a phone uses one small card above the tab bar.
   Desktop and laptop keep the styles in the cookie stylesheet. */

.cvx-push-prompt.is-phone-browser {
  display: none !important;
}

.cvx-push-prompt.is-app-phone {
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(3.55rem + 0.65rem + env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  max-width: 22rem;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  animation: none;
  transition: none;
}

body:has(.mobile-tab-bar) .cvx-push-prompt.is-app-phone {
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(3.55rem + 0.65rem + env(safe-area-inset-bottom, 0px));
  max-width: 22rem;
  border-radius: 0.9rem;
}

.cvx-push-prompt.is-app-phone .cvx-push-title {
  font-size: 0.95rem;
}

.cvx-push-prompt.is-app-phone .cvx-push-lead {
  font-size: 0.82rem;
}

.cvx-push-prompt.is-app-phone .cvx-push-actions {
  flex-wrap: nowrap;
  margin-top: 0.65rem;
}

.cvx-push-prompt.is-app-phone .cvx-push-btn {
  flex: 0 0 auto;
  min-height: 2.4rem;
}

@media (prefers-reduced-motion: reduce) {
  .cvx-push-prompt.is-app-phone {
    animation: none;
    transition: none;
  }
}

/* Short confirmation after notifications are turned on or off. */
.cvx-push-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 11000;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: min(22rem, calc(100vw - 2rem));
  margin-left: auto;
  padding: 0.85rem 0.85rem 0.85rem 1rem;
  background: #fff;
  color: var(--ink, #111);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 0.9rem;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.16);
}

.cvx-push-toast[hidden] {
  display: none !important;
}

.cvx-push-toast .cvx-push-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.cvx-push-toast .cvx-push-lead {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted, #4b5563);
}

.cvx-push-toast-close {
  appearance: none;
  flex: 0 0 auto;
  margin: -0.15rem -0.1rem 0 0;
  border: 0;
  background: transparent;
  color: var(--ink, #111);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.1rem 0.25rem;
  cursor: pointer;
}

body:has(.mobile-tab-bar) .cvx-push-toast,
.cvx-push-toast {
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

body:has(.mobile-tab-bar) .cvx-push-toast {
  left: 0.75rem;
  right: 0.75rem;
  width: auto;
  max-width: 22rem;
  bottom: calc(3.55rem + 0.65rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 767.98px) {
  .cvx-push-toast {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: 22rem;
  }
}
