/* Site-owned controls around the invitation; template artwork remains in invite.css. */
#guestLanguage {
  position: fixed;
  z-index: 100;
  inset-block-start: max(12px, env(safe-area-inset-top));
  inset-inline-end: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: calc(100vw - 24px);
  padding: 4px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 999px;
  background: rgba(39,23,40,.9);
  box-shadow: 0 5px 18px rgba(0,0,0,.2);
}
#guestLanguage[hidden] { display: none; }
#guestLanguage button {
  min-height: 38px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 700 .84rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}
#guestLanguage button[aria-pressed="true"] { background: #f2d89e; color: #2b172a; }
#guestLanguage button:focus-visible { outline: 3px solid #f5d783; outline-offset: 2px; }
.invite-loading {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 72px 24px 24px;
  text-align: center;
  color: #fffefa;
  font: 500 1rem/1.6 system-ui, sans-serif;
}
.invite-loading p { max-width: 34rem; margin: 0; }
.invite-loading .spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #f2d89e;
  border-radius: 50%;
  animation: guest-spin 1s linear infinite;
}
.invite-loading button { margin-top: 6px; }
@keyframes guest-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .invite-loading .spinner { animation: none; border-top-color: #f2d89e; }
}
