/* ============================================================
   DONATION APPEAL — PROJECT DETAIL PAGE
   ============================================================ */

/* ── Layout ────────────────────────────────────────────── */
.Help-Me-to-grow-inner-wrapper {
  display: flex;
  gap: 0 32px;
  align-items: stretch; /* right column stretches to left column height so sticky has room */
}
.help-grow-business {
  padding-bottom: 36px;
}

/* ── Left column: Hero image ───────────────────────────── */
.help-grow-business-img-wrapper {
  width: 100%;
  max-height: 500px;
  min-height: 240px;
  overflow: hidden;
  border-radius: 20px;
  display: block;
  position: relative;
  background: #1a1a1a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}
.help-grow-business-img-wrapper img {
  object-fit: cover;
  object-position: center top;
  width: 100%;
  height: 100%;
  max-height: 500px;
  display: block;
  border-radius: 20px;
  transition: transform 0.6s ease;
}
.help-grow-business-img-wrapper:hover img {
  transform: scale(1.02);
}
.help-grow-business-img-wrapper .embed-responsive {
  border-radius: 20px;
  overflow: hidden;
}

/* ── Title & subtitle ──────────────────────────────────── */
.help-grow-business h1 {
  font-size: clamp(2rem, 1.75rem + 1.25vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.help-grow-business > p:first-of-type {
  font-weight: 400;
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.2rem);
  color: #555;
  letter-spacing: 0;
  margin-block: 16px 22px;
  line-height: 1.6;
}

/* ── Applicant-loan line ───────────────────────────────── */
.help-grow-business > p:not(:first-of-type) {
  font-size: 15px;
  color: #444;
  line-height: 1.55;
  margin-top: 18px;
}

/* ── Share buttons ─────────────────────────────────────── */
.help-grow-business .btn-group.flex-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.w-share-btn,
.fb-share-btn {
  flex: 1;
  height: 48px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  gap: 8px !important;
  border-radius: 12px !important;
  transition: filter 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.w-share-btn {
  background: #25d366 !important;
}
.fb-share-btn {
  background: #1877f2 !important;
}
.w-share-btn:hover,
.fb-share-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}
.w-share-btn img,
.fb-share-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 0 !important;
}

/* ── Quran verse ───────────────────────────────────────── */
.div-with-accordions h6,
.quran-verse {
  position: relative;
  font-weight: 400;
  font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.075rem);
  line-height: 1.7;
  letter-spacing: 0;
  color: #2d5a1a;
  background: linear-gradient(135deg, #f0f9eb 0%, #e8f5e0 100%);
  border-left: 4px solid #368420;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin-bottom: 28px;
  font-style: italic;
}

/* ── Accordions (story content) ────────────────────────── */
.div-with-accordions {
  border-top: 1px solid #e8e8e8;
  padding-top: 32px;
  display: none;
}
.div-with-accordions.desktop {
  display: block;
}
.div-with-accordions h4 {
  font-weight: 700;
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: 0;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #1a1a1a;
}
.div-with-accordions p {
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.65;
  letter-spacing: 0;
  color: #444;
  margin-bottom: 28px;
}
.div-with-accordions .accordion-item {
  border: none;
  border-bottom: 1px solid #e8e8e8;
  border-radius: 0;
}
.div-with-accordions .accordion-item button {
  font-weight: 700;
  font-size: clamp(1rem, 0.93rem + 0.35vw, 1.2rem);
  letter-spacing: 0;
  border: none;
  background: transparent;
  padding-inline: 0;
  padding-block: clamp(16px, 3vw, 26px);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  line-height: 1.35;
  color: #1a1a1a;
  transition: color 0.2s ease;
}
.div-with-accordions .accordion-button:not(.collapsed) {
  color: #368420;
  background-color: transparent;
  box-shadow: none;
}
.div-with-accordions .accordion-button::after {
  display: none;
}
.div-with-accordions .accordion-chevron {
  flex-shrink: 0;
  margin-left: auto;
  margin-top: 0.35em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: transform 0.38s cubic-bezier(0.33, 1, 0.68, 1), color 0.2s ease;
}
.div-with-accordions .accordion-chevron svg {
  display: block;
  vertical-align: middle;
}
.div-with-accordions .accordion-button:not(.collapsed) .accordion-chevron {
  transform: rotate(180deg);
  color: #368420;
}
.div-with-accordions .accordion-item .accordion-body {
  font-size: clamp(14.5px, 0.9rem + 0.3vw, 16px);
  line-height: 1.6;
  letter-spacing: 0;
  padding-inline: 0;
  padding-bottom: clamp(14px, 2.5vw, 22px);
  color: #444;
}
.div-with-accordions .accordion-body .sewa-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* CSS grid accordion animation */
.div-with-accordions .accordion > .accordion-item > .accordion-collapse.collapse {
  display: grid !important;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.33, 1, 0.68, 1);
}
.div-with-accordions .accordion > .accordion-item > .accordion-collapse.collapse.show {
  grid-template-rows: 1fr;
}
.div-with-accordions .seedout-accordion-panel-inner {
  min-height: 0;
  overflow: hidden;
}
.div-with-accordions .accordion-collapse.collapsing {
  display: grid !important;
  height: auto !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .div-with-accordions .accordion > .accordion-item > .accordion-collapse.collapse {
    transition: none;
  }
  .div-with-accordions .accordion-chevron {
    transition: none;
  }
}

