/**
 * 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-flex {
	display: flex;
}

.gw-flex-row {
	flex-direction: row;
}

.gwcp-flex-space-between {
	justify-content: space-between;
}

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

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

.gw-conditional-pricing-buttons {
	padding-bottom: 20px;
}

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

.gwcp-import-mapping-card-li {
	display: grid;
    grid-template-columns: 1fr 2fr;
	align-items: center;
}

/* 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;
}

#tab_conditional_pricing_page .notice-dismiss {
	top: 50%;
	transform: translateY(-50%);
}

.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 0.5rem;
    padding: 0 0 0.5rem;
    border-bottom: 1px dashed #e3e6ef;
}

.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;
	padding: 6rem 2rem;
}

.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;
	padding-left: 1rem;
	padding-right: 1rem;

    border: 1px solid #e3e6ef !important;
    border-width: 0 1px 1px !important;
    border-radius: 0 !important;
}

.gwcp-product:first-child {
    border-top-left-radius: 3px !important;
    border-top-right-radius: 3px !important;
	border-top-width: 1px !important;
}

.gwcp-product:last-child {
    border-bottom-left-radius: 3px !important;
    border-bottom-right-radius: 3px !important;
}

.gwcp-cursor-pointer {
	cursor: pointer;
}

.gwcp-line-height-1rem {
	line-height: 1rem !important;
}

.gwcp-product-expander {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	filter: brightness(0);
}

.gwcp-product-expander-open {
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	-ms-transform: rotate(90deg);
	-o-transform: rotate(90deg);
	transform: rotate(90deg);
}

.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-caret {
	color: black;
}

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

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

#gpcp-import,
#gpcp-export {
	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,
#gwcp-pricing-level-prepare-import-cancel,
#gwcp-pricing-level-import-cancel {
	margin: -1px 0 0 5px;
	border: 0;
	background: transparent;
	font-weight: 500;
}


/* Styles for the importer upload view */
#gpcp-importer {}

#gpcp-importer label {
	display: block;
}

.gpcp-importer-mode-disambiguate {}

#gpcp-import-file-input {
	padding: 2rem;
	margin: 1rem auto;
    border: 2px dashed #E3E6EF;
    border-radius: 5px;
	width: 100%;
}

.gwcp-import-file-input-label {
	margin-top: 1rem;
}

.gwcp-import-file-form-buttons {
	margin: 2rem 0;
	display: flex;
}

#gwcp-pricing-level-prepare-import-cancel,
#gwcp-pricing-level-prepare-import-cancel {
	cursor: pointer;
}

.gwcp-choose-import-file-message-grey-background {
	margin-left: -1rem;
	margin-right: -1rem;
	margin-top: -1rem;
	padding: 1rem;
	height: 1rem;
	background: #F6F9FC;
	display: flex;
	align-items: center;
	border-bottom: 1px solid #ebebf2;
}

/* End styles for the importer upload view */

/* Styles for the importer column/row mapping view */
#gpcp-importer-disambiguation { }
#gpcp-importer-disambiguation ul { }
#gpcp-importer-disambiguation li span,
#gpcp-importer-disambiguation li span { font-weight: bold; }
.gpcp-importer-fields {
	padding-top: 1rem;
}
.gpcp-importer-options li label { width: auto !important; }
.gpcp-importer-options label strong:first-child:after {
	content: " — ";
	font-weight: normal;
}
.gpcp-importer-option {
	margin-bottom: 0.5rem;
}
/* Styles for the importer column/row mapping view */
