/* SavvyGreat access modal - popup offered when a signed-out visitor uses a member action. Scoped to .sg-access-*. */
.sg-access-overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(15, 20, 18, .55); }
.sg-access-dialog { position: relative; box-sizing: border-box; width: min(32rem, 100%); max-height: 90vh; overflow: auto;
  padding: 1.5rem; border-radius: .75rem; background: #fff; color: #1a1f1c; box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.45; outline: none; }
.sg-access-dialog h2 { margin: 0 2rem .5rem 0; font-size: 1.25rem; }
.sg-access-dialog p { margin: 0 0 1rem; color: #4a5750; }
.sg-access-close { position: absolute; top: .5rem; right: .5rem; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%;
  background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: inherit; }
.sg-access-close:hover, .sg-access-close:focus-visible { background: rgba(0, 0, 0, .08); }
.sg-access-options { display: grid; gap: .6rem; }
.sg-access-option { display: block; box-sizing: border-box; width: 100%; padding: .75rem 1rem; border: 1px solid #b9c4be; border-radius: .5rem;
  background: #fff; color: inherit; font: inherit; text-align: center; text-decoration: none; cursor: pointer; }
.sg-access-option:hover, .sg-access-option:focus-visible { border-color: #1a7f37; background: #f1f8f3; }
.sg-access-primary { border-color: #1a7f37; background: #1a7f37; color: #fff; }
.sg-access-primary:hover, .sg-access-primary:focus-visible { background: #166a2e; color: #fff; }
.sg-access-stage { margin-top: 1rem; }
.sg-access-stage input { box-sizing: border-box; width: 100%; padding: .5rem; margin: .25rem 0 .75rem; font: inherit; }
.sg-access-stage button { padding: .5rem 1rem; font: inherit; cursor: pointer; }
@media (prefers-color-scheme: dark) {
  .sg-access-dialog { background: #1d2420; color: #e8efe9; }
  .sg-access-dialog p { color: #b7c4bb; }
  .sg-access-option { background: #1d2420; border-color: #4a5a50; }
  .sg-access-option:hover, .sg-access-option:focus-visible { background: #26302a; border-color: #4cc26b; }
  .sg-access-close:hover, .sg-access-close:focus-visible { background: rgba(255, 255, 255, .12); }
}
@media (prefers-reduced-motion: no-preference) { .sg-access-dialog { animation: sg-access-in .12s ease-out; } }
@keyframes sg-access-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
