/* =========================================================
   ECHOHOLICS DONATIONS — content region styles.
   Hardcoded hex per theme, no CSS custom properties (add-on rule).
========================================================= */

.ech-donate-app { font-family: "Just Sanz", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; max-width: 480px; }
.ech-donate-app * { box-sizing: border-box; }
.ech-donate-app input, .ech-donate-app textarea, .ech-donate-app select { font-family: inherit; }

.ech-history-app { max-width: 720px; }
.ech-history-title { font-family: "Gunterz", Georgia, serif; font-weight: 600; font-size: 17px; margin: 0; line-height: 1.25; }

.ech-recurring-card { margin-bottom: 24px; }
.ech-recurring-amount { font-family: "Gunterz", Georgia, serif; font-weight: 700; font-size: 32px; margin: 4px 0 8px; }
.ech-recurring-amount span { font-family: "Just Sanz", sans-serif; font-size: 14px; font-weight: 400; margin-left: 4px; }

.ech-history-table { margin-top: 4px; }
.ech-history-header,
.ech-history-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  font-size: 13px;
}
.ech-history-header {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.ech-history-row + .ech-history-row,
.ech-history-header + .ech-history-row { border-top-width: 1px; border-top-style: solid; }
.ech-history-amount { font-weight: 600; }
.ech-receipt-link { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }

@media (max-width: 640px) {
  .ech-history-header { display: none; }
  .ech-history-row { grid-template-columns: 1fr 1fr; row-gap: 6px; }
}

.ech-card { border-radius: 10px; padding: 24px; }

.ech-donate-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }

.ech-frequency-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.ech-frequency-toggle .ech-freq-pill { flex: 1; }

.ech-donate-gate { border-radius: 8px; padding: 16px; margin-bottom: 4px; }
.ech-donate-gate .b { display: flex !important; width: 100%; }

.ech-field { margin-bottom: 18px; }
.ech-field:last-child { margin-bottom: 0; }
.ech-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ech-label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.ech-hint { font-size: 12px; margin: 6px 0 0; line-height: 1.5; }

/* !important because this form also renders on the public /donate/ page,
   where Elementor's global form-field styling would otherwise win. */
.ech-input, .ech-textarea {
  width: 100% !important; border-radius: 6px !important; padding: 12px 14px !important;
  font-size: 15px !important; font-weight: 400 !important;
  border-width: 1px !important; border-style: solid !important; box-shadow: none !important;
}
.ech-textarea { resize: vertical; min-height: 70px; line-height: 1.6; }

.ech-amount-input-wrap { position: relative; }
.ech-amount-prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; }
.ech-amount-input-wrap .ech-input { padding-left: 26px; }

.ech-checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 16px 0; cursor: pointer; }
.ech-checkbox-row input[type="checkbox"] { width: 16px; height: 16px; }

#ech-payment-element { min-height: 40px; }

.ech-donate-error { border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-top: 14px; }

.ech-donate-success h3 { font-family: "Gunterz", Georgia, serif; font-weight: 700; font-size: 24px; margin: 0 0 8px; }
.ech-donate-success p { font-size: 14px; line-height: 1.6; margin: 0; }

/* =========================================================
   BUTTONS — reset every <button> in the app up front (learned
   the hard way on the profile plugin: anything without this
   is exposed to Elementor's global button CSS, not just .b
   elements).
========================================================= */
.ech-donate-app button {
  all: unset !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  font-family: "Just Sanz", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif !important;
}
.ech-donate-app button.b {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 13px 26px !important;
  border-radius: 6px !important;
  border-width: 0 !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.ech-donate-app .b:disabled { cursor: not-allowed !important; }

.ech-donate-app .ech-amount-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 12px 8px !important;
  border-radius: 6px !important;
  border-width: 1px !important;
  border-style: solid !important;
  text-align: center !important;
}

.ech-donate-app .ech-freq-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: "Just Sanz", -apple-system, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 10px 12px !important;
  border-radius: 6px !important;
  border-width: 1px !important;
  border-style: solid !important;
  width: 100% !important;
}

