/* =============================================================
   Donation Plugin — Frontend Styles
   ============================================================= */

.dn-plugin {
	font-family: inherit;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.dn-plugin *,
.dn-plugin *::before,
.dn-plugin *::after {
	box-sizing: inherit;
}

/* -------- Test Mode Banner -------- */

.dn-test-banner {
	background: #c0392b;
	color: #fff;
	text-align: center;
	padding: 9px 16px;
	font-size: 13px;
	letter-spacing: .02em;
}

/* -------- Hero Section -------- */

.dn-hero {
	background: #B8691B;
	padding: 48px 40px;
	display: flex;
	align-items: flex-start;
	gap: 40px;
}

.dn-hero-image {
	flex-shrink: 0;
}

.dn-campaign-img {
	display: block;
	width: 180px;
	height: 180px;
	object-fit: cover;
	border-radius: 4px;
}

.dn-hero-content {
	flex: 1;
	color: #fff;
	min-width: 0;
}

/* -------- Top Row -------- */

.dn-hero-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 14px;
}

.dn-raised {
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
}

.dn-goal-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

/* -------- Select Amount Label -------- */

.dn-select-label {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9);
}

/* -------- Amount Buttons -------- */

.dn-amounts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 10px;
}

.dn-amount-btn {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	border-radius: 3px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 13px 8px;
	cursor: pointer;
	transition: background .15s, border-color .15s;
	white-space: nowrap;
}

.dn-amount-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.75);
}

.dn-amount-btn.is-active {
	background: rgba(255, 255, 255, 0.2);
	border-color: #fff;
}

/* -------- Custom Amount Input -------- */

.dn-custom-amount {
	width: 100%;
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	border-radius: 3px;
	color: #fff;
	font-size: 14px;
	padding: 11px 14px;
	margin-bottom: 18px;
	outline: none;
	transition: border-color .15s;
	-moz-appearance: textfield;
}

.dn-custom-amount::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.dn-custom-amount:focus {
	border-color: rgba(255, 255, 255, 0.85);
}

.dn-custom-amount::-webkit-outer-spin-button,
.dn-custom-amount::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* -------- Stats Row -------- */

.dn-stats {
	display: flex;
	gap: 36px;
	margin-bottom: 20px;
}

.dn-stat {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.dn-stat-value {
	font-size: 22px;
	font-weight: 700;
}

.dn-stat-label {
	font-size: 12px;
	letter-spacing: .04em;
	color: rgba(255, 255, 255, 0.8);
}

/* -------- Payment Method Selector -------- */

.dn-methods {
	display: flex;
	gap: 20px;
	margin-bottom: 14px;
}

.dn-method {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	cursor: pointer;
}

.dn-method input[type="radio"] {
	width: 16px;
	height: 16px;
	accent-color: #fff;
	cursor: pointer;
}

/* -------- Donate Button -------- */

.dn-donate-btn {
	width: 100%;
	background: #E8622A;
	border: none;
	border-radius: 3px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	padding: 17px 16px;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}

.dn-donate-btn:hover {
	background: #d4531d;
}

.dn-donate-btn:disabled {
	opacity: .65;
	cursor: not-allowed;
}

/* -------- Error Message -------- */

.dn-error {
	margin: 8px 0 0;
	min-height: 18px;
	font-size: 13px;
	color: #ffd6c0;
}

/* -------- PayPal Card -------- */

.dn-paypal-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 34px 24px;
	max-width: 340px;
	margin: 0 auto;
	border: 2px solid #d0d0d0;
	border-radius: 8px;
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}

.dn-paypal-card:hover {
	border-color: #009cde;
	box-shadow: 0 4px 16px rgba(0, 156, 222, .12);
	text-decoration: none;
}

.dn-paypal-icon {
	line-height: 0;
}

.dn-paypal-label {
	font-size: 20px;
	font-weight: 600;
	color: #5a3e1b;
}

/* -------- Responsive -------- */

@media (max-width: 640px) {
	.dn-hero {
		flex-direction: column;
		padding: 28px 20px;
	}

	.dn-campaign-img {
		width: 120px;
		height: 120px;
	}

	.dn-amounts {
		grid-template-columns: repeat(2, 1fr);
	}
}
