/* DFN Stripe Donate — styled to match Dog Foster Network design system */

.dfn-stripe-donate-wrap {
  max-width: 100%;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}

.dfn-stripe-donate-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.dfn-stripe-donate-card h2 {
  display: none; /* heading handled by the outer block */
}

.dfn-stripe-donate-desc {
  display: none; /* description handled by the outer block */
}

/* Frequency toggle */
.dfn-frequency-wrap {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: #ddeeff;
  border-radius: 999px;
  padding: 4px;
}

.dfn-freq-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: .2s ease;
  color: #5a6a80;
}

.dfn-freq-btn.is-active {
  background: #0b4a7e;
  color: #fff;
  box-shadow: 0 2px 8px rgba(11,74,126,.25);
}

/* Labels */
.dfn-label {
  display: block;
  margin: 18px 0 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #0b4a7e;
}

/* Amount grid */
.dfn-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dfn-amount-btn {
  border: 1.5px solid rgba(11,74,126,.18);
  background: #fff;
  border-radius: 12px;
  padding: 14px 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #0b4a7e;
  cursor: pointer;
  transition: .2s ease;
}

.dfn-amount-btn:hover {
  border-color: #63c04b;
  background: rgba(99,192,75,.07);
}

.dfn-amount-btn.is-active {
  border-color: #63c04b;
  background: rgba(99,192,75,.10);
  color: #073660;
}

/* Inputs */
.dfn-input-wrap {
  position: relative;
}

.dfn-currency-symbol {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 15px;
  color: #0b4a7e;
  pointer-events: none;
  z-index: 1;
  line-height: 1;
  width: 16px;
  text-align: center;
}

.dfn-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 14px 14px 34px !important;
  border: 1.5px solid rgba(11,74,126,.18);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #0f172a;
  background: #fff;
  transition: border-color .2s;
}

.dfn-input:focus {
  outline: none;
  border-color: #0b4a7e;
}

.dfn-input::placeholder {
  color: #aab4c0;
}

.dfn-donor-email.dfn-input {
  padding-left: 14px !important;
}

/* Buttons */
.dfn-primary-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 15px 18px;
  margin-top: 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  background: #63c04b;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}

.dfn-primary-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.dfn-secondary-btn {
  display: block;
  width: 100%;
  border: 1.5px solid rgba(11,74,126,.18);
  border-radius: 999px;
  padding: 13px 18px;
  margin-top: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  background: transparent;
  color: #0b4a7e;
  cursor: pointer;
  transition: background .2s;
}

.dfn-secondary-btn:hover {
  background: rgba(11,74,126,.05);
}

.dfn-selected-amount {
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 15px;
  color: #0b4a7e;
}

.dfn-payment-element-mount {
  margin: 12px 0 8px;
}

.dfn-donate-message {
  margin-top: 16px;
  font-weight: 700;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
}

.dfn-donate-message.is-error   { color: #c0392b; }
.dfn-donate-message.is-success { color: #4a9e35; }

.dfn-stripe-donate-admin-warning {
  padding: 14px;
  border: 1px solid rgba(11,74,126,.2);
  background: #eef6ff;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #0b4a7e;
}

@media (max-width: 640px) {
  .dfn-amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
