.wi-donation-modal {
	inset: 0;
	position: fixed;
	z-index: 99999;
}

.wi-donation-modal[hidden] {
	display: none;
}

.wi-donation-modal__backdrop {
	background: rgb(8 35 39 / 74%);
	inset: 0;
	position: absolute;
}

.wi-donation-modal__panel {
	/* Figma: the popup sits on the section grey, not white. */
	background: var(--wp--preset--color--surface);
	box-sizing: border-box;
	left: 50%;
	max-height: calc(100vh - 2rem);
	height: 460px;
	max-width: 1400px;
	overflow-y: auto;
	padding: 114px 84px 84px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 2rem);
}

.wi-donation-modal__close {
	background: transparent;
	border: 0;
	color: var(--wp--preset--color--ink);
	font-size: 32px;
	line-height: 1;
	min-height: 44px;
	position: absolute;
	right: 32px;
	top: 32px;
	width: 44px;
}

body #page .wi-donation-modal h2,
.wi-donation-modal h2 {
	color: var(--wi-teal-deep);
	font-size: var(--wi-heading-modal);
	line-height: var(--wi-heading-modal-line);
	margin: 0;
	max-width: 937px;
}

.wi-donation-modal__iban {
	align-items: center;
	color: var(--wi-teal-deep);
	display: flex;
	font-size: 32px;
	font-weight: 500;
	gap: 24px;
	line-height: 1.4;
	margin-top: 82px;
}

.wi-donation-modal__iban button {
	background: transparent;
	border: 0;
	color: inherit;
	font-size: 28px;
	min-height: 44px;
	padding: 0;
	width: 28px;
}

@media (max-width: 767.98px) {
	.wi-donation-modal__panel {
		height: auto;
		padding: 64px 24px 32px;
	}

	body #page .wi-donation-modal h2 {
		font-size: 32px;
		line-height: 1.1;
	}

	.wi-donation-modal__iban {
		flex-wrap: wrap;
		font-size: 20px;
		gap: 12px;
		margin-top: 40px;
	}
}

body.has-donation-modal {
	overflow: hidden;
}
