/**
 * Donation fallback shown when the GiveButter embed fails to load.
 *
 * Restated as `.gchs-gb-fallback[hidden]` because the `hidden` attribute loses
 * to any class rule that sets `display` — without this the block would be
 * visible on every page whether the embed worked or not.
 */
.gchs-gb-fallback {
	display: block;
	margin: 1.25rem auto 0;
	max-width: 440px;
	padding: 1.25rem;
	border: 1px solid var(--wp--preset--color--neutral-light, #e4e5ed);
	border-radius: 12px;
	background: #fff;
	text-align: center;
}

.gchs-gb-fallback[hidden] {
	display: none;
}

.gchs-gb-fallback__lede {
	margin: 0 0 0.4rem;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary-dark, #34577c);
}

.gchs-gb-fallback__body {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--wp--preset--color--neutral-mid, #686868);
}

.gchs-gb-fallback__cta {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border-radius: 999px;
	background: var(--wp--preset--color--primary-dark, #34577c);
	color: #fff;
	font-family: var(--wp--preset--font-family--subheading, inherit);
	font-weight: 700;
	text-decoration: none;
}

.gchs-gb-fallback__cta:hover,
.gchs-gb-fallback__cta:focus {
	background: var(--wp--preset--color--primary, #709dcc);
	color: #fff;
}

.gchs-gb-fallback__help {
	margin: 0.9rem 0 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--wp--preset--color--neutral-mid, #686868);
}

/* Inside the donate modal the panel sits on the form's own card, so it should
   read as part of that panel rather than as a second floating box. */
.gchs-gb-fallback--popup {
	margin-top: 0.75rem;
	border: none;
	box-shadow: none;
	padding: 1rem 0.5rem 0.25rem;
}
