.npsc-button-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem;
	align-items: center;
	margin-top: .75rem;
}

.npsc-view-samples,
.npsc-samples-count {
	font-size: .9em;
	text-decoration: underline;
}

.npsc-add-sample[aria-disabled="true"] {
	opacity: .55;
	cursor: not-allowed;
}

.npsc-sample-name {
	font-weight: 600;
}

.npsc-fixed-sample-qty {
	display: inline-block;
	min-width: 2em;
	text-align: center;
}

.npsc-samples-manager {
	--npsc-border: rgba(0, 0, 0, .12);
	--npsc-muted: rgba(0, 0, 0, .64);
	max-width: 960px;
	margin: 0 auto;
}

.npsc-card {
	border: 1px solid var(--npsc-border);
	border-radius: 12px;
	padding: 24px;
	margin: 0 0 20px;
	background: #fff;
}

.npsc-card h2 {
	margin-top: 0;
	margin-bottom: 8px;
	font-size: 1.35em;
}

.npsc-card-heading {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 18px;
}

.npsc-muted {
	margin: 0;
	color: var(--npsc-muted);
	font-size: .93em;
}

.npsc-samples-count-static {
	white-space: nowrap;
}

.npsc-empty {
	padding: 18px;
	background: rgba(0, 0, 0, .035);
	border-radius: 8px;
	margin-bottom: 18px;
}

.npsc-empty p:last-child {
	margin-bottom: 0;
}

.npsc-sample-list {
	display: grid;
	gap: 10px;
	margin-bottom: 20px;
}

.npsc-sample-row {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--npsc-border);
}

.npsc-sample-row:last-child {
	border-bottom: 0;
}

.npsc-sample-image img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
}

.npsc-sample-info {
	display: grid;
	gap: 3px;
}

.npsc-sample-info span {
	color: var(--npsc-muted);
	font-size: .9em;
}

.npsc-sku-form {
	padding-top: 18px;
	border-top: 1px solid var(--npsc-border);
}

.npsc-sku-form label {
	display: block;
	margin-bottom: 5px;
}

.npsc-inline-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: stretch;
	margin-top: 10px;
}

.npsc-inline-form textarea {
	min-height: 70px;
	margin: 0;
}

.npsc-cart-cta {
	margin: 20px 0 0;
}

.npsc-floating-message {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999999;
	max-width: min(420px, calc(100vw - 40px));
	padding: 13px 16px;
	border-radius: 8px;
	background: #222;
	color: #fff;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
}

.npsc-floating-message.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.npsc-floating-message.is-error { background: #8a1f11; }
.npsc-floating-message.is-success { background: #235b2b; }

@media (max-width: 640px) {
	.npsc-card { padding: 18px; border-radius: 9px; }
	.npsc-card-heading { display: grid; }
	.npsc-sample-row { grid-template-columns: 50px minmax(0, 1fr); }
	.npsc-sample-row .button { grid-column: 2; justify-self: start; }
	.npsc-inline-form { grid-template-columns: 1fr; }
}
