.wc-csv-lookup {
	max-width: 48rem;
	margin: 0 auto 2rem;
}

.wc-csv-lookup__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 0.5rem;
}

.wc-csv-lookup__input {
	flex: 1 1 12rem;
	min-width: 0;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.wc-csv-lookup__submit {
	padding: 0.5rem 1rem;
	font-size: 1rem;
	cursor: pointer;
	border-radius: 4px;
	border: 1px solid #2271b1;
	background: #2271b1;
	color: #fff;
}

.wc-csv-lookup__submit:hover {
	filter: brightness(1.05);
}

.wc-csv-lookup__hint {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	color: #666;
}

.wc-csv-lookup__full-results {
	margin: 1.25rem 0 2rem;
}

.wc-csv-lookup__full-results-heading {
	font-size: 1.35rem;
	margin: 0 0 1rem;
	line-height: 1.3;
}

.wc-csv-lookup--has-full-results {
	max-width: 72rem;
}

.wc-csv-azure-display--search-page.wc-csv-azure-display--horizontal .wc-csv-azure-display__grid--search-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 1rem 1.25rem;
	overflow: visible;
	flex-wrap: wrap;
	padding: 0;
	scroll-snap-type: none;
}

.wc-csv-azure-display--search-page.wc-csv-azure-display--horizontal .wc-csv-azure-display__grid--search-tiles .wc-csv-azure-display__card {
	flex: none;
	width: auto;
	max-width: none;
}

.wc-csv-lookup__full-results-empty {
	margin: 0;
	color: #555;
}

.wc-csv-lookup__see-more {
	margin-top: 0.35rem;
	padding: 0.65rem 1rem;
	text-align: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #f9fafb;
}

.wc-csv-lookup__see-more-link {
	font-weight: 600;
	text-decoration: none;
	color: #2271b1;
}

.wc-csv-lookup__see-more-link:hover {
	text-decoration: underline;
}

.wc-csv-lookup__message {
	margin: 1rem 0;
}

.wc-csv-lookup__results {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

.wc-csv-lookup__item {
	border-bottom: 1px solid #e0e0e0;
}

.wc-csv-lookup__item:last-child {
	border-bottom: 0;
}

.wc-csv-lookup__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding: 0.75rem 1rem;
}

.wc-csv-lookup__row:hover {
	background: #f6f7f7;
}

.wc-csv-lookup__row--variation-sku-match {
	background: #f0f7ff;
	box-shadow: inset 3px 0 0 0 #2271b1;
}

.wc-csv-lookup__primary {
	flex: 1 1 14rem;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.wc-csv-lookup__link {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.65rem;
	flex: 0 1 auto;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

.wc-csv-lookup__variation-strip {
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.65rem;
	font-size: 0.8125rem;
	line-height: 1.35;
}

.wc-csv-lookup__variation-strip--thumb-offset {
	padding-left: calc(52px + 0.65rem);
}

.wc-csv-lookup__variation-strip--no-thumb {
	padding-left: 0;
}

.wc-csv-lookup__btn--variation-add {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.1rem;
	max-width: 100%;
	font-size: 0.8125rem;
	font-weight: 500;
	padding: 0.35rem 0.55rem;
	line-height: 1.25;
	white-space: normal;
}

.wc-csv-lookup__variation-chip--matched {
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.45);
}

.wc-csv-lookup__sold-out-badge {
	display: inline-block;
	padding: 0.35rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	color: #fff;
	background: #b32d2e;
	border-radius: 4px;
	user-select: none;
	pointer-events: none;
}

.wc-csv-lookup__sold-out-badge--chip {
	font-size: 0.6875rem;
	padding: 0.3rem 0.48rem;
}

.wc-csv-lookup__variation-chip.wc-csv-lookup__variation-chip--sold-out {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 2rem;
	cursor: default;
}

.wc-csv-azure-display__card-actions > .wc-csv-lookup__sold-out-badge {
	display: table;
	margin-left: auto;
	margin-right: auto;
}

.wc-csv-lookup__btn--variation-add.wc-csv-lookup__variation-chip--bargain-bin {
	border-color: #b32d2e;
	background: #b32d2e;
	color: #fff;
}

.wc-csv-lookup__btn--variation-add.wc-csv-lookup__variation-chip--bargain-bin:hover {
	filter: brightness(1.08);
	color: #fff;
}

.wc-csv-lookup__variation-chip--matched.wc-csv-lookup__variation-chip--bargain-bin {
	box-shadow: 0 0 0 2px rgba(179, 45, 46, 0.55);
}

.wc-csv-lookup__btn.wc-csv-lookup__btn--bargain-bin {
	border-color: #b32d2e;
	background: #b32d2e;
	color: #fff;
}

.wc-csv-lookup__btn.wc-csv-lookup__btn--bargain-bin:hover {
	filter: brightness(1.08);
	color: #fff;
}

.wc-csv-lookup__variation-chip__label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 11rem;
}

