.wc-phc-swatches {
	display: flex;
	flex-direction: column;
	gap: var(--wc-phc-gap, 10px);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wc-phc-row {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: var(--wc-phc-gap, 10px);
}

.wc-phc-swatch-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wc-phc-gap, 10px);
	width: 100%;
	box-sizing: border-box;
	align-items: start;
}

.wc-phc-calc-band {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wc-phc-cell--empty {
	min-height: 1px;
	aspect-ratio: 2 / 1;
	pointer-events: none;
}

.wc-phc-item {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0 0 10px;
	border-radius: var(--wc-phc-radius, 2px);
	background-color: #fff;
	gap: clamp(4px, 1vw, 8px);
}

.wc-phc-swatch {
	align-self: stretch;
	display: block;
	width: 100%;
	min-width: 0;
	height: auto;
	aspect-ratio: 2 / 1;
}

.wc-phc-label,
.wc-phc-ral {
	display: block;
	margin: 0;
	width: 100%;
	max-width: 100%;
	font-size: 14px;
	line-height: 18px;
	text-align: center;
	color: #444;
	word-break: break-word;
}

.wc-phc-swatch-trigger {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
}

.wc-phc-swatch-trigger:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.wc-phc-calc {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	text-align: left;
}

.wc-phc-mode-panel {
	margin-bottom: 15px;
}

.wc-phc-calc-paint-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	color: #1d2327;
}

.wc-phc-calc-paint-left {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	flex: 1 1 auto;
}

.wc-phc-calc-paint-swatch {
	display: block;
	flex-shrink: 0;
	width: 40px;
	height: 22px;
	box-sizing: border-box;
}

.wc-phc-calc-walls {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.wc-phc-calc-walls .wc-phc-calc-hint {
	margin-top: 0;
}

.wc-phc-calc-hint {
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 16px;
	color: #646970;
}

.wc-phc-walls {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 8px;
}

.wc-phc-wall-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
}

.wc-phc-wall-row-main {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	width: 100%;
	min-width: 0;
}

.wc-phc-wall-dim-label {
	flex: 0 0 auto;
	font-size: 14px;
	line-height: 1.35;
	color: #1d2327;
	white-space: nowrap;
}

.wc-phc-wall-fields {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.wc-phc-wall-fields label {
	margin: 0;
	flex: 1;
	min-width: 0;
}

.wc-phc-wall-fields input {
	width: 100%;
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	padding: 8px 10px;
	border: 0;
	border-radius: 2px;
	background: #ececec;
	color: #1d2327;
	font-size: 14px;
	line-height: 1.35;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.15s ease;
}

.wc-phc-wall-fields input:hover {
	background: #e3e3e3;
}

.wc-phc-wall-fields input:focus {
	background: #d8d8d8;
}

.wc-phc-wall-fields input[type="number"]::-webkit-outer-spin-button,
.wc-phc-wall-fields input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.wc-phc-wall-fields input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

.wc-phc-wall-x {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	color: #646970;
	line-height: 0;
}

.wc-phc-wall-x svg {
	display: block;
	flex-shrink: 0;
}

.wc-phc-swatches .wc-phc-calc .wc-phc-calc-gray-btn {
	margin: 0;
	padding: 5px 12px;
	box-sizing: border-box;
	font-size: 12px;
	line-height: 1.25;
	font-weight: 400;
	font-family: inherit;
	text-align: center;
	color: #1d2327;
	background: #dcdcde;
	background-color: #dcdcde;
	border: 0;
	border-radius: 2px;
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	text-decoration: none;
	transition: background-color 0.15s ease, filter 0.15s ease;
}

.wc-phc-swatches .wc-phc-calc .wc-phc-remove-wall {
	align-self: flex-end;
	width: var(--wc-phc-add-wall-btn-width, auto);
	max-width: 100%;
}

.wc-phc-swatches .wc-phc-calc .wc-phc-remove-paint {
	flex: 0 0 auto;
	margin-left: auto;
}

.wc-phc-swatches .wc-phc-calc .wc-phc-calc-gray-btn:hover {
	background: #c3c4c7;
	background-color: #c3c4c7;
}

.wc-phc-swatches .wc-phc-calc .wc-phc-calc-gray-btn:focus,
.wc-phc-swatches .wc-phc-calc .wc-phc-calc-gray-btn:active {
	outline: none;
}

.wc-phc-swatches .wc-phc-calc .wc-phc-calc-gray-btn:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.wc-phc-result {
	margin: 0;
	font-size: 16px;
	line-height: 22px;
	font-weight: 400;
	color: #1d2327;
}

.wc-phc-cost-cart-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 25px;
	margin-top: 10px;
	padding: 20px;
	background: #f3f5f8;
	box-sizing: border-box;
}

