/* EVENTS P1 – Personal Area Premium UI
 * Matches EVENT360 design system (see event360-unified.css for tokens)
 */

/* ─────────────────────────────────────────────────────────────────────
   CONTAINER
   ───────────────────────────────────────────────────────────────────── */
.i8w-wrap {
  direction: rtl;
  font-family: 'Rubik', Arial, sans-serif;
  max-width: 960px;
  margin: 28px auto;
  padding: 0 16px;
  color: #0f172a;
}

.i8w-wrap * { box-sizing: border-box; }

/* ─────────────────────────────────────────────────────────────────────
   MAIN CARD
   ───────────────────────────────────────────────────────────────────── */
.i8w-card {
  background: #ffffff;
  border: 1px solid rgba(99,102,241,0.12);
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(99,102,241,0.10), 0 2px 8px rgba(15,23,42,0.06);
  overflow: hidden;
  margin-bottom: 16px;
}

/* ─────────────────────────────────────────────────────────────────────
   CARD H2 HEADER (login / set-password screens)
   ───────────────────────────────────────────────────────────────────── */
.i8w-card > h2 {
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 50%, #f5f3ff 100%);
  border-bottom: 1px solid rgba(99,102,241,0.12);
  padding: 22px 26px 16px;
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #7c3aed;
  line-height: 1.2;
}

/* ─────────────────────────────────────────────────────────────────────
   DASHBOARD HEAD (.i8w-head)
   ───────────────────────────────────────────────────────────────────── */
.i8w-head {
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 50%, #f5f3ff 100%);
  border-bottom: 1px solid rgba(99,102,241,0.12);
  padding: 22px 26px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.i8w-head h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #7c3aed;
  margin: 0 0 4px;
  line-height: 1.2;
}

.i8w-head .i8w-muted {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}

.i8w-days-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 14px;
  background: linear-gradient(135deg, rgba(30,64,175,0.10) 0%, rgba(124,58,237,0.12) 100%);
  border: 1px solid rgba(99,102,241,0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #4f46e5;
  letter-spacing: 0;
}

.i8w-head-actions {
  white-space: nowrap;
  font-size: 13px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-top: 4px;
}

/* ─────────────────────────────────────────────────────────────────────
   STATS ROWS  (3 semantic rows: 4 / 3-centered / 2)
   ───────────────────────────────────────────────────────────────────── */
.i8w-dash-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 26px 26px;
}

/* Base row */
.i8w-dash-row {
  display: grid;
  gap: 14px;
}

/* Row 1: 4 equal columns */
.i8w-dash-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Row 2: 3 equal columns — flex-centered so they don't stretch to full width */
.i8w-dash-row--3 {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.i8w-dash-row--3 .i8w-stat {
  flex: 0 1 calc(25% - 11px); /* same width as 4-col items */
  min-width: 0;
}

/* Row 3: 2 equal columns */
.i8w-dash-row--2 { grid-template-columns: 1fr 1fr; }


/* ─────────────────────────────────────────────────────────────────────
   STAT CARDS
   ───────────────────────────────────────────────────────────────────── */
.i8w-stat {
  background: #ffffff;
  border: 1px solid rgba(99,102,241,0.12);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.08), 0 1px 3px rgba(15,23,42,0.05);
  padding: 20px 16px 18px;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.2s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}

/* Colored top stripe */
.i8w-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: rgba(99,102,241,0.35);
}

.i8w-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(99,102,241,0.16), 0 4px 12px rgba(15,23,42,0.08);
}

/* Icon circle */
.i8w-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: #ede9fe;
  color: #7c3aed;
  flex-shrink: 0;
}

/* Title */
.i8w-stat-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: #475569 !important;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Secondary line under a status card's main number: how many RECORDS make up the
   people total above it. Deliberately quiet — the people number stays the headline. */
.i8w-stat-sub {
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  opacity: .9;
  line-height: 1.3;
}
@media (max-width: 640px) { .i8w-stat-sub { font-size: 10px; } }