.wc-csv-lookup__variation-chip__price {
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.15;
	opacity: 0.95;
	margin-inline-start: 0.2rem;
	flex-shrink: 0;
}

.wc-csv-lookup__btn--variation-add.wc-csv-lookup__variation-chip--bargain-bin .wc-csv-lookup__variation-chip__price,
.wc-csv-lookup__btn--variation-add.wc-csv-lookup__variation-chip--bargain-bin .wc-csv-lookup__variation-chip__price .amount {
	color: inherit;
}

.wc-csv-lookup__variation-chip__sale {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	line-height: 0;
	margin-inline-end: 0.15rem;
}

.wc-csv-lookup__variation-chip__sale .wc-csv-lookup__sale-tag-ico__img {
	height: 1em;
	width: auto;
	max-width: 2.5em;
	object-fit: contain;
}

.wc-csv-lookup__variation-chip__plus {
	flex-shrink: 0;
	font-weight: 700;
	font-size: 1.05em;
}

.wc-csv-lookup__thumb {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border-radius: 4px;
	background: #f0f0f0;
	align-self: center;
}

.wc-csv-lookup__thumb img,
.wc-csv-lookup__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wc-csv-lookup__link-main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0;
	gap: 0.1rem;
}

.wc-csv-lookup__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.wc-csv-lookup__add-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
}

.wc-csv-lookup__add-form > .wc-csv-lookup__btn {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.2rem 0.35rem;
	white-space: normal;
}

.wc-csv-lookup__qty {
	width: 3.5rem;
	padding: 0.35rem 0.4rem;
	font-size: 0.9375rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.wc-csv-lookup__btn {
	padding: 0.4rem 0.75rem;
	font-size: 0.875rem;
	cursor: pointer;
	border-radius: 4px;
	border: 1px solid #2271b1;
	background: #2271b1;
	color: #fff;
	text-decoration: none;
	display: inline-block;
	white-space: nowrap;
}

.wc-csv-lookup__btn:hover {
	filter: brightness(1.05);
	color: #fff;
}

.wc-csv-lookup__btn--secondary {
	background: #fff;
	color: #2271b1;
}

.wc-csv-lookup__btn--secondary:hover {
	background: #f0f6fc;
	color: #2271b1;
}

.wc-csv-lookup__unavailable {
	font-size: 0.875rem;
	color: #666;
}

.wc-csv-lookup__title {
	font-weight: 600;
}

.wc-csv-lookup__out-of-stock {
	display: inline-block;
	margin-top: 0.15rem;
	padding: 0.15rem 0.45rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	color: #8a2424;
	background: #fce8e6;
	border: 1px solid #e8b4b0;
	border-radius: 3px;
}

/* Horizontal strip: scroll on small screens; featured or remote CSV image (no placeholder). */
.wc-csv-azure-display {
	margin: 0 0 1.5rem;
	width: 100%;
}

.wc-csv-azure-display--horizontal {
	--wc-csv-azure-strip-card-w: 9.75rem;
	--wc-csv-azure-strip-thumb-max-h: 300px;
}

.wc-csv-azure-display--horizontal .wc-csv-azure-display__grid {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.75rem;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0.35rem 0.15rem;
	scrollbar-gutter: stable;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
}

.wc-csv-azure-display--horizontal .wc-csv-azure-display__card {
	flex: 0 0 var(--wc-csv-azure-strip-card-w, 9.75rem);
	width: var(--wc-csv-azure-strip-card-w, 9.75rem);
	max-width: 85vw;
	margin: 0;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	transition: box-shadow 0.15s ease;
	scroll-snap-align: start;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.wc-csv-azure-display--horizontal .wc-csv-azure-display__card:hover {
	box-shadow: 0 2px 10px rgb(0 0 0 / 0.08);
}

.wc-csv-azure-display--horizontal .wc-csv-azure-display__card-link {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	flex: 1 1 auto;
	min-height: 0;
	padding: 0.5rem;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
}

.wc-csv-azure-display--horizontal .wc-csv-azure-display__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	flex: 0 0 auto;
	min-height: 3rem;
	max-height: var(--wc-csv-azure-strip-thumb-max-h, 300px);
	background: #f5f5f5;
	border-radius: 4px;
	overflow: hidden;
	box-sizing: border-box;
}

.wc-csv-azure-display--horizontal .wc-csv-azure-display__thumb img,
.wc-csv-azure-display--horizontal .wc-csv-azure-display__thumb-img {
	display: block;
	max-height: var(--wc-csv-azure-strip-thumb-max-h, 300px);
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	margin: 0 auto;
}

.wc-csv-azure-display--horizontal .wc-csv-azure-display__card-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.5rem 0 0;
	min-width: 0;
}

