/* Default Rules */
.wpce-processing {
	opacity:0.4;
	position:relative;
}

.wpce-processing, .wpce-processing * {
	cursor:progress !important;
	pointer-events: none !important;
}

.wpce-processing::after {
	position:absolute;
	left:0;
	right:0;
	top:50%;
	transform:translateY(-50%);
	margin:auto;
	width:32px;
	height:32px;
	background-repeat:no-repeat;
	background-size:cover;
	background-image:url('../images/icon-loading.gif');
}

.wpce-clearfix {
	clear:both;
	float:none;
	width:100%;
}

.wpce-invisible {
	visibility:hidden !important;
}

.wpce-error select, .wpce-error input, .wpce-error .select2-container .select2-selection--single {
	border-color:#cc0000 !important;
}

/* Main Filter */
.wpce-filter-widget-inner {
	position:relative;
	font-size:1em;
}

.wpce-filter-widget-inner, .wpce-filter-widget-inner * {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.wpce-filter-widget-inner form {
	margin:0;
	position:unset;
}

.wpce-filter-widget-inner .wpce-field {
	width:100%;
	margin:0 0 10px;
}


.wpce-filter-widget-inner .wpce-field:last-child {
	margin-bottom:0;
}

.wpce-filter-widget-inner .wpce-field label {
	display:block;
	width:100%;
	margin:0 0 5px 0;
}

.wpce-filter-widget-inner .wpce-field select,
.wpce-filter-widget-inner .wpce-field input,
.wpce-filter-widget-inner .wpce-field .select2-container,
.wpce-filter-widget-inner .wpce-field .select2-container .select2-selection--single {
	width:100%;
	height:36px;
	line-height:35px;
}

.wpce-filter-widget-inner .wpce-field select,
.wpce-filter-widget-inner .wpce-field input,
.wpce-filter-widget-inner .wpce-field .select2-container .select2-selection--single {
	padding:0 0 0 5px;
}

.wpce-filter-widget-inner .wpce-field-buttons {
	text-align:center;
}

.wpce-filter-widget-inner .wpce-field-buttons input {
	padding-left:15px;
	padding-right:15px;
}

.wpce-widget-layout-v .wpce-field-buttons input {
	width:auto;
	display:inline-block;
}

.wpce-filter-widget-inner.wpce-widget-buttons-2 .wpce-field-buttons input[type="submit"] {
	margin-right:5px;
}

.wpce-widget-layout-h .wpce-field-buttons input {
	width:auto;
}

.wpce-widget-layout-h.wpce-widget-buttons-1 input {
	width:100%;
}

.wpce-widget-layout-h.wpce-widget-buttons-1 input[type="submit"] {
	margin-right:0;
	margin-bottom:5px;
}

.wpce-filter-widget-inner .wpce-field .select2-container {
	display:block;
}

.wpce-filter-widget-inner .wpce-field .select2-container .select2-selection--single {
	padding-left:10px;
}

.wpce-filter-widget-inner .wpce-field select option {
	padding:0;
}

.select2-container--open .select2-dropdown {
	
}

.select2-container--open .select2-dropdown .select2-results__options {
	margin:0;
}

.select2-container--open .select2-dropdown .select2-results .select2-results__option {
	padding:0 10px;
}

.select2-container--open .select2-dropdown .select2-search--dropdown {
	padding:10px;
}

.select2-container--open .select2-dropdown .select2-search--dropdown input,
.select2-container--open .select2-dropdown .select2-results .select2-results__option {
	height:auto;
	min-height:30px;
	line-height:30px;
}

.select2-container--open .select2-dropdown .select2-search--dropdown input {
	padding:5px;
}

.wpce-filter-widget-inner .wpce-field .select2-container--default .select2-selection--single .select2-selection__arrow {
	height:100%;
	bottom:0;
}

.wpce-filter-widget-inner .wpce-field .select2-container .select2-selection--single .select2-selection__rendered {
	height:100%;
	line-height:inherit;
	padding:0;
}

.wpce-filter-widget-inner > h2 {
	font-size:1.2em;
	line-height:1.3;
	font-weight:600;
	margin:0 0 15px;
}

/* Quick Searches */
.wpce-quick-searches {
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:6px 8px;
	margin:10px 0 0;
	font-size:0.9em;
	line-height:1.5;
}

.wpce-quick-searches-label {
	opacity:0.75;
}

.wpce-quick-searches a.wpce-quick-search {
	display:inline-block;
	padding:2px 10px;
	text-decoration:none !important;
	border:1px solid rgba(0, 0, 0, 0.15);
	border-radius:3px;
}

.wpce-quick-searches a.wpce-quick-search:hover {
	border-color:currentColor;
}

/* Product Validator */
.wpce-product-validator {
	display:block;
	clear:both;
	margin:0 0 15px;
}

.wpce-product-validator h2 {
	font-size:1.2em;
	line-height:1.3;
	font-weight:600;
	margin:0 0 15px;
}

.wpce-product-validator .wpce-message {
	display:block;
	width:100%;
	padding:5px;
	border:1px solid transparent;
	
	-webkit-border-radius:4px;
	-moz-border-radius:4px;
	border-radius:4px;
}

.wpce-product-validator .wpce-message.wpce-success {
	color:#3c763d;
	background-color:#dff0d8;
	border-color:#d6e9c6;
}

.wpce-product-validator .wpce-message.wpce-error {
	color:#a94442;
	background-color:#f2dede;
	border-color:#ebccd1;
}

.wpce-product-validator .wpce-message .wpce-note {
	display:block;
	margin-top:4px;
	font-weight:400;
}

/* Fits Badge */
.wpce-fits-badge {
	display:inline-flex;
	align-items:center;
	gap:4px;
	margin:4px 0 6px;
	padding:2px 9px 2px 7px;
	font-size:12px;
	font-weight:600;
	line-height:1.6;
	color:#146c34;
	background:#e7f5ec;
	border-radius:999px;
}

.wpce-fits-badge .wpce-icon {
	flex:0 0 14px;
}

.wpce-fits-badge-wrap.has-text-align-center {
	text-align:center;
}

.wpce-fits-badge-wrap.has-text-align-right {
	text-align:right;
}

/* Order Details Page */
.variation.wpce-variation {
	display:block;
	width:100%;
	max-width:350px;
	margin:10px 0 !important;
	font-size:0.9em;
	line-height:1.3;
}

.variation.wpce-variation table {
	width:100%;
	border-bottom:1px dotted #dfdfdf;
	margin:0;
}

.variation.wpce-variation table tr {
	border:none;
}

.variation.wpce-variation th, .variation.wpce-variation td {
	padding:5px 10px !important;
	border:none !important;
}

.variation.wpce-variation th {
	width:45%;
}

.variation.wpce-variation .wpce-note-row td {
	text-transform:none;
}

/* Product Tab */
.wpce-product-tab table {
	width:100%;
	border:none;
}

.wpce-product-tab table tr {
	border:none;
}

.wpce-product-tab th, .wpce-product-tab td {
	text-align:left;
}

.wpce-product-tab thead th, .wpce-product-tab tfoot th {
	font-weight:bold;
	text-transform:uppercase;
	padding:0;
}

.wpce-product-tab thead th {
	padding-bottom:5px;
	border:0;
	border-bottom:1px #e0dede dotted;
}

.wpce-product-tab tfoot th {
	padding-top:5px;
	border-bottom:none;
}

.wpce-product-tab td {
	padding:5px 0;
	border:0;
	border-bottom:1px #e0dede dotted;
}

/* Fitment note on a line of its own under its row ( no theme stripes, so the two lines read as one row ) */
.wpce-product-terms-list-table tr.has-note td {
	padding-bottom:0;
	background-color:transparent;
	border-bottom:0;
}

.wpce-product-terms-list-table .wpce-tab-note-row td {
	padding-top:2px;
	font-size:0.9em;
	background-color:transparent;
}

.wpce-product-terms-list-table .wpce-product-terms-loading {
	text-align:center;
}

/* User Searches */
.wpce-user-searches-widget-inner {
	
}

.wpce-user-searches-widget-inner .wpce-user-searches {
	display:block;
}

.wpce-user-searches-widget-inner .wpce-user-searches .wpce-user-searches-title {
	display:block;
	margin:0 0 10px;
	font-size:1em;
	font-weight:600;
}

.wpce-user-searches-widget-inner .wpce-user-searches .wpce-user-searches-description {
	display:block;
	margin:0 0 15px;
	font-size:0.9em;
}

.wpce-user-searches-widget-inner .wpce-user-searches ul {
	display:block;
	float:none;
	margin:0;
}

.wpce-user-searches-widget-inner .wpce-user-searches li {
	position:relative;
	display:block;
	float:none;
}

.wpce-user-searches-widget-inner .wpce-user-searches li .wpce-user-search-title {
	display:block;
	cursor:pointer;
}

.wpce-user-searches-widget-inner .wpce-user-searches li .wpce-user-search-actions {
	display:none;
	position:absolute;
	left:0;
	right:0;
	top:0;
	bottom:0;
	background-color:rgba( 0, 0, 0, 0.8 );
	text-align:center;
	vertical-align:middle;
}

.wpce-user-searches-widget-inner .wpce-user-searches li.active .wpce-user-search-actions {
	display:block;
}

.wpce-user-searches-widget-inner .wpce-user-searches li .wpce-user-search-actions > span {
	position:absolute;
	top:50%;
	transform:translateY(-50%);
	left:0;
	right:0;
}

.wpce-user-searches-widget-inner .wpce-user-searches li.active .wpce-user-search-title {
	opacity:0.6;
}

.wpce-user-searches-widget-inner .wpce-user-searches li .wpce-user-search-actions a {
	position:relative;
	color:#fff;
	margin:0 3px;
	text-transform:uppercase;
	text-decoration:none;
	font-size:0.9em;
	line-height:1;
	padding-left:15px;
}

.wpce-user-searches-widget-inner .wpce-user-searches li .wpce-user-search-actions a i {
	position:absolute;
	left:0;
	top:50%;
	transform:translateY(-50%);
	bottom:0;
	width:12px;
	height:12px;
	background-repeat:no-repeat;
	background-size:cover;
}

/* https://www.iconsdb.com/white-icons/arrow-181-icon.html */
.wpce-user-searches-widget-inner .wpce-user-searches li .wpce-user-search-actions a.wpce-go-user-search i {
	background-image:url('../images/icon-go.png');
}

.wpce-user-searches-widget-inner .wpce-user-searches li .wpce-user-search-actions a.wpce-save-user-search i {
	background-image:url('../images/icon-save.png');
}

.wpce-user-searches-widget-inner .wpce-user-searches li .wpce-user-search-actions a.wpce-delete-user-search i {
	background-image:url('../images/icon-delete.png');
}

.wpce-user-searches-widget-inner .wpce-user-searches li .wpce-user-search-actions a:hover {
	text-decoration:underline;
}

.wpce-user-searches-widget-inner .wpce-user-searches .wpce-clear-user-searches {
	display:block;
	padding:10px 0;
	border-top:1px solid #ddd;
	border-bottom:1px solid #ddd;
}

.wpce-user-searches-widget-inner .wpce-user-saved_searches {
	margin:0 0 15px;
}

.wpce-user-searches-widget-inner .wpce-user-search_history {
	
}

.wpce-user-searches-widget-inner .wpce-user-searches .wpce-user-searches-actions {
	
}

.wpce-user-searches-widget-inner .wpce-user-searches .wpce-user-searches-actions a {
	position:relative;
	padding-left:20px;
}

.wpce-user-searches-widget-inner .wpce-user-searches .wpce-user-searches-actions a i {
	position:absolute;
	left:0;
	top:50%;
	transform:translateY(-50%);
	bottom:0;
	width:16px;
	height:16px;
	background-image:url('../images/icon-clear.png');
	background-repeat:no-repeat;
	background-size:cover;
}

/* My Searches Button */
.wpce-my-searches-shortcode {
	margin-bottom:1em;
}

.wpce-my-searches-button-wrap {
	position:relative;
	display:inline-block;
	vertical-align:middle;
}

.wpce-my-searches-button-wrap button.wpce-my-searches-button[type="button"][aria-controls] {
	display:inline-flex;
	align-items:center;
	gap:6px;
	width:auto;
	height:auto;
	margin:0;
	padding:6px 12px;
	font:inherit;
	line-height:1.3;
	letter-spacing:normal;
	text-transform:none;
	text-decoration:none;
	white-space:nowrap;
	color:inherit;
	background:transparent;
	border:1px solid rgba(0, 0, 0, 0.2);
	border-radius:3px;
	box-shadow:none;
	cursor:pointer;
}

.wpce-my-searches-button-icon {
	display:inline-flex;
}

.wpce-my-searches-button-icon img {
	width:18px;
	height:18px;
	object-fit:contain;
}

.wpce-my-searches-button-count {
	min-width:20px;
	padding:0 6px;
	font-size:12px;
	font-weight:700;
	line-height:20px;
	text-align:center;
	color:#fff;
	background:#3c434a;
	border-radius:10px;
}

.wpce-my-searches-button-count[hidden],
.wpce-my-searches-dropdown[hidden],
.wpce-my-searches-dropdown-empty[hidden] {
	display:none;
}

/* Placed under the button by the script while open */
.wpce-my-searches-dropdown {
	position:fixed;
	top:0;
	left:0;
	z-index:99999;
	overflow:auto;
	box-sizing:border-box;
	width:340px;
	max-width:calc(100vw - 16px);
	padding:14px;
	font-size:15px;
	line-height:1.5;
	text-align:left;
	color:#222;
	background:#fff;
	border:1px solid #dcdcde;
	border-radius:4px;
	box-shadow:0 10px 30px rgba(0, 0, 0, 0.15);
}

.wpce-my-searches-dropdown .wpce-user-searches ul {
	padding:0;
	list-style:none;
}

.wpce-my-searches-dropdown-empty {
	margin:0;
}

.wpce-my-searches-dropdown .wpce-my-searches-new {
	display:flex;
	align-items:center;
	justify-content:center;
	gap:8px;
	box-sizing:border-box;
	width:100%;
	margin:12px 0 0;
	text-decoration:none;
}

.wpce-my-searches-dropdown .wpce-my-searches-new[hidden] {
	display:none;
}

/* Finder Popup ( Change and New Search ): the page's colors come from the script */
html.wpce-popup-open {
	overflow:hidden;
}

.wpce-finder-popup {
	box-sizing:border-box;
	width:min(520px, calc(100vw - 32px));
	max-width:none;
	max-height:calc(100vh - 48px);
	margin:auto;
	padding:20px;
	overflow:auto;
	text-align:left;
	color:#222;
	background:#fff;
	border:0;
	border-radius:6px;
	box-shadow:0 24px 60px rgba(0, 0, 0, 0.3);
}

.wpce-finder-popup::backdrop {
	background:rgba(0, 0, 0, 0.5);
}

.wpce-finder-popup-head {
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	margin:0 0 16px;
}

.wpce-finder-popup .wpce-finder-popup-title {
	margin:0;
	padding:0;
	font-size:1.25em;
	line-height:1.3;
}

.wpce-finder-popup button.wpce-finder-popup-close[type="button"] {
	display:inline-flex;
	align-items:center;
	justify-content:center;
	flex:0 0 36px;
	width:36px;
	height:36px;
	min-height:0;
	margin:0;
	padding:0;
	color:inherit;
	background:transparent;
	border:1px solid rgba(128, 128, 128, 0.4);
	border-radius:50%;
	box-shadow:none;
	cursor:pointer;
}

/* Site headers on phones: icon and count only ( the text stays for screen readers ), menus keep it, the popup fills the screen */
@media only screen and (max-width: 600px) {
	.wpce-finder-popup {
		width:100%;
		height:100%;
		max-height:none;
		border-radius:0;
	}
	
	header .wpce-my-searches-button-wrap:not(.wpce-my-searches-menu-item > *) .wpce-my-searches-button-text {
		position:absolute;
		width:1px;
		height:1px;
		overflow:hidden;
		clip:rect(0, 0, 0, 0);
		white-space:nowrap;
	}
}

@media only screen and (min-width: 768px) {
	.wpce-widget-layout-h {
		
	}

	.wpce-widget-layout-h .wpce-field {
		float:left;
		margin-right:1%;
	}
	
	.wpce-widget-layout-h.wpce-widget-levels-1 .wpce-field {
		width:99%;
	}
	
	.wpce-widget-layout-h.wpce-widget-levels-2 .wpce-field {
		width:49%;
	}
	
	.wpce-widget-layout-h.wpce-widget-levels-3 .wpce-field {
		width:32.33%;
	}
	
	.wpce-widget-layout-h.wpce-widget-levels-4 .wpce-field {
		width:24%;
	}
	
	.wpce-widget-layout-h.wpce-widget-levels-5 .wpce-field {
		width:19%;
	}
	
	.wpce-widget-layout-h.wpce-widget-levels-6 .wpce-field {
		width:15.66%;
	}
	
	.wpce-widget-layout-h.wpce-widget-levels-7 .wpce-field {
		width:13.28%;
	}
	
	.wpce-widget-layout-h.wpce-widget-levels-8 .wpce-field {
		width:11.5%;
	}
	
	.wpce-widget-layout-h.wpce-widget-levels-9 .wpce-field {
		width:10.11%;
	}
	
	.wpce-widget-layout-h.wpce-widget-levels-10 .wpce-field {
		width:9%;
	}

	.wpce-widget-layout-h .wpce-field:last-child {
		margin-right:0;
	}

	.wpce-widget-layout-h .wpce-field-buttons {
		position:absolute;
		right:0;
		bottom:0;
		margin-right:0;
	}

	.wpce-widget-layout-h.wpce-widget-buttons-1 form {
		margin-right:120px;
	}

	.wpce-widget-layout-h.wpce-widget-buttons-2 form {
		margin-right:245px;
	}

	.wpce-widget-layout-h.wpce-widget-buttons-1 .wpce-field-buttons {
		width:120px;
	}

	.wpce-widget-layout-h.wpce-widget-buttons-2 .wpce-field-buttons {
		width:245px;
	}

	.wpce-widget-layout-h.wpce-widget-buttons-2 input {
		width:120px;
		float:left;
	}

	/* Quick searches under the form: the buttons stay beside the dropdowns */
	.wpce-widget-layout-h.wpce-has-quick-searches form {
		position:relative;
	}

	.wpce-widget-layout-h.wpce-has-quick-searches.wpce-widget-buttons-1 .wpce-field-buttons {
		right:-120px;
	}

	.wpce-widget-layout-h.wpce-has-quick-searches.wpce-widget-buttons-2 .wpce-field-buttons {
		right:-245px;
	}
	
	.wpce-user-searches-widget-inner .wpce-user-searches li:hover .wpce-user-search-actions {
		display:block;
	}

	.wpce-user-searches-widget-inner .wpce-user-searches li:hover .wpce-user-search-title {
		opacity:0.6;
	}
}
