/* Paystack Donate — front-end donation hub
   Three-column layout (trust panel / form / impact+summary), themed from the site's
   configured --pd-brand and --pd-accent (Settings → Brand Colors), not fixed hex values,
   so this adapts to whatever palette the admin has picked.
*/

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&display=swap');

.pd-donate {
	--pd-brand-alt: #1F5C66;
	--pd-trust: #C9A227;
	--pd-bg: #F6F9F7;
	--pd-card: #F2F4F3;
	--pd-ink: #1D2B2C;
	--pd-ink-soft: #5C6B6C;
	--pd-border: #E3E9E7;
	--pd-danger: #D64545;
	--pd-radius: 14px;

	box-sizing: border-box;
	max-width: 1560px;
	width: 100%;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr) 340px;
	gap: 26px;
	align-items: start;
	font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--pd-ink) !important;
}

.pd-donate *, .pd-donate *::before, .pd-donate *::after { box-sizing: border-box; }
.pd-donate[hidden] { display: none !important; }

/* Themes commonly set font-family on body/input/button/etc. with their own specificity,
   and WordPress loads theme stylesheets after plugin stylesheets by default — so on a
   normal cascade the theme wins and the whole widget silently falls back to the theme's
   font. !important here is deliberate: it's the only reliable way for a plugin's widget
   to guarantee its own font regardless of what the active theme does or when its CSS
   loads. This also covers form controls, which browsers don't inherit font-family into
   by default (their UA stylesheet sets one explicitly). */
