/* Charity Donation Popup - Front-end styles */

.cdp-popup-root {
	position: fixed;
	z-index: 99999;
	max-width: 340px;
	pointer-events: none;
}
.cdp-pos-bottom-left  { left: 20px; bottom: 20px; }
.cdp-pos-bottom-right { right: 20px; bottom: 20px; }
.cdp-pos-top-left     { left: 20px; top: 20px; }
.cdp-pos-top-right     { right: 20px; top: 20px; }

.cdp-notification {
	pointer-events: all;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 6px 24px rgba(0,0,0,0.16);
	padding: 14px 16px;
	cursor: pointer;
	transform: translateY(20px);
	opacity: 0;
	transition: transform .35s ease, opacity .35s ease;
	border-left: 4px solid #e0364c;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.cdp-notification.cdp-visible {
	transform: translateY(0);
	opacity: 1;
}
.cdp-notification .cdp-icon {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fdecee;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}
.cdp-notification .cdp-body {
	flex: 1;
	min-width: 0;
}
.cdp-notification .cdp-title {
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
	margin: 0 0 3px;
	line-height: 1.3;
}
.cdp-notification .cdp-subtext {
	font-size: 12.5px;
	color: #6b7280;
	margin: 0;
	line-height: 1.3;
}
.cdp-notification .cdp-close-btn {
	background: none;
	border: none;
	font-size: 16px;
	line-height: 1;
	color: #9ca3af;
	cursor: pointer;
	padding: 2px;
	flex-shrink: 0;
}
.cdp-notification .cdp-close-btn:hover {
	color: #1d2327;
}
.cdp-notification .cdp-verified {
	display: inline-block;
	margin-top: 6px;
	font-size: 11px;
	color: #16a34a;
	font-weight: 600;
}

@media (max-width: 480px) {
	.cdp-popup-root.cdp-hide-mobile { display: none !important; }
	.cdp-popup-root { max-width: calc(100% - 24px); left: 12px !important; right: 12px !important; }
}

/* --------------------------------------------------- */
/* Donate button / modal                                 */
/* --------------------------------------------------- */
.cdp-donate-button {
	background: #e0364c;
	color: #fff;
	border: none;
	padding: 12px 26px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: background .2s ease;
}
.cdp-donate-button:hover { background: #c22a3e; }

.cdp-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
}
.cdp-modal.cdp-open { display: flex; }
.cdp-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.55);
}
.cdp-modal-box {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 32px;
	width: 92%;
	max-width: 440px;
	max-height: 88vh;
	overflow-y: auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.cdp-modal-box h2 {
	margin-top: 0;
}
.cdp-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
}

