@media screen {

	form#eGovManager {
		margin-top: 1em;
	}

	form#eGovManager p {
		margin-top: 0;
	}

	/* cart */
	div.paymentScreen > .row > .eGov_cartContainer {
		position: sticky;
		top: 0;
		align-self: flex-start;
	}

	section.paymentScreen > .row > .eGov_cartContainer > .box {
		padding-bottom: 1em;
	}

	#eGov_paymentCart {
		background: #fff;
		border: 1px solid #ccc;
		margin-top: 2.5em;
		padding: 15px;
		position: relative;

		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		-ms-box-sizing: border-box;
		box-sizing: border-box;

		-moz-transition: height .2s;
		-webkit-transition: height .2s;
		-o-transition: height .2s;
		transition: height .2s;
	}

	#eGov_paymentCartDetails {
		-moz-transition: height .2s;
		-webkit-transition: height .2s;
		-o-transition: height .2s;
		transition: height .2s;
	}

	#eGov_paymentCartDetails > .row {
		margin: 0 0 1em 0;
	}

	.eGov_cartItem .col-xs-4 {
		text-align: right;
		white-space: nowrap;
	}

	.row.eGov_cartItem .col-xs-1,
	.row.eGov_cartTotal .col-xs-1 {
		padding: 0;
		text-align: center;
	}

	.eGov_cartItem > .col-xs {
		padding: 0;
	}

	.eGov_cartItem .fal {
		background: none;
		border: none;
		cursor: pointer;
		font-family: 'Font Awesome 5 Pro' !important;
		margin-top: -.3em;

		-moz-appearance: none;
		-webkit-appearance: none;
		-ms-appearance: none;
		appearance: none;
	}

	.itemShrink {
		max-height: 0px;  /* doing this because height transition from auto (unset) height elements doesn't work */
		opacity: 0;
		padding-top: 0;
		padding-bottom: 0;
		transition: max-height .2s, opacity .2s, padding .2s;
		overflow: hidden;
	}

	.eGov_cartTotal > .col-xs-11 {
		padding-left: 0;
	}

	.eGov_cartTotal table {
		border-spacing: 0;
		border: none;
		margin-left: auto;
		margin-right: 0px;
	}

	.eGov_cartTotal table tr th
	{
		border: none;
		padding-right: .25rem;
		text-align: left;
		vertical-align: bottom;
		white-space: normal;
	}

	.eGov_cartTotal table tr th,
	.eGov_cartTotal table tr td {
		vertical-align: bottom;
	}

	.eGov_cartTotal table tr td {
		border: none;
		text-align: right;
	}

	/* standalone cart */
	#eGov_cartScreen .eGov_cartItem .fal {
		background: none;
		border: none;
		cursor: pointer;
		margin-top: .3em !important;

		-moz-appearance: none;
		-webkit-appearance: none;
		-ms-appearance: none;
		appearance: none;
	}

	/* customize some sections*/
	section.paymentScreen section {
		padding-bottom: 2em;
	}

	section.paymentScreen section.eGov_formTemplate,
	section.paymentScreen section#eGov_checkoutTerms,
	section.paymentScreen section#eGov_EmvInformation {
		margin-bottom: 0;
		padding-bottom: 0;
	}

	section.paymentScreen section#eGov_billingInformation {
		margin-bottom: 2em;
		padding-bottom: 0;
	}

	#eGov_schedulePaymentFieldContainer {
		margin-top: 1em;
	}

	section.paymentScreen section#eGov_billingInformationAddress {
		margin-bottom: 0;
		padding-bottom: 0;
	}

	section.paymentScreen h2.eGov_formHeader {
		margin: 0 0 1em 0 !important;
	}

	section.paymentScreen h3.eGov_formHeader {
		margin: 0 0 .5em 0 !important;
	}

	/* Saved payment methods */
	.eGov_creditCardInformationStoredHeader,
	.eGov_eCheckInformationStoredHeader  {
		font-weight: bolder;
	}

	#eGov_storedMethodsItems > .row {
		margin: 0 0 1em 0;
	}

	#eGov_storedMethodsItems > .row {
		margin: 0 0 1em 0;
	}


	#eGov_cardList, #eGov_cardForm,
	#eGov_achList, #eGov_achForm {
		margin-top: 0; /*2em;*/
	}

	.eGov_storedMethodsItem .eGov_checkboxes label i {
		font-size: 1.6em;
		vertical-align: top;
	}

	.eGov_storedMethodsItem .eGov_checkboxes.eGov_useStoredMethodContainer > div input + label:before {
		top: .11em;
	}

	.eGov_storedMethodsItem .eGov_checkboxes.eGov_useStoredMethodContainer > div input + label:after {
		top: .52em;
	}

	.eGov_storedMethodsItem button {
		font-size: 1.1em;
		background: none;
		border: none;
		cursor: pointer;
		margin-top: -.3em;

		-moz-appearance: none;
	    -webkit-appearance: none;
	    -ms-appearance: none;
	    appearance: none;
	}

	#eGov_cardPreferenceCheckboxes {
		margin: .5em 0 1.2em 0;
	}

	#eGov_debitPreferenceCheckboxes {
		margin-top: .5em;
	}

	/* Primary/active method */
	.eGov_storedMethodActive .fa-3x {
		float: left;
		margin-right: .2em;
	}

	.eGov_accountFloatClear {
		overflow: hidden;
	}

	.eGov_storedMethodButtons {
		text-align: right;
	}

