/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0.75em 1.8em; border: var(--bw) solid var(--black); border-radius: var(--r-pill);
  font-weight: 800; font-size: 1.0625rem; line-height: 1.1; text-decoration: none; letter-spacing: -0.005em;
  background: var(--white); color: var(--black); box-shadow: var(--shadow-btn); cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: var(--shadow-btn-hover); }
.btn:active { transform: translate(2px, 3px); box-shadow: var(--shadow-btn-active); }
.btn-primary { background: var(--turq); color: var(--black); }
.btn-secondary { background: transparent; color: inherit; }
.on-blue .btn-secondary, .section--blue .btn-secondary { color: #fff; }
.btn-outline { background: var(--white); color: var(--black); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-text { background: none; border: 0; box-shadow: none; padding: 0.4em 0.2em; min-height: 0; text-decoration: underline; text-underline-offset: 4px; }
.btn-text:hover, .btn-text:active { transform: none; box-shadow: none; text-decoration-thickness: 3px; }
.btn-sm { min-height: 44px; padding: 0.55em 1.3em; font-size: 0.95rem; }
.btn-lg { min-height: 60px; padding: 0.85em 2.2em; font-size: 1.2rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: var(--shadow-btn); pointer-events: none; }
.btn .icon { width: 1.15em; height: 1.15em; }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 0.38em 0.95em; border-radius: var(--r-pill); background: var(--blue); color: #fff; font-weight: 700; font-size: var(--fs-xs); letter-spacing: 0.01em; white-space: nowrap; }
.chip--turq { background: var(--turq); color: var(--black); }
.chip--outline { background: #fff; color: var(--black); border: var(--bw) solid var(--black); }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0.5em 1.1em; background: #fff; color: var(--black); border: var(--bw) solid var(--black); border-radius: var(--r-pill); font-weight: 700; font-size: 0.95rem; transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast); }
.chip-btn:hover { transform: translateY(-2px); box-shadow: 2px 3px 0 var(--black); }
.chip-btn[aria-pressed="true"], .chip-btn[aria-current="true"] { background: var(--blue); color: #fff; box-shadow: 2px 3px 0 var(--black); }
.chip-btn small { font-weight: 700; opacity: 0.65; font-size: 0.78em; }

/* ---------- Cards ---------- */
.card { background: #fff; border: var(--bw-card) solid var(--black); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.card--pad { padding: clamp(18px, 2.4vw, 32px); }
.card--hover { transition: transform var(--t-med), box-shadow var(--t-med); }
.card--hover:hover { transform: translate(-2px, -4px); box-shadow: var(--shadow-card-hover); }

/* ---------- Progress ---------- */
.progress { --p: 0%; position: relative; height: 20px; border: var(--bw) solid var(--black); border-radius: var(--r-pill); background: #fff; }
.progress__fill { height: 100%; width: var(--p); background: var(--turq); border-radius: var(--r-pill); transition: width 0.8s cubic-bezier(.2,.8,.2,1); }
.progress__thumb { position: absolute; top: 50%; left: clamp(26px, var(--p), calc(100% - 26px)); transform: translate(-50%, -50%); width: 52px; height: 28px; background: #fff; border: var(--bw) solid var(--black); border-radius: var(--r-pill); }
.progress--sm { height: 16px; } .progress--sm .progress__thumb { width: 38px; height: 22px; }
.progress--flat .progress__thumb { display: none; }

/* ---------- Campaign card ---------- */
.cc { position: relative; display: flex; flex-direction: column; background: #fff; border: var(--bw-card) solid var(--black); border-radius: var(--r-card); box-shadow: var(--shadow-card); transition: transform var(--t-med), box-shadow var(--t-med); container-type: inline-size; height: 100%; }
.cc:hover { transform: translate(-2px, -4px); box-shadow: var(--shadow-card-hover); }
.cc__media { position: relative; aspect-ratio: 16 / 8.4; background: #dfe3ff; border-radius: calc(var(--r-card) - var(--bw-card)) calc(var(--r-card) - var(--bw-card)) 0 0; }
/* The media box is not clipped, so the days badge and category chip can overlap the image edge like the reference. */
.cc__media > img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cc__meta { display: grid; gap: 14px; margin-top: auto; }
.cc__save { position: absolute; z-index: 3; top: 14px; left: 14px; width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.22); cursor: pointer; transition: transform var(--t-fast), box-shadow var(--t-fast); }
.cc__save:hover { transform: scale(1.08); box-shadow: 0 3px 12px rgba(0,0,0,.3); }
.cc__save:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.cc__save:active { transform: scale(.94); }
.cc__heart { width: 20px; height: auto; aspect-ratio: 109 / 109.73; object-fit: contain; border-radius: 0; }
.cc__heart--on, .cc__save[aria-pressed="true"] .cc__heart--off { display: none; }
.cc__save[aria-pressed="true"] .cc__heart--on { display: block; }
.heart-img { width: 18px; height: 18px; flex: none; }
.cc__days { position: absolute; z-index: 2; right: 18px; bottom: calc(var(--d, 88px) / -2); width: var(--d, 88px); height: var(--d, 88px); border-radius: 50%; background: var(--black); color: #fff; display: grid; place-content: center; text-align: center; line-height: 1; }
.cc__days b { font-size: calc(var(--d, 88px) * 0.3); font-weight: 800; }
.cc__days span { font-size: calc(var(--d, 88px) * 0.135); font-weight: 600; margin-top: 2px; }
.cc__tag { position: absolute; z-index: 2; left: 22px; right: calc(var(--d, 88px) + 12px); bottom: -14px; display: flex; flex-wrap: nowrap; gap: 8px; min-width: 0; }
.cc__tag .chip { white-space: nowrap; flex: 0 0 auto; }
.cc__tag .chip--outline { flex: 0 1 auto; min-width: 64px; overflow: hidden; text-overflow: ellipsis; display: block; }
.cc__body { display: flex; flex-direction: column; gap: 14px; padding: 26px 22px 22px; flex: 1; }
.cc__title { font-size: clamp(1rem, 0.9rem + 0.3vw, 1.2rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; padding-right: calc(var(--d, 88px) * 0.8); }
.cc__title a { text-decoration: none; }
.cc__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); }
.cc__title a:focus-visible { outline: none; }
.cc__title a:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 4px; }
.cc__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cc__amounts { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; max-width: 100%; min-width: 0; box-sizing: border-box; padding: 5px 6px 5px 14px; border: var(--bw) solid var(--black); border-radius: var(--r-pill); background: #fff; font-weight: 800; font-size: clamp(0.85rem, 0.7rem + 0.45vw, 1.05rem); white-space: nowrap; }
.cc__amounts .icon { width: 1.1em; }
.cc__goal { min-width: 0; overflow: hidden; text-overflow: ellipsis; background: #d9fff7; color: var(--turq-deep); border: var(--bw) solid var(--black); border-radius: var(--r-pill); padding: 6px 12px; font-size: 0.92em; }
.cc__who { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); font-weight: 600; position: relative; z-index: 2; text-decoration: none; }
.cc__who img { width: 34px; height: 34px; border-radius: 50%; border: var(--bw) solid var(--black); object-fit: cover; }
.cc__who small { display: block; width: fit-content; background: var(--black); color: #fff; font-size: 0.56rem; font-weight: 700; line-height: 1; padding: 2px 7px; border-radius: 99px; margin-bottom: 1px; }
.cc__who span { line-height: 1.1; }
.cc__givers { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); font-weight: 600; }
.cc__givers i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--turq); color: var(--blue); }
.cc__givers i img { width: 15px; height: 15px; }
.cc__status { position: absolute; z-index: 2; top: 14px; right: 14px; }
.cc--feature { --d: clamp(64px, 5vw, 84px); }
.cc--feature .cc__title { font-size: clamp(1.2rem, 0.9rem + 0.9vw, 1.6rem); font-weight: 600; }
.cc--feature .cc__media { aspect-ratio: 16 / 8.6; }
.cc--feature .cc__body { padding: 30px clamp(18px, 2.2vw, 30px) clamp(18px, 2vw, 28px); gap: 18px; }
.cc--feature .cc__amounts { font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.15rem); }
.cc--skeleton { pointer-events: none; }
.cc--skeleton:hover { transform: none; box-shadow: var(--shadow-card); }

/* ---------- Skeletons ---------- */
.skel { background: linear-gradient(90deg, #ececf4 0%, #f7f7fb 50%, #ececf4 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .label, legend.label { font-weight: 800; font-size: 0.95rem; }
.field .hint { font-size: var(--fs-small); color: var(--gray); }
.input, .select, .textarea { width: 100%; min-height: 54px; padding: 0.8em 1.05em; background: #fff; border: var(--bw) solid var(--black); border-radius: var(--r-field); font-size: 1rem; transition: box-shadow var(--t-fast), border-color var(--t-fast); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 2.8em; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050505' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1em center / 1.1em; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; box-shadow: 4px 4px 0 var(--blue); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 4px 4px 0 var(--danger); }
.field__error { display: flex; gap: 6px; align-items: flex-start; color: var(--danger); font-weight: 700; font-size: var(--fs-small); }
.field__error:empty { display: none; }
.input-affix { position: relative; }
.input-affix .input { padding-left: 4.2em; font-weight: 800; font-size: 1.15rem; }
.input-affix > span { position: absolute; left: 1.1em; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--gray); pointer-events: none; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.input-icon .input { padding-left: 3em; }
.input-icon .toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; }
.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; cursor: pointer; }
.check input { appearance: none; flex: none; width: 26px; height: 26px; margin: 0; border: var(--bw) solid var(--black); border-radius: 8px; background: #fff; display: grid; place-content: center; cursor: pointer; }
.check input::after { content: ""; width: 14px; height: 14px; transform: scale(0); transition: transform var(--t-fast); background: var(--blue); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); }
.check input:checked { background: var(--turq); }
.check input:checked::after { transform: scale(1); background: var(--black); }
.check input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.form-grid { display: grid; gap: var(--s5); }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-grid--2 { grid-template-columns: 1fr; } }
.counter { font-size: var(--fs-xs); color: var(--gray); text-align: right; font-weight: 600; }

/* ---------- Segmented amount picker ---------- */
.amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.amounts .chip-btn { justify-content: center; font-weight: 800; }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border: var(--bw) solid var(--black); border-radius: var(--r-sm); background: #fff; font-size: var(--fs-small); font-weight: 600; }
.notice--demo { background: #fff6cc; }
.notice--info { background: #e9e7ff; }
.notice--success { background: #d9fff7; }
.notice--error { background: #ffe1e6; }
.notice .icon { margin-top: 1px; }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: #fff6cc; border: var(--bw) solid var(--black); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--black); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: var(--z-toast); bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; width: min(92vw, 460px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; padding: 14px 18px; background: var(--black); color: #fff; border: var(--bw) solid var(--black); border-radius: 18px; box-shadow: 4px 5px 0 var(--turq); font-weight: 700; animation: toastIn .25s ease; }
.toast--error { box-shadow: 4px 5px 0 var(--danger); }
.toast .icon { color: var(--turq); } .toast--error .icon { color: #ff8da0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Dialogs ---------- */
dialog.modal { width: min(92vw, 560px); max-height: 88vh; padding: 0; border: var(--bw-card) solid var(--black); border-radius: var(--r-card); background: #fff; color: var(--black); box-shadow: var(--shadow-card); overflow: auto; }
dialog.modal::backdrop { background: rgba(5, 5, 20, 0.62); }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 24px 0; }
.modal__body { padding: 16px 24px 8px; display: grid; gap: 16px; }
.modal__foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; padding: 16px 24px 24px; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border: var(--bw) solid var(--black); border-radius: 50%; flex: none; }
.icon-btn:hover { background: var(--turq); }

/* ---------- Empty / error states ---------- */
.state { display: grid; justify-items: center; gap: 14px; text-align: center; padding: clamp(32px, 6vw, 72px) var(--s5); border: var(--bw-card) dashed var(--black); border-radius: var(--r-card); background: #fff; }
.state__art { width: 84px; height: 84px; display: grid; place-items: center; background: var(--turq); border: var(--bw) solid var(--black); border-radius: 50%; box-shadow: var(--shadow-btn); }
.state__art .icon { width: 38px; height: 38px; }
.state h3 { max-width: 24ch; }
.state p { max-width: 46ch; color: var(--gray); }

/* ---------- Pagination & breadcrumbs ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: var(--s7); }
.pagination button { min-width: 46px; height: 46px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #fff; border: var(--bw) solid var(--black); border-radius: var(--r-pill); font-weight: 800; }
.pagination button:hover:not([disabled]) { background: var(--turq); }
.pagination button[aria-current="page"] { background: var(--blue); color: #fff; box-shadow: 2px 3px 0 var(--black); }
.pagination button[disabled] { opacity: 0.4; cursor: not-allowed; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--fs-small); font-weight: 700; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.5; }
.breadcrumbs a { text-underline-offset: 3px; }

/* ---------- Misc ---------- */
.avatar { width: 48px; height: 48px; border-radius: 50%; border: var(--bw) solid var(--black); object-fit: cover; background: var(--turq); }
.avatar--lg { width: 96px; height: 96px; border-width: var(--bw-card); }
.dot-title { display: inline-flex; align-items: center; gap: 10px; }
.dot-title svg { width: 0.34em; height: 0.34em; min-width: 14px; min-height: 14px; margin-top: -0.45em; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-underline-offset: 5px; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; min-width: 520px; }
.table th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray); padding: 10px 12px; border-bottom: var(--bw) solid var(--black); }
.table td { padding: 14px 12px; border-bottom: 1px solid #e3e3e3; vertical-align: middle; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: var(--fs-xs); font-weight: 800; border: var(--bw) solid var(--black); background: #fff; }
.badge--active { background: var(--turq); } .badge--pending_review { background: #fff6cc; } .badge--draft { background: #ececec; }
.badge--completed { background: #e9e7ff; } .badge--rejected, .badge--cancelled { background: #ffe1e6; }

/* Long amounts (e.g. ₦ or ¥ in the millions) shrink with an ellipsis instead of leaving the card */
.cc__amounts { overflow: hidden; }
.cc__amounts > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cc__amounts > .icon { flex: none; }
.cc__goal { flex: 0 1 auto; }
.cc, .cc__body, .cc__foot { min-width: 0; }
.cc__foot { max-width: 100%; }
@media (max-width: 360px) { .cc__amounts { font-size: 0.78rem; gap: 5px; padding: 4px 5px 4px 10px; } .cc__goal { padding: 5px 8px; } .cc__amounts .icon { width: 0.9em; } }

/* Mobile & tablet: buttons inside cards (and empty/profile states) span the full width */
@media (max-width: 1024px) {
  .card .btn, .state .btn, .profile__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- EXPERIMENT: outlines off (see tokens.css to restore) ---------- */
.input, .select, .textarea { background-color: #ECEEF6; }
.select { background-color: #ECEEF6; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { box-shadow: 0 0 0 3px var(--blue); background-color: #fff; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { box-shadow: 0 0 0 3px var(--danger); }
.progress { background: #E1E4EF; }
.progress__thumb { box-shadow: 0 2px 8px rgba(0,0,51,.3); }
.btn-outline, .chip-btn, .pagination button, .stepper button, .chip--outline { background-color: #fff; box-shadow: 0 2px 6px rgba(0,0,51,.1); }
.btn-outline:hover { box-shadow: var(--shadow-btn-hover); }

/* Light buttons get a very faint line so they stay readable without the heavy outline */
.btn-outline, .chip-btn, .pagination button, .stepper button, .chip--outline, .cc__save { border: 1px solid rgba(0,0,51,.14); }
.btn-secondary:not(.hero .btn-secondary):not(.cta .btn-secondary):not(.page-hero .btn-secondary) { border: 1px solid rgba(0,0,51,.14); }
.chip-btn[aria-pressed="true"], .chip-btn[aria-current="true"], .pagination button[aria-current="page"] { border-color: transparent; }

/* Share popup */
dialog.modal--share { width: min(94vw, 560px); }
.share__link { display: flex; align-items: stretch; border: 1px solid rgba(0,0,51,.25); border-radius: 16px; overflow: hidden; background: #fff; }
.share__link > div { flex: 1; min-width: 0; padding: 10px 16px; }
.share__link small { display: block; color: var(--gray); font-weight: 600; font-size: 0.8rem; }
.share__link input { width: 100%; border: 0; padding: 2px 0 0; font: inherit; font-weight: 600; background: transparent; text-overflow: ellipsis; }
.share__link input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.share__copy { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; background: #F0F1F7; border: 0; border-left: 1px solid rgba(0,0,51,.2); font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }
.share__copy:hover { background: var(--turq); } .share__copy .icon { width: 18px; height: 18px; }
.share h3 { margin-top: 26px; font-size: 1.35rem; } .share > p { margin-top: 6px; font-weight: 500; }
.share__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin-top: 16px; }
.share__grid a, .share__native, .share__qr { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 14px; background: none; border: 0; font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--black); text-decoration: none; cursor: pointer; text-align: left; }
.share__grid a:hover, .share__native:hover, .share__qr:hover { background: #F0F1F7; }
.share__ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.share__ico b { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; font-family: var(--font); } .share__ico .icon { width: 22px; height: 22px; }
.share__ico--grey { background: #E6E8F0; }
@media (max-width: 340px) { .share__grid { grid-template-columns: 1fr; } }

/* Popup close button: round outline */
.modal__head .icon-btn { border: 1.5px solid var(--black); background: #fff; }
.modal__head .icon-btn:hover { background: var(--turq); }

/* Web: slightly smaller section headings */
@media (min-width: 1025px) { :root { --fs-h2: clamp(1.5rem, 0.9rem + 1.2vw, 2rem); } .detail__main h2 { font-size: 1.7rem; } }

.share__qrview { display: grid; gap: 16px; justify-items: center; text-align: center; }
.share__qrbox { background: #fff; padding: 8px; border-radius: 16px; border: 1px solid rgba(0,0,51,.2); }
.share__qrcanvas { width: min(260px, 70vw); height: auto; image-rendering: pixelated; display: block; }
.share__qrbtns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Card: category chip sits top-left beside the save heart; location chip bottom-left; amounts bubble and progress thumb get the faint line */
.cc__cat { position: absolute; z-index: 2; top: 14px; left: 66px; max-width: calc(100% - 66px - 90px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc__amounts { border: 1px solid rgba(0,0,51,.25); }
html .progress__thumb { border: 1px solid rgba(0,0,51,.25); }

/* GivingAid dropdown: our own button and list in place of the device's select */
.ga-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); }
.ga-sel { display: block; position: relative; min-width: 0; }
.ga-sel[hidden] { display: none; }
.ga-sel__btn { display: block; width: 100%; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: inherit; }
.ga-sel__btn.is-placeholder { color: #6a6a80; }
.ga-sel__btn:disabled { opacity: .55; cursor: not-allowed; }
.ga-sel.is-invalid .ga-sel__btn { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger); }
.ga-list { position: fixed; z-index: 100000; background: #fff; border: 1px solid rgba(0,0,51,.16); border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,51,.18); padding: 6px; overflow-y: auto; overscroll-behavior: contain; font-weight: 500; font-size: .9rem; color: var(--black); }
.ga-opt { padding: 9px 14px; border-radius: 10px; cursor: pointer; line-height: 1.3; white-space: nowrap; }
.ga-opt.is-act { background: #eef0ff; }
.ga-opt.is-sel { background: var(--blue); color: #fff; font-weight: 700; }
.ga-opt.is-off { opacity: .45; cursor: not-allowed; }
.ga-grp { padding: 10px 14px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6a6a80; }
dialog.ga-dd-open, dialog.ga-dd-open .modal__body, dialog.ga-dd-open form { overflow: visible !important; }

/* Search popup */
.sp { display: grid; gap: 14px; min-width: min(480px, 100%); }
.sp__res { display: grid; gap: 4px; max-height: 60vh; overflow-y: auto; }
.sp__hint { margin: 0; color: #6a6a80; font-weight: 500; font-size: .92rem; }
.sp__h { margin: 10px 0 4px; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: #6a6a80; font-weight: 700; }
.sp__row { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; text-decoration: none; color: var(--black); }
.sp__row:hover, .sp__row:focus-visible { background: #eef0ff; }
.sp__row img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.sp__row b { display: block; font-weight: 700; font-size: .92rem; line-height: 1.25; }
.sp__row small { display: block; font-weight: 500; font-size: .78rem; color: #6a6a80; }
.sp__all { justify-self: start; margin-top: 8px; font-weight: 700; color: var(--blue); }

/* Dropdown search pill (first line of every dropdown) */
.ga-qw { position: sticky; top: -6px; z-index: 1; margin: -6px -6px 4px; padding: 10px 10px 8px; background: #fff; }
.ga-q { display: block; width: 100%; min-height: 36px; padding: 0 14px 0 36px; border: 0; border-radius: 999px; background: #ECEEF6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000033' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px 50% / 16px; font: inherit; font-size: .88rem; font-weight: 500; color: var(--black); outline: none; }
.ga-q::placeholder { color: #6a6a80; font-weight: 500; }
.ga-q:focus { background-color: #e6e8ef; }
.ga-opt.is-hid, .ga-grp.is-hid { display: none; }
.ga-none { padding: 10px 14px; color: #6a6a80; font-size: .88rem; font-weight: 500; }
