/* An optional follow-up, deliberately below dialogs and above the launcher. */
.telegram-nudge {
  position: fixed;
  z-index: 36;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(88px + env(safe-area-inset-bottom));
  width: min(350px, calc(100vw - 24px));
  max-width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
  max-height: calc(100vh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-height: calc(100dvh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 21px 21px 18px;
  border: 1px solid #4f9abf66;
  border-radius: 20px;
  color: #dfedf8;
  background: radial-gradient(ellipse at 100% 0%, #23728633, transparent 70%), #0b1c31;
  box-shadow: 0 14px 45px #0007, inset 0 1px 0 #b3efff0d;
}
.telegram-nudge[hidden] { display: none !important; }
.telegram-nudge-eyebrow {
  display: block;
  padding-right: 32px;
  color: #83dce6;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .055em;
}
.telegram-nudge h2 {
  margin: 12px 0 10px;
  font-family: var(--heading, sans-serif);
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -.035em;
}
.telegram-nudge-copy {
  color: #b1cadb;
  font-size: 13px;
  line-height: 1.7;
}
.telegram-nudge-close {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #9bc1d2;
  font-size: 25px;
  line-height: 1;
}
.telegram-nudge-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 17px;
  padding: 11px 14px;
  border: 1px solid #affff263;
  border-radius: 11px;
  background: linear-gradient(110deg, #76e8e3, #50d5e1);
  color: #05283a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
.telegram-nudge-later {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #a1c0d2;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.telegram-nudge-caveat {
  margin-top: 3px;
  color: #91afc5;
  font-size: 11px;
  line-height: 1.65;
}
.telegram-nudge-close:hover, .telegram-nudge-later:hover { background: #8ad4ef0d; color: #e0f9ff; }
.telegram-nudge-cta:hover { background: #8af1eb; }
.telegram-nudge :focus-visible { outline: 2px solid #cbfcff; outline-offset: 3px; }
@media (max-width: 600px) {
  .telegram-nudge {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(76px + env(safe-area-inset-bottom));
    padding: 19px 19px 16px;
    border-radius: 17px;
  }
  .telegram-nudge h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .telegram-nudge:not([hidden]) { animation: telegram-nudge-in .24s ease-out both; }
  @keyframes telegram-nudge-in {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .telegram-nudge, .telegram-nudge * { animation: none !important; transition: none !important; }
}