.wc-csv-azure-display--horizontal .wc-csv-azure-display__title {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.wc-csv-azure-display--horizontal .wc-csv-azure-display__price {
	font-size: 0.75rem;
	font-weight: 600;
	color: #2271b1;
}

.wc-csv-azure-display__card-actions {
	flex: 0 0 auto;
	margin-top: auto;
	padding: 0.4rem 0.5rem 0.65rem;
	border-top: 1px solid #eee;
}

.wc-csv-azure-display__card-actions .wc-csv-lookup__variation-strip {
	gap: 0.35rem;
	font-size: 0.75rem;
}

.wc-csv-azure-display__card-actions .wc-csv-lookup__btn--variation-add {
	font-size: 0.75rem;
	padding: 0.28rem 0.45rem;
}

.wc-csv-azure-display__card-actions .wc-csv-lookup__add-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	width: 100%;
}

.wc-csv-azure-display__card-actions .wc-csv-lookup__qty {
	width: 3rem;
}

.wc-csv-lookup__btn-addtocart__sale {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	line-height: 0;
	margin-inline-end: 0.2rem;
}

.wc-csv-lookup__btn-addtocart__sale .wc-csv-lookup__sale-tag-ico__img {
	height: 1em;
	width: auto;
	max-width: 2.5em;
	object-fit: contain;
}

.wc-csv-lookup__btn-addtocart__price {
	margin-inline-start: 0.35rem;
	font-weight: 600;
	font-size: 0.9em;
}

.wc-csv-lookup__btn.wc-csv-lookup__btn--bargain-bin .wc-csv-lookup__btn-addtocart__price,
.wc-csv-lookup__btn.wc-csv-lookup__btn--bargain-bin .wc-csv-lookup__btn-addtocart__price .amount {
	color: inherit;
}

.wc-csv-lookup__btn-loading {
	display: inline;
}

.wc-csv-lookup .wc-csv-lookup__sale-tag-ico,
.wc-csv-azure-display .wc-csv-lookup__sale-tag-ico {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	margin-inline-end: 0.2rem;
	line-height: 0;
}

.wc-csv-lookup .wc-csv-lookup__sale-tag-ico__img,
.wc-csv-azure-display .wc-csv-lookup__sale-tag-ico__img {
	display: block;
	height: 1.1em;
	width: auto;
	max-width: 3.25em;
	object-fit: contain;
}

.wc-csv-azure-display--horizontal .wc-csv-azure-display__empty {
	flex: 0 0 100%;
	width: 100%;
	margin: 0;
	padding: 0.75rem;
	font-size: 0.875rem;
	color: #666;
}

.wc-csv-lookup__sku {
	font-size: 0.875rem;
	color: #555;
	font-family: ui-monospace, monospace;
}

.wc-csv-lookup__price {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	margin-top: 0.2rem;
	color: #2271b1;
}

.wc-csv-lookup__price del {
	opacity: 0.75;
	font-weight: 400;
}