.i8w-stat-value {
  font-size: 32px;
  font-weight: 900;
  color: #1e40af;
  line-height: 1.1;
}

/* Stat cards that contain rich HTML (special notes, meals) */
.i8w-stat-value > div,
#i8w_dash_special_notes,
#i8w_dash_meal_choices {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: #334155;
}

/* ── Color variants ── */
.i8w-stat--blue::before    { background: #2563eb; }
.i8w-stat--blue .i8w-stat-icon   { background: #dbeafe; color: #2563eb; }
.i8w-stat--blue .i8w-stat-value  { color: #111 !important; }

.i8w-stat--indigo::before  { background: #6366f1; }
.i8w-stat--indigo .i8w-stat-icon  { background: #e0e7ff; color: #6366f1; }
.i8w-stat--indigo .i8w-stat-value { color: #111 !important; }

.i8w-stat--green::before   { background: #059669; }
.i8w-stat--green .i8w-stat-icon   { background: #d1fae5; color: #059669; }
.i8w-stat--green .i8w-stat-value  { color: #111 !important; }

.i8w-stat--red::before     { background: #dc2626; }
.i8w-stat--red .i8w-stat-icon     { background: #fee2e2; color: #dc2626; }
.i8w-stat--red .i8w-stat-value    { color: #111 !important; }

.i8w-stat--orange::before  { background: #d97706; }
.i8w-stat--orange .i8w-stat-icon  { background: #fef3c7; color: #d97706; }
.i8w-stat--orange .i8w-stat-value { color: #111 !important; }

.i8w-stat--amber::before   { background: #d97706; }
.i8w-stat--amber .i8w-stat-icon   { background: #fef3c7; color: #d97706; }
.i8w-stat--amber .i8w-stat-value  { color: #111 !important; }

.i8w-stat--gray::before    { background: #64748b; }
.i8w-stat--gray .i8w-stat-icon    { background: #f1f5f9; color: #64748b; }
.i8w-stat--gray .i8w-stat-value   { color: #111 !important; }

.i8w-stat--violet::before  { background: #7c3aed; }
.i8w-stat--violet .i8w-stat-icon  { background: #ede9fe; color: #7c3aed; }
.i8w-stat--violet .i8w-stat-value { color: #111 !important; }

/* ─────────────────────────────────────────────────────────────────────
   SPECIAL NOTES / MEAL CHOICES CONTENT
   ───────────────────────────────────────────────────────────────────── */
.i8w-special-summary {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  color: #334155;
}

.i8w-special-breakdown {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

.i8w-special-line { color: #0f172a; }

/* ─────────────────────────────────────────────────────────────────────
   MUTED TEXT
   ───────────────────────────────────────────────────────────────────── */
.i8w-muted {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 14px;
}

/* ─────────────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────────────── */
.i8w-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 26px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.2s cubic-bezier(0.34,1.56,0.64,1),
              opacity 0.15s;
  letter-spacing: 0.01em;
  line-height: 1;
}

.i8w-btn-primary {
  background: linear-gradient(135deg, #1e40af 0%, #4f46e5 50%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.30), 0 1px 3px rgba(15,23,42,0.12);
}

.i8w-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.38), 0 2px 8px rgba(15,23,42,0.14);
  color: #fff;
  text-decoration: none;
}

.i8w-btn-primary:active { transform: scale(0.97); }

/* ─────────────────────────────────────────────────────────────────────
   FORMS
   ───────────────────────────────────────────────────────────────────── */
.i8w-form {
  display: block;
  margin-top: 14px;
  padding: 4px 26px 26px;
}

.i8w-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin: 14px 0 6px;
}

.i8w-form input[type="text"],
.i8w-form input[type="password"],
.i8w-form input[type="email"] {
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border: 1.5px solid rgba(99,102,241,0.12);
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  direction: rtl;
}

.i8w-form input[type="text"]:focus,
.i8w-form input[type="password"]:focus,
.i8w-form input[type="email"]:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

.i8w-form input::placeholder { color: #94a3b8; }

.i8w-form .i8w-btn { margin-top: 20px; }

/* ─────────────────────────────────────────────────────────────────────
   SUCCESS / ERROR NOTICES
   ───────────────────────────────────────────────────────────────────── */
.i8w-success,
.i8w-error {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  border-right: 4px solid;
  border-top: none;
  border-bottom: none;
  border-left: none;
  margin: 14px 0;
  line-height: 1.5;
}

.i8w-success {
  background: #ecfdf5;
  color: #065f46;
  border-right-color: #10b981;
}

.i8w-error {
  background: #fef2f2;
  color: #991b1b;
  border-right-color: #f43f5e;
}

.i8w-error ul { margin: 0; padding-right: 18px; }
.i8w-error li { margin-bottom: 4px; }

/* ─────────────────────────────────────────────────────────────────────
   ACTION LINKS
   ───────────────────────────────────────────────────────────────────── */
.i8w-actions {
  margin-top: 16px;
  padding: 0 26px 22px;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.i8w-link {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.i8w-link:hover {
  color: #7c3aed;
  text-decoration: underline;
}

.i8w-dot { color: rgba(99,102,241,0.25); }

/* ─────────────────────────────────────────────────────────────────────
   MOBILE RESPONSIVE
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .i8w-dash-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .i8w-dash-row--3 .i8w-stat { flex: 0 1 calc(33.333% - 10px); }
}

@media (max-width: 640px) {
  .i8w-wrap { padding: 0 12px; margin: 14px auto; }
  .i8w-card { border-radius: 18px; margin-bottom: 12px; }
  .i8w-card > h2 { padding: 14px 16px 10px; font-size: 17px; }
  .i8w-head { padding: 14px 16px 12px; flex-direction: column; gap: 8px; justify-content: flex-start; align-items: stretch; }
  .i8w-head h2 { font-size: 17px; }
  .i8w-head .i8w-muted { font-size: 12px; }
  .i8w-days-badge { font-size: 12px; padding: 3px 12px; }
  .i8w-head-actions { width: 100%; }
  .i8w-head-actions .button { width: 100%; text-align: center; box-sizing: border-box; }
  .i8w-dash-rows { gap: 8px; padding: 12px 14px 16px; }
  .i8w-dash-row--4 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .i8w-dash-row--3 { gap: 8px; flex-wrap: wrap; }
  .i8w-dash-row--3 .i8w-stat { flex: 0 1 calc(50% - 4px); }
  .i8w-dash-row--2 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .i8w-stat { padding: 12px 10px; border-radius: 14px; }
  .i8w-stat-value { font-size: 20px; }
  /* "נוצלו X מתוך Y רשומות" is longer — shrink only this card's value on mobile so it fits without changing the card size */
  #i8w_dash_limit { font-size: 14px; }
  .i8w-stat-title { font-size: 10px; }
  .i8w-form { padding: 4px 14px 18px; }
  .i8w-actions { padding: 0 14px 16px; }
  .i8w-btn { width: 100%; }
  .i8w-form input[type="text"],
  .i8w-form input[type="email"],
  .i8w-form input[type="tel"],
  .i8w-form select { max-width: 100%; min-height: 44px; font-size: 16px; }
}

@media (max-width: 400px) {
  .i8w-wrap  { padding: 0 10px; }
  .i8w-dash-rows { gap: 6px; padding: 10px 12px 14px; }
  .i8w-stat  { padding: 10px 8px; }
  .i8w-stat-value { font-size: 18px; }
  #i8w_dash_limit { font-size: 13px; }
  .i8w-head h2, .i8w-card > h2 { font-size: 16px; }
  .i8w-card  { border-radius: 16px; }
}

/* Checkout */
.woocommerce-checkout .i8w-event-type-other { display: none; }

/* ─────────────────────────────────────────────────────────────────────
   MEAL CHOICES TAB CARD
   ───────────────────────────────────────────────────────────────────── */

/* Stat card accent for "pending" (טרם בחרו) */
.i8w-meal-choices-card #i8w_mc_pending {
  color: #dc2626;
}

/* Reduce top gap between header and stats — match gifts tab spacing */
.i8w-meal-choices-card .i8w-dash-rows {
  padding-top: 14px;
}

/* Progress bar */
.i8w-mc-progress-wrap {
  margin: -6px 26px 22px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.04) 0%, rgba(124,58,237,0.04) 100%);
  border: 1px solid rgba(99,102,241,0.10);
  border-radius: 16px;
}

.i8w-mc-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #4f46e5;
  margin-bottom: 8px;
}

.i8w-mc-progress-track {
  height: 8px;
  background: rgba(99,102,241,0.12);
  border-radius: 999px;
  overflow: hidden;
}

.i8w-mc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e40af 0%, #4f46e5 55%, #7c3aed 100%);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 4px;
}

/* Detailed breakdown panel */
.i8w-mc-breakdown {
  margin: 0 26px 22px;
  background: #ffffff;
  border: 1.5px solid rgba(99,102,241,0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(99,102,241,0.06);
}

.i8w-mc-breakdown-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #4f46e5;
  letter-spacing: -0.01em;
  padding: 16px 20px 13px;
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 50%, #f5f3ff 100%);
  border-bottom: 1px solid rgba(99,102,241,0.10);
  font-family: 'Rubik', Arial, sans-serif;
}

.i8w-mc-breakdown-icon { font-size: 16px; }

.i8w-mc-breakdown-body {
  padding: 18px 20px;
  font-size: 14px;
  color: #1e293b;
  line-height: 1.7;
  direction: rtl;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

/* Category groups: side by side (ראשונה | עיקרית | קינוח) */
.i8w-mc-breakdown-body .i8w-meal-stat-group {
  flex: 1 1 160px;
  margin-top: 0;
}

/* Unselected and allergies sections: side by side */
.i8w-mc-breakdown-body .i8w-meal-stat-unselected,
.i8w-mc-breakdown-body .i8w-meal-stat-allergies {
  flex: 1 1 220px;
  min-width: 0;
}

/* Style the inner breakdown content (generated by plugin) */
.i8w-mc-breakdown-body > p { margin-bottom: 6px; }

.i8w-mc-breakdown-body strong { color: #1e40af; }

/* Empty state */
.i8w-mc-empty {
  text-align: center;
  padding: 52px 26px;
  color: #94a3b8;
}

.i8w-mc-empty-icon {
  display: block;
  font-size: 44px;
  margin-bottom: 14px;
  opacity: 0.45;
  filter: grayscale(0.3);
}

.i8w-mc-empty > div:not(.i8w-muted) {
  font-size: 16px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.i8w-mc-empty .i8w-muted { font-size: 13px; }

/* Allergy / dietary panel */
.i8w-mc-allergy {
  margin: 0 26px 26px;
  padding: 16px 20px 18px;
  background: linear-gradient(135deg, rgba(251,191,36,0.06) 0%, rgba(245,158,11,0.06) 100%);
  border: 1.5px solid rgba(251,191,36,0.28);
  border-radius: 18px;
}

.i8w-mc-allergy-title {
  font-size: 13px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.i8w-mc-allergy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.i8w-mc-allergy-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(251,191,36,0.32);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  color: #78350f;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(251,191,36,0.10);
}

.i8w-mc-allergy-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(251,191,36,0.25);
  color: #92400e;
  font-weight: 800;
  font-size: 12px;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
}

@media (max-width: 640px) {
  .i8w-mc-progress-wrap { margin-left: 14px; margin-right: 14px; }
  .i8w-mc-breakdown,
  .i8w-mc-allergy { margin-left: 14px; margin-right: 14px; }
  .i8w-mc-breakdown-title { font-size: 13px; padding: 13px 16px 11px; }
  .i8w-mc-breakdown-body { padding: 14px 16px; }
}

/* ── Mobile-only: compact meal-choices tab ──────────────────────── */
@media (max-width: 820px) {
  /* Shrink the empty state so it doesn't dominate the tab */
  .i8w-mc-empty { padding: 20px 16px; }
  .i8w-mc-empty-icon { font-size: 32px; margin-bottom: 8px; }

  /* 3 stat cards fit in one row on narrow screens */
  .i8w-meal-choices-card .i8w-dash-row--3 .i8w-stat {
    flex: 0 1 calc(33.333% - 6px);
    min-width: 80px;
  }

  /* Tighten space between header and stats */
  .i8w-meal-choices-card .i8w-dash-rows { padding: 8px 12px 14px; }
}

/* ─────────────────────────────────────────────────────────────────────
   LOGIN CARD
   ───────────────────────────────────────────────────────────────────── */
.i8w-login-wrap {
  max-width: 480px !important;
}

.i8w-login-card {
  overflow: hidden;
}

.i8w-login-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 28px 22px;
  background: linear-gradient(135deg, #1e40af 0%, #4f46e5 55%, #7c3aed 100%);
}

.i8w-login-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.i8w-login-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
  color: #fff;
}

.i8w-login-body {
  padding: 24px 28px;
}

.i8w-login-form {
  padding: 24px 28px 0 !important;
}

.i8w-field-group {
  margin-bottom: 16px;
}

.i8w-field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.i8w-field-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(99,102,241,0.20);
  border-radius: 12px;
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 15px;
  color: #0f172a;
  background: #fafbff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  direction: ltr;
  text-align: left;
}

.i8w-field-group input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  background: #fff;
}

.i8w-btn-full {
  width: 100% !important;
  justify-content: center !important;
  margin-top: 8px !important;
  padding: 14px 20px !important;
  font-size: 16px !important;
  border-radius: 12px !important;
}

@media (max-width: 640px) {
  .i8w-login-header { padding: 20px 20px 18px; gap: 12px; }
  .i8w-login-header h2 { font-size: 18px; }
  .i8w-login-form { padding: 18px 18px 0 !important; }
  .i8w-login-body { padding: 18px 18px; }
}

@media(max-width:768px){#eil_p2_table td[data-label="טלפון"]{font-size:13px!important} #eil_p2_table .eil-whatsapp-btn{font-size:11px!important;padding:4px 8px!important}}

/* EVENT360 v150 — Desktop UI/UX improvements
 * Scope: desktop only (min-width: 821px). Mobile is unchanged.
 */
@media (min-width: 821px) {
  /* ─── הצגה / הסתר toggle button ─────────────────────────────────────────── *
   * Hide the Hebrew text inside <em> via font-size:0 and re-inject it through
   * ::before so CSS can swap "הצגה" → "הסתר" on [open] state.
   */
  .i8w-meal-stat-details summary em {
    font-size: 0 !important;
  }
  .i8w-meal-stat-details summary em::before {
    content: 'הצגה';
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    font-family: 'Rubik', Arial, sans-serif;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
  }
  .i8w-meal-stat-details[open] summary em {
    background: #111827 !important;
  }
  .i8w-meal-stat-details[open] summary em::before {
    content: 'הסתר';
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  /* ─── Attendee detail — reduce over-bold font weight ────────────────────── */
  .i8w-meal-attendee-detail {
    font-weight: 400 !important;
  }
  .i8w-meal-attendee-detail strong {
    font-weight: 600 !important;
    color: #334155 !important;
  }

  /* ─── Hide dietary / allergy summary box (bottom of meal-choices card) ───── */
  .i8w-mc-allergy {
    display: none !important;
  }
}

/* EVENT360 v152 — Mobile: הצגה/הסתר fix, dietary box hide, meal-choices title size */
@media (max-width: 820px) {
  /* ─── הצגה / הסתר toggle button (same as desktop fix) ───────────────────── */
  .i8w-meal-stat-details summary em { font-size: 0 !important; }
  .i8w-meal-stat-details summary em::before {
    content: 'הצגה';
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    font-family: 'Rubik', Arial, sans-serif;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
  }
  .i8w-meal-stat-details[open] summary em { background: #111827 !important; }
  .i8w-meal-stat-details[open] summary em::before {
    content: 'הסתר';
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  /* ─── Hide dietary box on mobile too ───────────────────────────────────── */
  .i8w-mc-allergy { display: none !important; }

  /* ─── Meal-choices stat card: smaller titles so numbers align vertically ── */
  .i8w-area-content [data-tab-id="meal-choices"] .i8w-stat-title {
    font-size: 10px !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
    white-space: normal !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   EVENT360 — "Already logged in" notice (כניסה למערכת): clean, centred,
   compact, elegant card on mobile. Scope: @media (max-width:768px) only,
   and only the .i8w-loggedin card — desktop and all other screens untouched.
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px){
  .i8w-loggedin{
    -webkit-text-size-adjust:100%; text-size-adjust:100%;
    text-align:center;
    max-width:460px;
    margin-left:auto;
    margin-right:auto;
  }
  .i8w-loggedin > h2{
    text-align:center !important;
    padding:22px 22px 16px !important;
    font-size:20px !important;
  }
  .i8w-loggedin > .i8w-muted{
    margin:0 !important;
    padding:20px 24px 4px !important;
    text-align:center !important;
    font-size:14px !important;
    line-height:1.65 !important;
    color:#475569 !important;
  }
  .i8w-loggedin > .i8w-btn-primary{
    display:inline-flex !important;
    width:auto !important;
    min-width:190px !important;
    max-width:calc(100% - 48px) !important;
    margin:18px 0 4px !important;
    padding:13px 30px !important;
    font-size:15px !important;
  }
  .i8w-loggedin > .i8w-link{
    display:block !important;
    width:100% !important;
    text-align:center !important;
    margin:0 !important;
    padding:14px 22px 22px !important;
    font-size:13.5px !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   EVENT360 — Personal-area stat titles (e.g. "סה״כ מוזמנים במערכת"): stop
   Samsung/Android text-inflation and shrink a touch so the title stays on a
   single line on Galaxy, like iPhone. Mobile only. Desktop untouched.
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px){
  .i8w-wrap{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
  .i8w-stat-title{ font-size:9.5px !important; line-height:1.3 !important; }
}

/* EVENT360 mobile header visibility fix — targeted only.
   Keeps the login / already-logged-in cards below the mobile browser/theme header
   so the top header area is not hidden on iPhone/mobile. */
@media (max-width: 768px) {
  html body .i8w-wrap.i8w-login-wrap,
  html body .i8w-wrap:has(.i8w-loggedin) {
    margin-top: max(34px, calc(env(safe-area-inset-top, 0px) + 26px)) !important;
  }
}


/* EVENT360 global mobile input zoom fix
   Purpose: prevent iOS Safari/Chrome mobile auto-zoom when focusing any editable field.
   Logic untouched. */
@media screen and (max-width: 900px) {
  html, body {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  textarea,
  select,
  .event360 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  .event360 textarea,
  .event360 select,
  [class^="eil-"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  [class*=" eil-"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  [class^="eil-"] textarea,
  [class*=" eil-"] textarea,
  [class^="eil-"] select,
  [class*=" eil-"] select,
  [class^="p6-"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  [class*=" p6-"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  [class^="p6-"] textarea,
  [class*=" p6-"] textarea,
  [class^="p6-"] select,
  [class*=" p6-"] select {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }
}

