/* "Letzte Spenden / Son Bağışlar": the in-form donor list (feature flag
   `donor_messages`). Port of the signed-off prototype
   sadakanow/_proto/msform/sb/sb-card.css. Loaded in <head> by
   user/donation/index.blade.php: Vue 2 in-DOM templates strip a <style>
   inside the mount root. Theme variables are set per form by
   MsDonorMessages.theme() on the .sb element. */
.sb {
  --sb-fill: #1f7a47;   /* amount circle; overwritten per form by MsDonorMessages.theme() (≥ 4.5:1 vs white) */
  --sb-ring2: #a5cab4;  /* outer ring of tier 3 */
  --sb-tint: #e9f2ec;   /* pressed "Amin" background */
  --sb-ink: #1a6a3d;    /* fill-coloured text on white/tint, ≥ 4.5:1 */
  --sb-focus: #0b57d0;
}
.sb { color: #1d2125; max-width: 640px; margin: 0 auto; text-align: left; font-family: inherit; }
.sb *, .sb *::before, .sb *::after { box-sizing: border-box; }

/* header: heart + title, "Canlı/Live" pill only while the newest paid gift is < 10 min old */
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.sb .sb-title { display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 0 !important;
  font-size: 22px !important; line-height: 1.25 !important; font-weight: 700 !important; letter-spacing: -.01em; color: #1d2125; }
.sb-title svg { width: 22px; height: 22px; flex: none; color: var(--sb-fill); }
.sb-live { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 4px 11px 4px 10px; border-radius: 999px;
  background: #e6f4ea; color: #0d652d; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; }
.sb-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1e8e3e; animation: sbPulse 1.8s ease-out infinite; }
@keyframes sbPulse { 0% { box-shadow: 0 0 0 0 rgba(30,142,62,.55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(30,142,62,0); } }

/* list + card */
.sb .sb-list { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.sb .sb-item { display: block !important; margin: 0 !important; padding: 0 !important; }
.sb-card { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px 16px 14px 10px; background: #fff; border: 1px solid #e1e5e8; border-radius: 16px; }

/* amount circle; tier rings are box-shadows so they never move the text column */
.sb-av { position: relative; width: 52px; height: 52px; margin: 0 auto; border-radius: 50%;
  background: var(--sb-fill); color: #fff; display: flex; align-items: center; justify-content: center; }
.sb-av.t2 { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--sb-fill); }
.sb-av.t3 { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--sb-fill), 0 0 0 8px #fff, 0 0 0 10.5px var(--sb-ring2); }
.sb-amt { font-size: var(--sb-amt-fs, 15px); font-weight: 700; line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-badge { position: absolute; right: -8px; bottom: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: var(--sb-ink); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sb-badge svg { width: 14px; height: 14px; }

.sb-body { min-width: 0; }
.sb .sb-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 3px 0 0 !important; padding: 0 !important;
  font-size: 13px !important; line-height: 1.35 !important; color: #56616b; }
.sb-name { font-size: 15px; font-weight: 700; color: #1d2125; letter-spacing: .01em; }
.sb-name.is-anon { font-weight: 600; color: #3b454d; letter-spacing: 0; }
.sb .sb-msg { margin: 6px 0 0 !important; padding: 0 !important; font-size: 15px !important; line-height: 1.45 !important;
  color: #262d33; font-style: normal; overflow-wrap: anywhere; white-space: pre-line; }
.sb q { quotes: "\201C" "\201D"; }
.sb:lang(de) q { quotes: "\201E" "\201C"; }

/* "Amin 🤲 (n)" — one tap per donation, visual 34 px + invisible hit area = 44 px */
.sb-amin { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 34px; padding: 0 13px;
  border-radius: 999px; border: 1px solid #cdd3d8; background: #fff; color: #262d33; font: inherit; font-size: 14px; font-weight: 600;
  line-height: 1; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.sb-amin::before { content: ""; position: absolute; inset: -5px -2px; }
.sb-amin:hover { background: #f2f4f5; }
.sb-amin[aria-pressed="true"] { background: var(--sb-tint); border-color: var(--sb-fill); color: var(--sb-ink); cursor: default; }
.sb-amin-e { display: inline-block; font-size: 16px; }
.sb-amin-n { font-weight: 600; font-variant-numeric: tabular-nums; color: #48525a; }
.sb-amin[aria-pressed="true"] .sb-amin-n { color: inherit; }
.sb-amin.pop .sb-amin-e { animation: sbPop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes sbPop { 0% { transform: scale(.55); } 100% { transform: scale(1); } }
.sb-new { animation: sbIn .5s ease-out; }
@keyframes sbIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.sb-more { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 12px auto 0; padding: 0 18px;
  border: 0; border-radius: 10px; background: none; color: var(--sb-ink); font: inherit; font-size: 15px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sb button:focus { outline: none; }
.sb button:focus-visible { outline: 3px solid var(--sb-focus) !important; outline-offset: 2px; }
.sb-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 480px) {
  .sb .sb-title { font-size: 19px !important; }
  .sb-title svg { width: 20px; height: 20px; }
  .sb-card { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; padding: 12px 12px 12px 8px; }
  .sb-av { width: 50px; height: 50px; }
  .sb-amt { font-size: calc(var(--sb-amt-fs, 15px) - 1px); }
}
@media (prefers-reduced-motion: reduce) {
  .sb-live::before, .sb-new, .sb-amin.pop .sb-amin-e { animation: none; }
}
.sb-title > span { display: inline-flex; }
.sb .sb-item:focus { outline: none; }
.sb .sb-item:focus-visible { outline: 3px solid var(--sb-focus); outline-offset: 3px; border-radius: 16px; }
