:root {
	--nd-primary: #123a5c;
	--nd-primary-dark: #0c2740;
	--nd-primary-tint: #e8edf2;
	--nd-accent: #f2a93b;
	--nd-accent-dark: #ce8c26;
	--nd-accent-tint: #fdf1de;
	--nd-text: #1f2430;
	--nd-muted: #6b7280;
	--nd-border: #e6e8ec;
	--nd-danger: #d64545;
	--nd-radius: 14px;
	--nd-shadow: 0 4px 18px rgba(20, 30, 25, 0.06);
}

/* ---------- Donation Form ---------- */
.nd-donation-form {
	max-width: 560px;
	margin: 28px auto;
	padding: 28px;
	border: 1px solid var(--nd-border);
	border-radius: var(--nd-radius);
	background: #fff;
	box-shadow: var(--nd-shadow);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--nd-text);
	font-size: 15px;
	line-height: 1.5;
}
.nd-donation-form * { box-sizing: border-box; }
.nd-donation-form h3 {
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Step tabs ("1. Pilih Nominal" / "2. Data Diri" / "3. Pembayaran") */
.nd-step-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 20px;
	background: #f3f4f6;
	padding: 4px;
	border-radius: 999px;
}
.nd-donation-form .nd-step-tab {
	flex: 1;
	border: none;
	background: transparent;
	padding: 9px 8px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--nd-muted);
	cursor: not-allowed;
	transition: all 0.15s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.nd-donation-form .nd-step-tab:not(:disabled) {
	cursor: pointer;
	color: var(--nd-primary);
}
.nd-donation-form .nd-step-tab:not(:disabled):not(.nd-step-active):hover {
	background: var(--nd-hover-tint);
	color: var(--nd-hover);
}
/* Disabled (not-yet-reached) and active tabs each need their OWN
   explicit :hover rule too - without it, a disabled/active button
   still matches the current theme's generic "button:hover" selector
   and its color bleeds through, since :not(:disabled):hover above
   doesn't cover either of these two states. */
.nd-donation-form .nd-step-tab:disabled:hover {
	background: transparent;
	color: var(--nd-muted);
}
.nd-donation-form .nd-step-tab.nd-step-active:hover {
	background: var(--nd-primary);
	color: #fff;
}
.nd-donation-form .nd-step-tab:focus,
.nd-donation-form .nd-step-tab:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--nd-hover-tint);
}
.nd-donation-form .nd-step-tab.nd-step-done {
	color: var(--nd-primary);
}
.nd-donation-form .nd-step-tab.nd-step-active {
	background: var(--nd-primary);
	color: #fff;
	cursor: default;
}

/* One-Time / Monthly frequency toggle */
.nd-frequency-toggle {
	display: flex;
	gap: 6px;
	margin-bottom: 18px;
	background: #f3f4f6;
	padding: 4px;
	border-radius: 10px;
}
.nd-donation-form .nd-freq-btn {
	flex: 1;
	border: none;
	background: transparent;
	padding: 11px 10px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--nd-muted);
	cursor: pointer;
	transition: all 0.15s ease;
}
.nd-donation-form .nd-freq-btn:hover {
	background: var(--nd-hover-tint);
	color: var(--nd-hover);
}
.nd-donation-form .nd-freq-btn.nd-selected,
.nd-donation-form .nd-freq-btn.nd-selected:hover {
	background: var(--nd-primary);
	color: #fff;
	box-shadow: 0 2px 8px rgba(18, 58, 92, 0.25);
}
.nd-donation-form .nd-freq-btn:focus,
.nd-donation-form .nd-freq-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--nd-hover-tint);
}
.nd-recurring-note {
	font-size: 12.5px;
	color: var(--nd-muted);
	margin: -6px 0 14px;
	font-style: italic;
}

.nd-progress-bar {
	background: #eef1ee;
	border-radius: 8px;
	overflow: hidden;
	height: 10px;
	margin-bottom: 8px;
}
.nd-progress-fill {
	background: linear-gradient(90deg, var(--nd-primary), var(--nd-primary-dark));
	height: 100%;
	border-radius: 8px;
	transition: width 0.4s ease;
}
.nd-progress-meta {
	font-size: 13px;
	color: var(--nd-muted);
	margin-bottom: 18px;
}
.nd-progress-meta strong { color: var(--nd-text); }
.nd-deadline {
	font-size: 13px;
	color: var(--nd-danger);
	margin: -6px 0 18px;
	font-weight: 600;
}

