/* stylelint-disable no-descending-specificity */
#tc-admin-extra-product-options {
	background: var(--tc-bg-color);
	border: 0 none !important;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	margin: 0 !important;
	font-family: var(--tcfont-head);
}

#tc-admin-extra-product-options * {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

#woocommerce-product-data .panel-wrap {
	overflow: visible !important;
	contain: layout paint;
}

.fullsize #woocommerce-product-data .panel-wrap {
	contain: none;
}

#woocommerce-embedded-root + #wpbody .builder-drag-elements {
	top: 94px;
	max-height: calc(100vh - 94px);
}

.block-editor-page #wpbody .builder-drag-elements {
	top: 1px;
	max-height: calc(100vh - 1px);
}

#woocommerce-product-data ul.wc-tabs li.tc-epo-woocommerce-tab a {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

#woocommerce-product-data ul.wc-tabs li.tc-epo-woocommerce-tab a::before {
	font-family: sans-serif;
	content: "";
	background-image: url(img/epo.svg);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	width: 2em;
	height: 2em;
	display: inline-block;
}

#tc-admin-extra-product-options .wc-enhanced-select input {
	display: block;
}

#tc-admin-extra-product-options .select2-container,
#tc-admin-extra-product-options .text {
	width: 100% !important;
}

#tc-admin-extra-product-options .overflow-show {
	overflow: visible !important;
}

.tmcp-pricing label {
	width: 100%;
}

.tm-options > label {
	width: 100%;
	font-weight: 700;
}

/* !important for 2.3 compatibility */
.tc-options-group label {
	display: inline-block;
	float: none !important;
	margin: 0 !important;
	max-width: 80% !important;
	padding: 0 !important;
	vertical-align: top;
	width: auto !important;
}

.woocommerce-tmcp-attributes .form-row > label {
	font-weight: 700;
}

#tc-admin-extra-product-options .message2x2 .wp-tab-panel {
	width: 100%;
}

#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap .message2x2 {
	width: auto;
	-webkit-box-flex: 0;
	-ms-flex: 0 0 66%;
	flex: 0 0 66%;
	max-width: 66%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}

#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap .message2x2 label {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 calc(25% + 1px);
	flex: 0 0 calc(25% + 1px);
	max-width: calc(25% + 1px) !important;
	margin-left: -1px !important;
}

#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap.tm-epo-switch-wrapper .message2x2 label .tc-radio-text {
	min-width: 100%;
}

#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap .message2x3,
#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap .message2x4,
#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap .message2x5 {
	width: auto;
	-webkit-box-flex: 0;
	-ms-flex: 0 0 auto;
	flex: 0 0 auto;
	margin-left: 34%;
	max-width: 15%;
	display: none;
	position: relative;
	margin-top: 2em;
	min-width: 25%;
}

#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap .message2x4,
#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap .message2x5 {
	margin-left: 4%;
}

#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap.mode-price .tm-choice-from,
#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap.mode-from .tm-choice-from,
#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap.mode-range .tm-choice-regular {
	display: none;
}

#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap.mode-price .message2x3,
#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap.mode-price .message2x5,
#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap.mode-from .message2x3,
#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap.mode-from .message2x5,
#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap.mode-range .message2x3,
#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap.mode-range .message2x4 {
	display: block;
}

#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap .text {
	padding: 1em 16px;
	line-height: 1;
	font-size: 1em;
	text-align: center;
	border-top-left-radius: 0 !important;
}

#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap.mode-price .tc-price-display-override,
#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap.mode-from .tc-price-display-override {
	border-color: #8c8f94;
}

#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap.mode-price .tc-price-display-override-sale,
#tc-admin-extra-product-options .tc-wrapper .price-display-mode-wrap.mode-from .tc-price-display-override-sale {
	border-color: #3b3460;
}

.tm-mode-builder .builder-layout {
	border-width: 1px 0;
}

.tm-mode-builder .tc-wrapper > * {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 100%;
	flex: 1 1 100%;
}

.epo-option-image {
	max-height: 100px;
	height: auto;
	width: auto;
}

.tmcp-price-input {
	width: 100px !important;
}

.wc-metaboxes-wrapper .tc-normal-epo.wc-metabox h3 {
	padding: 10px 20px !important;
	cursor: pointer;
	line-height: 30px;
}

.wc-metaboxes-wrapper .tc-normal-epo.wc-metabox .woocommerce-tmcp-attributes.wc-metabox-content {
	padding: 10px 20px !important;
}

.wc-metaboxes-wrapper .tc-normal-epo.wc-metabox .tmicon {
	float: right;
}

.wc-metaboxes-wrapper .tc-normal-epo.wc-metabox.closed .fold::before {
	content: "\f0d7";
}

.tc-normal-epos .tmicon.fold {
	background: none;
	color: #b4b9c7;
	border-radius: 100%;
}

.tc-normal-epos .tmicon.fold:hover {
	background: #b4b9c7;
	color: #fff;
}

.wc-metaboxes-wrapper .wc-metabox select.tmcp-price-input-type {
	position: relative;
	top: -2px;
	width: auto !important;
}

.tm-mode-select {
	text-align: center;
}

.tm-mode-select.title {
	font-size: 1.5em;
	font-weight: 300;
	margin-top: 2em;
}

.tc-select-mode {
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	background: none repeat scroll 0 0 transparent !important;
	border-color: #f5f5f4 !important;
	-o-border-image: none !important;
	border-image: none !important;
	border-style: solid !important;
	border-width: 2px 2px 0 2px !important;
	color: var(--menu-text) !important;
	font-size: 3em !important;
	height: auto !important;
	line-height: 3 !important;
	margin: 20px 0 !important;
	padding: 0 !important;
	text-align: center;
	width: 50%;
	display: none !important;
}