/* =========================================================
   DARK — priority pass
========================================================= */
html:not(.psk-theme-light) .ech-card { background: #161616; border: 1px solid #2A2A2A; }
html:not(.psk-theme-light) .ech-label { color: #9A9A9A; }
html:not(.psk-theme-light) .ech-hint { color: #6B6B6B; }
html:not(.psk-theme-light) .ech-input,
html:not(.psk-theme-light) .ech-textarea { background: #1E1E1E !important; border-color: #3A3A3A !important; color: #E3E3E3 !important; }
html:not(.psk-theme-light) .ech-input:focus,
html:not(.psk-theme-light) .ech-textarea:focus { border-color: #4B9BD5; outline: 2px solid #4B9BD5; outline-offset: 2px; }
html:not(.psk-theme-light) .ech-amount-prefix { color: #9A9A9A; }
html:not(.psk-theme-light) .ech-checkbox-row { color: #9A9A9A; }

html:not(.psk-theme-light) .ech-amount-pill { background: #1E1E1E !important; color: #9A9A9A !important; border-color: #3A3A3A !important; }
html:not(.psk-theme-light) .ech-amount-pill.is-active { background: #33769F !important; color: #FFFFFF !important; border-color: transparent !important; }

html:not(.psk-theme-light) .ech-freq-pill { background: #1E1E1E !important; color: #9A9A9A !important; border-color: #3A3A3A !important; }
html:not(.psk-theme-light) .ech-freq-pill.is-active { background: #33769F !important; color: #FFFFFF !important; border-color: transparent !important; }
html:not(.psk-theme-light) .ech-donate-gate { background: #12202B; border: 1px solid #2A2A2A; }

html:not(.psk-theme-light) .b-pri { background: #33769F !important; color: #FFFFFF !important; }
html:not(.psk-theme-light) .b-pri:hover:not(:disabled) { background: #3A86B7 !important; }
html:not(.psk-theme-light) .b-pri:disabled { background: #1E1E1E !important; color: #6B6B6B !important; }

html:not(.psk-theme-light) .ech-donate-error { background: rgba(248,113,113,0.12); color: #F87171; border: 1px solid rgba(248,113,113,0.3); }
html:not(.psk-theme-light) .ech-donate-success h3 { color: #E3E3E3; }
html:not(.psk-theme-light) .ech-donate-success p { color: #9A9A9A; }

html:not(.psk-theme-light) .ech-history-title { color: #E3E3E3; }
html:not(.psk-theme-light) .ech-history-header { color: #6B6B6B; }
html:not(.psk-theme-light) .ech-history-row { color: #E3E3E3; }
html:not(.psk-theme-light) .ech-history-row + .ech-history-row,
html:not(.psk-theme-light) .ech-history-header + .ech-history-row { border-color: #2A2A2A; }
html:not(.psk-theme-light) .ech-receipt-link { color: #83BDE7; }
html:not(.psk-theme-light) .ech-receipt-link:hover { color: #FFFFFF; }
html:not(.psk-theme-light) .ech-recurring-amount { color: #E3E3E3; }
html:not(.psk-theme-light) .ech-recurring-amount span { color: #6B6B6B; }

/* =========================================================
   LIGHT — DRAFT, same disclaimer as the other add-on plugins
========================================================= */
html.psk-theme-light .ech-card { background: #FFFFFF; border: 1px solid #E3E3E3; }
html.psk-theme-light .ech-label { color: #4A4A4A; }
html.psk-theme-light .ech-hint { color: #6B6B6B; }
html.psk-theme-light .ech-input,
html.psk-theme-light .ech-textarea { background: #F7F7F5 !important; border-color: #D1D1CE !important; color: #0E0E0E !important; }
html.psk-theme-light .ech-input:focus,
html.psk-theme-light .ech-textarea:focus { border-color: #33769F; outline: 2px solid #33769F; outline-offset: 2px; }
html.psk-theme-light .ech-amount-prefix { color: #6B6B6B; }
html.psk-theme-light .ech-checkbox-row { color: #4A4A4A; }

html.psk-theme-light .ech-amount-pill { background: #F0F0EE !important; color: #6B6B6B !important; border-color: #D1D1CE !important; }
html.psk-theme-light .ech-amount-pill.is-active { background: #33769F !important; color: #FFFFFF !important; border-color: transparent !important; }

html.psk-theme-light .ech-freq-pill { background: #F0F0EE !important; color: #6B6B6B !important; border-color: #D1D1CE !important; }
html.psk-theme-light .ech-freq-pill.is-active { background: #33769F !important; color: #FFFFFF !important; border-color: transparent !important; }
html.psk-theme-light .ech-donate-gate { background: #EAF2F8; border: 1px solid #E3E3E3; }

html.psk-theme-light .b-pri { background: #33769F !important; color: #FFFFFF !important; }
html.psk-theme-light .b-pri:hover:not(:disabled) { background: #3A86B7 !important; }
html.psk-theme-light .b-pri:disabled { background: #F0F0EE !important; color: #A8A8A4 !important; }

html.psk-theme-light .ech-donate-error { background: rgba(220,38,38,0.08); color: #DC2626; border: 1px solid rgba(220,38,38,0.25); }
html.psk-theme-light .ech-donate-success h3 { color: #0E0E0E; }
html.psk-theme-light .ech-donate-success p { color: #4A4A4A; }

html.psk-theme-light .ech-history-title { color: #0E0E0E; }
html.psk-theme-light .ech-history-header { color: #6B6B6B; }
html.psk-theme-light .ech-history-row { color: #0E0E0E; }
html.psk-theme-light .ech-history-row + .ech-history-row,
html.psk-theme-light .ech-history-header + .ech-history-row { border-color: #E3E3E3; }
html.psk-theme-light .ech-receipt-link { color: #33769F; }
html.psk-theme-light .ech-receipt-link:hover { color: #0E0E0E; }
html.psk-theme-light .ech-recurring-amount { color: #0E0E0E; }
html.psk-theme-light .ech-recurring-amount span { color: #6B6B6B; }

@media (max-width: 480px) {
  .ech-donate-amounts { grid-template-columns: repeat(2, 1fr); }
  .ech-field-row { grid-template-columns: 1fr; }
}