/* Tags row */
.project-tags-label {
  font-weight: 700;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  color: #1a1a1a;
  margin-top: 28px;
  margin-bottom: 10px;
  display: block;
}
.project-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.project-tag-chip {
  display: inline-block;
  padding: 5px 14px;
  background: #f0f9eb;
  color: #2a6b22;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid #c8e6b8;
  line-height: 1.4;
  transition: background 0.18s ease, color 0.18s ease;
}
.project-tag-chip:hover {
  background: #368420;
  color: #fff;
  border-color: #368420;
}

/* ── RIGHT COLUMN: Donation Card ───────────────────────── */
.donation-detail-card {
  padding: 0;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  border: 1px solid #efefef;
  border-top: 4px solid #368420;
  flex-shrink: 0;
  width: 440px;
  height: fit-content;
  position: sticky;
  top: 24px;
  background: #fff;
}

/* Card inner padding applied to direct content areas */
.donation-card__body {
  padding: 22px 26px 0;
}
.donation-card__footer-area {
  padding: 0 26px 22px;
}

/* ── Progress / funding stats — single row ── */
.donation-bar-detail {
  padding-bottom: 6px;
}

.detail-fund-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.detail-fund-row__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.detail-fund-row__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.detail-fund-row .app-funded-amount {
  font-family: Outfit, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: #282728;
  letter-spacing: -0.01em;
}
.detail-fund-row .app-funded-goal {
  font-family: Outfit, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: #393939;
}
.funded-pct-badge {
  display: inline-flex;
  align-items: center;
  background: #f0f9eb;
  color: #2a7020;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid #c8e6b8;
  transition: background 0.3s ease, color 0.3s ease;
  line-height: 1;
  align-self: center;
}
.time-left {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: #e06400;
  align-self: center;
}
.time-left img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

