.ddt-download-wrap {
	display: block !important;
	width: 100% !important;
	text-align: center !important;
	margin: 1.75em auto !important;
}

/*
 * Zero-specificity fallback colours (via :where()) — these only apply if the
 * active theme has no styling at all for .wp-block-button__link / .button /
 * <button>. As soon as the theme defines those (which almost all themes do,
 * since they're core WordPress button classes), the theme's own colours win
 * automatically without any extra work here.
 */
:where(.ddt-download-btn) {
	background-color: #2563eb;
	color: #fff;
	border: 2px solid #2563eb;
}

/* Sizing and centering are enforced regardless of theme, per request. */
.ddt-download-btn {
	display: inline-block !important;
	float: none !important;
	font-family: inherit;
	font-size: 1.4em !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
	padding: 1em 3em !important;
	margin: 0 auto !important;
	min-width: 240px;
	border-radius: var( --wp--custom--button--border-radius, 6px );
	cursor: pointer;
	text-align: center !important;
	white-space: normal;
	transition: opacity 0.15s ease, transform 0.1s ease, filter 0.15s ease;
}

.ddt-download-btn:hover:not(:disabled) {
	filter: brightness( 0.92 );
}

.ddt-download-btn:active:not(:disabled) {
	transform: scale( 0.98 );
}

.ddt-download-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.ddt-status {
	margin-top: 0.6em;
	font-size: 0.9em;
	opacity: 0.75;
	min-height: 1.2em;
}

/* ------------------------------------------------------------------
 * EcoCash pledge / support widget
 * ------------------------------------------------------------------ */

.ddt-pledge-wrap {
	max-width: 420px;
	margin: 1.5em auto;
	padding: 1.25em;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	text-align: center;
	background: rgba(0, 0, 0, 0.02);
}

.ddt-pledge-title {
	margin: 0 0 0.15em;
	font-weight: 700;
	font-size: 1.05em;
}

.ddt-pledge-sub {
	margin: 0 0 1em;
	font-size: 0.85em;
	opacity: 0.7;
}

.ddt-pledge-slider-row {
	display: flex;
	align-items: center;
	gap: 0.75em;
	margin-bottom: 1em;
}

.ddt-pledge-slider {
	flex: 1 1 auto;
	width: 100%;
	cursor: pointer;
}

.ddt-pledge-amount {
	flex: 0 0 auto;
	min-width: 3.5em;
	font-weight: 700;
	font-size: 1.15em;
}

.ddt-pledge-btn {
	display: inline-block !important;
	font-size: 1.05em !important;
	padding: 0.7em 2em !important;
	border-radius: var( --wp--custom--button--border-radius, 6px );
	cursor: pointer;
}

.ddt-pledge-instructions {
	margin-top: 1em;
	font-size: 0.9em;
	text-align: left;
}

.ddt-pledge-instructions p {
	margin: 0 0 0.6em;
}

.ddt-pledge-code-row,
.ddt-pledge-number-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75em;
	padding: 0.5em 0.75em;
	margin-bottom: 0.5em;
	background: rgba(0, 0, 0, 0.05);
	border-radius: 6px;
}

.ddt-pledge-code {
	font-size: 0.95em;
	word-break: break-all;
}

.ddt-pledge-copy-btn {
	flex: 0 0 auto;
	font-size: 0.8em;
	padding: 0.35em 0.75em;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
}

/* ------------------------------------------------------------------
 * Gated download states
 * ------------------------------------------------------------------ */

.ddt-hidden {
	display: none !important;
}

.ddt-download-wrap.ddt-revealed {
	animation: ddt-reveal-fade 0.35s ease;
}

@keyframes ddt-reveal-fade {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

.ddt-gate-unlocked-message {
	margin: 0 0 0.75em;
	padding: 0.6em 1em;
	background: rgba(22, 163, 74, 0.12);
	border: 1px solid rgba(22, 163, 74, 0.35);
	border-radius: 6px;
	font-size: 0.9em;
	font-weight: 600;
}

.ddt-pledge-confirm-note {
	margin-top: 0.75em !important;
	font-weight: 600;
}

.ddt-pledge-confirm-btn {
	display: block !important;
	width: 100%;
	margin-top: 0.5em !important;
	padding: 0.7em 1em !important;
	font-size: 0.95em !important;
}

.ddt-pledge-thanks {
	margin-top: 0.6em !important;
	font-weight: 600;
	color: #16a34a;
}

.ddt-pledge-error {
	margin-top: 0.6em !important;
	font-weight: 600;
	color: #dc2626;
}
