/* Progetti — donation-info sidebar panel (mea-sync) */
.mea-racside {
  --mea-accent: #41C0EF;      /* bright MEA brand blue — bars, icons (no text on them) */
  --mea-blue: #0E7CAC;        /* darker, for white-text buttons (AA contrast) */
  --mea-green: #3AAA35;       /* donate action */
  --mea-green-dark: #2F8F2B;
  --mea-blue-dark: #0A6E99;
  --mea-ink: #242423;
  --mea-muted: #687587;
  --mea-card: #ffffff;
  --mea-line: #eceff4;
  --mea-soft: #EAF6FC;
  --mea-tint: rgba(65, 192, 239, .10);
  --mea-success: #2F8F2B;
  --mea-radius: 20px;
  font-family: "Albert Sans", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--mea-ink);
  background: var(--mea-card);
  border: 1px solid var(--mea-line);
  border-radius: var(--mea-radius);
  padding: 22px;
  box-shadow: 0 18px 48px -22px rgba(20, 35, 60, .35);
}
.mea-racside *, .mea-racside *::before, .mea-racside *::after { box-sizing: border-box; }

.mea-racside__amounts { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mea-racside__raised { font-size: 30px; font-weight: 850; letter-spacing: -.02em; color: var(--mea-ink); line-height: 1; }
.mea-racside__goal { font-size: 13.5px; color: var(--mea-muted); }

.mea-racside__bar { position: relative; height: 13px; border-radius: 999px; background: var(--mea-soft); overflow: hidden; margin: 14px 0 16px; }
.mea-racside__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mea-accent), var(--mea-blue)); box-shadow: 0 0 16px -2px rgba(65,192,239,.6); transition: width .8s cubic-bezier(.22,1,.36,1); }

/* Stat cards (icon · number · label) */
.mea-racside__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mea-racside__stat { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 12px 6px; background: var(--mea-soft); border-radius: 14px; }
.mea-racside__stat-ico { display: inline-flex; color: var(--mea-accent); margin-bottom: 1px; }
.mea-racside__stat-num { font-size: 17px; font-weight: 800; color: var(--mea-ink); line-height: 1; letter-spacing: -.01em; }
.mea-racside__stat-lbl { font-size: 11.5px; color: var(--mea-muted); font-weight: 600; }

/* Details list (icon · label · value) */
.mea-racside__list { list-style: none; margin: 18px 0 4px; padding: 0; }
.mea-racside__row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--mea-line); }
.mea-racside__row:last-child { border-bottom: 0; }
.mea-racside__row-ico { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--mea-tint); color: var(--mea-blue-dark); display: inline-flex; align-items: center; justify-content: center; }
.mea-racside__row-label { font-size: 13.5px; color: var(--mea-muted); }
.mea-racside__row-val { margin-left: auto; font-size: 13.5px; font-weight: 700; color: var(--mea-ink); text-align: right; }

/* Actions — two buttons */
.mea-racside__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.mea-racside__cta, .mea-racside__invite { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px; border-radius: 14px; font-size: 15.5px; font-weight: 750; cursor: pointer; text-decoration: none; transition: transform .14s, box-shadow .14s, background .14s, border-color .14s; }
.mea-racside__cta { background: linear-gradient(180deg, var(--mea-green), var(--mea-green-dark)); color: #fff; border: 0; box-shadow: 0 12px 24px -10px rgba(58,170,53,.6); }
.mea-racside__cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(58,170,53,.75); }
.mea-racside__cta:active { transform: translateY(0); }
.mea-racside__invite { background: var(--mea-card); color: var(--mea-blue-dark); border: 1.5px solid var(--mea-line); }
.mea-racside__invite:hover { border-color: var(--mea-blue); background: var(--mea-soft); transform: translateY(-1px); }

.mea-racside__ended { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--mea-muted); }

