#gppa select {
	max-width: 100%;
}

.gppa-filter {
	display: flex;
	margin-bottom: 4px
}

.gppa-filter select.gppa-filter-property {
	flex: 2;
}

.gppa-filter select.gppa-filter-operator {
	flex: 1;
}

.gppa-filter .gppa-filter-value {
	flex: 2;
}

.gppa-results {
	margin: 15px 0 0;
	text-align: center;
}

.gppa-results-preview-contents {
	background: #f1f1f1;
	margin: -2px -15px -15px;
	min-height: 463px;
	padding: 15px;
	box-sizing: border-box;
}

.gppa-results.gppa-results-loading {
	display: flex;
	justify-content: center;
	align-items: center;
}

.gppa-results img {
	margin: 0 5px 0 0;
}

.gppa-ordering {
	display: flex;
}

.gppa-filter select,
.gppa-ordering select {
	flex: 1;
	width: 100%;
	min-width: 50px;
	margin: 0 4px 0 0 !important;
}

.gppa-filter select:last-of-type,
.gppa-ordering select:last-of-type {
	margin: 0;
}

.gppa-filter .repeater-buttons {
	display: inline-block;
	height: 28px;
	line-height: 28px;
	vertical-align: bottom;
}

.gppa-filter .repeater-buttons a {
	color: #9B9B9B;
	margin-left: 6px;
}

.gppa-filter .repeater-buttons a:hover {
	color: #444;
}

.gppa-filter-group-or {
	padding: 10px;
	margin: 0;
	text-align: center;
	color: #aaa;
	text-transform: uppercase;
}

.gf-legacy-ui .gppa-filter-and {
	display: none;
}

.gppa-filter-and {
	margin: 0 auto -30px;
	height: 30px;
	padding: 0 10px;
	background: #f6f9fc;
	line-height: 30px;
	color: #AEB5D4;
	text-transform: uppercase;
}

.gppa-filter-group + .gppa-add-filter-group {
	margin-top: 10px
}

#gppa table.field_custom_inputs_ui,
#gppa table.field_custom_inputs_ui select {
	width: 100%
}

.gppa-select-with-custom {
	position: relative;
	width: 100%;
	height: 36px;
}

.gf-legacy-ui .gppa-select-with-custom {
	height: 28px;
}

.gppa-select-with-custom select,
.gppa-select-with-custom-input-container {
	transition: opacity 600ms linear;
}

.gppa-select-with-custom-input-container {
	display: none;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	position: absolute;
	margin-top: 0 !important;
}

.gppa-select-with-custom-input-container input {
	margin: 0 !important;
	height: 100%;
	width: 100%;
	padding-right: 30px !important;
	flex: 1;
}

.gppa-select-with-custom-input-container a.custom-reset {
	background: url(../../gravityforms/includes/addon/images/field-map-reset.png) center no-repeat #ddd;
	background-size: 10px 10px;
	cursor: pointer;
	display: inline-block;
	opacity: .3;
	overflow: hidden;
	position: absolute;
	text-indent: -9999px;
	top: 0;
	bottom: 0;
	right: 0;
	transition: opacity .25s ease-in-out;
	width: 25px;
	z-index: 2;
}

.gppa-select-with-custom.gppa-no-reset input {
	padding-right: 5px;
}

body.gf-legacy-ui .gppa-select-with-custom.gppa-has-merge-tag-selector a.custom-reset {
	right: 32px !important;
}

.gppa-select-with-custom-input-container a.custom-reset:hover {
	opacity: 1;
}

.gppa-select-with-custom.gppa-show-custom-input .gppa-select-with-custom-input-container {
	display: flex;
}

.gppa-select-with-custom.gppa-show-custom-input select {
	display: none;
}

.gppa-show-custom-input button.open-list {
	visibility: collapse;
	font-size: 0;
}

.gppa-show-custom-input button.open-list i {
	visibility: visible;
}

.gppa-show-custom-input span.all-merge-tags {
	position: static;
	margin: 0 0 0 0.5rem;
}

button.open-list.tooltip-merge-tag.gform-button.gform-button--unstyled {
	max-height: 2.25rem;
	padding: 0;
}

i.gform-icon.gform-icon--merge-tag.gform-button__icon {
	padding-right: 0;
}

.gppa-template-row td {
	padding: 3px 0;
}

.gppa-template-row td:nth-of-type(2) {
	width: 80%;
}

.gppa-template-row select {
	margin-top: 0 !important;
}


/** Placeholder Choices */

.gppa-choices-enabled .ginput_container label,
.gppa-choices-enabled select[multiple="multiple"] option {
	background-color:  rgba( 0, 0, 0, 0.08 );
	border-radius: 2px;
	text-indent: -99em;
}

.gppa-choices-enabled .ginput_container_select {
	position: relative;
}

.gppa-choices-enabled .ginput_container_select select {
	text-indent: -999em;
}

.gppa-choices-enabled .ginput_container_select:before {
	content: '';
	display: block;
	position: absolute;
	top: 0.3rem;
	left: 0.3rem;
	bottom: 0.3rem;
	width: 30%;
	background-color:  rgba( 0, 0, 0, 0.08 );
	border-radius: 2px;
}