/* Progress bar */
.donation-bar-detail .progress {
  border-radius: 100px;
  height: 8px;
  background: #e4f0dc;
  margin-block: 0 0;
  overflow: hidden;
}
.donation-bar-detail .progress-bar {
  height: 8px;
  background: linear-gradient(90deg, #2d7019 0%, #5ab82e 100%);
  border-radius: 100px;
  transition: width 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Donation amount picker + CTA ──────────────────────── */
.donation-detail-card .with-cash-btn {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
  margin-block: 12px 8px;
}

/* Custom donation amount picker */
.donation-detail-card .donation-amount-field {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  align-self: stretch;
}
.donation-amount-field__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}
.donation-amount-field__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 50px;
  padding: 0 14px 0 18px;
  margin: 0;
  border: 1.5px solid #dde8d9;
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: #f7fbf5;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: #1a1a1a;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.donation-amount-field__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.donation-amount-field__chevron {
  flex-shrink: 0;
  display: flex;
  color: #555;
  transition: transform 0.22s ease;
}
.donation-amount-field.is-open .donation-amount-field__chevron {
  transform: rotate(180deg);
}
.donation-amount-field__trigger:hover {
  border-color: #b8d9a8;
  background: #f0f9eb;
}
.donation-amount-field__trigger:focus {
  outline: none;
}
.donation-amount-field__trigger:focus-visible {
  border-color: #368420;
  box-shadow: 0 0 0 3px rgba(54, 132, 32, 0.18);
  z-index: 3;
}
.donation-amount-field.is-open .donation-amount-field__trigger {
  border-color: #368420;
  box-shadow: 0 0 0 3px rgba(54, 132, 32, 0.12);
  z-index: 4;
  background: #f0f9eb;
}
.donation-amount-field__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e0eeda;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.13);
  max-height: min(280px, 55vh);
  overflow-y: auto;
}
.donation-amount-field__option {
  padding: 11px 18px;
  margin: 0 6px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.donation-amount-field__option:hover,
.donation-amount-field__option:focus {
  outline: none;
  background: #f0f9eb;
}
.donation-amount-field__option.is-selected {
  background: #e0f2d5;
  color: #1f5c17;
  font-weight: 700;
}

/* Donate CTA button */
.donation-detail-card .with-cash-btn .donation-btn-w-100.card-donate-btn {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
  height: 50px;
  margin-block: 0;
  padding-inline: 22px;
  border-radius: 0 12px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #2f7a1d 0%, #4faa29 100%);
  box-shadow: 0 4px 14px rgba(54, 132, 32, 0.3);
  transition: filter 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease;
}
.donation-detail-card .with-cash-btn .donation-btn-w-100.card-donate-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(54, 132, 32, 0.38);
}
.donation-detail-card .checkout-container .donation-btn-w-100 {
  margin-block: 20px;
  border-radius: 12px;
}

/* Trust badges row */
.donation-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 0 12px;
  flex-wrap: wrap;
}
.donation-trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
}
.donation-trust-badge svg {
  color: #368420;
  flex-shrink: 0;
}

/* ── "People just donated" ─────────────────────────────── */
.donation-detail-card .people-just-donated {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 10px;
  margin-bottom: 0;
}
.donation-detail-card .people-just-donated__group-avatar {
  background-color: #2e7d32;
  border-color: rgba(255, 255, 255, 0.35);
  width: 44px;
  height: 44px;
}
.donation-detail-card .people-just-donated__group-svg {
  width: clamp(20px, 55%, 28px);
  height: auto;
  color: #fff;
  display: block;
}
.donation-detail-card .people-just-donated h6 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}
.donation-detail-card .people-just-donated h6 span {
  color: #368420;
  font-weight: 800;
}