/* Amount rows (full-width cards with optional description + radio indicator) */
.nd-amount-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
}
.nd-donation-form .nd-amount-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	text-align: left;
	padding: 14px 16px;
	border: 1.5px solid var(--nd-border);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: all 0.15s ease;
	/* Buttons inherit white-space: nowrap from many themes/Elementor kits,
	   which made long descriptions run past the card. Force wrapping. */
	white-space: normal;
	height: auto;
	line-height: 1.4;
	overflow: hidden;
}
.nd-donation-form .nd-amount-row:hover {
	border-color: var(--nd-hover);
	background: var(--nd-hover-tint);
}
.nd-donation-form .nd-amount-row.nd-selected,
.nd-donation-form .nd-amount-row.nd-selected:hover {
	border-color: var(--nd-primary);
	background: var(--nd-primary);
}
.nd-donation-form .nd-amount-row:focus,
.nd-donation-form .nd-amount-row:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--nd-hover-tint);
}
.nd-amount-row-main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
}
.nd-amount-row-value {
	display: block;
	font-weight: 700;
	font-size: 15px;
	color: var(--nd-text);
}
.nd-amount-row-desc {
	display: block;
	width: 100%;
	font-size: 12.5px;
	font-weight: 400;
	color: var(--nd-muted);
	line-height: 1.4;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
}
.nd-donation-form .nd-amount-row.nd-selected .nd-amount-row-value {
	color: #fff;
}
.nd-donation-form .nd-amount-row.nd-selected .nd-amount-row-desc {
	color: rgba(255, 255, 255, 0.75);
}
.nd-amount-row-radio {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid var(--nd-border);
	position: relative;
	transition: all 0.15s ease;
}
.nd-donation-form .nd-amount-row.nd-selected .nd-amount-row-radio {
	border-color: var(--nd-accent);
	background: var(--nd-accent);
}
.nd-donation-form .nd-amount-row.nd-selected .nd-amount-row-radio:after {
	content: "\2713";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.nd-custom-amount-wrap { margin-bottom: 16px; }
.nd-custom-amount-label {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nd-muted);
	margin-bottom: 6px;
}

.nd-donation-form .nd-input {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid var(--nd-border);
	border-radius: 8px;
	margin-top: 5px;
	font-size: 14.5px;
	font-family: inherit;
	color: var(--nd-text);
	background: #fff;
	transition: border-color 0.15s ease;
}
.nd-donation-form .nd-input:focus {
	outline: none;
	border-color: var(--nd-primary);
	box-shadow: 0 0 0 3px var(--nd-primary-tint);
}
.nd-custom-amount-wrap .nd-input,
.nd-custom-amount-wrap .nd-custom-amount-input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--nd-border);
	border-radius: 10px;
	font-size: 15px;
	margin-bottom: 10px;
	font-family: inherit;
	color: var(--nd-text);
	transition: border-color 0.15s ease;
}
.nd-custom-amount-wrap .nd-custom-amount-input:focus {
	outline: none;
	border-color: var(--nd-primary);
	box-shadow: 0 0 0 3px var(--nd-primary-tint);
}
.nd-step p { margin: 0 0 14px; }
.nd-step p label {
	font-weight: 600;
	display: block;
	margin-bottom: 2px;
	font-size: 13.5px;
	color: var(--nd-muted);
}
.nd-step p label.nd-checkbox-label {
	font-weight: 500;
	color: var(--nd-text);
	display: flex;
	align-items: center;
	gap: 6px;
}

.nd-btn {
	display: inline-block;
	padding: 13px 20px;
	background: var(--nd-primary);
	color: #fff;
	border: none;
	border-radius: 9px;
	cursor: pointer;
	font-weight: 700;
	font-size: 15px;
	box-sizing: border-box;
	transition: background 0.15s ease, transform 0.1s ease;
	text-decoration: none;
}
.nd-btn:hover { background: var(--nd-primary-dark); color: #fff; }
/* .nd-btn is shared with the [campaign] card CTA link (outside
   .nd-donation-form) - the base rule above covers that case. The
   rule below adds extra specificity so it reliably wins inside the
   donation form too, even against theme/page-builder button styles
   like ".some-widget-wrapper button" (see .nd-donation-form
   .nd-amount-row above for the same reasoning). */
.nd-donation-form .nd-btn { width: 100%; }
.nd-donation-form .nd-btn:active { transform: scale(0.99); }
.nd-donation-form .nd-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.nd-donation-form .nd-btn:focus,
.nd-donation-form .nd-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--nd-hover-tint);
}