.cdp-donate-form .cdp-form-row {
	margin-bottom: 14px;
}
.cdp-donate-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 13px;
	color: #374151;
}
.cdp-donate-form input[type="text"],
.cdp-donate-form input[type="email"],
.cdp-donate-form input[type="number"],
.cdp-donate-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}
.cdp-amount-row {
	display: flex;
	gap: 8px;
}
.cdp-amount-btn {
	flex: 1;
	padding: 10px 0;
	border: 1px solid #d1d5db;
	background: #f9fafb;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	transition: all .15s ease;
}
.cdp-amount-btn.cdp-selected,
.cdp-amount-btn:hover {
	border-color: #e0364c;
	background: #fdecee;
	color: #c22a3e;
}
.cdp-required { color: #e0364c; }
.cdp-gateway-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.cdp-gateway-option {
	display: flex !important;
	align-items: center;
	gap: 8px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 10px 12px;
	font-weight: 500 !important;
	cursor: pointer;
	margin-bottom: 0 !important;
}
.cdp-gateway-option input {
	width: auto !important;
	margin: 0;
}
.cdp-gateway-option:has(input:checked) {
	border-color: #e0364c;
	background: #fdecee;
}
.cdp-submit-btn {
	width: 100%;
	background: #e0364c;
	color: #fff;
	border: none;
	padding: 13px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
}
.cdp-submit-btn:hover { background: #c22a3e; }
.cdp-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.cdp-form-status {
	margin-top: 10px;
	font-size: 13.5px;
	font-weight: 600;
}
.cdp-form-status.cdp-success { color: #16a34a; }
.cdp-form-status.cdp-error { color: #dc2626; }

/* --------------------------------------------------- */
/* Progress bar widget                                    */
/* --------------------------------------------------- */
.cdp-progress-widget {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 480px;
}
.cdp-progress-stats {
	font-size: 15px;
	margin-bottom: 8px;
	color: #1d2327;
}
.cdp-progress-stats strong {
	font-size: 20px;
	color: #e0364c;
	margin-right: 6px;
}
.cdp-progress-track {
	background: #e5e7eb;
	border-radius: 999px;
	height: 14px;
	overflow: hidden;
}
.cdp-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #e0364c, #ff7a8a);
	border-radius: 999px;
	transition: width .6s ease;
}
.cdp-progress-footer {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	font-size: 12.5px;
	color: #6b7280;
}

/* --------------------------------------------------- */
/* Recent donations inline list                           */
/* --------------------------------------------------- */
.cdp-recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.cdp-recent-list li {
	display: flex;
	gap: 10px;
	align-items: baseline;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
}
.cdp-recent-list li:last-child { border-bottom: none; }
.cdp-recent-name { font-weight: 600; color: #1d2327; }
.cdp-recent-amount { color: #e0364c; font-weight: 700; }
.cdp-recent-location { color: #9ca3af; font-size: 12.5px; margin-left: auto; }

.cdp-total-raised {
	font-weight: 700;
	color: #e0364c;
}

/* --------------------------------------------------- */
/* Campaign header inside forms (image/description/progress) */
/* --------------------------------------------------- */
.cdp-campaign-header {
	margin-bottom: 18px;
}
.cdp-campaign-image img {
	width: 100%;
	height: auto;
	max-height: 220px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
	margin-bottom: 12px;
}
.cdp-campaign-description {
	font-size: 14px;
	color: #4b5563;
	line-height: 1.5;
	margin-bottom: 14px;
}
.cdp-campaign-description p:last-child { margin-bottom: 0; }
.cdp-campaign-header .cdp-progress-widget {
	margin-bottom: 6px;
}
.cdp-optional-label {
	color: #9ca3af;
	font-weight: 400;
	font-size: 12px;
}
.cdp-progress-compact .cdp-progress-track { height: 8px; }
.cdp-progress-compact .cdp-progress-footer { font-size: 11.5px; }

/* --------------------------------------------------- */
/* Campaigns grid ("donate to a cause" page)              */
/* --------------------------------------------------- */
.cdp-campaigns-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 22px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.cdp-campaigns-grid.cdp-columns-1 { grid-template-columns: repeat( 1, 1fr ); }
.cdp-campaigns-grid.cdp-columns-2 { grid-template-columns: repeat( 2, 1fr ); }
.cdp-campaigns-grid.cdp-columns-4 { grid-template-columns: repeat( 4, 1fr ); }

@media ( max-width: 720px ) {
	.cdp-campaigns-grid { grid-template-columns: 1fr !important; }
}

.cdp-campaign-card {
	background: #fff;
	border: 1px solid #eceef1;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
	display: flex;
	flex-direction: column;
}
.cdp-campaign-card-image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}
.cdp-campaign-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.cdp-campaign-card-title {
	margin: 0;
	font-size: 17px;
	color: #1d2327;
}
.cdp-campaign-card-desc {
	margin: 0;
	font-size: 13.5px;
	color: #6b7280;
	line-height: 1.5;
	flex: 1;
}
.cdp-card-donate-btn {
	width: 100%;
	padding: 10px;
	font-size: 14px;
}

/* --------------------------------------------------- */
/* Featured campaign popup (dismissible spotlight)        */
/* --------------------------------------------------- */
.cdp-featured-popup {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.5);
	padding: 16px;
}
.cdp-featured-popup.cdp-open { display: flex; }
.cdp-featured-popup-box {
	position: relative;
	background: #fff;
	border-radius: 14px;
	max-width: 420px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.cdp-featured-popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255,255,255,0.9);
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #1d2327;
	z-index: 2;
}
.cdp-featured-popup-image img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}
.cdp-featured-popup-body {
	padding: 20px;
}
.cdp-featured-popup-title {
	margin: 0 0 8px;
	font-size: 19px;
	color: #1d2327;
}
.cdp-featured-popup-desc {
	margin: 0 0 14px;
	font-size: 13.5px;
	color: #6b7280;
	line-height: 1.5;
}
.cdp-featured-popup-donate {
	width: 100%;
	margin-top: 14px;
}

/* --------------------------------------------------- */
/* Thank-you popup (shown after a successful donation)   */
/* --------------------------------------------------- */
.cdp-thankyou-popup {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.55);
	padding: 16px;
}
.cdp-thankyou-popup.cdp-open { display: flex; }
.cdp-thankyou-popup-box {
	position: relative;
	background: #fff;
	border-radius: 14px;
	max-width: 380px;
	width: 100%;
	padding: 34px 28px 30px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	animation: cdp-thankyou-pop .3s ease;
}
@keyframes cdp-thankyou-pop {
	from { transform: scale(.9); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}
.cdp-thankyou-popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f3f4f6;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #1d2327;
}
.cdp-thankyou-icon {
	font-size: 44px;
	line-height: 1;
	margin-bottom: 14px;
}
.cdp-thankyou-message {
	font-size: 16px;
	color: #1d2327;
	line-height: 1.5;
	margin: 0;
}

/* --------------------------------------------------- */
/* "Processing" feedback for clicked buttons              */
/* --------------------------------------------------- */
.cdp-btn-processing {
	opacity: .75;
	cursor: wait !important;
	pointer-events: none;
}