/* ── Donor list ────────────────────────────────────────── */
.donation-detail-card .person-donated-list {
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}
.donation-detail-card .person-donated-list > li {
  padding-block: 10px;
  border-bottom: 1px solid #f5f5f5;
}
.donation-detail-card .person-donated-list > li:last-child {
  border-bottom: none;
}
.donation-detail-card .person-just-donated {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}
.donation-detail-card .donator-img--letter-toned {
  background-color: var(--dj-bg, #393939);
  border-color: rgba(255, 255, 255, 0.35);
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
}
.donation-detail-card .donator-img--letter-toned span {
  color: var(--dj-fg, #fff);
  font-size: 16px !important;
}
.donation-detail-card .person-just-donated .donator-img--photo {
  background-color: #e8e8e8;
  border-color: #bdbdbd;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
}
.donation-detail-card .donator-details h6 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 2px;
  line-height: 1.3;
}
.donation-detail-card .donator-details p {
  font-size: 13px;
  color: #777;
  margin: 0;
  gap: 6px;
  white-space: normal;
}
.donation-detail-card .donator-details p span:first-child {
  width: auto;
  font-weight: 600;
  color: #368420;
}
.donation-detail-card .donator-details p span:last-child {
  width: auto;
  text-decoration: none;
  color: #999;
}

/* Linked donor rows — sidebar */
.donation-detail-card .person-just-donated--linked {
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  transition: background 0.15s ease;
  margin: -4px -6px;
  padding: 4px 6px;
  display: flex;
}
.donation-detail-card .person-just-donated--linked:hover {
  background: #f4faf0;
}
.donation-detail-card .person-just-donated--linked:hover .donator-details h6 {
  color: #368420;
}

/* Linked donor rows — modal */
.donors-modal-item__link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  margin: -6px -8px;
  padding: 6px 8px;
  transition: background 0.15s ease;
}
.donors-modal-item--linked:hover .donors-modal-item__link,
.donors-modal-item__link:hover {
  background: #f4faf0;
}
.donors-modal-item__link:hover .donors-modal-item__name {
  color: #368420;
}

