/* =========================================================
   PRODUCT GRID
========================================================= */

#field_5_8 .gfield_checkbox {

	display: grid !important;

	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	gap: 24px;

	margin: 20px 0 0 !important;

	padding: 0 !important;
}


/* =========================================================
   REMOVE DEFAULT LIST STYLING
========================================================= */

#field_5_8 .gchoice {

	display: block !important;

	width: 100% !important;

	margin: 0 !important;

	padding: 0 !important;

	list-style: none !important;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

#field_5_8 .dtg-product-card {

	position: relative;

	width: 100%;

	height: 100%;

	box-sizing: border-box;

	border: 1px solid #d5d5d5;

	border-radius: 8px;

	background: #ffffff;

	transition:
		border-color .2s ease,
		box-shadow .2s ease;

	margin: 0 !important;
}


#field_5_8 .dtg-product-card:hover {

	border-color: #999;

	box-shadow:
		0 4px 15px rgba(0,0,0,.08);
}


/* =========================================================
   ORIGINAL GRAVITY FORMS CHECKBOX
========================================================= */

#field_5_8
.dtg-product-card
input[type="checkbox"] {

	position: absolute !important;

	opacity: 0 !important;

	width: 1px !important;

	height: 1px !important;

	margin: 0 !important;

	padding: 0 !important;

	pointer-events: none !important;
}


/* =========================================================
   CARD LABEL
========================================================= */

#field_5_8
.dtg-product-card-label {

	display: block !important;

	width: 100%;

	height: 100%;

	padding: 25px !important;

	margin: 0 !important;

	box-sizing: border-box;

	cursor: pointer;

	text-align: left;
}


/* =========================================================
   CONTENT
========================================================= */

#field_5_8
.dtg-product-card-content {

	display: flex;

	flex-direction: column;
}


/* =========================================================
   PRODUCT NAME
========================================================= */

#field_5_8
.dtg-product-name {

	display: block;

	margin: 0 0 15px;

	font-size: 24px;

	line-height: 1.25;

	font-weight: 600;
}


/* =========================================================
   DESCRIPTION
========================================================= */

#field_5_8
.dtg-product-description {

	display: block;

	margin-bottom: 20px;

	color: #555;

	font-size: 15px;

	line-height: 1.6;
}


/* WooCommerce formatting */

#field_5_8
.dtg-product-description p {

	margin-top: 0;

	margin-bottom: 12px;
}


#field_5_8
.dtg-product-description p:last-child {

	margin-bottom: 0;
}


#field_5_8
.dtg-product-description ul,
#field_5_8
.dtg-product-description ol {

	margin-top: 0;

	margin-bottom: 12px;

	padding-left: 20px;
}


#field_5_8
.dtg-product-description li {

	margin-bottom: 5px;
}


/* =========================================================
   PRICE
========================================================= */

#field_5_8
.dtg-product-price {

	display: block;

	margin-bottom: 20px;

	font-size: 18px;

	font-weight: 600;
}


/* =========================================================
   SELECT BUTTON
========================================================= */

#field_5_8
.dtg-product-select {

	display: inline-flex;

	align-items: center;

	justify-content: center;

	width: fit-content;

	padding: 10px 20px;

	border: 1px solid #222;

	border-radius: 4px;

	background: #fff;

	color: #222;

	font-size: 14px;

	font-weight: 600;

	text-transform: uppercase;

	transition:
		background .2s ease,
		color .2s ease;
}


/* =========================================================
   SELECTED CARD
========================================================= */

#field_5_8
.dtg-product-card.is-selected {

	border-color: #111;

	box-shadow:
		0 0 0 2px #111;
}


#field_5_8
.dtg-product-card.is-selected
.dtg-product-select {

	background: #222;

	color: #fff;
}


/* =========================================================
   SOLD OUT
========================================================= */

#field_5_8
.dtg-product-card.is-sold-out {

	opacity: .55;

	background: #f7f7f7;

	cursor: not-allowed;
}


#field_5_8
.dtg-product-card.is-sold-out
.dtg-product-card-label {

	cursor: not-allowed;
}


#field_5_8
.dtg-product-card.is-sold-out
.dtg-product-select {

	border-color: #aaa;

	background: #e5e5e5;

	color: #666;
}


/* =========================================================
   CUSTOM TOTAL
========================================================= */

.dtg-registration-total-wrapper {

	display: flex;

	align-items: center;

	justify-content: space-between;

	margin-top: 30px;

	padding-top: 20px;

	border-top: 1px solid #ddd;

	font-size: 18px;

	font-weight: 600;
}


.dtg-registration-total {

	font-size: 22px;

	font-weight: 700;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

	#field_5_8 .gfield_checkbox {

		grid-template-columns: 1fr !important;

		gap: 18px;
	}


	#field_5_8
	.dtg-product-card-label {

		padding: 20px !important;
	}


	#field_5_8
	.dtg-product-name {

		font-size: 21px;
	}

}

button#gform_submit_button_5{
        display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 20px 30px;
    border: 1px solid #0e256c;
    border-radius: 4px;
    background: #0e256c;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
    cursor: pointer;
}