/*	.eGov_storedMethodButtons {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: space-between;
		align-content: stretch;
		align-items: flex-start;
	}

	.eGov_storedMethodButtons > button {
		order: 0;
		flex: 0 1 auto;
		align-self: auto;
	}*/

	/* eGov buttons */
	#eGov_buttons {
		border-top: 1px solid #ccc;
		margin-top: 1em;
		padding-top: 2em;
		text-align: center;
	}

	/* formatting alterations */
	.lightText {
		opacity: .75;
	}

	.hiddenText {
		border: 0;
		clip: rect(0 0 0 0);
		height: 1px;
		margin: -1px;
		overflow: hidden;
		padding: 0;
		position: absolute;
		width: 1px;
	}

	/*initially hide payment method buttons*/
	#eGov_paymentMethod {
		display: none;
	}

	/* cart overlay */
	#eGov_cartUpdateOverlay {
		display: none; /* initially hide */
		background: rgba(255,255,255,.8);
		bottom: 0;
		left: 0;
		position: absolute;
		right: 0;
		text-align: center;
		top: 0;
	}

	#eGov_cartUpdateOverlay i {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		font-size: 2em;
		color: rgba(58,125,180,1);
	}

	/* confirmation/receipt */
	section.confirmationScreen {
		overflow: hidden;
	}

	section.eGov_billedTo {
		margin-bottom: 2em;
	}

	section.eGov_billedTo h2 {
		margin: 0;
	}

	section.confirmationScreen table.eGov_listContent {
		border: 0;
	}

	section.confirmationScreen table.eGov_listContent tbody tr.eGov_rowOdd,
	section.confirmationScreen table.eGov_listContent tbody tr.eGov_rowEven {
		background: #ffffff;
	}

	section.confirmationScreen table.eGov_listContent thead tr th,
	section.confirmationScreen table.eGov_listContent thead tr th,
	section.confirmationScreen table.eGov_listContent tbody tr td,
	section.confirmationScreen table.eGov_listContent tbody tr td {
		border: none;
	}

	section.confirmationScreen table.eGov_listContent thead tr th:first-of-type {
		text-align: left;
	}


	section.confirmationScreen .eGov_infoContainerInner {
		padding-bottom: 0;
	}

	section.confirmationScreen .eGov_infoContainerInner .row {
		margin-bottom: 1em;
	}

	section.confirmationScreen .eGov_infoContainerInner > .row > div,
	section.confirmationScreen .eGov_infoContainerInner > .row > div > .box > .boxRow {
		margin-bottom: .6em;
		padding-bottom: 0;
	}

	section.confirmationScreen .eGov_infoContainerInner  > .row:last-of-type > div:nth-last-of-type(-n+2),
	section.confirmationScreen .eGov_infoContainerInner  > .row:last-of-type > div > .box > .boxRow:last-of-type {
		margin-bottom: 0;
	}

	/* backward-compatable styles */
	#eGov_intro {
		float: none;
		width: auto;
		text-align: justify;
		margin-bottom: 15px;
	}

	#eGov_search {
		width: auto;
		float: none;
	}

	.eGov_testModeBG {
		background: transparent url('/egov/imgs/ui/test_mode.png') 0 0 repeat !important;
	}
	/* /backward-compatable styles */
}

@media screen and (max-width: 62em) {
	div.paymentScreen {
		overflow: hidden;
	}

	div.paymentScreen > .row > .eGov_cartContainer {
		position: static;
	}

	.eGov_cart {
		border: 0;
		padding: 0;
		padding: 0;
	}

	.eGov_paymentCart > .row {
		margin: 0 -1em;
	}
}

@media print {

	section.confirmationScreen {
		overflow: hidden;
	}

	/* cart table */
	section.confirmationScreen {
		overflow: hidden;
	}

	section.confirmationScreen table.eGov_listContent {
		border-collapse: collapse;
		border-spacing: 0;
		border: 1px solid #333333 !important;
		border-bottom: 1px solid #333333 !important;
	}

	section.confirmationScreen table.eGov_listContent td,
	section.confirmationScreen table.eGov_listContent th {
		border-right: 1px solid #333333;
		border-bottom: 0;
		vertical-align: top;
	}

	section.confirmationScreen td.eGov_cartItem > .eGov_cartSubline {
		display: none;
	}

	section.confirmationScreen td.eGov_cartTotal {
		white-space: nowrap;
	}
	/* / cart table */

	section.confirmationScreen .eGov_infoContainerInner > .row > div,
	section.confirmationScreen .eGov_infoContainerInner > .row > div > .box > .boxRow {
		margin-bottom: .6em;
		padding-bottom: 0;
	}

	section.confirmationScreen .eGov_infoContainerInner  > .row:last-of-type > div:nth-last-of-type(-n+2),
	section.confirmationScreen .eGov_infoContainerInner  > .row:last-of-type > div > .box > .boxRow:last-of-type {
		margin-bottom: 0;
	}

}