/* See All / See Top buttons */
.donation-detail-card .btn-group:has(.see-all-btn) {
  display: flex;
  gap: 0;
  padding-bottom: 8px;
  padding-top: 4px;
}
.donation-detail-card .see-all-btn {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  background: none;
  border: 1.5px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.donation-detail-card .see-all-btn:first-child {
  border-right: none;
  border-radius: 10px 0 0 10px;
}
.donation-detail-card .see-all-btn:last-child {
  border-radius: 0 10px 10px 0;
}
.donation-detail-card .see-all-btn:hover {
  background: #f0f9eb;
  border-color: #b8d9a8;
  color: #2a7020;
}
.donation-detail-card .see-all-btn--top {
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.donation-detail-card .see-all-btn--top:hover {
  background: #f0f9eb;
  border-color: #b8d9a8;
}
.donation-detail-card .see-all-btn--top:focus-visible {
  outline: 2px solid #368420;
  outline-offset: 2px;
}

/* Small donor avatars: override global 64px */
.Help-Me-to-grow-inner-wrapper .donator-img {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: none;
}

/* ── Contribution accordion donors grid ────────────────── */
.contribution-donors {
  background: transparent;
  border-radius: 0;
  padding: clamp(8px, 1.5vw, 12px) 0;
}
.contribution-donors__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.8vw, 18px) clamp(8px, 2vw, 14px);
  align-items: start;
  justify-items: center;
  text-align: center;
}
@media (min-width: 480px) {
  .contribution-donors__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .contribution-donors__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 12px;
  }
}
.contribution-donors__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 120px;
  margin-inline: auto;
  gap: 5px;
}
@media (prefers-reduced-motion: no-preference) {
  .contribution-donors__card {
    animation: contributionDonorIn 0.4s cubic-bezier(0.33, 1, 0.68, 1) backwards;
  }
  .contribution-donors__card:nth-child(1) { animation-delay: 0.03s; }
  .contribution-donors__card:nth-child(2) { animation-delay: 0.06s; }
  .contribution-donors__card:nth-child(3) { animation-delay: 0.09s; }
  .contribution-donors__card:nth-child(4) { animation-delay: 0.12s; }
  .contribution-donors__card:nth-child(5) { animation-delay: 0.15s; }
  .contribution-donors__card:nth-child(6) { animation-delay: 0.18s; }
  .contribution-donors__card:nth-child(7) { animation-delay: 0.21s; }
  .contribution-donors__card:nth-child(8) { animation-delay: 0.24s; }
}
@keyframes contributionDonorIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.contribution-donors__avatar-wrap {
  width: clamp(40px, 11vw, 52px);
  height: clamp(40px, 11vw, 52px);
  border-radius: 50%;
  overflow: hidden;
  background: #d8d8d8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contribution-donors__avatar-wrap--initial {
  background: var(--cd-avatar-bg, #d8d8d8);
}
.contribution-donors__avatar-wrap--photo {
  background: #e8e8e8;
}
.contribution-donors__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contribution-donors__avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  line-height: 1;
  color: #333;
  letter-spacing: 0;
  user-select: none;
}
.contribution-donors__avatar-wrap--initial .contribution-donors__avatar-initial {
  color: var(--cd-avatar-fg, #333);
}
.contribution-donors__name {
  font-weight: 700;
  font-size: clamp(11px, 0.72rem + 0.2vw, 13px);
  color: #1b7a3c;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.contribution-donors__amount {
  font-weight: 400;
  font-size: clamp(10px, 0.68rem + 0.15vw, 12px);
  color: #666;
  line-height: 1.2;
}
.contribution-donors__link {
  display: contents;
  text-decoration: none;
  color: inherit;
}
.contribution-donors__card:has(.contribution-donors__link) {
  border-radius: 12px;
  transition: background 0.15s ease;
  padding: 4px;
  margin: -4px;
}
.contribution-donors__card:has(.contribution-donors__link):hover {
  background: #f0f9eb;
}
.contribution-donors__card:has(.contribution-donors__link):hover .contribution-donors__name {
  color: #368420;
}
.contribution-donors__empty {
  margin: 0;
  font-size: clamp(12px, 0.82rem + 0.15vw, 14px);
  color: #555;
  text-align: center;
  line-height: 1.45;
}
@media (prefers-reduced-motion: reduce) {
  .contribution-donors__card { animation: none; }
}

/* ── Field Partner dropdown ─────────────────────────────── */
.field-partner-dropdown #field-partner-toggle-btn {
  position: relative;
}
.field-partner-dropdown.is-expanded #field-partner-toggle-btn[aria-expanded="true"] .field-partner-arrow--header {
  rotate: 0deg;
}
.field-partner-dropdown .field-partner-arrow--header {
  transition: opacity 0.3s ease, transform 0.32s ease, visibility 0s linear 0s;
  opacity: 1;
  visibility: visible;
  transform: rotate(0deg);
}
.field-partner-dropdown.is-expanded .field-partner-arrow--header {
  opacity: 0;
  visibility: hidden;
  transform: rotate(180deg) scale(0.92);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.32s ease, visibility 0s linear 0.3s;
}
.field-partner-dropdown .field-partner-footer-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease 0.08s,
    max-height 0.35s ease,
    margin 0.35s ease,
    padding 0.35s ease,
    visibility 0s linear 0.35s;
}
.field-partner-dropdown.is-expanded .field-partner-footer-toggle {
  max-height: 72px;
  margin-top: 8px;
  padding-top: 8px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.32s ease 0.1s,
    max-height 0.4s ease,
    margin 0.35s ease,
    padding 0.35s ease,
    visibility 0s linear 0s;
}
.field-partner-dropdown .field-partner-arrow--footer {
  transition: opacity 0.28s ease, transform 0.35s ease;
  transform: rotate(0deg);
}
.field-partner-dropdown.is-expanded .field-partner-arrow--footer {
  transform: rotate(180deg);
}
.Field-Partner h4 {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
}

/* ── Donations Modal — full redesign ───────────────────── */
.donors-modal-dialog {
  max-width: 560px;
}
.donors-modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