.tm-mode-builder,
.tm-mode-local {
	display: none;
}

.tm-mode-local.tc-wrapper {
	background: var(--tc-bg-color);
}

.tc-options-group {
	background: var(--tc-bg-color);
	border-top: 0 solid #ecf0f1;
	margin-top: 0;
	padding: 0 !important;
	margin-right: 0;
	margin-left: 0;
	margin-bottom: 0;
	width: 100% !important;
}

.tc-options-group .woocommerce-help-tip {
	float: right;
	top: 3px;
}

.tc-options-group .woocommerce-help-tip::after {
	content: "\f059";
	font-family: "Font Awesome 7 Free", sans-serif;
}

.tm-mode-selector + div + div + .tc-options-group {
	display: none;
}

.tm-mode-selector.tc-active + div + div + .tc-options-group {
	display: block;
}

.tm-mode-selector.tc-active .tm-mode-select.title {
	display: none;
}

.tm-mode-selector.tc-active .tm-mode-select {
	margin: 0;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	border: 2px solid #eee;
	border-width: 0 0 2px 0;
	height: auto;
	gap: 1em;
	padding: 0 20px;
}

.tm-mode-selector.tc-active .tc-select-mode {
	border-radius: 8px 8px 0 0 !important;
	font-size: 15px !important;
	font-weight: 400;
	margin: 0 !important;
	display: block !important;
	-webkit-box-flex: 0;
	-ms-flex: 0 1 20%;
	flex: 0 1 20%;
	padding: 10px !important;
	border-width: 0 !important;
	border-color: #eee !important;
}

.tm-mode-selector.tc-active .tc-select-mode:hover {
	color: var(--tc-color) !important;
}

.tm-mode-selector.tc-active .tm-hidden {
	display: none !important;
}

.tm-mode-selector.tc-active .tc-select-mode.button-primary {
	background: var(--tc-bg-color) !important;
	color: var(--tc-color) !important;
	z-index: 4;
	text-shadow: none !important;
	border-width: 2px !important;
	position: relative;
	top: 2px;
	border-bottom-color: var(--tc-bg-color) !important;
	padding: 6px 10px 10px 10px !important;
}

.tc-select-mode .tcfa {
	margin-right: 10px;
}

#tc-admin-extra-product-options-inner {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	gap: 20px;
	padding: 20px;
}

#tc-admin-extra-product-options-inner > * {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 100%;
	flex: 1 1 100%;
	max-width: 100%;
}

#tc-admin-extra-product-options-inner .form-field {
	float: none;
}

.tm-mode-selector.tc-active {
	padding: 0 !important;
	margin: 0 -20px 0 -20px;
	width: calc(100% + 40px);
	max-width: calc(100% + 40px) !important;
}

.tc-wrapper .message2x2 .wp-tab-panel li {
	border-bottom: 1px dotted #eee;
	padding-bottom: 2px;
	padding-top: 1px;
}

.tc-wrapper .message2x2 .wp-tab-panel li:last-child {
	border-bottom: 0 none;
}

.tc-wrapper .message2x2 .wp-tab-panel li input[type="checkbox"],
.tc-wrapper .message2x2 .wp-tab-panel li input[type="radio"] {
	margin: 0 4px 0 0 !important;
	vertical-align: middle;
	border: 1px solid #b4b9be;
	float: none;
}

.wc-metaboxes-wrapper .tc-wrapper .wc-metabox table table {
	border-top: 0 none;
	padding: 0;
}

.tmcp-attr-list {
	margin-right: 5px;
}

.tm-mode-local.tc-wrapper .toolbar {
	text-align: right;
	font-size: 12px;
	font-weight: 400;
	font-style: italic;
	padding: 10px 20px !important;
}

.tm-mode-local.tc-wrapper .toolbar a {
	text-decoration: none;
}

.tm-att-value {
	color: #1e8cbe;
	font-weight: 400;
}

.tm-att-label {
	font-weight: 300;
	font-size: 10px;
}

.tm-att-id {
	font-weight: 700;
	font-size: 0.8em;
}

.tm-type,
.tm-att-value {
	margin-right: 1em;
}

.tm-att-label,
.tm-att-id {
	margin-right: 1px;
}

.tma-handle .tmicon.fold {
	background: none repeat scroll 0 0 transparent;
	position: absolute;
	right: 5px !important;
	top: 5px !important;
}

.tma-handle .tmicon.fold:hover {
	background: var(--tc-bg-color);
	color: var(--tc-color);
}

.builder-wrapper.tma-variations-wrap .builder-section-wrap .bitem-inner::after {
	border: 2px solid #ed8458;
}

.builder-wrapper.tma-variations-wrap .builder-section-wrap .section-inner::after {
	border-color: #dddee4;
}

.builder-wrapper.tma-variations-wrap .bitem:hover .bitem-inner::after,
.builder-wrapper.tma-variations-wrap:hover .builder-section-wrap .section-inner::after {
	border-color: var(--tc-color);
}


.tma-handle-wrapper {
	padding: 0 2em;
}

.tma-handle-wrap {
	background: var(--tc-bg-color);
	border: 2px solid var(--tc-border-color);
	margin: 1em 1em 1em 0;
	border-radius: 8px;
	overflow: hidden;
}

.tma-handle-wrap.tm-term {
	border-color: var(--tc-border-color);
}

.tma-handle {
	background: rgba(0, 0, 0, 0.03);
	color: var(--menu-text);
	cursor: pointer;
	font-size: 12px;
	height: 40px;
	line-height: 40px;
	padding: 0 1em;
	position: relative;
}

.tm-attribute > .tma-handle {
	background: var(--tc-menu-bg);
	color: var(--menu-text);
}

.tma-attribute-label {
	font-weight: 700;
}
