/* Donation box – matches the Prishtina Trails checkout (Astra, square corners, dark green + lime). */
.ptd {
	--ptd-ink: #0a312e;
	--ptd-accent: #8fc762;
	--ptd-accent-soft: #f1f8ea;
	--ptd-line: #d5dcd9;
	--ptd-muted: #5b6b68;
	margin: 1.5em 0;
	padding: 1.25em;
	border: 1px solid var(--ptd-line);
	border-top: 3px solid var(--ptd-accent);
	background: #fff;
	color: var(--ptd-ink);
	container: ptd / inline-size;
}

.ptd__title {
	margin: 0 0 .25em;
	font-size: 1.15rem;
	line-height: 1.3;
	color: var(--ptd-ink);
}

.ptd__intro {
	margin: 0 0 1em;
	font-size: .875rem;
	color: var(--ptd-muted);
}

.ptd fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.ptd__charities {
	display: grid;
	gap: .5em;
}

/* Charity row */
.ptd-charity {
	border: 1px solid var(--ptd-line);
	background: #fff;
	transition: border-color .15s, background-color .15s;
}

.ptd-charity:has(.is-selected) {
	border-color: var(--ptd-ink);
	background: var(--ptd-accent-soft);
}

.ptd-option {
	display: flex;
	align-items: center;
	gap: .75em;
	margin: 0;
	padding: .75em;
	cursor: pointer;
	line-height: 1.35;
}

.ptd-option input[type="radio"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--ptd-ink);
}

.ptd-option__logo {
	flex: 0 0 84px;
	height: 48px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ptd-option__logo img {
	max-width: 84px;
	max-height: 48px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.ptd-monogram {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--ptd-ink);
	color: #fff;
	font-weight: 700;
	font-size: .9rem;
	letter-spacing: .02em;
}

.ptd-option__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ptd-option__name {
	font-weight: 600;
	color: var(--ptd-ink);
}

.ptd-option__short {
	font-size: .8125rem;
	color: var(--ptd-muted);
}

.ptd-charity__about {
	margin: 0;
	padding: 0 .75em .6em calc(.75em + 18px + .75em);
	font-size: .8125rem;
	color: var(--ptd-muted);
}

.ptd-charity__about summary {
	cursor: pointer;
	color: var(--ptd-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
	width: fit-content;
}

.ptd-charity__about[open] summary {
	margin-bottom: .5em;
}

.ptd-charity__about p {
	margin: 0 0 .6em;
}

.ptd-charity__about a {
	color: var(--ptd-ink);
	font-weight: 600;
}

.ptd-option--none {
	padding: .5em .75em;
	border: 1px dashed var(--ptd-line);
	font-size: .875rem;
}

.ptd-option--none .ptd-option__name {
	font-weight: 500;
}

.ptd-option--none.is-selected {
	border-style: solid;
	border-color: var(--ptd-ink);
}

/* Amounts */
.ptd__amounts {
	margin-top: 1em !important;
}

.ptd__amounts[hidden],
.ptd-custom[hidden] {
	display: none !important;
}

.ptd__label {
	padding: 0;
	margin-bottom: .5em;
	font-size: .875rem;
	font-weight: 600;
	color: var(--ptd-ink);
}

.ptd-chips {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
	gap: .5em;
}

.ptd-chip {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.ptd-chip input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.ptd-chip span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 0 .5em;
	box-sizing: border-box;
	border: 1px solid var(--ptd-ink);
	background: #fff;
	color: var(--ptd-ink);
	font-weight: 600;
	transition: background-color .15s, color .15s;
}

.ptd-chip:hover span {
	background: var(--ptd-accent-soft);
}

.ptd-chip input:checked + span {
	background: var(--ptd-ink);
	color: #fff;
}

.ptd-chip input:focus-visible + span,
.ptd-option input:focus-visible {
	outline: 2px solid var(--ptd-accent);
	outline-offset: 2px;
}

.ptd-custom {
	margin: .75em 0 0;
}

.ptd-custom label {
	display: block;
	margin-bottom: .25em;
	font-size: .875rem;
}

.ptd-custom__field {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--ptd-ink);
	background: #fff;
}

.ptd .ptd-custom__field input {
	width: 8em;
	height: 44px;
	padding: 0 .75em;
	border: 0;
	box-shadow: none;
	font-size: 1rem;
}

.ptd-custom__currency {
	display: inline-flex;
	align-items: center;
	padding: 0 .75em;
	border-left: 1px solid var(--ptd-line);
	color: var(--ptd-muted);
}

.ptd__status {
	margin: .75em 0 0;
	font-size: .875rem;
	font-weight: 500;
	color: var(--ptd-ink);
}

.ptd__status:empty {
	display: none;
}

/* Thank-you page */
.ptd-thanks {
	margin: 0 0 1.5em;
	padding: 1em 1.25em;
	border-left: 3px solid #8fc762;
	background: #f1f8ea;
	color: #0a312e;
	font-weight: 500;
}

/* Narrow column (the checkout sidebar, phones): logo on top, text below. */
@container ptd (max-width: 420px) {
	.ptd-option {
		display: grid;
		grid-template-columns: 18px 1fr;
		column-gap: .75em;
		row-gap: .4em;
	}
	.ptd-option__logo {
		justify-self: start;
		width: auto;
		height: 44px;
		padding: 0 4px;
	}
	.ptd-option__logo img {
		max-width: 120px;
		max-height: 44px;
	}
	.ptd-option__text {
		grid-column: 2;
	}
	.ptd-option--none {
		display: flex;
	}
}

@media (max-width: 480px) {
	.ptd {
		padding: 1em;
	}
}