/* Header */
.donors-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
  gap: 16px;
}
.donors-modal-header__left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.donors-modal-header__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f5e0 0%, #d0ecbf 100%);
  color: #2d7019;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.donors-modal-header__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 2px;
  line-height: 1.2;
}
.donors-modal-header__sub {
  font-size: 13px;
  color: #777;
  margin: 0;
  line-height: 1.3;
}
.donors-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid #e8e8e8;
  background: #fff;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.donors-modal-close:hover {
  background: #f5f5f5;
  border-color: #ccc;
  color: #1a1a1a;
}

/* Funding summary bar inside modal */
.donors-modal-progress {
  padding: 20px 28px 0;
}
.donors-modal-progress__stats {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.donors-modal-progress__funded {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: Outfit, sans-serif;
}
.donors-modal-progress__funded small {
  font-size: 12px;
  font-weight: 400;
  color: #777;
  margin-left: 4px;
}
.donors-modal-progress__pct {
  font-size: 13px;
  font-weight: 700;
  color: #368420;
  background: #f0f9eb;
  padding: 2px 10px;
  border-radius: 50px;
  border: 1px solid #c8e6b8;
}
.donors-modal-progress__bar-wrap {
  height: 7px;
  background: #e4f0dc;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 6px;
}
.donors-modal-progress__bar {
  height: 7px;
  background: linear-gradient(90deg, #2d7019 0%, #5ab82e 100%);
  border-radius: 100px;
}
.donors-modal-progress__goal {
  font-size: 12px;
  color: #888;
  margin: 0;
}

/* Tab nav */
.donors-modal-tabs-wrap {
  padding: 18px 28px 0;
}
.donors-modal-tabs {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 4px;
}
.donors-modal-tabs .nav-item {
  flex: 1;
}
.donors-modal-tab {
  width: 100%;
  height: 36px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.donors-modal-tab.active,
.donors-modal-tab[aria-selected="true"] {
  background: #fff;
  color: #1a1a1a;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.donors-modal-tab:hover:not(.active) {
  color: #368420;
}

/* Donor list */
.donors-modal-list-wrap {
  padding: 12px 28px 0;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0d0d0 transparent;
}
.donors-modal-list-wrap::-webkit-scrollbar {
  width: 4px;
}
.donors-modal-list-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.donors-modal-list-wrap::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 4px;
}
/* No cross-fade between tabs */
#donateNowModal .tab-pane.fade {
  transition: none !important;
}
.donors-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.donors-modal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f2f2f2;
  position: relative;
}
.donors-modal-item:last-child {
  border-bottom: none;
}

