/* ============================================================
   Zestawy: sekcja „Dodaj dopasowane akcesoria” pod kartą produktu (projekt Z2).
   ============================================================ */

.ws-zst {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid var(--border-default, #d9d1c7);
	scroll-margin-top: 110px;
}

.ws-zst__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 20px;
	margin-bottom: 20px;
}

.ws-zst__title {
	margin: 0;
	font-family: var(--font-display, sans-serif);
	font-weight: 700;
	font-size: var(--text-2xl, 28px);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--ink-900, #1a1614);
}

.ws-zst__lead {
	margin: 0;
	font-size: var(--text-sm, 14px);
	color: var(--text-muted, #6b625a);
}

.ws-zst__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ws-zst__item {
	position: relative;
	display: flex;
	align-items: center;
	background: var(--white, #fff);
	border: 1.5px solid var(--border-subtle, #efeae3);
	border-radius: 12px;
	transition: border-color var(--dur-base, 200ms), box-shadow var(--dur-base, 200ms);
}

.ws-zst__item[hidden] {
	display: none;
}

.ws-zst__item:hover {
	border-color: var(--border-default, #d9d1c7);
}

.ws-zst__item.is-checked {
	border-color: var(--molten-300, #ff9f70);
	box-shadow: 0 0 0 3px rgba(242, 84, 27, 0.08);
}

.ws-zst__check {
	position: absolute;
	left: 16px;
	top: 50%;
	width: 22px;
	height: 22px;
	margin: -11px 0 0;
	appearance: none;
	-webkit-appearance: none;
	border: 1.5px solid var(--ink-300, #b9afa4);
	border-radius: 6px;
	background: var(--white, #fff);
	cursor: pointer;
	transition: background var(--dur-fast, 120ms), border-color var(--dur-fast, 120ms);
}

.ws-zst__check:checked {
	border-color: var(--molten-500, #f2541b);
	background: var(--molten-500, #f2541b) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.ws-zst__check:focus-visible {
	outline: none;
	box-shadow: var(--shadow-focus, 0 0 0 3px rgba(242, 84, 27, 0.22));
}

.ws-zst__label {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 92px;
	padding: 12px 8px 12px 52px;
	cursor: pointer;
}

.ws-zst__thumb {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border: 1px solid var(--border-subtle, #efeae3);
	border-radius: 8px;
	background: var(--white, #fff);
	overflow: hidden;
}

.ws-zst__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ws-zst__name {
	flex: 1;
	font-size: 14px;
	line-height: 1.35;
	color: var(--ink-900, #1a1614);
}

.ws-zst__price {
	font-family: var(--font-mono, monospace);
	font-weight: 600;
	font-size: 14px;
	color: var(--ink-900, #1a1614);
	white-space: nowrap;
}

.ws-zst__link {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	width: 40px;
	border-left: 1px solid var(--border-subtle, #efeae3);
	color: var(--ink-400, #978d83);
}

.ws-zst__link:hover {
	color: var(--molten-600, #d8410f);
}

.ws-zst__more {
	margin-top: 12px;
	padding: 8px 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--molten-600, #d8410f);
	cursor: pointer;
}

.ws-zst__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin-top: 16px;
	padding: 16px 20px;
	border: 1px solid var(--border-subtle, #efeae3);
	border-radius: 14px;
	background: var(--white, #fff);
	box-shadow: var(--shadow-md, 0 4px 12px rgba(26, 22, 20, 0.08));
}

.ws-zst__sum,
.ws-zst__code {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ws-zst__code {
	padding-left: 24px;
	border-left: 1px solid var(--border-subtle, #efeae3);
}

.ws-zst__code[hidden] {
	display: none;
}

.ws-zst__sum-label,
.ws-zst__code-label {
	font-size: 13px;
	color: var(--text-muted, #6b625a);
}

.ws-zst__code-label {
	font-weight: 600;
	color: var(--green-700, #146043);
}

.ws-zst__sum-value,
.ws-zst__code-value {
	font-family: var(--font-mono, monospace);
	font-weight: 600;
	font-size: 22px;
	line-height: 1.2;
	color: var(--ink-900, #1a1614);
	font-feature-settings: 'tnum' 1;
}

.ws-zst__code-value {
	color: var(--green-700, #146043);
}

.ws-zst__code.is-missing .ws-zst__code-label {
	color: var(--text-muted, #6b625a);
}

.ws-zst__code.is-missing .ws-zst__code-value {
	font-size: 16px;
	color: var(--molten-700, #b0340c);
}

.ws-zst__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	margin-left: auto;
	padding: 0 24px;
	border: 0;
	border-radius: var(--radius-md, 10px);
	background: var(--molten-500, #f2541b);
	color: #fff;
	font-family: var(--font-sans, sans-serif);
	font-weight: 600;
	font-size: 16px;
	box-shadow: var(--shadow-brand, 0 8px 22px rgba(242, 84, 27, 0.28));
	cursor: pointer;
	white-space: nowrap;
	transition: background var(--dur-base, 200ms);
}

.ws-zst__cta:hover {
	background: var(--molten-600, #d8410f);
}

.ws-zst__cta:focus-visible {
	outline: none;
	box-shadow: var(--shadow-focus, 0 0 0 3px rgba(242, 84, 27, 0.22));
}

.ws-zst-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--green-700, #146043);
}

.ws-zst-note[hidden] {
	display: none;
}

.ws-zst-note a {
	margin-left: auto;
	color: var(--molten-600, #d8410f);
	text-decoration: none;
}

@media (max-width: 880px) {
	.ws-zst__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 720px) {
	.ws-zst {
		margin-top: 36px;
		padding-top: 28px;
	}

	.ws-zst__title {
		font-size: 22px;
	}

	.ws-zst__label {
		min-height: 76px;
		gap: 12px;
		padding-left: 48px;
	}

	.ws-zst__thumb {
		width: 52px;
		height: 52px;
	}

	.ws-zst__name {
		font-size: 13.5px;
	}

	.ws-zst__link {
		display: none;
	}

	.ws-zst__label {
		padding-right: 14px;
	}

	.ws-zst__bar {
		position: sticky;
		bottom: 0;
		z-index: 20;
		gap: 4px 12px;
		margin: 16px calc(-1 * var(--container-pad, 16px)) 0;
		padding: 10px var(--container-pad, 16px) 12px;
		border-radius: 0;
		border-width: 1px 0 0;
		box-shadow: 0 -8px 24px rgba(26, 22, 20, 0.08);
	}

	.ws-zst__code {
		padding-left: 12px;
	}

	.ws-zst__sum-label,
	.ws-zst__code-label {
		font-size: 11.5px;
	}

	.ws-zst__sum-value,
	.ws-zst__code-value {
		font-size: 17px;
	}

	.ws-zst__code.is-missing .ws-zst__code-value {
		font-size: 13px;
	}

	.ws-zst__cta {
		flex-basis: 100%;
		height: 46px;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ws-zst__item,
	.ws-zst__check,
	.ws-zst__cta {
		transition: none;
	}
}
