/* Månadsgivare – formulärstil */

#mg-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 560px;
  margin: 0 auto;
  color: #1a1a1a;
}

/* Hero */
.mg-hero { text-align: center; margin-bottom: 2rem; }
.mg-heart { font-size: 36px; margin-bottom: 0.75rem; }
.mg-hero h2 { font-size: 24px; font-weight: 600; margin: 0 0 0.4rem; }
.mg-hero p  { font-size: 14px; color: #666; margin: 0; }

/* Sektionsrubrik */
.mg-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
  margin: 1.5rem 0 0.6rem;
}

/* Beloppsrutnät */
.mg-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 0.5rem;
}
.mg-amount-btn {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mg-amount-btn:hover { border-color: #c0392b; }
.mg-amount-btn.selected {
  border: 2px solid #c0392b;
  background: #fff5f5;
}
.mg-sek { font-size: 17px; font-weight: 600; color: #1a1a1a; }
.mg-amount-btn.selected .mg-sek { color: #c0392b; }
.mg-mo  { font-size: 11px; color: #999; margin-top: 2px; }

/* Eget belopp */
.mg-custom-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 14px;
  height: 48px;
  background: #fff;
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}
.mg-custom-amount input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 15px;
  background: transparent;
  color: #1a1a1a;
}

/* Formulärfält */
.mg-row { display: grid; gap: 8px; margin-bottom: 8px; }
.mg-row.mg-two { grid-template-columns: 1fr 1fr; }
.mg-field { position: relative; }
.mg-field label {
  display: block;
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
  font-weight: 500;
}
.mg-field input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.mg-field input:focus {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

/* Stripe-ruta */
.mg-stripe-box {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-top: 0.25rem;
}
.mg-stripe-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  color: #555;
}
.mg-stripe-header strong { color: #6772e5; }
.mg-stripe-body { padding: 0 14px; }
.mg-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  border-bottom: 1px solid #f0f0f0;
}
.mg-card-row:last-child { border-bottom: none; }
.mg-card-row label {
  font-size: 12px;
  color: #888;
  min-width: 90px;
  font-weight: 500;
}
.mg-card-row.mg-split { gap: 0; }
.mg-stripe-el { flex: 1; }
.mg-divider { width: 1px; height: 28px; background: #eee; margin: 0 10px; }

/* Fel */
.mg-error {
  background: #fff5f5;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #c0392b;
  margin-top: 12px;
}

/* Knapp */
.mg-submit-btn {
  width: 100%;
  height: 52px;
  margin-top: 1.25rem;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.mg-submit-btn:hover:not(:disabled) { background: #a93226; }
.mg-submit-btn:active:not(:disabled) { transform: scale(0.99); }
.mg-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Trust-rad */
.mg-trust {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.85rem;
  font-size: 12px;
  color: #999;
  flex-wrap: wrap;
}

/* Bekräftelse */
#mg-success-view { text-align: center; padding: 3rem 1rem; }
.mg-success .mg-check { font-size: 48px; margin-bottom: 1rem; }
.mg-success h2 { font-size: 22px; font-weight: 600; margin-bottom: 0.5rem; }
.mg-success p  { font-size: 14px; color: #555; line-height: 1.7; }

/* Responsivt */
@media (max-width: 480px) {
  .mg-amount-grid { grid-template-columns: repeat(2, 1fr); }
  .mg-row.mg-two  { grid-template-columns: 1fr; }
}
