/* Gifts and giveaways (gifts.js, giftsheets.js, projectgifts.js): the count and bar, the list's gift, the filter, one
   row per recipient with its Given box, the add sheet's names box and saved lists, and a project's gift requests. */
.gifts { display: grid; gap: 14px; }
.gifts-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.gifts-count { font-weight: 800; color: var(--navy); }
.gifts .progress { width: 100%; }
.gifts-head { margin: -6px 0 -4px; }
.gifts-head div { grid-template-columns: minmax(150px, 42%) 1fr; align-items: baseline; gap: 12px; padding: 8px 0; }
.gifts-head dd { overflow-wrap: anywhere; }
.gifts > .btn, .gifts-again .btn { justify-self: start; }
.gifts-again { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--ice); }
.gifts-done { align-items: flex-start; font-weight: 800; }
.gifts-done .ic { flex: none; margin-top: 4px; }
.gift-list { list-style: none; padding: 0; display: grid; }
.gift { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; }
.gift + .gift { border-top: 1px solid var(--hair); }
.gift-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gift-main b { font-weight: 800; overflow-wrap: anywhere; }
.gift-main small { color: var(--slate); font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.gift.given .gift-main b { color: var(--slate); }
.gift-names { min-height: 168px; }
.gift-saved { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); }
.gift-saved-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.gift-saved-list li { display: flex; align-items: center; gap: 8px; }
.gift-saved-list .btn { flex: 1; min-width: 0; justify-content: flex-start; text-align: left; overflow-wrap: anywhere; }
.req-row.gift-req { grid-template-columns: minmax(0, 1fr) auto; }
.project-gifts .req-main .progress { width: 100%; max-width: 320px; margin-top: 6px; }

@media (min-width: 900px) {
  .gift { padding: 6px 0; }
  .gifts-head { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
  .gifts-head div { grid-template-columns: 1fr; gap: 2px; }
  .gifts-head div + div { border-top: 0; }
}