/* Rank badge (Top tab) — plain neutral, no colour highlight */
.donors-modal-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #777;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Letter avatar */
.donors-modal-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background-color: var(--av-bg, #393939);
  color: var(--av-fg, #fff);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}
.donors-modal-item__info {
  flex: 1 1 auto;
  min-width: 0;
}
.donors-modal-item__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.donors-modal-item__time {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 1px;
}
.donors-modal-item__amount {
  font-size: 14px;
  font-weight: 700;
  color: #368420;
  flex-shrink: 0;
  white-space: nowrap;
}
.donors-modal-empty {
  text-align: center;
  padding: 32px 0;
  color: #888;
  font-size: 14px;
}

/* Footer CTA */
.donors-modal-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}
.donors-modal-footer .donation-btn-w-100 {
  margin-block: 0;
  border-radius: 12px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.donors-modal-footer .donation-btn-w-100:not(.is-checkout):not(.is-processing) {
  background: linear-gradient(135deg, #2f7a1d 0%, #4faa29 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(54, 132, 32, 0.28);
}
.donors-modal-footer .donation-btn-w-100:not(.is-checkout):not(.is-processing):hover {
  filter: brightness(1.07);
}
.donors-modal-footer .donation-btn-w-100.is-processing {
  background: transparent;
  border: 1.5px solid #368420;
  color: #368420;
  text-transform: none;
  box-shadow: none;
}
.donors-modal-footer .donation-btn-w-100.is-checkout {
  background: #fff;
  border: 1.5px solid #368420;
  color: #368420;
  text-transform: none;
  font-weight: 600;
  box-shadow: none;
}
.donors-modal-footer .donation-btn-w-100.is-checkout:hover {
  background: #368420;
  color: #fff;
}

/* ── Mobile fixed bottom donate bar ───────────────────── */
.mobile-donate-bar {
  display: none; /* hidden on desktop */
}
@media (max-width: 991px) {
  .mobile-donate-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-donate-bar--checkout {
    align-items: center;
  }
  .mobile-donate-bar__inner {
    display: flex;
    gap: 10px;
    align-items: stretch;
    max-width: 560px;
    margin: 0 auto;
  }
  .mobile-donate-bar__amount {
    flex: 1 1 auto;
    position: relative;
  }
  .mobile-donate-bar__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 50px;
    padding: 0 14px 0 16px;
    border: 1.5px solid #dde8d9;
    border-right: none;
    border-radius: 12px 0 0 12px;
    background: #f7fbf5;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
  }
  .mobile-donate-bar__trigger.is-open {
    border-color: #368420;
    background: #f0f9eb;
  }
  .mobile-donate-bar__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-donate-bar__list {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 6px);
    z-index: 60;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e0eeda;
    border-radius: 14px;
    box-shadow: 0 -8px 28px rgba(0,0,0,0.13);
    max-height: 220px;
    overflow-y: auto;
  }
  .mobile-donate-bar__option {
    padding: 11px 16px;
    margin: 0 6px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s ease;
  }
  .mobile-donate-bar__option:hover { background: #f0f9eb; }
  .mobile-donate-bar__option.is-selected { background: #e0f2d5; color: #1f5c17; font-weight: 700; }
  .mobile-donate-bar__btn {
    flex: 0 0 auto;
    height: 50px;
    padding: 0 22px;
    border: none;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(135deg, #2f7a1d 0%, #4faa29 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(54,132,32,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: filter 0.18s ease;
  }
  .mobile-donate-bar__btn:hover { filter: brightness(1.08); color: #fff; }
  .mobile-donate-bar__btn--full {
    flex: 1;
    border-radius: 12px;
    width: 100%;
  }
  /* Hide in-card donate controls — mobile bar replaces them */
  .donation-detail-card .with-cash-btn,
  .donation-detail-card .checkout-container {
    display: none !important;
  }
  /* Add bottom padding to page so content isn't hidden behind fixed bar */
  .Help-Me-to-grow-wrapper {
    padding-bottom: 80px !important;
  }
}

/* Success story detail left column */
.ss-detail-left {
  flex: 1 1 0;
  min-width: 0;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 991px) {
  .Help-Me-to-grow-inner-wrapper {
    flex-direction: column;
  }
  .donation-detail-card {
    width: 100%;
    position: static;
    margin-bottom: 40px;
  }
  .div-with-accordions {
    display: block;
  }
  .div-with-accordions.desktop {
    display: none;
  }
  .donation-card__body {
    padding: 18px 20px 0;
  }
  .donation-card__footer-area {
    padding: 0 20px 18px;
  }
  .donation-detail-card .field-partner-dropdown[style] {
    padding-inline: 20px !important;
  }
}
@media (max-width: 767px) {
  .Help-Me-to-grow-wrapper {
    padding-top: 28px;
  }
  .help-grow-business h1 {
    font-size: 1.75rem;
  }
}
@media (max-width: 420px) {
  .donation-detail-card .with-cash-btn {
    flex-direction: column;
    gap: 10px;
  }
  .donation-detail-card .with-cash-btn .donation-amount-field__trigger {
    border-radius: 12px;
    border-right: 1.5px solid #dde8d9;
  }
  .donation-detail-card .with-cash-btn .donation-amount-field__list {
    top: calc(100% + 8px);
  }
  .donation-detail-card .with-cash-btn .donation-btn-w-100.card-donate-btn {
    width: 100%;
    border-radius: 12px;
  }
}