.wc-phc-cost {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	font-size: 20px;
	line-height: 20px;
	font-weight: 400;
	color: #1d2327;
}

.wc-phc-cart-msg {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #1d2327;
}

.wc-phc-cart-msg:not(:empty) {
	min-height: 1.2em;
}

/**
 * Przyciski kalkulatora (bez .button z WooCommerce): ten sam wygląd co „Dodaj farbę do koszyka”;
 * „Dodaj ścianę” — czcionka 14px.
 */
.wc-phc-swatches .wc-phc-calc .wc-phc-add-cart,
.wc-phc-swatches .wc-phc-calc .wc-phc-add-wall {
	margin: 0;
	padding: 10px 20px;
	border-radius: 2px;
	font-weight: 400;
	font-family: inherit;
	line-height: 1.4;
	color: #fff;
	background: #1c244b;
	background-color: #1c244b;
	background-image: none;
	border: 0;
	border-width: 0;
	box-shadow: none;
	text-shadow: none;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	box-sizing: border-box;
	cursor: pointer;
	display: inline-block;
	vertical-align: middle;
	width: auto;
	min-height: 0;
	height: auto;
	appearance: none;
	-webkit-appearance: none;
	transition: filter 0.15s ease, opacity 0.15s ease;
}

.wc-phc-swatches .wc-phc-calc .wc-phc-add-cart {
	margin-top: 0;
	font-size: 1rem;
}

.wc-phc-swatches .wc-phc-calc .wc-phc-cost-cart-row .wc-phc-add-cart {
	flex: 0 0 auto;
}

.wc-phc-swatches .wc-phc-calc .wc-phc-add-wall {
	align-self: flex-end;
	margin-bottom: 8px;
	font-size: 14px;
}

.wc-phc-swatches .wc-phc-calc .wc-phc-add-cart:hover:not(:disabled),
.wc-phc-swatches .wc-phc-calc .wc-phc-add-wall:hover:not(:disabled) {
	color: #fff;
	background: #1c244b;
	background-color: #1c244b;
	background-image: none;
	filter: brightness(1.08);
}

.wc-phc-swatches .wc-phc-calc .wc-phc-add-cart:disabled,
.wc-phc-swatches .wc-phc-calc .wc-phc-add-wall:disabled {
	color: #fff;
	background: #1c244b;
	background-color: #1c244b;
	background-image: none;
	opacity: 0.55;
	cursor: not-allowed;
	filter: none;
}

.wc-phc-swatches .wc-phc-calc .wc-phc-add-cart:focus,
.wc-phc-swatches .wc-phc-calc .wc-phc-add-cart:active,
.wc-phc-swatches .wc-phc-calc .wc-phc-add-wall:focus,
.wc-phc-swatches .wc-phc-calc .wc-phc-add-wall:active {
	outline: none;
	box-shadow: none;
}

.wc-phc-swatches .wc-phc-calc .wc-phc-add-cart:focus-visible,
.wc-phc-swatches .wc-phc-calc .wc-phc-add-wall:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	box-shadow: none;
}

.wc-phc-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
