/* Donation page styles */

.custom-amount-wrapper {
  margin-top: 0.5em;
  margin-bottom: 2em;
}

.custom-amount-link {
  font-size: 0.95rem;
  text-decoration: underline;
}

.custom-amount-form.hidden {
  display: none;
}

.custom-amount-form {
  margin-top: 1em;

  label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
  }

  .input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 400px;
  }

  .input-prefix {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-brand-blue);
  }

  input[type="number"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--color-border-dark);
    border-radius: 4px;

    &:focus {
      outline: 2px solid var(--color-brand-skyblue);
      outline-offset: 1px;
    }
  }
}

/* Loading state for donation cards */
.card-image.loading {
  opacity: 0.5;
  pointer-events: none;
  cursor: wait;
}

/* Checkout page */
#checkout {
  padding: 2em 0 4em;

  h1 {
    margin-bottom: 0.25em;
  }

  .checkout-summary {
    font-size: 1.25rem;
    color: var(--color-brand-blue);
    margin-bottom: 2em;
  }
}

#stripe-checkout-container {
  min-height: 400px;
}

/* Admin donations */
.donation-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--color-brand-blue-screen);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;

  strong {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-brand-blue);
  }

  span {
    font-size: 1.5rem;
    font-weight: 700;
  }
}
