/* Virtual Remembrance Wall — poppy picture choices on the Gravity Forms donation form */
.rw-tint-natural { --tint: saturate(1.02); }
.rw-tint-blue    { --tint: hue-rotate(195deg) saturate(.8) brightness(.82); }
.rw-tint-purple  { --tint: hue-rotate(-78deg) saturate(.7) brightness(.74); }
.rw-tint-white   { --tint: grayscale(1) brightness(2.35) contrast(.62); }
.rw-tint-black   { --tint: grayscale(1) brightness(.52) contrast(1.15); }
.rw-tint-khaki   { --tint: sepia(1) saturate(.85) hue-rotate(18deg) brightness(.82); }

.gform_wrapper .rw-style-picker .gfield_radio {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
}

.gform_wrapper .rw-style-picker .gchoice {
	position: relative;
	display: block !important;
	margin: 0 !important;
}

.gform_wrapper .rw-style-picker .gchoice input[type="radio"] {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	opacity: 0 !important;
	cursor: pointer;
}

.gform_wrapper .rw-style-picker .gchoice label {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	max-width: none !important;
	width: 100%;
	margin: 0 !important;
	padding: 14px 8px 12px !important;
	font-size: .9rem;
	line-height: 1.25;
	text-align: center;
	background: #fbf8f2;
	border: 1px solid rgba(60, 48, 36, .18);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s, background .2s, transform .2s;
}

.gform_wrapper .rw-style-picker .gchoice label::before,
.gform_wrapper .rw-style-picker .gchoice label::after { display: none !important; }

.gform_wrapper .rw-style-picker .rw-style-choice__img {
	display: block;
	width: 88px;
	height: 88px;
	object-fit: contain;
	filter: var(--tint, saturate(1)) drop-shadow(0 1px 1px rgba(20, 8, 4, .35)) drop-shadow(1px 6px 6px rgba(20, 8, 4, .25));
	transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.gform_wrapper .rw-style-picker .gchoice:hover label { border-color: rgba(179, 38, 30, .45); }
.gform_wrapper .rw-style-picker .gchoice:hover .rw-style-choice__img { transform: scale(1.06) rotate(6deg); }

.gform_wrapper .rw-style-picker .gchoice input:checked + label {
	background: #fdf1ef;
	border-color: #b3261e;
	box-shadow: 0 0 0 2px #b3261e, 0 8px 18px -10px rgba(125, 24, 18, .6);
}

.gform_wrapper .rw-style-picker .gchoice input:focus-visible + label {
	outline: 3px solid #2271b1;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.gform_wrapper .rw-style-picker * { transition: none !important; }
}

/* Tribute picture choices (shown when an animal poppy is chosen) */
.gform_wrapper .rw-picture-picker .rw-picture-choice__img { filter: none; }
.gform_wrapper .rw-picture-picker .gchoice:hover label { border-color: rgba(47, 90, 168, .45); }
.gform_wrapper .rw-picture-picker .gchoice:hover .rw-style-choice__img { transform: scale(1.05); }
.gform_wrapper .rw-picture-picker .gchoice input:checked + label {
	background: #f1f5fc;
	border-color: #2f5aa8;
	box-shadow: 0 0 0 2px #2f5aa8, 0 8px 18px -10px rgba(30, 60, 120, .5);
}
