.community-invite {
  position: fixed;
  z-index: 1000;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  box-sizing: border-box;
  width: min(420px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.7rem;
  border: 1px solid #cfe2d6;
  border-radius: 22px;
  background: #f8fcf8;
  color: #17382e;
  box-shadow: 0 20px 60px rgba(9, 34, 26, .24), 0 4px 14px rgba(9, 34, 26, .08);
  font: 400 15px/1.55 system-ui, sans-serif;
  text-align: left;
}

.community-invite *, .community-invite *::before, .community-invite *::after { box-sizing: border-box; }
.community-invite .community-invite__eyebrow { margin: 0 3rem .65rem 0; color: #356b57; font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
.community-invite h2 { margin: 0 2.5rem .7rem 0; color: #17382e; font: 700 1.55rem/1.18 system-ui, sans-serif; letter-spacing: -.03em; }
.community-invite p { margin: 0 0 .8rem; }
.community-invite .community-invite__note { margin-bottom: 0; color: #536e60; font-size: .8rem; }

.community-invite .community-invite__actions { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: 1.2rem; }
.community-invite a.community-invite__primary,
.community-invite a.community-invite__secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: 11px;
  font: 700 .9rem/1.3 system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.community-invite a.community-invite__primary,
.community-invite a.community-invite__primary:visited { background: #135f4d; border-color: #135f4d; color: #fff; text-decoration: none; }
.community-invite a.community-invite__primary:hover { background: #0c493a; border-color: #0c493a; color: #fff; text-decoration: none; }
.community-invite a.community-invite__secondary,
.community-invite a.community-invite__secondary:visited { background: #fff; border-color: #a9c6b6; color: #135f4d; text-decoration: none; }
.community-invite a.community-invite__secondary:hover { background: #e9f3e9; border-color: #135f4d; color: #0c493a; text-decoration: none; }

.community-invite button { cursor: pointer; font-family: inherit; }
.community-invite .community-invite__close { position: absolute; top: .8rem; right: .8rem; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #e6f1e7; color: #17382e; font-size: 1.6rem; line-height: 1; }
.community-invite .community-invite__close:hover { background: #d5e9d8; }
.community-invite .community-invite__later { display: block; min-height: 44px; margin: .45rem auto -.35rem; padding: .5rem 1rem; border: 0; border-radius: 10px; background: transparent; color: #315f50; font-size: .85rem; font-weight: 700; text-decoration: none; }
.community-invite .community-invite__later:hover { background: #e9f3e9; color: #0c493a; text-decoration: none; }
.community-invite a:focus-visible, .community-invite button:focus-visible { outline: 3px solid #31856b; outline-offset: 3px; }

@media (max-width: 480px) {
  .community-invite { right: 1rem; bottom: 1rem; padding: 1.3rem; }
  .community-invite h2 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .community-invite a.community-invite__primary, .community-invite a.community-invite__secondary { transition: none; }
}
@media (forced-colors: active) {
  .community-invite a.community-invite__primary, .community-invite a.community-invite__secondary,
  .community-invite .community-invite__close, .community-invite .community-invite__later { border: 1px solid ButtonText; }
}