/* Accent-colored primary call-to-action buttons ("Lanjut", "Bayar Sekarang") */
.nd-donation-form .nd-btn-accent {
	background: var(--nd-accent);
	color: var(--nd-text);
}
.nd-donation-form .nd-btn-accent:hover {
	background: var(--nd-accent-dark);
	color: var(--nd-text);
}
.nd-donation-form .nd-btn-accent:focus,
.nd-donation-form .nd-btn-accent:focus-visible {
	box-shadow: 0 0 0 3px var(--nd-accent-tint);
}

.nd-donation-form .nd-btn-back {
	background: transparent;
	color: var(--nd-muted);
	width: auto;
	padding: 8px 4px;
	font-weight: 600;
	font-size: 13.5px;
	margin-bottom: 10px;
}
.nd-donation-form .nd-btn-back:hover { background: transparent; color: var(--nd-text); }
.nd-donation-form .nd-btn-back:focus,
.nd-donation-form .nd-btn-back:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--nd-hover-tint);
}

.nd-payment-methods { margin-bottom: 18px; }
.nd-donation-form .nd-payment-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 14px;
	border: 1.5px solid var(--nd-border);
	border-radius: 10px;
	margin-bottom: 9px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.15s ease;
	background: #fff;
}
.nd-donation-form .nd-payment-option:hover {
	border-color: var(--nd-hover);
	background: var(--nd-hover-tint);
}
.nd-donation-form .nd-payment-option.nd-selected,
.nd-donation-form .nd-payment-option.nd-selected:hover {
	border-color: var(--nd-primary);
	background: var(--nd-primary-tint);
	color: var(--nd-primary-dark);
}
.nd-donation-form .nd-payment-option:focus-within {
	box-shadow: 0 0 0 3px var(--nd-hover-tint);
}
.nd-donation-form .nd-payment-option input { accent-color: var(--nd-primary); }

.nd-bank-item {
	padding: 14px;
	background: #f6f8f7;
	border: 1px solid var(--nd-border);
	border-radius: 10px;
	margin-bottom: 10px;
	font-size: 14px;
}
.nd-bank-item strong { color: var(--nd-primary-dark); font-size: 15px; }

.nd-message {
	margin-top: 14px;
	font-size: 13.5px;
	font-weight: 600;
	min-height: 18px;
}
.nd-success-message {
	text-align: center;
	padding: 30px 10px;
	font-weight: 700;
	font-size: 16px;
	color: var(--nd-primary-dark);
}
.nd-success-message:before {
	content: "\2713";
	display: block;
	width: 48px;
	height: 48px;
	line-height: 48px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--nd-accent-tint);
	color: var(--nd-accent-dark);
	font-size: 22px;
}

@media (max-width: 480px) {
	.nd-donation-form { padding: 18px; margin: 14px 10px; }
	.nd-step-tab { font-size: 11px; padding: 8px 4px; }
}