.gppa-choices-enabled select[multiple="multiple"] option {
	margin-bottom: 2px;
}

.gppa-choices-enabled .ginput_container li:nth-child(1) label,
.gppa-choices-enabled .ginput_container .gchoice:nth-child(1) label,
.gppa-choices-enabled select[multiple="multiple"] option:nth-child(1) {
	width: 50% !important;
}

.gppa-choices-enabled select[multiple="multiple"] option:nth-child(1) {
	margin-top: 8px;
}

.gppa-choices-enabled .ginput_container li:nth-child(2) label,
.gppa-choices-enabled .ginput_container .gchoice:nth-child(2) label,
.gppa-choices-enabled select[multiple="multiple"] option:nth-child(2) {
	width: 60% !important;
}

.gppa-choices-enabled .ginput_container li:nth-child(3) label,
.gppa-choices-enabled .ginput_container .gchoice:nth-child(3) label,
.gppa-choices-enabled select[multiple="multiple"] option:nth-child(3) {
	width: 40% !important;
}

.gppa-choices-enabled .ginput_container li:nth-child(4) label,
.gppa-choices-enabled .ginput_container .gchoice:nth-child(4) label,
.gppa-choices-enabled select[multiple="multiple"] option:nth-child(4) {
	width: 55% !important;
}

.gppa-choices-enabled .ginput_container li:nth-child(5) label,
.gppa-choices-enabled .ginput_container .gchoice:nth-child(5) label,
.gppa-choices-enabled select[multiple="multiple"] option:nth-child(5) {
	width: 45% !important;
}

/* JetSloth Image Choices styling */
.gppa-choices-enabled.image-choices-use-images .ginput_container li label,
.gppa-choices-enabled.image-choices-use-images .ginput_container .gchoice label {
	width: 75px !important;
	height: 75px !important;
}

.gppa-choices-enabled .gfield_label,
.gppa-values-enabled .gfield_label {
	display: flex !important;
}

.gppa-choices-enabled .gfield_label::after,
.gppa-values-enabled .gfield_label::before,
#gppa label[for^="gppa-"][for$="-enabled"]::after {
	content: "\f0e7";
	display: inline-block;
	font-family: 'GFFontAwesome', 'FontAwesome';
	color: #D4662C;
	padding-left: 5px;
	font-style: italic;
}

.gppa-values-enabled .gfield_label::before {
	order: 1;
}

.gppa-values-enabled .gfield_label::before,
#gppa label[for="gppa-values-enabled"]::after {
	color: #3498db !important;
}

/**
Notices
 */
.gppa-warning {
	padding: 20px;
	background: #ffffe3;
	margin: 0 0 10px;
}

.gppa-warning:last-child:first-child {
	margin: 0;
}

/**
 * GF 2.5 Specific Styling
 */
body:not(.gf-legacy-ui) .gppa-filter-group {
	background: #f6f9fc;
	border: 1px solid #daddec;
	border-radius: 3px;
}

body:not(.gf-legacy-ui) .gppa-filter {
	flex-wrap: wrap;
	border-bottom: 1px dashed #daddec;
	padding: 15px;
	margin: 0 0 10px;
}

body:not(.gf-legacy-ui) .gppa-filter:last-of-type {
	border-bottom: 0;
	margin-bottom: 0;
}

body:not(.gf-legacy-ui) .gppa-filter-property {
	margin-bottom: 0.5rem !important;
	margin-right: 0.5rem !important;
}

body:not(.gf-legacy-ui) .gppa-filter-operator {
	flex: 1;
	margin-right: 0 !important;
}

body:not(.gf-legacy-ui) .gppa-filter-value {
	flex-basis: 100%;
	margin-top: 0 !important;
}

body:not(.gf-legacy-ui) .gppa-filter .repeater-buttons {
	flex-basis: 100%;
	margin-top: 6px;
}

body:not(.gf-legacy-ui) .gppa-select-with-custom.gppa-has-merge-tag-selector a.custom-reset {
	right: 33px;
	top: 1px;
	height: 34px;
	border-radius: 0 2px 2px 0;
}

body.gf-version-lte-2-5 .gppa-select-with-custom.gppa-has-merge-tag-selector a.custom-reset {
	right: 50px;
}

body:not(.gf-legacy-ui) .gppa-filter .repeater-buttons a {
	margin-left: 0;
	cursor: pointer;
}

body:not(.gf-legacy-ui) .gppa-filter .repeater-buttons a i {
	font-family: 'dashicons';
	font-size: 16px;
	display: inline-block;
	vertical-align: middle;
	color: #000;
}

body:not(.gf-legacy-ui) .gppa-filter .gficon-add:before {
	content: "\f132";
}

body:not(.gf-legacy-ui) .gppa-filter .gficon-subtract {
	margin-top: -3px;
}

body:not(.gf-legacy-ui) .gppa-filter .gficon-subtract:before {
	content: "\f335";
	font-size: 20px;
}

body:not(.gf-legacy-ui) .gppa-results-preview-contents {
	background: transparent;
}

body:not(.gf-legacy-ui) .gppa .gp-child-settings {
	padding-right: 0;
}
