.wcqm-price-on-request {
	display: inline-block;
	font-weight: 600;
	color: #2d4a3e;
}

.wcqm-product-loop {
	--wcqm-columns: 3;
	position: relative;
	width: 100%;
}

.wcqm-loop-topbar {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.wcqm-view-toggle {
	display: inline-flex;
	border: 1px solid #c9d2cc;
	border-radius: 6px;
	overflow: hidden;
}

.wcqm-view-toggle__button {
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 0;
	background: #ffffff;
	color: #24342d;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.wcqm-view-toggle__button.is-active {
	background: #24342d;
	color: #ffffff;
}

.wcqm-orderby {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
	margin-left: auto;
}

.wcqm-orderby span {
	white-space: nowrap;
}

.wcqm-orderby select {
	min-width: 11.5rem;
}

.wcqm-loop-layout {
	display: block;
}

.wcqm-filters {
	position: relative;
	z-index: 20;
}

.wcqm-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	padding: 0 0.85rem;
	border: 1px solid #c9d2cc;
	border-radius: 6px;
	background: #ffffff;
	color: #1f332b;
	cursor: pointer;
	font-weight: 600;
	box-shadow: none;
}

.wcqm-filter-toggle__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.3rem;
	height: 1.3rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: #007f3f;
	color: #ffffff;
	font-size: 0.75rem;
	line-height: 1;
}

.wcqm-filter-toggle__chevron {
	font-size: 1rem;
	line-height: 1;
	transition: transform 0.18s ease;
}

.wcqm-filters.is-open .wcqm-filter-toggle__chevron {
	transform: rotate(180deg);
}

.wcqm-filter-panel {
	position: absolute;
	top: calc(100% + 0.45rem);
	left: 0;
	width: min(19rem, calc(100vw - 2rem));
	max-height: 24rem;
	overflow: auto;
	border: 1px solid #d8dedb;
	border-radius: 8px;
	padding: 0.95rem;
	background: #ffffff;
	box-shadow: 0 14px 35px rgba(26, 43, 36, 0.16);
}

.wcqm-filter-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.wcqm-filter__list,
.wcqm-filter__children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wcqm-filter__children {
	margin: 0.4rem 0 0.4rem 1rem;
}

.wcqm-filter__item {
	margin: 0.35rem 0;
}

.wcqm-filter__clear {
	padding: 0;
	border: 0;
	background: transparent;
	color: #007f3f;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: underline;
}

.wcqm-view {
	display: none;
}

.wcqm-product-loop--grid .wcqm-view--grid,
.wcqm-product-loop--list .wcqm-view--list {
	display: grid;
}

.wcqm-view--grid {
	grid-template-columns: repeat(var(--wcqm-columns), minmax(0, 1fr));
	gap: 1.1rem;
}

.wcqm-view--list {
	gap: 0.75rem;
}

.wcqm-product {
	border: 1px solid #d8dedb;
	border-radius: 8px;
	background: #ffffff;
	padding: 1rem;
	min-width: 0;
}

.wcqm-product--grid {
	display: grid;
	grid-template-rows: auto auto auto auto 1fr;
	gap: 0.55rem;
	min-height: auto;
}

.wcqm-product--list {
	display: grid;
	grid-template-columns: 6rem minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
}

.wcqm-product__image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 145px;
	background: #f5f7f6;
	overflow: hidden;
	border-radius: 6px;
}

.wcqm-product__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 0.35rem;
}

.wcqm-product__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.3;
}

.wcqm-product__title a {
	color: #007f3f;
	text-decoration: none;
}

.wcqm-product__title a:hover {
	text-decoration: underline;
}

.wcqm-product__meta {
	color: #1f332b;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
}

.wcqm-product__category {
	display: inline-block;
	color: #51685d;
	font-size: 0.9rem;
	text-decoration: none;
}

.wcqm-product__acf {
	display: grid;
	gap: 0.25rem;
	font-size: 0.9rem;
	color: #44564e;
}

.wcqm-add-form {
	display: grid;
	grid-template-columns: minmax(7.5rem, auto) minmax(8rem, 1fr);
	gap: 0.7rem;
	margin: 0;
	align-items: start;
}

.wcqm-product--grid .wcqm-add-form {
	align-self: end;
	margin-top: 0.25rem;
}

.wcqm-qty {
	display: grid !important;
	grid-template-columns: 2.25rem 3rem 2.25rem !important;
	width: 7.5rem;
	min-width: 7.5rem;
	height: 2.5rem;
	border: 1px solid #c9d2cc;
	border-radius: 6px;
	overflow: hidden;
	background: #ffffff;
}

.wcqm-qty__button,
.wcqm-qty__input {
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0 !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #ffffff !important;
	color: #1f332b !important;
	text-align: center !important;
	font-size: 1rem !important;
	line-height: 1 !important;
	padding: 0 !important;
}

.wcqm-qty__button {
	cursor: pointer;
	font-weight: 700;
	box-shadow: none !important;
}

.wcqm-qty__input {
	border-left: 1px solid #c9d2cc;
	border-right: 1px solid #c9d2cc;
	-moz-appearance: textfield;
}

.wcqm-qty__input::-webkit-inner-spin-button,
.wcqm-qty__input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.wcqm-button {
	min-height: 2.5rem;
	width: 100%;
	border-radius: 6px;
	font-weight: 700;
}

.wcqm-notice {
	grid-column: 1 / -1;
	min-height: 1.2rem;
	font-size: 0.9rem;
	line-height: 1.35;
	padding: 0.45rem 0.6rem;
	border-radius: 6px;
	background: transparent;
}

.wcqm-notice.is-success {
	color: #226b3f;
	background: #edf8f1;
}

.wcqm-notice.is-error {
	color: #a02525;
	background: #fff1f1;
}

.wcqm-notice:empty {
	display: none;
}

.wcqm-single-quote-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.wcqm-product-loop.is-loading .wcqm-loop-results {
	opacity: 0.5;
	pointer-events: none;
}

@media (max-width: 900px) {
	.wcqm-view--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.wcqm-add-form,
	.wcqm-product--list {
		grid-template-columns: 1fr;
	}

	.wcqm-qty {
		width: 100%;
		grid-template-columns: 2.5rem 1fr 2.5rem !important;
	}
}

@media (max-width: 640px) {
	.wcqm-loop-topbar,
	.wcqm-product--list {
		grid-template-columns: 1fr;
		display: grid;
	}

	.wcqm-orderby {
		margin-left: 0;
	}

	.wcqm-filter-toggle,
	.wcqm-orderby select {
		width: 100%;
	}

	.wcqm-view--grid {
		grid-template-columns: 1fr;
	}
}