/* ---------- Top Donatur widget ---------- */
.nd-top-donors {
	max-width: 420px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.nd-top-donors-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 12px;
	color: var(--nd-text);
}
.nd-top-donors-empty {
	color: var(--nd-muted);
	font-size: 13.5px;
}
.nd-top-donors-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.nd-top-donor-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--nd-border);
	border-radius: 10px;
	background: #fff;
}
.nd-top-donor-item:nth-child(1) { background: linear-gradient(90deg, #fff8e6, #fff); border-color: #f3d98a; }
.nd-top-donor-rank {
	font-size: 12px;
	font-weight: 700;
	color: var(--nd-muted);
	min-width: 22px;
}
.nd-top-donor-avatar {
	width: 34px;
	height: 34px;
	min-width: 34px;
	border-radius: 50%;
	background: var(--nd-primary-tint);
	color: var(--nd-primary-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
}
.nd-top-donor-info {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}
.nd-top-donor-name {
	font-weight: 600;
	font-size: 14px;
	color: var(--nd-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.nd-top-donor-meta {
	font-size: 12px;
	color: var(--nd-muted);
}
.nd-top-donor-amount {
	font-weight: 700;
	font-size: 13.5px;
	color: var(--nd-primary-dark);
	white-space: nowrap;
}

/* ---------- Block editor preview wrapper ---------- */
.nd-block-preview-wrap {
	pointer-events: none;
	opacity: 0.96;
}

/* ---------- [campaign] shortcode: list grid + cards ---------- */
.nd-campaign-notfound {
	color: var(--nd-muted);
	font-size: 14px;
}
.nd-campaign-grid {
	display: grid;
	gap: 22px;
	margin: 20px 0;
}
.nd-campaign-grid.nd-cols-1 { grid-template-columns: 1fr; }
.nd-campaign-grid.nd-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nd-campaign-grid.nd-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nd-campaign-grid.nd-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
	.nd-campaign-grid.nd-cols-3,
	.nd-campaign-grid.nd-cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
	.nd-campaign-grid { grid-template-columns: 1fr !important; }
}

.nd-campaign-card {
	border: 1px solid var(--nd-border);
	border-radius: var(--nd-radius);
	background: #fff;
	box-shadow: var(--nd-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.nd-campaign-card-thumb-link {
	display: block;
	position: relative;
	line-height: 0;
}
.nd-campaign-card-thumb {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}
.nd-campaign-card-thumb-placeholder {
	width: 100%;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--nd-primary-tint), #f3f5f3);
}
.nd-campaign-card-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(31, 36, 48, 0.75);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 9px;
	border-radius: 20px;
	letter-spacing: 0.02em;
}
.nd-campaign-card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.nd-campaign-card-title {
	margin: 0;
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.35;
}
.nd-campaign-card-title a {
	color: var(--nd-text);
	text-decoration: none;
}
.nd-campaign-card-title a:hover { color: var(--nd-primary-dark); }
.nd-campaign-card-excerpt {
	margin: 0;
	font-size: 13.5px;
	color: var(--nd-muted);
	line-height: 1.5;
}
.nd-campaign-card-deadline {
	margin: 0;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--nd-danger);
}
.nd-campaign-card-deadline.nd-ended {
	color: var(--nd-muted);
}
.nd-campaign-card-cta {
	margin-top: auto;
	width: 100%;
	text-align: center;
	text-decoration: none;
}

/* ---------- [campaign] shortcode: single "full" display ---------- */
.nd-campaign-full {
	max-width: 720px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--nd-text);
}
.nd-campaign-full-thumb {
	border-radius: var(--nd-radius);
	overflow: hidden;
	margin-bottom: 20px;
	line-height: 0;
}
.nd-campaign-full-thumb img {
	width: 100%;
	height: auto;
	display: block;
}
.nd-campaign-full-title {
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 14px;
	line-height: 1.3;
}
.nd-campaign-full-content {
	font-size: 15.5px;
	line-height: 1.7;
	margin-bottom: 10px;
}

/* ---------- [campaign_progress] standalone widget ---------- */
.nd-progress-widget {
	max-width: 480px;
	padding: 20px 22px;
	border-radius: var(--nd-radius);
	background: var(--nd-primary);
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-shadow: var(--nd-shadow);
}
.nd-progress-widget-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}
.nd-progress-widget-label {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 700;
	color: var(--nd-accent);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.nd-progress-widget-icon {
	font-size: 14px;
	filter: grayscale(1) brightness(2);
}
.nd-progress-widget-percentage {
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
}
.nd-progress-widget-bar {
	height: 10px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.16);
	overflow: hidden;
	margin-bottom: 12px;
}
.nd-progress-widget-fill {
	height: 100%;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--nd-accent-dark), var(--nd-accent));
	transition: width 0.4s ease;
}
.nd-progress-widget-footer {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	font-size: 13.5px;
	flex-wrap: wrap;
}
.nd-progress-widget-footer-notarget {
	justify-content: flex-start;
}
.nd-progress-widget-raised {
	font-weight: 700;
	color: var(--nd-accent);
}
.nd-progress-widget-raised em {
	font-weight: 500;
	font-style: normal;
	color: rgba(255, 255, 255, 0.7);
	margin-left: 4px;
}
.nd-progress-widget-goal {
	color: rgba(255, 255, 255, 0.65);
	font-weight: 500;
	white-space: nowrap;
}

@media (max-width: 400px) {
	.nd-progress-widget { padding: 16px 18px; }
	.nd-progress-widget-footer { flex-direction: column; align-items: flex-start; gap: 4px; }
}
