.osd-wrap {
	clear: both;
	width: 100%;
	max-width: min(1120px, calc(100vw - 48px));
	margin-inline: auto;
}

/* Block themes constrain post content to ~645px; break out on desktop. */
:root :where(.is-layout-constrained) > .osd-wrap,
:root :where(.wp-block-post-content) > .osd-wrap {
	width: min(1120px, calc(100vw - 48px));
	max-width: min(var(--wp--style--global--wide-size, 1120px), calc(100vw - 48px));
	margin-inline: auto !important;
}

.osd-wrap.alignwide {
	max-width: min(var(--wp--style--global--wide-size, 1120px), calc(100vw - 48px));
}

.osd-card {
	--osd-orange: #ee5523;
	--osd-orange-soft: #fde8df;
	--osd-orange-dark: #c94415;
	--osd-green: #044929;
	--osd-green-dark: #03361e;
	--osd-ink: #111827;
	--osd-muted: #626b78;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 55%) minmax(340px, 45%);
	align-items: center;
	width: 100%;
	max-width: none;
	min-height: 620px;
	margin: 30px auto;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	background: #f4f5f6;
	box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
	color: var(--osd-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.osd-card * { box-sizing: border-box; }

.osd-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 58px 34px 48px clamp(38px, 5vw, 86px);
}

.osd-copy {
	max-width: 475px;
}

.osd-copy h2 {
	margin: 0 0 18px;
	color: var(--osd-green);
	font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
	font-size: clamp(36px, 4.4vw, 57px);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -.01em;
}

/* Reset theme heading styles inside the donation card. */
.osd-card .osd-copy h2 {
	font-family: "DM Serif Display", Georgia, "Times New Roman", serif !important;
	font-weight: 400 !important;
	letter-spacing: -.01em !important;
}

.osd-copy p {
	max-width: 440px;
	margin: 0 0 23px;
	color: var(--osd-muted);
	font-size: 17px;
	line-height: 1.5;
}

.osd-form {
	width: 100%;
	max-width: 435px;
}

.osd-tabs {
	display: flex;
	align-items: flex-end;
	gap: 0;
	padding-left: 0;
}

.osd-tabs label { cursor: pointer; }

.osd-tabs input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.osd-tabs span {
	display: block;
	min-width: 142px;
	padding: 14px 24px;
	border-radius: 10px 10px 0 0;
	color: #2d3440;
	font-size: 17px;
	font-weight: 750;
	text-align: center;
	transition: color .18s, background .18s;
}

.osd-tabs .is-active span {
	background: #fff;
	color: var(--osd-orange-dark);
}

.osd-panel {
	padding: 27px 31px 24px;
	border-radius: 0 12px 12px 12px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(17, 24, 39, .06);
}

.osd-amount-label {
	display: block;
	margin-bottom: 8px;
	color: #4b5563;
	font-size: 13px;
	font-weight: 700;
}

.osd-amount-input {
	display: grid;
	grid-template-columns: auto 1fr auto;
	overflow: hidden;
	border: 2px solid #3d4756;
	border-radius: 8px;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}

.osd-amount-input:focus-within {
	border-color: var(--osd-orange);
	box-shadow: 0 0 0 3px rgba(238, 85, 35, .16);
}

.osd-amount-input .osd-currency-symbol,
.osd-amount-input .osd-currency-code {
	display: grid;
	place-items: center;
	min-width: 58px;
	padding: 0 13px;
	background: var(--osd-orange-soft);
	color: var(--osd-orange-dark);
	font-size: 13px;
	font-weight: 850;
}

.osd-amount-input .osd-currency-symbol {
	border-right: 2px solid #3d4756;
}

.osd-amount-input .osd-currency-code {
	border-left: 2px solid #3d4756;
	background: #f4f5f6;
	color: #3d4756;
}

.osd-amount-input input {
	width: 100%;
	min-height: 48px;
	padding: 8px 14px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--osd-ink);
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	-moz-appearance: textfield;
}

