@layer buttons
{
	
	/* Main button group */

	.body-main .button-group
	{
		gap: 1.5rem;
		margin-block: 0 1.5rem;
	}

	.body-main .button-group.flex
	{
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	.body-main .button-group.grid
	{
		display: grid;
		align-content: start;
		grid-template-columns: minmax(0, 1fr);
	}

	/* Main buttons */

	.body-main .button-group > .button
	{
		text-decoration: none;
		font-size: 1.25rem;
		background: #8F1414;
		background: linear-gradient(180deg, rgba(105, 10, 10, 1) 0%, rgba(143, 20, 20, 1) 100%);
		color: #fff;
		border-radius: 1rem;
		border: 1px solid #8F1414;
		corner-shape: squircle;
		padding: 1.125rem 1.5rem 1rem;
	}

	.body-main .button-group > .button:hover
	.body-main .button-group > .button:focus-visible
	{
		background: #8F1414;
	}

	/* Additional styles for default, error, hero */

	.l-error .button-group,
	.l-default .button-group,
	.l-hero .button-group
	{
		border-top: 1px solid #bbb;
		padding-block: 3rem 0;
		margin-block: 1.5rem;
	}
	
	.l-error.pg-404 .button-group > .button
	{
		text-align: center; /* important text-align */
		min-width: 50vw;
		justify-self: center;
	}

	/* Additional styles for cards */

	.l-card .button-group
	{
		display: grid;
		width: 100%;
		background: #fff;
		background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(221, 221, 221, 1) 100%);
		border: 1px solid #fff;
		border-radius: 1.75rem;
		corner-shape: squircle;
		margin-block: 0;
		padding: 1.5rem 1.5rem 1.675rem;
	}

	.l-card .button-group > .button
	{
		color: #000;
		background: #fff;
		background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(170, 170, 170, 1) 100%);			
		border: 1px solid #fff;
		border-radius: .75rem;
		padding: 1.125rem 1rem 1rem;
		line-height: 1.5;
	}
	
	.l-card .button-group > .button:hover
	.l-card .button-group > .button:focus-visible
	{
		background: #000;
	}	

	.l-card.payment .button-group > .button.pay
	{
		border-color: #fff;
		color: #fff;
		background: #008000;
		background: linear-gradient(180deg, rgba(0, 128, 0, 1) 0%, rgba(0, 77, 0, 1) 100%);
	}
	
	.l-card.payment .button-group > .button.sign-up
	{
		border-color: #fff;
		color: #fff;
		background: #00009A;
		background: linear-gradient(180deg, rgba(0, 0, 154, 1) 0%, rgba(0, 0, 103, 1) 100%);
	}

	.l-card.payment .button-group > .button.learn-more
	{
		border-color: #fff;
		color: #fff;
		background: #8F1414;
		background: linear-gradient(0deg, rgba(105, 10, 10, 1) 0%, rgba(143, 20, 20, 1) 100%);
	}

	/* Footer buttons */

	.body-footer h2 a.button
	{
		color: #bbb;
		background: transparent;
		border: 1px solid #555;
	}
	
	.body-footer h2 a.button:hover,
	.body-footer h2 a.button:focus-visible
	{
		background-color: rgb(143 20 20 / 25%);
		border: 1px solid #f5be27;
	}

	.body-footer a.button
	{
		display: grid;
		width: 100%;
		color: #000;
		background: #fff;
		background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(170, 170, 170, 1) 100%);			
		border: 1px solid #fff;
		border-radius: .75rem;
		corner-shape: squircle;
		margin: 0 auto;
		padding: .75rem 1rem .85rem;
		font-size: 1.5rem;
		text-decoration: none;
		line-height: 1.5;
	}

	.body-footer a.button:hover,
	.body-footer a.button:focus-visible
	{
		background: #fff;
	}

	@media (min-width: 56rem)
	{

		.body-main .button-group.flex
		{
			flex-direction: row;
		}

		.body-main .button-group > .button
		{
			text-align: left; /* important text-align */
		}

		.body-main .button-group.flex > .button
		{
			flex: 1 1 0;
		}

		.l-default.pg-legal .button-group.grid
		{
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}		

		.l-error.pg-403 .button-group.grid
		{
			grid-template-columns: repeat(3, minmax(0, 1fr));
		}

		/* Keep each payment card's button group at the bottom. */

		.l-card.payment .button-group
		{
			margin-block: auto 0;
			padding-block-start: 2rem;
		}		

		/* Footer buttons */

		.body-footer h2 a.button,
		.body-footer h2 a.button:hover,
		.body-footer h2 a.button:focus-visible
		{
			color: #bbb;
			background: transparent;
			border: none;
		}

		.body-footer a.button
		{
			display: inline;
			width: auto;
			color: #fff;
			background: transparent;
			border: none;
			padding: 0;
			margin: 0;
			font-size: 1.25rem;
			line-height: 1;
		}
		
		.body-footer a.button:hover,
		.body-footer a.button:focus-visible
		{
			background: transparent;
			text-decoration: underline;
		}

		.body-footer .contact address a.button
		{
			color: #ffd5b8;
		}		

		.body-footer .contact address a.button.tel
		{
			border-color: none;
			color: #0f0;
			background: transparent;
		}
						
		.body-footer a.button.tel:hover,
		.body-footer a.button.tel:focus-visible
		{
			background: none;
		}
		
		.body-footer .return-to-top a.button
		{
			font-size: 1rem;
		}
		
		.l-hero.pg-faqs .button-group,
		.l-hero.pg-legal .button-group
		{
			border-top: none;
			border-left: 1px solid #bbb;
			padding-block: 0 0;
			padding-inline: 1.5rem 0;
			margin-block: 0;
		}		

	}
	
	@media (min-width: 80rem)
	{
		
		.l-default.pg-legal .button-group.grid
		{
			grid-template-columns: repeat(4, minmax(0, 1fr));
		}

	}

}