
.snf-events-wrap { max-width: 720px; margin: 16px 0; font-family: inherit; }
.snf-events-header { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:10px; }
.snf-events-title { margin:0; font-size: 22px; line-height: 1.2; }
.snf-events-sub { color:#666; margin-top:4px; }
.snf-events-box { background:#fff; border:1px solid #e5e5e5; border-radius:10px; padding:14px; }
.snf-events-qrbox { margin-bottom:12px; }
.snf-label { display:block; font-weight:600; margin-bottom:6px; }
.snf-select { width:100%; max-width:100%; padding:10px; border-radius:8px; border:1px solid #cfcfcf; }
.snf-btn { display:inline-block; padding:10px 14px; border-radius:10px; border:1px solid #1d2327; background:#1d2327; color:#fff; cursor:pointer; font-weight:600; }
.snf-btn[disabled] { opacity:0.55; cursor:not-allowed; }
.snf-btn-primary { }
.snf-events-status { margin-top:12px; min-height: 22px; }
.snf-events-status.is-error { color:#b32d2e; font-weight:600; }
.snf-events-status.is-success { color:#1a7f37; font-weight:600; }
.snf-events-status.is-info { color:#1d2327; }
.snf-events-muted { color:#666; }
.snf-table { width:100%; border-collapse: collapse; }
.snf-table th, .snf-table td { padding:10px; border-bottom:1px solid #eee; }
.snf-badges-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap:12px; margin-top: 12px; }
.snf-badge-card { background:#fff; border:2px solid #ddd; border-radius:12px; padding:12px; }
.snf-badge-img { width:100%; height:auto; border-radius:10px; display:block; }
.snf-badge-placeholder { width:100%; padding-top:100%; border-radius:10px; }
.snf-badge-name { font-weight:700; margin-top:10px; }
.snf-badge-meta { color:#666; font-size: 13px; margin-top:4px; }


/* Auth links */
.snf-events-auth-links { display:flex; gap:10px; align-items:center; }

/* Small buttons */
.snf-btn-small { padding: 8px 12px; font-size: 13px; line-height: 1; }

/* Badge grid */
.snf-badges-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap:12px; margin-top: 10px; }
.snf-badge-card { background:#fff; border:2px solid #ddd; border-radius: 12px; padding:12px; display:flex; flex-direction:column; gap:8px; }
.snf-badge-img { width:50px; height:50px; object-fit:contain; }
.snf-badge-placeholder { width:50px; height:50px; border-radius:12px; }
.snf-badge-name { font-weight:700; }
.snf-badge-meta { color:#666; font-size: 12px; }

/* Celebration modal */
.snf-modal { position: fixed; inset: 0; z-index: 99999; display:flex; align-items:center; justify-content:center; }
.snf-modal-backdrop { position:absolute; inset:0; background: rgba(0,0,0,0.55); }
.snf-modal-card { position: relative; background:#fff; border-radius: 16px; padding:18px 18px 16px; width: min(520px, calc(100vw - 28px)); box-shadow: 0 15px 50px rgba(0,0,0,0.25); }
.snf-modal-close { position:absolute; top:10px; right:10px; border:0; background: transparent; font-size: 26px; line-height: 1; cursor:pointer; opacity: 0.8; }
.snf-modal-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; text-align:center; }
.snf-modal-sub { text-align:center; color:#666; margin-bottom: 10px; }
.snf-modal-badges { display:flex; flex-direction:column; gap:10px; margin-top: 6px; }
.snf-modal-badge { display:flex; gap:10px; align-items:center; padding:10px; border:1px solid #eee; border-radius: 12px; background: #fafafa; }
.snf-modal-badge-img { width:46px; height:46px; object-fit:contain; }
.snf-modal-badge-fallback { width:46px; height:46px; border-radius: 12px; }
.snf-modal-badge-name { font-weight:800; }
.snf-modal-badge-meta { color:#666; font-size: 12px; }

/* Confetti */
.snf-confetti { position:absolute; top:-12px; width:10px; height:14px; background: currentColor; color: #f3c623; border-radius:2px; opacity: 0.95; animation: snfConfettiFall 1.2s linear forwards; }
.snf-confetti:nth-child(3n) { color:#ff5a5f; }
.snf-confetti:nth-child(3n+1) { color:#2ec4b6; }
.snf-confetti:nth-child(3n+2) { color:#3a86ff; }

@keyframes snfConfettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity:1; }
  100% { transform: translateY(115vh) rotate(720deg); opacity:0; }
}

/* Make the check-in box stack nicely if all shortcodes are on one page */
.snf-events-wrap { margin: 14px 0; }


/* Badges row (compact) */
.snf-badges-row { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; align-items:center; }
.snf-badge-icon { width:54px; height:54px; border-radius:14px; border:2px solid #ddd; background:#fff; padding:0; overflow:hidden; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.snf-badge-icon:focus { outline: 3px solid rgba(188,12,28,0.25); outline-offset: 2px; }
.snf-badge-icon-img { width:100%; height:100%; object-fit:cover; display:block; }
.snf-badge-icon-placeholder { width:100%; height:100%; }
.snf-badges-hint { flex-basis:100%; color:#666; font-size:13px; margin-top:6px; }


/* Calendar picker (event check-in) */
.snf-cal { border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 10px; background: rgba(255,255,255,0.6); }
.snf-cal-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.snf-cal-month { font-weight: 700; text-align:center; flex:1; }
.snf-cal-nav { width:34px; height:34px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.12); background: #fff; cursor:pointer; }
.snf-cal-grid { display:flex; flex-direction:column; gap:6px; }
.snf-cal-row { display:grid; grid-template-columns: repeat(7, 1fr); gap:6px; }
.snf-cal-dowcell { font-size: 12px; color:#666; text-align:center; padding:4px 0; border:0; background:transparent; }
.snf-cal-cell { position:relative; min-height:42px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.10); background:#fff; padding:6px; cursor:pointer; }
.snf-cal-cell.is-out { opacity:0.35; cursor:default; }
.snf-cal-cell.has-events { box-shadow: 0 0 0 2px rgba(188,12,28,0.15) inset; }
.snf-cal-cell.is-today { box-shadow: 0 0 0 2px rgba(188,12,28,0.35) inset; }
.snf-cal-daynum { font-size: 13px; font-weight: 700; }
.snf-cal-dots { position:absolute; left:6px; bottom:6px; display:flex; gap:4px; }
.snf-cal-dot { width:6px; height:6px; border-radius:99px; background:#bc0c1c; display:inline-block; }
.snf-cal-selected { margin-top:8px; font-size: 13px; color:#333; font-weight:600; }
.snf-cal-picker { margin-top:10px; display:flex; flex-direction:column; gap:6px; }
.snf-cal-pick { text-align:left; border-radius: 10px; border:1px solid rgba(0,0,0,0.10); background:#fff; padding:10px; cursor:pointer; }
.snf-cal-pick:active { transform: scale(0.99); }


/* Today events list (no calendar) */
.snf-today-events { display:flex; flex-wrap:wrap; gap:10px; }
.snf-event-pill { border:1px solid rgba(0,0,0,0.12); background:#fff; padding:10px 12px; border-radius:999px; cursor:pointer; font-weight:700; display:flex; gap:10px; align-items:center; }
.snf-event-pill-meta { font-weight:600; font-size:12px; opacity:0.75; }
.snf-event-pill.is-selected { border-color:#bc0c1c; box-shadow:0 0 0 2px rgba(188,12,28,0.15); }


.snf-empty { color:#666; }

/* Ensure theme styles don't make today-event pills invisible */
.snf-event-pill { color:#1d2327; }
.snf-event-pill * { color: inherit; }



/* Public Events Listing */
.snf-public-events-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .snf-public-events-list { grid-template-columns: 1fr 1fr; } }
.snf-public-event-card { display: flex; gap: 12px; text-decoration: none; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.9); }
.snf-public-event-card:hover { border-color: rgba(0,0,0,0.18); }
.snf-public-event-media { width: 140px; flex: 0 0 140px; background: rgba(0,0,0,0.05); display:flex; align-items:center; justify-content:center; }
.snf-public-event-media img { width: 100%; height: 100%; object-fit: cover; display:block; }
.snf-public-event-placeholder { width: 100%; height: 100%; min-height: 96px; background: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0.03)); }
.snf-public-event-body { padding: 10px 12px; flex: 1; }
.snf-public-event-title { font-weight: 700; font-size: 16px; line-height: 1.2; margin-bottom: 4px; color: inherit; }
.snf-public-event-date { font-size: 13px; opacity: 0.85; margin-bottom: 6px; color: inherit; }
.snf-public-event-locations { list-style: none; padding: 0; margin: 0; display:flex; flex-direction:column; gap: 4px; }
.snf-public-event-location { font-size: 13px; opacity: 0.95; display:flex; gap: 6px; align-items:flex-start; }
.snf-public-event-location a { text-decoration: underline; }

.snf-location-link{ text-decoration: underline; }


.snf-public-event-points { margin-top: 14px; }
.snf-public-event-points h4 { margin-bottom: 10px; }
.snf-points-button {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(0,0,0,0.08);
    background: #bc0c1c;
    color: #fff !important;
}
.snf-points-button:hover { opacity: 0.92; }


/* Event details CTA */
.snf-public-event-points{ margin-top: 18px; }
.snf-points-button--gold{
  background:#dba17e !important;
  color:#bc0c1c !important;
  font-weight:700;
  padding:14px 28px;
  border-radius:10px;
  display:inline-block;
  text-decoration:none;
  font-size:18px;
  border:2px solid rgba(0,0,0,0.08);
}
.snf-points-button--gold:hover{ filter:brightness(0.97); }
.snf-points-note{ margin-top:8px; opacity:0.8; font-size:16px; }