.osd-amount-input input::-webkit-inner-spin-button { display: none; }

.osd-presets {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 9px;
	margin: 13px 0 17px;
}

.osd-presets button {
	min-height: 44px;
	padding: 7px 5px;
	border: 2px solid var(--osd-green);
	border-radius: 8px;
	background: var(--osd-green);
	color: #fff;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	transition: background .18s, border-color .18s, transform .18s;
}

.osd-presets button:hover,
.osd-presets button.is-selected {
	border-color: var(--osd-orange);
	background: var(--osd-orange);
	transform: translateY(-1px);
}

.osd-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 2px 0 18px;
	color: #535e6d;
	font-size: 13px;
	line-height: 1.45;
	cursor: pointer;
}

.osd-check[hidden] {
	display: none !important;
}

.osd-check input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	flex-shrink: 0;
	accent-color: var(--osd-orange);
}

.osd-check span {
	flex: 1;
}

.osd-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: auto;
	min-width: 180px;
	min-height: 45px;
	padding: 10px 23px;
	border: 0;
	border-radius: 999px;
	background: var(--osd-orange);
	box-shadow: 0 7px 15px rgba(238, 85, 35, .22);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: background .18s, transform .18s, box-shadow .18s;
}

.osd-submit:hover {
	background: var(--osd-orange-dark);
	box-shadow: 0 9px 18px rgba(238, 85, 35, .3);
	transform: translateY(-1px);
}

.osd-submit:disabled { cursor: wait; opacity: .65; }

.osd-submit svg {
	width: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
}

.osd-status {
	min-height: 18px;
	margin: 8px 0 0;
	color: #b42318;
	font-size: 12px;
}

.osd-secure {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 2px;
	color: #8b94a1;
	font-size: 11px;
}

.osd-secure svg {
	width: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.osd-visual {
	position: relative;
	z-index: 1;
	align-self: stretch;
	width: 100%;
	height: 100%;
	min-height: 620px;
	margin: 0;
	border-radius: 0;
	background-color: #86bfc3;
	background-position: 62% center;
	background-repeat: no-repeat;
	background-size: cover;
	filter: drop-shadow(-10px 18px 22px rgba(17, 75, 80, .14));
}

.osd-clip-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

@media (min-width: 721px) {
	.osd-card {
		grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
	}

	.osd-copy h2 {
		font-size: clamp(42px, 3.6vw, 57px);
	}
}

@media (max-width: 880px) {
	.osd-card {
		grid-template-columns: minmax(0, 57%) minmax(290px, 43%);
	}

	.osd-content { padding-left: 36px; }
	.osd-copy h2 { font-size: 40px; }
	.osd-visual { min-height: 620px; }
}

@media (max-width: 720px) {
	.osd-card {
		grid-template-columns: 1fr;
		margin: 18px auto;
		border-radius: 12px;
	}

	.osd-visual {
		order: -1;
		width: calc(100% - 34px);
		height: 350px;
		min-height: 0;
		margin: 24px auto 0;
		border-radius: 18px 18px 42% 42% / 18px 18px 31% 31%;
		background-position: 62% center;
		box-shadow: 0 15px 30px rgba(17, 75, 80, .16);
		clip-path: none !important;
		filter: none;
	}

	.osd-content { padding: 34px 25px 38px; }
	.osd-copy, .osd-form { max-width: none; }
	.osd-copy h2 { font-size: clamp(34px, 9vw, 46px); }
}

@media (max-width: 480px) {
	.osd-card {
		margin: 0;
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.osd-visual {
		width: calc(100% - 24px);
		height: clamp(270px, 78vw, 350px);
		margin-top: 12px;
		border-radius: 14px 14px 43% 43% / 14px 14px 29% 29%;
		background-position: 61% center;
	}

	.osd-content { padding: 28px 18px 34px; }
	.osd-panel { padding: 21px 18px; }
	.osd-tabs span { min-width: 125px; padding: 12px 16px; }
	.osd-presets { grid-template-columns: repeat(2, 1fr); }
}
