form.woocommerce-product-search {
	position: relative;
}

form.woocommerce-product-search .search-field {
	padding-inline-end: 5.75rem;
}

.bvs-visual-search-trigger {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: currentColor;
	cursor: pointer;
	display: inline-flex;
	height: 2.2rem;
	justify-content: center;
	line-height: 1;
	padding: .35rem;
	position: absolute;
	right: 3.15rem;
	top: 50%;
	transform: translateY(-50%);
	width: 2.2rem;
	z-index: 2;
}

.bvs-visual-search-trigger:hover,
.bvs-visual-search-trigger:focus-visible {
	background: rgba(0, 0, 0, .08);
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.bvs-visual-search-trigger svg {
	fill: currentColor;
	height: 1.25rem;
	width: 1.25rem;
}

.bvs-visual-search-standalone {
	background: #111827;
	border-radius: .35rem;
	color: #fff;
	font: inherit;
	height: auto;
	padding: .7rem 1rem;
	position: static;
	transform: none;
	width: auto;
}

.bvs-visual-search-standalone:hover,
.bvs-visual-search-standalone:focus-visible {
	background: #374151;
}

.bvs-modal-open {
	overflow: hidden;
}

.bvs-modal-overlay {
	align-items: center;
	background: rgba(17, 24, 39, .6);
	box-sizing: border-box;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 1rem;
	position: fixed;
	z-index: 999999;
}

.bvs-search-dialog {
	background: #fff;
	border-radius: .75rem;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
	box-sizing: border-box;
	color: #111827;
	max-height: calc(100vh - 2rem);
	max-width: 760px;
	overflow-y: auto;
	padding: 1.25rem;
	width: 100%;
}

.bvs-dialog-header {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.bvs-dialog-header h2 {
	font-size: 1.25rem;
	margin: 0;
}

.bvs-close {
	background: transparent;
	border: 0;
	border-radius: .25rem;
	cursor: pointer;
	font-size: 2rem;
	line-height: 1;
	padding: .1rem .45rem;
}

.bvs-close:hover,
.bvs-close:focus-visible {
	background: #f3f4f6;
	outline: 2px solid #374151;
}

.bvs-drop-zone {
	align-items: center;
	background: #f9fafb;
	border: 2px dashed #9ca3af;
	border-radius: .65rem;
	display: flex;
	flex-direction: column;
	gap: .6rem;
	justify-content: center;
	min-height: 180px;
	padding: 1.25rem;
	text-align: center;
}

.bvs-drop-zone.is-dragging {
	background: #eff6ff;
	border-color: #2563eb;
}

.bvs-drop-zone p {
	margin: 0;
}

.bvs-upload-icon {
	background: #e5e7eb;
	border-radius: 50%;
	font-size: 2rem;
	font-weight: 700;
	height: 3.3rem;
	line-height: 3.1rem;
	width: 3.3rem;
}

.bvs-file-input {
	display: none;
}

.bvs-choose-image,
.bvs-submit-search,
.bvs-view-product {
	background: #2563eb;
	border: 0;
	border-radius: .35rem;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font: inherit;
	padding: .65rem 1rem;
	text-decoration: none;
}

.bvs-submit-search {
	margin-top: 1rem;
}

.bvs-submit-search:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.bvs-selected-file {
	color: #374151;
	font-size: .9rem;
	word-break: break-word;
}

.bvs-status {
	margin: .75rem 0;
}

.bvs-status--error {
	color: #b91c1c;
}

.bvs-results-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 1rem;
}

.bvs-product-card {
	border: 1px solid #e5e7eb;
	border-radius: .55rem;
	overflow: hidden;
}

.bvs-product-image {
	background: #f9fafb;
	display: block;
}

.bvs-product-image img {
	display: block;
	height: auto;
	width: 100%;
}

.bvs-product-card__content {
	padding: .8rem;
}

.bvs-product-card h3 {
	font-size: 1rem;
	line-height: 1.3;
	margin: .4rem 0;
}

.bvs-product-card h3 a {
	color: inherit;
	text-decoration: none;
}

.bvs-similarity {
	color: #047857;
	font-size: .8rem;
	font-weight: 700;
}

.bvs-price {
	margin-bottom: .75rem;
}

.bvs-view-product {
	font-size: .9rem;
}

.bvs-empty-results {
	margin: 1rem 0;
}

@media (max-width: 480px) {
	.bvs-results-grid {
		grid-template-columns: 1fr;
	}

	.bvs-visual-search-trigger {
		right: 2.6rem;
	}
}

