/* The Share button and its panel (public/js/share.js), on the raffle and sign-in pages. */
.share-open {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .8);
  padding: .4rem 1rem;
  border-radius: 24px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  font-family: inherit;
}
.share-open:hover { background: rgba(255, 255, 255, .15); }
#topbar .share-open { margin-left: auto; }
.share-open-light { color: #1a6b3c; border-color: #1a6b3c; }
.share-open-light:hover { background: #e8f5ee; }

/* The sign-in page: an invite note at the top, the flyer and Share below the form. */
.invited { grid-column: 1 / -1; background: #fff8e1; color: #5d1010; border: 2px solid #ffd54f; border-radius: 10px; padding: .7rem 1rem; font-size: 1.05rem; margin-bottom: 1rem; text-align: center; box-shadow: 0 4px 20px rgba(0, 0, 0, .25); }
.with-event .invited { margin-bottom: 0; }
.share-promo { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #e5e7eb; text-align: center; }
.share-promo p { margin: .6rem 0; }
.flyer-btn { display: block; margin: 0 auto; padding: 0; border: none; background: none; cursor: pointer; }
.flyer-btn .flyer { display: block; max-width: 100%; max-height: 320px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }

/* The panel. */
body.share-locked { overflow: hidden; }
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
}
.share-overlay[hidden] { display: none; }
.share-box {
  position: relative;
  background: #fff;
  color: #222;
  border-radius: 14px;
  padding: 1.5rem 1.25rem 1.25rem;
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .35);
  text-align: center;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.share-box h2 { color: #124a2b; font-size: 1.25rem; margin: 0 1.5rem .35rem; }
.share-sub { color: #555; font-size: .92rem; margin: 0 0 .9rem; }
.share-close { position: absolute; top: .4rem; right: .6rem; background: none; border: none; font-size: 1.8rem; line-height: 1; color: #666; cursor: pointer; }
.share-picture { display: block; max-width: 140px; max-height: 180px; margin: 0 auto .9rem; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .5rem .6rem;
  border-radius: 8px;
  border: 2px solid #1a6b3c;
  background: #fff;
  color: #1a6b3c;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}
.share-btn:hover { background: #e8f5ee; }
.share-btn[hidden] { display: none; }
.share-native, .share-picture-btn { grid-column: 1 / -1; background: #1a6b3c; color: #fff; }
.share-native:hover, .share-picture-btn:hover { background: #124a2b; }
.share-btn[data-channel="facebook"] { border-color: #1877f2; color: #1877f2; }
.share-btn[data-channel="x"] { border-color: #111; color: #111; }
.share-copied { color: #1a6b3c; font-weight: 700; font-size: .9rem; margin: .75rem 0 0; }
.share-copied[hidden] { display: none; }
.share-stats { background: #e8f5ee; color: #124a2b; border-radius: 8px; padding: .55rem .8rem; font-size: .88rem; margin: .9rem 0 0; }
