/* DST Donate - core front-end styles.
   All colours are CSS variables with the plugin defaults, so the form can be
   restyled by overriding these variables (DST Donate Pro does this per form). */

.dst-donate-wrap {
	--dst-primary: #1e8e5a;
	--dst-primary-hover: #166b44;
	--dst-button-text: #ffffff;
	--dst-selected: #0f5132;
	--dst-selected-text: #ffffff;
	--dst-accent: #1e8e5a;
	--dst-form-bg: #ffffff;
	--dst-form-text: #1f2937;
	--dst-heading: #111827;
	--dst-input-border: #d1d5db;
	--dst-input-bg: #ffffff;
	--dst-radius: 10px;
	max-width: 480px;
	margin: 0 auto;
	color: var(--dst-form-text);
	font-size: 16px;
	line-height: 1.5;
}
.dst-donate-wrap *,
.dst-donate-wrap *::before,
.dst-donate-wrap *::after { box-sizing: border-box; }

.dst-donate-form {
	background: var(--dst-form-bg);
	border: 1px solid var(--dst-input-border);
	border-radius: var(--dst-radius);
	padding: 24px;
}
.dst-form-title { margin: 0 0 4px; color: var(--dst-heading); font-size: 1.35em; line-height: 1.25; }
.dst-form-desc { margin: 0 0 20px; opacity: 0.85; }

.dst-field { margin-bottom: 18px; }
.dst-label { display: block; margin-bottom: 8px; font-weight: 600; }
.dst-required { color: #b91c1c; }

.dst-amount-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.dst-amount-btn {
	cursor: pointer;
	padding: 12px 8px;
	font-size: 1em;
	font-weight: 600;
	color: var(--dst-primary);
	background: transparent;
	border: 2px solid var(--dst-primary);
	border-radius: var(--dst-radius);
	transition: background-color 0.12s ease, color 0.12s ease;
}
.dst-amount-btn:hover { background: var(--dst-primary); color: var(--dst-button-text); }
.dst-amount-btn.selected { background: var(--dst-selected); border-color: var(--dst-selected); color: var(--dst-selected-text); }

.dst-input {
	width: 100%;
	padding: 11px 12px;
	font-size: 1em;
	color: var(--dst-form-text);
	background: var(--dst-input-bg);
	border: 1px solid var(--dst-input-border);
	border-radius: var(--dst-radius);
}
.dst-input:focus { outline: none; border-color: var(--dst-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dst-accent) 25%, transparent); }

.dst-amount-input { display: flex; align-items: stretch; border: 1px solid var(--dst-input-border); border-radius: var(--dst-radius); overflow: hidden; background: var(--dst-input-bg); }
.dst-amount-input:focus-within { border-color: var(--dst-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dst-accent) 25%, transparent); }
.dst-donate-wrap .dst-amount-input .dst-currency { display: flex; align-items: center; padding: 0 12px; font-weight: 600; white-space: nowrap; color: var(--dst-form-text); background: color-mix(in srgb, var(--dst-input-border) 35%, var(--dst-input-bg)); border-right: 1px solid var(--dst-input-border); }
/* High-specificity reset so a theme's own input height, padding and borders
   cannot make the amount field tall or push the number to the top. */
.dst-donate-wrap .dst-amount-input input.dst-input {
	flex: 1 1 auto;
	min-width: 0;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 11px 12px !important;
	line-height: 1.4 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: 0 !important;
}
.dst-donate-wrap .dst-amount-input input.dst-input:focus,
.dst-donate-wrap .dst-amount-input input.dst-input:focus-visible { border: 0 !important; box-shadow: none !important; outline: 0 !important; }

.dst-frequency { display: flex; flex-wrap: wrap; gap: 8px; }
.dst-freq-option { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; cursor: pointer; border: 1px solid var(--dst-input-border); border-radius: var(--dst-radius); }
.dst-freq-option input { accent-color: var(--dst-primary); margin: 0; }

.dst-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dst-submit {
	cursor: pointer;
	width: 100%;
	padding: 14px 18px;
	font-size: 1.05em;
	font-weight: 700;
	color: var(--dst-button-text);
	background: var(--dst-primary);
	border: none;
	border-radius: var(--dst-radius);
	transition: background-color 0.12s ease;
}
.dst-submit:hover { background: var(--dst-primary-hover); }
.dst-submit:disabled { opacity: 0.65; cursor: progress; }

.dst-secure-note { margin: 14px 0 0; font-size: 0.82em; line-height: 1.5; text-align: center; opacity: 0.7; }
.dst-secure-note .dst-lock-icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.dst-message { margin-top: 12px; font-size: 0.92em; }
.dst-message.dst-error { color: #b91c1c; }

.dst-banner { padding: 14px 16px; margin-bottom: 18px; border-radius: var(--dst-radius); font-weight: 600; }
.dst-banner-success { color: #0f5132; background: #d1e7dd; border: 1px solid #badbcc; }
.dst-banner-error { color: #842029; background: #f8d7da; border: 1px solid #f5c2c7; }