/* Share */
.mea-racside__share { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--mea-line); display: flex; align-items: center; gap: 12px; }
.mea-racside__share-label { font-size: 13px; font-weight: 700; color: var(--mea-muted); }
.mea-racside__share-row { display: inline-flex; gap: 8px; margin-left: auto; }
.mea-racside__share-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--mea-line); background: var(--mea-card); color: var(--mea-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; transition: all .15s; }
.mea-racside__share-btn:hover { border-color: var(--mea-blue); color: var(--mea-blue-dark); background: var(--mea-soft); transform: translateY(-2px); }
.mea-racside__share-btn svg { width: 19px; height: 19px; }
.mea-racside__copy { position: relative; }
.mea-racside__copy-ok { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--mea-success); }
.mea-racside__copy-ok[hidden] { display: none; }

/* ── Theme-proof: keep brand colours through the theme's button/link styles. ── */
.mea-racside button { -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; background-image: none; text-shadow: none; letter-spacing: normal; }
.mea-racside button:focus { outline: none; }
.mea-racside .mea-racside__cta,
.mea-racside .mea-racside__cta:link,
.mea-racside .mea-racside__cta:visited,
.mea-racside .mea-racside__cta:hover,
.mea-racside .mea-racside__cta:focus,
.mea-racside .mea-racside__cta:active { color: #fff !important; text-decoration: none !important; }
.mea-racside .mea-racside__invite,
.mea-racside .mea-racside__invite:focus,
.mea-racside .mea-racside__invite:active { background: var(--mea-card) !important; color: var(--mea-blue-dark) !important; border-color: var(--mea-line) !important; }
.mea-racside .mea-racside__invite:hover { background: var(--mea-soft) !important; color: var(--mea-blue-dark) !important; border-color: var(--mea-blue) !important; }
.mea-racside .mea-racside__share-btn,
.mea-racside .mea-racside__share-btn:focus { background: var(--mea-card) !important; color: var(--mea-muted) !important; border-color: var(--mea-line) !important; }
.mea-racside .mea-racside__share-btn:hover { background: var(--mea-soft) !important; color: var(--mea-blue-dark) !important; border-color: var(--mea-blue) !important; }

/* ── Off-canvas donation drawer (built-in; lives on <body>) ────────────────── */
.mea-racoff { font-family: "Albert Sans", -apple-system, system-ui, sans-serif; position: fixed; inset: 0; z-index: 100000; -webkit-font-smoothing: antialiased; }
.mea-racoff[hidden] { display: none; }
.mea-racoff__overlay { position: absolute; inset: 0; background: rgba(36,36,35,.55); opacity: 0; transition: opacity .3s ease; }
.mea-racoff__panel { position: absolute; top: 0; right: 0; height: 100%; width: 466px; max-width: 92vw; background: #fff; display: flex; flex-direction: column; box-shadow: -24px 0 70px -24px rgba(36,36,35,.5); transform: translateX(100%); transition: transform .38s cubic-bezier(.22,1,.36,1); }
.mea-racoff.is-open .mea-racoff__overlay { opacity: 1; }
.mea-racoff.is-open .mea-racoff__panel { transform: translateX(0); }
.mea-racoff__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid #eceff4; flex: none; }
.mea-racoff__title { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; color: #242423; line-height: 1.25; min-width: 0; }
.mea-racoff__title > svg { color: #41C0EF; flex: none; }
.mea-racoff__title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mea-racoff__close { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #EAF6FC; color: #687587; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; -webkit-appearance: none; appearance: none; transition: background .15s, color .15s; }
.mea-racoff .mea-racoff__close:hover { background: #e3e8ef !important; color: #242423 !important; }
.mea-racoff__close svg { width: 24px; height: 24px; }
.mea-racoff__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px; }
.mea-racoff__body .mea-donate { max-width: 100% !important; border: 0 !important; box-shadow: none !important; }
body.mea-racoff-lock { overflow: hidden; }
@media (max-width: 520px) { .mea-racoff__panel { width: 100%; max-width: 100%; } }
