/**
 * Admin styles for GP Conditional Pricing.
 */

body:not(.gf-legacy-ui) #gwcp-pricing-level-editor {
	padding: 1rem;
	margin-bottom: 0.5rem;
}

body:not(.gf-legacy-ui) #gwcp-pricing-level-editor .gfield_rule_value_dropdown {
	margin-right: 0 !important;
	width: 30%;
}

body:not(.gf-legacy-ui) #gwcp-pricing-level-editor input[type="number"],
body:not(.gf-legacy-ui) #gwcp-pricing-level-editor .gfield_rule_input{
	max-height: 2.25rem;
	min-height: 2.25rem;
	width: 30%;
}

.gw-conditional-pricing-product-select {
	width: 40% !important;
}

.gw-conditional-pricing-product-select {
	max-width: 350px;
}

.gw-conditional-pricing-buttons {
	border-bottom: 1px solid #eee;
	padding-bottom: 20px;
}

.gwcp-pricing-level {
	padding: 1rem;
	margin-bottom: 0.5rem;
}

/* From Gravity Forms' Addon Settings styles for .ui-sortable-helper */
.gwcp-pricing-level.sortable-drag {
	background-color: #fff !important;
	-webkit-box-shadow: 6px 6px 28px -9px rgba(0,0,0,0.75);
	-moz-box-shadow: 6px 6px 28px -9px rgba(0,0,0,0.75);
	box-shadow: 6px 6px 28px -9px rgba(0,0,0,0.75);
	transform: rotate(1deg);
	-moz-transform: rotate(1deg);
	-webkit-transform: rotate(1deg);
}

.gwcp-pricing-level.sortable-ghost {
	opacity: 0;
}

.gf-legacy-ui .gwcp-pricing-level {
	background-color: #fff;
	border-bottom: 2px solid #eee;
	padding: 10px;
	border-radius: 4px;
	margin: 0 0 10px;
}

.gwcp-pricing-level p {
	margin: 0 0 5px;
	padding: 0 0 5px;
	border-bottom: 1px dotted #e7e7e7;
}

.gwcp-pricing-level li:last-child {
	margin: 0;
}

.gwcp-edit-pricing-level {
	float: right;
	cursor: pointer;
	font-size: 0.875rem;
	color: #3e7da6;
	font-weight: 500;
	background: transparent;
	border: 0;
}

#pricing_level_action_type {
	display: none;
}

.gwcp-no-pricing-levels {
	text-align: center;
	margin-top: 7em;
}

.gwcp-no-pricing-levels h4 {
	font-size: 16px;
	margin: 1.33em 0 0;
}

.gwcp-no-pricing-levels p {
	color: #999;
	font-size: 14px;
}

.gf-legacy-ui #gwcp-pricing-level-editor {
	background-color: #fff;
	border-bottom: 2px solid #eee;
	padding: 1rem;
	border-radius: 4px;
	margin: 0 0 1rem;
}

#gwcp-pricing-level-price,
#pricing_level_logic_type {
	margin: 0 0.5rem;
}

.gf-legacy-ui #gwcp-pricing-level-price {
	text-align: right;
	width: 70px;
	font-size: 14px;
	vertical-align: middle;
	margin: 0 0 0 .1125rem;
	/* line-height: 1.0625rem; */
	/* padding: .5rem 0.8125rem; */
}

.gf-legacy-ui #gwcp-pricing-level-editor #pricing_level_logic_type {
	margin: 0 0 0 .1125rem;
}

.gwcp-pricing-levels .gf_conditional_logic_rules_container {
	margin-top: 0.5rem;
}

#pricing_level_conditional_logic_container {
	margin: 0 0 1rem;
	padding: 0 0 1rem;
	border-bottom: 1px dotted #e7e7e7;
}

#gwcp-pricing-level-editor-close {
	margin-right: 10px;
}

.gwcp-product {
	border-bottom: 1px solid #f7f7f7;
	/* overflow: hidden; */
	position: relative;
}

.gwcp-product:after {
	content: "";
	display: table;
	clear: both;
}

.gwcp-product h4 {
	float: left;
	cursor: pointer;
}

.gwcp-product .dropdown-arrow {
	float: left;
	margin: 19px 5px;
	cursor: pointer;
}

.gwcp-product .gwcp-pricing-levels {
	display: none;
}

.gwcp-product .gwcp-add-new-product-level {
	display: none !important;
	margin-top: 1rem !important;
}

.gwcp-product.open {
}

.gwcp-product.open .gwcp-pricing-level {
	cursor: move;
	cursor: -moz-move;
	cursor: -webkit-move;
}

.gwcp-product.open .dropdown-arrow {
	-webkit-transform: rotate(-180deg);
	-moz-transform: rotate(-180deg);
	-ms-transform: rotate(-180deg);
	-o-transform: rotate(180deg);
	transform: rotate(-180deg);
}

.gwcp-product.open .gwcp-pricing-levels {
	display: block;
}

.gwcp-product.open .gwcp-add-new-product-level {
	display: inline-block !important;
	margin: 0.5rem 0 1rem !important;
}

.gwcp-pricing-levels {
	clear: left;
}

#gw-save-conditional-pricing {
	float: right;
	margin-top: 0;
}

#gpcp-import {
	float: right;
	height: initial;
	margin-top: 0;
	margin-right: 10px;
}

.gwcp-pricing-level-editor-actions {
	display: flex;
	align-items: center;
}

#gwcp-pricing-level-editor-delete {
	margin: -1px 0 0 5px;
	border: 0;
	background: transparent;
	font-weight: 500;
}
