/* ==========================================================================
   WCDP Spendenformular – Redesign CSS v1.2
   Keren Hayesod Deutschland (keren-hayesod.de)
   Kein Schnickschnack. Sauber, klar, vertrauenswürdig.
   ========================================================================== */

/* ---------- Grundlayout ---------- */
.wcdp-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Überschrift ---------- */
.wcdp-donation-title {
  font-size: 1.5em !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  text-align: center !important;
  margin-bottom: 0.3em !important;
}

/* ---------- Section-Labels ---------- */
.wcdp-variation-heading label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin-bottom: 0.8em !important;
  display: block !important;
}

/* ---------- Optionen-Grid ---------- */
ul.wcdp_options {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1.5em 0 !important;
}

/* ---------- Einzelne Option ---------- */
.wcdp_options > li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.wcdp_options > li > label {
  display: block !important;
  padding: 14px 16px !important;
  border: 1.5px solid #d5d5d5 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #333 !important;
  font-weight: 500 !important;
  font-size: 0.95em !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  line-height: 1.4 !important;
}

.wcdp_options > li > label:hover {
  border-color: #1a3e72 !important;
  background: #f7f8fb !important;
}

/* ---------- Radio VERSTECKEN ---------- */
.wcdp_options > li > label input[type="radio"] {
  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;
}

/* ---------- Ausgewählt ---------- */
.wcdp_options > li > label:has(input:checked) {
  border-color: #1a3e72 !important;
  background: #1a3e72 !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.wcdp_options > li > label.wcdp-selected {
  border-color: #1a3e72 !important;
  background: #1a3e72 !important;
  color: #fff !important;
  font-weight: 600 !important;
}

/* ---------- Betragsfeld ---------- */
.wcdp_variation .wcdp-row input[type="number"],
.wcdp_variation .wcdp-row input[type="text"],
.wcdp_variation .wcdp-row select,
#wcdp_va_amount input {
  border: 1.5px solid #d5d5d5 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 1em !important;
  background: #fff !important;
  transition: border-color 0.15s ease;
}

.wcdp_variation .wcdp-row input:focus,
.wcdp_variation .wcdp-row select:focus,
#wcdp_va_amount input:focus {
  border-color: #1a3e72 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(26, 62, 114, 0.1) !important;
}

/* ---------- Spenden-Button ---------- */
.wcdp-body .button-row .single_add_to_cart_button,
.wcdp-body .button-row button[type="submit"],
.wcdp-body button.single_add_to_cart_button,
#wcdp-get-send {
  background: #1a3e72 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 15px 44px !important;
  font-size: 1.05em !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  text-transform: none !important;
}

.wcdp-body .button-row .single_add_to_cart_button:hover,
.wcdp-body .button-row button[type="submit"]:hover,
.wcdp-body button.single_add_to_cart_button:hover,
#wcdp-get-send:hover {
  background: #15325c !important;
}

/* ---------- Trennlinie ---------- */
.wcdp-divider {
  border-top: 1px solid #eee !important;
  margin: 1.5em 0 !important;
}

/* ---------- Fehlermeldung ---------- */
.wcdp-error-default {
  background: #fef3f3 !important;
  border: 1px solid #e0c0c0 !important;
  border-radius: 8px !important;
  padding: 14px 18px !important;
  color: #b33 !important;
  font-size: 0.9em !important;
  line-height: 1.5 !important;
}

/* ---------- Trust-Line (per JS) ---------- */
.wcdp-trust-line {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wcdp-trust-line svg {
  width: 13px;
  height: 13px;
  color: #2d8a56;
}

/* ---------- Impact-Note (per JS) ---------- */
.wcdp-impact-note {
  background: #f5f7fb;
  border: 1px solid #dde2ec;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  color: #1a3e72;
  line-height: 1.5;
  margin: 1em 0;
  display: none;
}

.wcdp-impact-note.visible {
  display: block;
}

.wcdp-impact-note strong {
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  ul.wcdp_options {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 400px) {
  ul.wcdp_options {
    grid-template-columns: 1fr !important;
  }
}