.pd-donate, .pd-donate * {
	font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

@media (max-width: 1400px) { .pd-donate { grid-template-columns: 280px minmax(0,1fr) 300px; gap: 22px; } }
@media (max-width: 1080px) { .pd-donate { grid-template-columns: 230px minmax(0,1fr) 240px; gap: 16px; } }
@media (max-width: 900px)  { .pd-donate { grid-template-columns: 1fr; } }

.pd-panel-card {
	background: #fff !important;
	border: 1px solid var(--pd-border) !important;
	border-radius: 18px !important;
	padding: 26px;
}

/* ===== LEFT: brand / trust panel ===== */
.pd-left {
	background: linear-gradient(165deg, color-mix(in srgb, var(--pd-brand) 10%, #fff 90%) 0%, #F6F9F7 55%, #FFFFFF 100%) !important;
}

.pd-hero-icon { position: relative; width: 96px; height: 88px; margin-bottom: 22px; }
.pd-hero-icon svg { width: 100%; height: 100%; display: block; }
.pd-hero-dot { position: absolute; border-radius: 50% !important; }
.pd-hero-dot--1 { width: 9px; height: 9px; top: -2px; left: 2px; background: var(--pd-brand) !important; opacity: .3; }
.pd-hero-dot--2 { width: 7px; height: 7px; top: 10px; right: -4px; background: var(--pd-brand-alt) !important; opacity: .3; }
.pd-hero-dot--3 { width: 6px; height: 6px; bottom: 4px; left: -6px; background: var(--pd-accent) !important; opacity: .35; }

.pd-left__title { font-weight: 700; font-size: 27px; line-height: 1.28; color: var(--pd-ink) !important; margin: 0 0 12px; }
.pd-left__title-highlight { color: var(--pd-brand) !important; }
.pd-left__lead { color: var(--pd-ink-soft) !important; font-size: 14px; line-height: 1.6; margin: 0 0 26px; font-weight: 500; }

.pd-feature { display: flex; gap: 12px; margin-bottom: 18px; }
.pd-feature__dot {
	width: 40px; height: 40px; border-radius: 12px !important; flex: none;
	display: flex; align-items: center; justify-content: center;
}
.pd-feature__dot svg { width: 19px; height: 19px; }
.pd-feature__dot--brand  { background: color-mix(in srgb, var(--pd-brand) 15%, #fff 85%) !important; color: var(--pd-brand) !important; }
.pd-feature__dot--alt    { background: color-mix(in srgb, var(--pd-brand-alt) 15%, #fff 85%) !important; color: var(--pd-brand-alt) !important; }
.pd-feature__dot--accent { background: color-mix(in srgb, var(--pd-accent) 25%, #fff 75%) !important; color: color-mix(in srgb, var(--pd-accent) 60%, #333 40%) !important; }
.pd-feature h2 { font-size: 14.5px; font-weight: 700; margin: 0 0 3px; color: var(--pd-ink) !important; }
.pd-feature p { font-size: 12.5px; color: var(--pd-ink-soft) !important; line-height: 1.45; font-weight: 500; margin: 0; }

.pd-quote { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--pd-border) !important; }
.pd-quote__mark { width: 20px; height: 16px; fill: var(--pd-brand) !important; opacity: .5; margin-bottom: 6px; }
.pd-quote p { font-size: 13.5px; font-style: italic; color: var(--pd-ink-soft) !important; font-weight: 500; line-height: 1.5; margin: 0; }
.pd-quote cite { display: block; margin-top: 8px; color: var(--pd-brand) !important; font-style: normal; font-weight: 700; font-size: 13px; }

/* ===== MIDDLE: the working form ===== */
.pd-donate__steps { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--pd-border); padding-bottom: 18px; }
.pd-step { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #A6AFAF !important; font-weight: 600; white-space: nowrap; }
.pd-step.is-active { color: var(--pd-ink) !important; }
.pd-step__num {
	width: 23px; height: 23px; border-radius: 50% !important; background: #E7E7E7 !important; color: #9AA4A4 !important;
	display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none;
}
.pd-step.is-active .pd-step__num { background: var(--pd-brand) !important; color: #fff !important; }
.pd-step__rule { flex: 1; height: 2px; background: var(--pd-brand) !important; border-radius: 2px !important; }

.pd-panel__label { font-size: 18px; font-weight: 700; padding: 0; margin: 0 0 16px; color: var(--pd-ink) !important; }
fieldset.pd-panel { border: none !important; padding: 0; margin: 0 0 4px; }

.pd-currency-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pd-currency-row__label { font-size: 12.5px; font-weight: 600; color: var(--pd-ink-soft) !important; }

.pd-currency-select-wrap {
	position: relative; display: inline-flex; align-items: center; gap: 9px;
	border: 1px solid #DADEDE !important; border-radius: 9px !important; padding: 8px 12px;
	background: #fff !important; cursor: pointer;
}
.pd-currency-select-wrap::after {
	content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px;
	border-right: 1.6px solid var(--pd-ink-soft); border-bottom: 1.6px solid var(--pd-ink-soft);
	transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
.pd-currency-select-flag { font-size: 14px; line-height: 1; pointer-events: none; }
.pd-currency-select {
	appearance: none; -webkit-appearance: none; -moz-appearance: none;
	border: none !important; outline: none !important; background: transparent !important; cursor: pointer;
	font-size: 13.5px; font-weight: 600; color: var(--pd-ink) !important; padding-right: 14px;
}
.pd-currency-tab--static {
	display: inline-flex; align-items: center; cursor: default; background: var(--pd-brand) !important; color: #fff !important;
	padding: 7px 16px; border-radius: 100px !important; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
}
.pd-flag { font-size: 13px; margin-right: 5px; line-height: 1; }

.pd-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-bottom: 20px; }

.pd-amount-card {
	position: relative; appearance: none; border: 1.5px solid #DADEDE !important; background: #fff !important;
	border-radius: 11px !important; padding: 15px 4px; cursor: pointer; text-align: center;
	transition: border-color 0.12s ease, color 0.12s ease, transform 0.1s ease;
}
.pd-amount-card:hover { border-color: var(--pd-brand) !important; }
.pd-amount-card:active { transform: scale(0.98); }

.pd-amount-card__value { font-weight: 700; font-size: 13.5px; color: var(--pd-ink) !important; }

.pd-amount-card[aria-checked="true"] { border-color: var(--pd-brand) !important; }
.pd-amount-card[aria-checked="true"] .pd-amount-card__value { color: var(--pd-brand) !important; }

.pd-amount-card__check {
	position: absolute; top: -8px; right: -8px; width: 20px; height: 20px;
	border-radius: 50% !important; background: var(--pd-brand) !important; border: 2px solid #fff !important;
	display: flex; align-items: center; justify-content: center;
}
.pd-amount-card__check svg { width: 10px; height: 10px; color: #fff !important; }

.pd-amount-card--custom .pd-amount-card__value { font-weight: 600; font-size: 13px; }

.pd-custom-amount { margin-bottom: 22px; }
.pd-custom-amount__hint { margin: 7px 0 0; font-size: 12px; font-weight: 600; color: #C0392B !important; }
.pd-custom-amount__hint[hidden] { display: none; }
.pd-custom-amount[hidden] { display: none; }

.pd-custom-amount__box {
	display: flex; align-items: center; gap: 8px; border: 1.5px solid #DADEDE !important; border-radius: 11px !important;
	padding: 11px 14px; transition: border-color 0.15s ease;
}
.pd-custom-amount__box:focus-within { border-color: var(--pd-brand) !important; }
.pd-custom-amount__prefix { font-weight: 800; color: var(--pd-brand) !important; font-size: 14px; }
.pd-custom-amount__input {
	flex: 1; border: none !important; outline: none !important; background: transparent !important; font-family: 'Baloo 2', sans-serif;
	font-size: 14px; font-weight: 600; color: var(--pd-ink) !important; min-width: 0;
}
.pd-custom-amount__input::placeholder { color: #9AA4A4 !important; font-weight: 600; }

.pd-field { margin-bottom: 16px; }
.pd-field label, .pd-custom-amount label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 7px; color: var(--pd-ink-soft) !important; }
.pd-optional { font-weight: 400; color: var(--pd-ink-soft) !important; }

.pd-input {
	width: 100%; padding: 12px 14px; border-radius: 11px !important; border: 1.5px solid #DADEDE !important;
	background: #fff !important; font-family: 'Baloo 2', sans-serif; font-size: 14px; font-weight: 600; color: var(--pd-ink) !important;
	transition: border-color 0.15s ease;
}
.pd-input:focus, .pd-amount-card:focus-visible, .pd-btn:focus-visible, .pd-checkbox input:focus-visible {
	outline: 2.5px solid color-mix(in srgb, var(--pd-accent) 60%, #fff 40%) !important;
	outline-offset: 2px; border-color: var(--pd-brand) !important;
}

.pd-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--pd-ink-soft) !important; margin-bottom: 16px; cursor: pointer; font-weight: 500; }
.pd-checkbox input { margin-top: 3px; accent-color: var(--pd-brand); }

/* Monthly-donation toggle row, styled to look like an on/off switch using the real checkbox */
.pd-toggle-row {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	border: 1px solid #DADEDE !important; border-radius: 11px !important; padding: 15px 16px; margin-bottom: 22px; cursor: pointer;
}
.pd-toggle-row__text { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--pd-ink) !important; }
.pd-toggle-row__text > span > strong { font-size: 14px; font-weight: 700; }
.pd-toggle-row__icon {
	width: 34px; height: 34px; border-radius: 9px !important; background: color-mix(in srgb, var(--pd-brand-alt) 15%, #fff 85%) !important;
	color: var(--pd-brand-alt) !important; display: flex; align-items: center; justify-content: center; flex: none;
}
.pd-toggle-row__icon svg { width: 16px; height: 16px; }
.pd-toggle-row__sub { font-size: 12px; color: var(--pd-ink-soft) !important; font-weight: 500; }

.pd-switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pd-switch {
	width: 40px; height: 22px; border-radius: 20px !important; background: #D8D8D8 !important; position: relative; flex: none;
	transition: background 0.18s ease;
}
.pd-switch::after {
	content: ""; position: absolute; width: 18px; height: 18px; background: #fff !important; border-radius: 50% !important;
	top: 2px; left: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left 0.18s ease;
}
.pd-switch-input:checked + .pd-switch { background: var(--pd-brand) !important; }
.pd-switch-input:checked + .pd-switch::after { left: 20px; }
.pd-switch-input:focus-visible + .pd-switch { outline: 2.5px solid color-mix(in srgb, var(--pd-accent) 60%, #fff 40%) !important; outline-offset: 2px; }

.pd-selected-amount {
	font-size: 13.5px; background: var(--pd-card) !important; border-radius: 10px !important; padding: 10px 14px;
	margin-bottom: 18px; font-weight: 600; color: var(--pd-ink-soft) !important;
}
.pd-selected-amount__value { color: var(--pd-brand) !important; font-weight: 700; }

.pd-back-link {
	display: inline-flex; align-items: center; gap: 6px; color: var(--pd-ink-soft) !important; font-size: 13px;
	font-weight: 700; cursor: pointer; margin-bottom: 18px; background: none !important; border: none !important;
	font-family: 'Baloo 2', sans-serif; padding: 0;
}
.pd-back-link svg { width: 14px; height: 14px; }
.pd-back-link:hover { color: var(--pd-ink) !important; }

.pd-btn {
	display: flex; align-items: center; justify-content: center; gap: 9px;
	width: 100%; padding: 16px; border-radius: 11px !important; border: none !important;
	font-family: 'Baloo 2', sans-serif; font-size: 15.5px; font-weight: 700; cursor: pointer;
	transition: transform 0.1s ease, opacity 0.15s ease, background 0.15s ease;
}
.pd-btn svg { width: 16px; height: 16px; }
.pd-btn--primary { background: var(--pd-brand) !important; color: #fff !important; }
.pd-btn--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--pd-brand) 85%, #000 15%) !important; }
.pd-btn--primary:active:not(:disabled) { transform: translateY(1px); }
.pd-btn--primary:disabled { opacity: 0.45; cursor: not-allowed; }

.pd-error {
	background: rgba(214, 69, 69, 0.08) !important; color: var(--pd-danger) !important; border: 1px solid rgba(214, 69, 69, 0.25) !important;
	border-radius: 10px !important; padding: 10px 12px; font-size: 13px; margin: 0 0 14px; font-weight: 600;
}
.pd-error[hidden] { display: none; }

.pd-secure-note { text-align: center; font-size: 12px; color: var(--pd-ink-soft) !important; margin: 14px 0 0; font-weight: 500; }

.pd-waiting, .pd-success { text-align: center; padding: 26px 10px 10px; }
.pd-waiting[hidden], .pd-success[hidden] { display: none; }

.pd-spinner {
	width: 32px; height: 32px; margin: 0 auto 14px; border-radius: 50% !important;
	border: 3px solid color-mix(in srgb, var(--pd-brand) 15%, #fff 85%) !important; border-top-color: var(--pd-brand) !important;
	animation: pd-spin 0.8s linear infinite;
}
@keyframes pd-spin { to { transform: rotate(360deg); } }

.pd-success__mark {
	width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50% !important;
	background: color-mix(in srgb, var(--pd-brand) 15%, #fff 85%) !important; color: var(--pd-brand) !important;
	display: flex; align-items: center; justify-content: center;
}
.pd-success__mark svg { width: 24px; height: 24px; }
.pd-success__message { font-size: 14.5px; color: var(--pd-ink) !important; line-height: 1.5; font-weight: 500; }

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

.pd-campaign-box { border: 1px solid #DADEDE !important; border-radius: 12px !important; padding: 18px; margin-bottom: 24px; }
.pd-campaign-box__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pd-campaign-box__icon {
	width: 32px; height: 32px; border-radius: 9px !important; flex: none; display: flex; align-items: center; justify-content: center;
	background: color-mix(in srgb, var(--pd-brand) 12%, #fff 88%) !important; color: var(--pd-brand) !important;
}
.pd-campaign-box__icon svg { width: 15px; height: 15px; }
.pd-campaign-select {
	width: 100%; padding: 10px 12px; border-radius: 9px !important; border: 1px solid #DADEDE !important; margin-bottom: 14px;
	background: #fff !important; font-family: 'Baloo 2', sans-serif; font-size: 13.5px; font-weight: 600; color: var(--pd-ink) !important;
}
.pd-campaign-progress { margin-top: 14px; }
.pd-campaign-progress__track { height: 8px; background: #E7E7E7 !important; border-radius: 8px !important; overflow: hidden; margin-bottom: 8px; }
.pd-campaign-progress__fill {
	display: block; height: 100%; border-radius: 8px !important; transition: width 0.3s ease;
	background: linear-gradient(90deg, var(--pd-brand), color-mix(in srgb, var(--pd-brand) 55%, #fff 45%)) !important;
}
.pd-campaign-progress__labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--pd-ink-soft) !important; font-weight: 600; }
.pd-campaign-progress__mid { color: var(--pd-brand) !important; font-weight: 800; }
.pd-campaign-box__note { font-size: 12.5px; color: var(--pd-ink-soft); margin: 14px 0 0; font-weight: 500; }
.pd-campaign-progress[hidden], .pd-campaign-box__note[hidden] { display: none; }

.pd-secure-line {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	text-align: center; font-size: 12px; color: var(--pd-ink-soft) !important; margin: 14px 0 0; font-weight: 500;
}
.pd-secure-line svg { width: 13px; height: 13px; flex: none; }

.pd-contact-line { text-align: center; font-size: 12.5px; color: var(--pd-ink-soft) !important; margin: 18px 0 0; font-weight: 500; }
.pd-contact-line a { color: var(--pd-brand) !important; font-weight: 700; text-decoration: none !important; }
.pd-contact-line a:hover { text-decoration: underline !important; }

.pd-badges { display: flex; justify-content: center; gap: 30px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--pd-border) !important; flex-wrap: wrap; }
.pd-badge { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; color: var(--pd-ink-soft) !important; font-weight: 600; text-align: center; }
.pd-badge svg { width: 20px; height: 20px; color: var(--pd-brand) !important; }
.pd-badge--ssl svg { color: var(--pd-accent) !important; }
.pd-badge--pci svg { color: var(--pd-brand-alt) !important; }
.pd-badge--trust svg { color: var(--pd-trust) !important; }

/* ===== RIGHT: impact + live summary ===== */
.pd-right .pd-panel-card { margin-bottom: 18px; }
.pd-right .pd-panel-card:last-child { margin-bottom: 0; }

.pd-impact-title { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 700; margin-bottom: 18px; color: var(--pd-ink) !important; }
.pd-impact-title svg { width: 18px; height: 18px; color: var(--pd-brand) !important; }
.pd-impact-item { display: flex; gap: 12px; margin-bottom: 18px; }
.pd-impact-item:last-child { margin-bottom: 0; }
.pd-impact-item__icon {
	width: 36px; height: 36px; border-radius: 10px !important; flex: none; display: flex; align-items: center; justify-content: center;
	background: color-mix(in srgb, var(--pd-brand) 12%, #fff 88%) !important; color: var(--pd-brand) !important;
}
.pd-impact-item__icon--alt    { background: color-mix(in srgb, var(--pd-brand-alt) 15%, #fff 85%) !important; color: var(--pd-brand-alt) !important; }
.pd-impact-item__icon--accent { background: color-mix(in srgb, var(--pd-accent) 25%, #fff 75%) !important; color: color-mix(in srgb, var(--pd-accent) 60%, #333 40%) !important; }
.pd-impact-item__icon svg { width: 16px; height: 16px; }
.pd-impact-item h4 { font-size: 14px; font-weight: 700; margin: 0 0 2px; color: var(--pd-ink) !important; }
.pd-impact-item p { font-size: 12px; color: var(--pd-ink-soft) !important; line-height: 1.4; font-weight: 500; margin: 0; }

.pd-summary-card { margin-top: 20px; }
.pd-summary-card h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 16px; color: var(--pd-ink) !important; }
.pd-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--pd-ink-soft) !important; margin-bottom: 13px; font-weight: 600; }
.pd-summary-row .val { color: var(--pd-ink) !important; font-weight: 700; }
.pd-summary-row--total { border-top: 1px solid var(--pd-border) !important; padding-top: 14px; margin-top: 8px; font-size: 14.5px; color: var(--pd-ink) !important; }
.pd-summary-row--total .val { color: var(--pd-brand) !important; font-size: 19px; }

.pd-secure-card { margin-top: 18px; display: flex; align-items: center; gap: 13px; background: color-mix(in srgb, var(--pd-brand) 6%, #fff 94%) !important; border-color: color-mix(in srgb, var(--pd-brand) 20%, var(--pd-border) 80%) !important; }
.pd-secure-card__icon {
	width: 36px; height: 36px; border-radius: 50% !important; background: var(--pd-brand) !important; color: #fff !important;
	display: flex; align-items: center; justify-content: center; flex: none;
}
.pd-secure-card__icon svg { width: 17px; height: 17px; }
.pd-secure-card h4 { font-size: 14px; color: var(--pd-brand) !important; font-weight: 700; margin: 0 0 2px; }
.pd-secure-card p { font-size: 12px; color: var(--pd-ink-soft) !important; font-weight: 500; margin: 0; }

@media (prefers-reduced-motion: reduce) {
	.pd-donate *, .pd-donate *::before, .pd-donate *::after { transition: none !important; animation-duration: 0.001s !important; }
}

/* ===== Manage-subscription page (unrelated page, unchanged) ===== */
.pd-manage-sub {
	--pd-brand: #144853;
	--pd-brand-alt: #5F8113;
	--pd-accent: #BFC33B;
	--pd-card: #E4E7DC;
	--pd-ink: #353D16;
	--pd-ink-soft: #63704A;

	max-width: 460px;
	margin: 0 auto;
	font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--pd-ink) !important;
}

.pd-manage-sub, .pd-manage-sub * {
	font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.pd-manage-sub h2 { margin-bottom: 16px; }

.pd-manage-sub__table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.pd-manage-sub__table td { padding: 10px 0; border-bottom: 1px solid rgba(20, 72, 83, 0.12); }
.pd-manage-sub__table td:first-child { color: var(--pd-ink-soft) !important; font-size: 13px; }
.pd-manage-sub__table td:last-child { text-align: right; font-weight: 600; }

.pd-manage-sub__cancel { background: #B3261E !important; max-width: 320px; }
.pd-manage-sub__notice { margin-top: 12px; font-size: 14px; }
