.gfield.gfield_guest_repeater_parent_field {
	margin-bottom: 0;
}

.ginput_container_guest_repeater_editor {
	border: 0;
	padding: 0;
	background: transparent;
}

.gfield_guest_repeater_editor_header {
	border: 1px solid #c3c4c7;
	border-radius: 4px 4px 0 0;
	padding: 0.75rem 1rem;
	background: #f0f6fc;
}

.gfield_guest_repeater_editor_title {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.gfield_guest_repeater_editor_help {
	margin: 0;
	color: #50575e;
	font-size: 12px;
	line-height: 1.5;
}

.guest-repeater-editor-hint {
	margin: 0 0 1rem 1.5rem;
	padding: 0.75rem 1rem;
	border: 2px dashed #72aee6;
	border-top: 0;
	border-radius: 0 0 4px 4px;
	background: #f6f7f7;
	color: #646970;
	font-size: 12px;
	line-height: 1.5;
	font-style: italic;
}

.gfield.guest_repeater_child_field {
	margin-left: 1.5rem;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
	border-left: 2px dashed #72aee6;
	border-right: 2px dashed #72aee6;
	background: #f6f7f7;
	min-width: 0;
}

.gfield_guest_repeater_parent_field + .guest_repeater_child_field,
.guest-repeater-editor-hint + .guest_repeater_child_field {
	border-top: 2px dashed #72aee6;
	padding-top: 0.75rem;
}

.gfield.guest_repeater_child_field_last {
	border-bottom: 2px dashed #72aee6;
	border-radius: 0 0 4px 4px;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
}

.gfield_guest_repeater_item_fields {
	display: grid;
	grid-template-columns: repeat( 12, minmax( 0, 1fr ) );
	column-gap: var( --gf-form-gap-x, 16px );
	row-gap: var( --gf-form-gap-y, 16px );
	align-items: start;
}

.gfield_guest_repeater_cell {
	display: contents;
}

.gfield_guest_repeater_item_fields > .gfield {
	min-width: 0;
}

/*
 * The fieldset legend is hidden while no guest rows are rendered. The selector has to
 * out-specify the theme's `.gform_wrapper.gravity-theme .gfield legend { display: block }`
 * (0,3,1), which also loads after this file, so plain `[hidden]` never took effect.
 */
.gfield .ginput_container_guest_repeater .gfield_guest_repeater > legend[hidden] {
	display: none;
}

.gfield_guest_repeater_item {
	border-top: 1px solid #dcdcde;
	margin-top: 1.25rem;
	padding-top: 1rem;
}

.gfield_guest_repeater_item:first-child {
	border-top: 0;
	margin-top: 0;
	padding-top: 0;
}

.gfield_guest_repeater_item_heading {
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.gfield_guest_repeater_entry_guest + .gfield_guest_repeater_entry_guest {
	margin-top: 1rem;
}

.gfield_guest_repeater_entry_guest_label {
	font-weight: 600;
	margin-bottom: 0.25rem;
}
