/*************  Add Child Modal Form  ***************************/
#feedback.success {
	color: limegreen;
}

#feedback.error {
	color: red;
}

#add-child-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#add-child-form #add-child-submit .label,
#add-child-form.loading #add-child-submit i {
	display: block;
}

#add-child-form.loading #add-child-submit .label,
#add-child-form #add-child-submit i {
	display: none;
}

#add-child-form > div {
	display: flex;
	flex-direction: row;
	gap: 5px;
	flex-wrap: wrap;
}

#add-child-form input {
	flex: 1 1;
	display: inline-block;
}

#add-child-form label {
	margin-top: 10px;
	display: block;
	flex: 0 0 100%;
}

#add-child-form input[type='submit'] {
	margin-top: 10px;
}

/****** select child template *********/
section.select-child-section {
	display: flex;
	gap: 20px;
	padding: 20px 10px 20px;
	align-items: center;
	flex-wrap: wrap;
}

.child-box-container {
	padding: 20px;
	cursor: pointer;
	flex: 0 1 250px;
	border: 2px solid var(--e-global-color-secondary);
	border-radius: 20px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: left;
}

.child-box {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 15px;
	align-items: center;
}

.child-box a.add-child.add-child-button i.fas.fa-plus,
.child-box i.fas.fa-child.child-icon {
	font-size: 60px;
	line-height: 60px;
	color: var(--e-global-color-secondary);
}

.child-box a.add-child.add-child-button.mti-modal-open-button {
	align-items: center;
	display: flex;
	gap: 20px;
	font-size: 1.2em;
	color: var(--e-global-color-secondary);
}

.select-child-section .first-name {
	display: inline-block;
}

.select-child-section .last-name {
	display: inline-block;
}

.select-child-section .fa-check {
	display: none;
	position: absolute;
	left: calc(50% - 40px);
	line-height: 65px;
	width: 80px;
	height: 80px;
	font-size: 40px;
	text-align: center;
	border: 10px solid;
	border-radius: 50%;
	z-index: 1;
	color: var(--e-global-color-primary);
	background-color: var(--e-global-color-accent);
	border-color: var(--e-global-color-primary);
}
.select-child-section .fa-check::before {
	content: '\f00c';
}

.child-box-container:hover a.add-child.add-child-button i::before,
.child-box-container.active .fa-times::before,
.child-box-container:hover .fa-times::before,
.child-box-container.active .fa-child::before,
.child-box-container:hover .fa-child::before {
	color: var(--e-global-color-primary);
	border-color: var(--e-global-color-primary);
}

.child-box-container.active,
.child-box-container:hover {
	color: var(--e-global-color-text);
	border-color: var(--e-global-color-primary);
}

.child-box-container.active .child-box {
	opacity: 0.35;
}

.child-box-container.active .fa-check {
	display: block;
}

/******************* child list ***************/
.family-member-section .family-member-headers,
.family-member-section .family-member-row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: 25px;
}

.family-member-section .family-member-headers > div,
.family-member-section .family-member-row > div {
	flex: 1 1 20%;
}

.family-member-section .family-member-row .family-member-registrations.show {
	display: block;
}

.family-member-section .family-member-row:nth-child(odd) {
	background-color: #efefef;
}

.family-member-section .family-member-headers {
	border-bottom: 1px solid;
	padding-bottom: 10px;
	margin-bottom: 20px;
	font-weight: bold;
}

.family-member-section {
	padding: 20px;
	margin: 20px auto;
	border: 1px solid !important;
}

.family-member-section .family-member-row .family-member-registrations {
	margin: 20px;
	border: 1px solid;
	display: none;
	flex: 1 1 100%;
	padding: 20px;
	background-color: #fafafa;
}

.family-member-section .family-member-row .family-member-registrations-headers {
	border-bottom: 1px solid;
	margin-bottom: 20px;
	padding-bottom: 10px;
	font-weight: bold;
}

.family-member-section .family-member-row .family-member-registrations-headers,
.family-member-section .family-member-row .family-member-registrations-row {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 25px;
}

.family-member-section .family-member-row .family-member-registrations-headers > div,
.family-member-section .family-member-row .family-member-registrations-row > div {
	flex: 1 1 25%;
}

.family-member-section .family-member-row .family-member-registrations-row:nth-child(odd) {
	background-color: #dfdfdf;
}

.family-member-section div.links a {
	cursor: pointer;
}
