/* ==========================================================================
   Donation popup ([vosa_donate_checkout]). Loads AFTER vosa-public.css and
   reuses its field / header / submit / logged-in classes. Only what is new
   lives here: the trigger button, the overlay shell (own classes so the
   adoption popup's JS can never act on it), the amount input and the
   Monthly / One-Time radio cards.
   ========================================================================== */

.vosa-don-overlay,
.vosa-don-overlay input,
.vosa-don-overlay textarea,
.vosa-don-overlay button,
.vosa-donate-btn {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #2b2530;
	-webkit-font-smoothing: antialiased;
}

.vosa-don-overlay *,
.vosa-don-overlay *::before,
.vosa-don-overlay *::after {
	box-sizing: border-box;
}

.vosa-don-overlay [hidden] {
	display: none !important;
}

/* Trigger button (same look as .vosa-adopt-btn, different class on purpose). */
.vosa-donate-btn {
	display: inline-block;
	background: #7a4dbf;
	color: #fff !important;
	border: none;
	padding: 10px 18px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none !important;
	line-height: 1.4;
	transition: background-color 0.15s ease;
}

.vosa-donate-btn:hover,
.vosa-donate-btn:focus-visible {
	background: #6a3fac;
	color: #fff !important;
}

/* Overlay + modal shell (mirrors .vosa-modal-overlay / .vosa-modal). */
.vosa-don-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba( 20, 15, 10, 0.6 );
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
}

.vosa-don-overlay.vosa-don-is-open {
	display: flex;
}

body.vosa-don-open {
	overflow: hidden;
}

.vosa-don-modal {
	background: #fff;
	border-radius: 14px;
	max-width: 460px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 0 28px 24px;
	position: relative;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.3 );
	-webkit-overflow-scrolling: touch;
}

.vosa-don-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: rgba( 255, 255, 255, 0.9 );
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.vosa-don-close:hover,
.vosa-don-close:focus-visible {
	background: #f2e9ff;
	color: #7a4dbf;
	outline: none;
}

/* Amount */
.vosa-don-amount-wrap {
	position: relative;
}

.vosa-don-currency {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY( -50% );
	font-weight: 700;
	color: #7a4dbf;
	pointer-events: none;
}

.vosa-field .vosa-don-amount-wrap input[type='text'] {
	padding-left: 30px;
	font-size: 18px;
	font-weight: 600;
}

.vosa-don-hint {
	margin: 5px 0 0;
	font-size: 12px;
	color: #8a7aa8;
}

/* Radio cards */
.vosa-don-type {
	border: 0;
	margin: 0 0 12px;
	padding: 0;
	min-width: 0;
}

.vosa-don-type legend {
	font-weight: 600;
	font-size: 13px;
	color: #4a4254;
	padding: 0;
	margin-bottom: 6px;
}

.vosa-don-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 8px;
	cursor: pointer;
}

.vosa-don-option input[type='radio'] {
	margin-top: 14px;
	flex-shrink: 0;
}

.vosa-don-option-body {
	display: block;
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	background: #fff;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.vosa-don-option-body strong {
	display: block;
	font-size: 14px;
	color: #2b2530;
}

.vosa-don-option-body small {
	display: block;
	font-size: 12px;
	color: #6a5f78;
}

.vosa-don-option input[type='radio']:checked + .vosa-don-option-body {
	border-color: #7a4dbf;
	background: #f2e9ff;
	box-shadow: 0 0 0 3px rgba( 122, 77, 191, 0.15 );
}

.vosa-don-option input[type='radio']:focus-visible + .vosa-don-option-body {
	outline: 3px solid #d8c7f0;
	outline-offset: 2px;
}

.vosa-don-summary {
	margin: 0 0 16px;
	min-height: 1.2em;
	font-size: 13px;
	font-weight: 600;
	color: #7a4dbf;
}

/* Success state */
.vosa-don-success {
	text-align: center;
	padding: 48px 0 8px;
}

.vosa-don-success h2 {
	margin: 0 0 10px;
	font-size: 21px;
	color: #2b2530;
}

.vosa-don-success p {
	margin: 0 0 22px;
	color: #4a4254;
}

@media ( max-width: 480px ) {
	.vosa-don-overlay {
		padding: 10px;
	}

	.vosa-don-modal {
		padding: 0 18px 20px;
	}
}
