/**
 * Formulaire de don
 */
#root-givewp-donation-form,
.root-data-givewp-embed {
	background-color: transparent;
}

#root-givewp-donation-form {
	padding: 0;
}

.givewp-donation-form {
	max-width: none;
	width: 100%;
}

.givewp-layouts-form {
	background-color: transparent;
	box-shadow: none;
	border: none;
}

#give-next-gen {
	--image-width: 300px;
	--image-height: 300px;
	
	--column: 2;
	--gap: 45px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--gap);
}

#give-next-gen .givewp-layouts-section {
	background-color: white;
	border-radius: 18px;
	flex-basis: calc(100% / var(--column) - var(--gap) / var(--column) * (var(--column) - 1));
	box-shadow: var(--givewp-shadow-xs);
	padding: 30px;
}

#give-next-gen .givewp-layouts-section h3 {
	font-size: 24px;
	color: var(--global-palette5);
	text-align: center;
}

#give-next-gen .givewp-layouts-section .givewp-elements-donationSummary-donation-summary {
	display: none;
}

#give-next-gen .givewp-layouts-section button {
	background-color: var(--global-palette2);
	border-color: var(--global-palette2);
}

#give-next-gen .givewp-layouts-section button.givewp-fields-amount__level {
	background-color: white;
	color: var(--global-palette2);
}

#give-next-gen .givewp-layouts-section button.givewp-fields-amount__level--selected {
	background-color: var(--global-palette2);
	color: white;
}

#give-next-gen .givewp-fields-gateways__list label,
#give-next-gen .givewp-fields-gateways__list .givewp-fields-gateways__gateway__fields {
	border-color: var(--global-palette2);
}

#give-next-gen input[type="radio"]::before {
	box-shadow: inset 1em 1em var(--global-palette2);
}

#give-next-gen .givewp-layouts-section:first-child {
	flex-basis: 100%;
}

#give-next-gen .givewp-layouts-section:first-child {
	overflow: hidden;
	padding: 0;
}

#give-next-gen .givewp-layouts-section:first-child fieldset {
	width: 100%;
}

#give-next-gen .givewp-layouts-section:first-child .givewp-section-nodes {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0;
	align-items: center;
}

#give-next-gen .givewp-layouts-section:first-child .givewp-elements-paragraph {
	width: var(--image-width);
	min-height: var(--image-height);

	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-image: var(--image-url);
	order: -10;
}

#give-next-gen .givewp-layouts-section:first-child .givewp-groups-donationAmount {
	width: calc(100% - var(--image-width));
	padding-left: 110px;
	padding-right: 150px;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

#give-next-gen .givewp-layouts-section:nth-child(3) {
	padding-bottom: calc(140px + 30px);
}

#give-next-gen .givewp-layouts-section:last-child {
	--height: 140px;
	height: var(--height);
	margin-top: calc((var(--height) + var(--gap)) * -1);

	margin-left: auto;
	margin-right: 0;
}

#give-next-gen select {
	height: 50px;
}


#give-next-gen input[type="text"]:focus,
#give-next-gen select:focus,
#give-next-gen input[type="email"]:focus {
	--box-shadow: 0 0 0 var(--outline-width) var(--global-palette2);
}

#give-next-gen select:focus,
#give-next-gen input[type="radio"]:focus {
	border-color: var(--global-palette2);
    box-shadow: 0 0 0 var(--outline-width) var(--global-palette2);
}

#give-next-gen .givewp-fields-amount__input-container {
	padding: 0;
	border-color: var(--global-palette2) !important;
	background-color: var(--global-palette2);
}

#give-next-gen .givewp-fields-consent__container,
#give-next-gen .givewp-fields-amount__currency-container {
	display: none;
}

#give-next-gen .givewp-fields-amount__input-container {
	border: 0;
}

#give-next-gen #amount-custom {
	border-color: var(--global-palette2);
}

#give-next-gen .givewp-fields-amount__input-label {
	width: 100%;
}

#give-next-gen .givewp-fields-amount__input-label-container .givewp-fields__label-text {
	color: var(--donation-title-color);
	font-weight: bold;
	text-align: center;
	display: block;
	margin-bottom: 0.5em;
	font-size: 18px;
}

#give-next-gen .givewp-fields-amount__input-label-container .givewp-fields__label-text .givewp-field-required {
	display: none;
}

#give-next-gen .givewp-fields-amount__input {
	height: 3rem;
}

@media (max-width: 1024px) {
	#give-next-gen .givewp-layouts-section:first-child .givewp-elements-paragraph {
		height: 100%;
	}
}

@media (max-width: 768px){
    body .givewp-fields-amount__levels-container .givewp-fields-amount__level-container {
        flex-basis: 100%;
    }

	#give-next-gen .givewp-layouts-section:first-child .givewp-groups-donationAmount {
		padding: 2rem;
	}

	#give-next-gen {
		--column: 1;
	}

	#give-next-gen .givewp-layouts-section:first-child .givewp-elements-paragraph {
		height: var(--image-height);
		width: 100%;
	}

	#give-next-gen .givewp-layouts-section:first-child .givewp-groups-donationAmount {
		width: 100%;
	}
}