.noteistry-kit-builder {
	margin: 1.25rem 0 1.5rem;
	color: #1c1917;
	font-size: 0.95rem;
	line-height: 1.4;
}

.noteistry-kit-builder__loading,
.noteistry-kit-builder__hint,
.noteistry-kit-builder__count {
	margin: 0;
}

.noteistry-kit-builder[data-state="loading"] .noteistry-kit-builder__stage,
.noteistry-kit-builder[data-state="loading"] .noteistry-kit-builder__fallback {
	display: none !important;
}

.noteistry-kit-builder:not([data-state="loading"]) .noteistry-kit-builder__loading {
	display: none;
}

.noteistry-kit-builder__fallback {
	display: none;
}

.noteistry-kit-builder__bar {
	position: sticky;
	top: 8px;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 12px 14px;
	border: 1px solid #e4d3b4;
	border-radius: 10px;
	background: #f6ead2;
	color: #1c1917;
}

.noteistry-kit-builder__count {
	font-weight: 600;
}

.noteistry-kit-builder__picked {
	margin-top: 12px;
}

.noteistry-kit-builder__picked[hidden] {
	display: none !important;
}

.noteistry-kit-builder__picked-title {
	margin: 0 0 8px;
	font-weight: 600;
}

.noteistry-kit-builder__picked-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.noteistry-kit-builder__picked-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 6px 8px;
	border: 1px solid #e7dfd4;
	border-radius: 8px;
	background: #fff;
}

.noteistry-kit-builder__picked-list img {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 6px;
	object-fit: cover;
	background: #f3eee7;
}

.noteistry-kit-builder__picked-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.noteistry-kit-builder__picked-name {
	font-weight: 600;
}

.noteistry-kit-builder__picked-secondary {
	color: #57534e;
	font-size: 0.78rem;
}

.noteistry-kit-builder__remove {
	margin-left: auto;
	min-height: 36px;
	padding: 4px 12px;
	border: 1px solid #d6d3d1;
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
}

.noteistry-kit-builder__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.noteistry-kit-builder__search,
.noteistry-kit-builder__category {
	min-height: 44px;
	flex: 1 1 180px;
	padding: 8px 10px;
	border: 1px solid #d6d3d1;
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
}

.noteistry-kit-builder__message {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff4e5;
	color: #7c2d12;
}

.noteistry-kit-builder__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 12px;
	margin: 12px 0 0;
	padding: 0;
}

.noteistry-kit-builder button.noteistry-kit-builder__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid #d6d3d1;
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: 1.3;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	overflow: hidden;
	touch-action: manipulation;
	appearance: none;
}

.noteistry-kit-builder button.noteistry-kit-builder__card.is-selected {
	border-color: #1f4d3a;
	box-shadow: inset 0 0 0 2px #1f4d3a;
}

.noteistry-kit-builder button.noteistry-kit-builder__card:focus-visible {
	outline: 2px solid #1f4d3a;
	outline-offset: 2px;
}

.noteistry-kit-builder button.noteistry-kit-builder__card:disabled {
	cursor: default;
	opacity: 0.45;
}

.noteistry-kit-builder button.noteistry-kit-builder__card[hidden],
.noteistry-kit-builder button.noteistry-kit-builder__card.is-hidden {
	display: none !important;
}

.noteistry-kit-builder__photo {
	display: block;
	aspect-ratio: 1;
	background: #f3eee7;
}

.noteistry-kit-builder__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.noteistry-kit-builder__photo.is-placeholder {
	background:
		linear-gradient(160deg, #f7f3ee 0%, #e7dfd4 100%);
}

.noteistry-kit-builder__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 10px 10px;
}

.noteistry-kit-builder__name {
	font-weight: 600;
}

.noteistry-kit-builder__secondary,
.noteistry-kit-builder__categories {
	color: #57534e;
	font-size: 0.78rem;
}

.noteistry-kit-builder__fallback-list {
	list-style: none;
	max-height: 50vh;
	margin: 12px 0 0;
	padding: 0;
	overflow: auto;
}

.noteistry-kit-builder__fallback-list label {
	display: flex;
	gap: 8px;
	align-items: center;
	min-height: 44px;
}

form.noteistry-kit-builder-on button.single_add_to_cart_button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

@media (max-width: 600px) {
	.noteistry-kit-builder__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.noteistry-kit-builder__bar {
		top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.noteistry-kit-builder button.noteistry-kit-builder__card {
		transition: none;
	}
}
