/* =========================================================
   PNW – PUDEŁKA NA WYMIAR
   FULL + QUICK
   ========================================================= */

.pnw-box-quote,
.pnw-box-quick {
	--green: #159447;
	--green-dark: #107a3a;
	--green-soft: #eef8f1;

	--text: #111;
	--muted: #69736d;

	--border: #dfe5e1;
	--soft: #f7f9f8;

	width: 100%;

	box-sizing: border-box;
}


.pnw-box-quote *,
.pnw-box-quick * {
	box-sizing: border-box;
}


/* =========================================================
   QUICK CTA
   ========================================================= */

.pnw-box-quick {
	padding: 10px;

	border: 1px solid #dce6df;
	border-radius: 10px;

	background: #fff;
}


.pnw-box-quick-form {
	display: grid;

	grid-template-columns:
		repeat(4, minmax(105px, 1fr))
		minmax(180px, 1.25fr);

	grid-template-areas:
		"width length height window cta"
		"box_type cardboard print quantity cta";

	gap: 8px 10px;

	align-items: end;
}


.pnw-quick-width {
	grid-area: width;
}


.pnw-quick-length {
	grid-area: length;
}


.pnw-quick-height {
	grid-area: height;
}


.pnw-quick-window {
	grid-area: window;
}


.pnw-quick-box-type {
	grid-area: box_type;
}


.pnw-quick-cardboard {
	grid-area: cardboard;
}


.pnw-quick-print {
	grid-area: print;
}


.pnw-quick-quantity {
	grid-area: quantity;
}


.pnw-box-quick-form label {
	display: flex;

	flex-direction: column;

	gap: 4px;

	min-width: 0;

	margin: 0;
}


.pnw-box-quick-form label > span {
	color: #59635d;

	font-size: 9px;
	font-weight: 600;

	line-height: 1.2;
}


.pnw-box-quick-form input,
.pnw-box-quick-form select {
	display: block;

	width: 100%;
	height: 34px;

	margin: 0 !important;
	padding: 0 9px !important;

	border: 1px solid #dce2de !important;
	border-radius: 6px !important;

	background: #fff !important;

	color: #222 !important;

	font-family: inherit;
	font-size: 11px !important;

	line-height: 1 !important;

	box-shadow: none !important;
}


.pnw-box-quick-form input:focus,
.pnw-box-quick-form select:focus {
	border-color: var(--green) !important;

	outline: none !important;
}


.pnw-box-quick-unit {
	position: relative;
}


.pnw-box-quick-unit input {
	padding-right: 36px !important;
}


.pnw-box-quick-unit small {
	position: absolute;

	top: 50%;
	right: 8px;

	transform: translateY(-50%);

	color: #7e8882;

	font-size: 9px;
}


.pnw-box-quick-cta {
	grid-area: cta;

	display: flex;

	flex-direction: column;

	align-self: stretch;
	justify-content: center;

	gap: 6px;
}


.pnw-box-quick-cta button {
	display: flex !important;

	align-items: center;
	justify-content: center;

	gap: 10px;

	width: 100% !important;
	min-height: 43px !important;

	margin: 0 !important;
	padding: 9px 12px !important;

	border: 0 !important;
	border-radius: 6px !important;

	background: var(--green) !important;

	color: #fff !important;

	font-family: inherit;

	font-size: 11px !important;
	font-weight: 700 !important;

	line-height: 1.2 !important;

	white-space: nowrap;

	box-shadow: none !important;

	cursor: pointer;
}


.pnw-box-quick-cta button:hover {
	background: var(--green-dark) !important;
}


.pnw-box-quick-cta button b {
	font-size: 16px;

	font-weight: 400;

	line-height: 1;
}


.pnw-box-quick-cta small {
	display: block;

	color: var(--green);

	font-size: 10px;
	font-weight: 500;

	line-height: 1.3;

	text-align: center;
}

/* =========================================================
   FULL – LAYOUT
   ========================================================= */

.pnw-box-quote-layout {
	display: grid;

	grid-template-columns:
		minmax(0, 1.75fr)
		minmax(260px, .65fr);

	gap: 16px;

	align-items: start;
}


.pnw-box-quote-main {
	min-width: 0;

	padding: 20px;

	border: 1px solid var(--border);
	border-radius: 10px;

	background: #fff;
}


/* =========================================================
   HEADER
   ========================================================= */

.pnw-box-eyebrow {
	display: block;

	margin: 0 0 4px;

	color: var(--green);

	font-size: 9px;
	font-weight: 800;

	letter-spacing: .05em;
	text-transform: uppercase;
}


.pnw-box-quote-header {
	margin: 0 0 17px;
}


.pnw-box-quote-header h2 {
	margin: 0 0 5px;

	color: #111;

	font-size: 25px;
	font-weight: 700;

	line-height: 1.15;
}


.pnw-box-quote-header p {
	margin: 0;

	color: var(--muted);

	font-size: 12px;

	line-height: 1.45;
}


/* =========================================================
   PREFILL
   ========================================================= */

.pnw-box-prefill-banner {
	display: none;

	align-items: center;
	justify-content: space-between;

	gap: 14px;

	margin: 0 0 14px;
	padding: 11px 12px;

	border: 1px solid #cde7d5;
	border-radius: 7px;

	background: var(--green-soft);
}


.pnw-box-prefill-banner strong,
.pnw-box-prefill-banner span {
	display: block;
}


.pnw-box-prefill-banner strong {
	color: #21462d;

	font-size: 11px;
}


.pnw-box-prefill-banner span {
	margin-top: 2px;

	color: #607168;

	font-size: 10px;
}


.pnw-box-edit-config {
	flex: 0 0 auto;

	padding: 7px 10px !important;

	border: 1px solid #bcdac5 !important;
	border-radius: 5px !important;

	background: #fff !important;

	color: var(--green) !important;

	font-size: 9px !important;
	font-weight: 700 !important;

	box-shadow: none !important;

	cursor: pointer;
}


.pnw-box-quote.is-prefilled
.pnw-box-prefill-banner {
	display: flex;
}


.pnw-box-quote.is-prefilled
.pnw-box-config-sections {
	display: none;
}


/* =========================================================
   KONFIGURACJA – ZWARTA SIATKA
   ========================================================= */

.pnw-box-config-sections {
	display: grid;

	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	gap: 9px;
}


.pnw-box-config-sections
.pnw-box-section {
	margin: 0;
	padding: 13px;

	border: 1px solid #e4e9e6;
	border-radius: 8px;

	background: #fafbfa;
}


.pnw-box-config-sections
.pnw-box-section:first-child {
	grid-column: 1 / -1;
}


.pnw-box-section-head {
	display: flex;

	align-items: flex-start;

	gap: 8px;

	margin: 0 0 10px;
}


.pnw-box-section-head > span {
	display: flex;

	align-items: center;
	justify-content: center;

	flex: 0 0 23px;

	width: 23px;
	height: 23px;

	border-radius: 50%;

	background: var(--green-soft);

	color: var(--green);

	font-size: 9px;
	font-weight: 700;
}


.pnw-box-section-head h3 {
	margin: 1px 0 1px;

	color: #111;

	font-size: 13px;
	font-weight: 700;

	line-height: 1.2;
}


.pnw-box-section-head p {
	margin: 0;

	color: var(--muted);

	font-size: 9px;

	line-height: 1.35;
}


/* =========================================================
   INPUTS
   ========================================================= */

.pnw-box-dimensions {
	display: grid;

	grid-template-columns:
		repeat(3, minmax(0, 1fr));

	gap: 9px;
}


.pnw-box-contact-grid {
	display: grid;

	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	gap: 10px;
}


.pnw-box-field {
	display: flex;

	flex-direction: column;

	gap: 5px;

	min-width: 0;

	margin: 0;
}


.pnw-box-field > span {
	color: #3f4742;

	font-size: 10px;
	font-weight: 600;
}


.pnw-box-field input,
.pnw-box-field textarea {
	width: 100%;

	margin: 0 !important;

	border: 1px solid #dce2de !important;
	border-radius: 6px !important;

	background: #fff !important;

	color: #111 !important;

	font-family: inherit;
	font-size: 12px !important;

	box-shadow: none !important;
}


.pnw-box-field input {
	height: 38px;

	padding: 0 10px !important;
}


.pnw-box-field textarea {
	min-height: 78px;

	padding: 9px 10px !important;

	resize: vertical;
}


.pnw-box-field input:focus,
.pnw-box-field textarea:focus {
	border-color: var(--green) !important;

	outline: none !important;
}


.pnw-box-input-unit {
	position: relative;
}


.pnw-box-input-unit input {
	padding-right: 38px !important;
}


.pnw-box-input-unit small {
	position: absolute;

	top: 50%;
	right: 10px;

	transform: translateY(-50%);

	color: #808983;

	font-size: 9px;
}


/* =========================================================
   RADIO
   ========================================================= */

.pnw-box-choice-grid {
	display: grid;

	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	gap: 6px;
}


.pnw-box-choice {
	position: relative;

	margin: 0;

	cursor: pointer;
}


.pnw-box-choice input {
	position: absolute;

	opacity: 0;

	pointer-events: none;
}


.pnw-box-choice > span {
	display: flex;

	flex-direction: column;

	justify-content: center;

	min-height: 44px;

	padding: 7px 9px;

	border: 1px solid var(--border);
	border-radius: 6px;

	background: #fff;
}


.pnw-box-choice input:checked + span {
	border-color: var(--green);

	background: var(--green-soft);

	box-shadow:
		inset 0 0 0 1px
		var(--green);
}


.pnw-box-choice strong {
	color: #111;

	font-size: 10px;
	font-weight: 700;

	line-height: 1.2;
}


.pnw-box-choice small {
	margin-top: 1px;

	color: var(--muted);

	font-size: 8px;

	line-height: 1.25;
}


/* =========================================================
   CONTACT
   ========================================================= */

.pnw-box-contact-section {
	margin: 12px 0 0;
	padding: 15px 0 0;

	border: 0;
	border-top: 1px solid #e7ebe8;
}


.pnw-box-field-full {
	grid-column: 1 / -1;
}


.pnw-box-quantity {
	max-width: 230px;
}


/* =========================================================
   CONSENT / BUTTON
   ========================================================= */

.pnw-box-consent {
	display: flex;

	align-items: flex-start;

	gap: 7px;

	margin: 12px 0 0;

	color: #667069;

	font-size: 9px;

	line-height: 1.4;
}


.pnw-box-consent input {
	flex: 0 0 14px;

	width: 14px;
	height: 14px;

	margin: 1px 0 0;

	accent-color: var(--green);
}


.pnw-box-consent a {
	color: var(--green);
}


.pnw-box-submit {
	display: inline-flex !important;

	align-items: center;
	justify-content: center;

	min-height: 39px;
	min-width: 250px;

	margin: 16px auto 0 !important;
	padding: 10px 18px !important;

	border: 0 !important;
	border-radius: 6px !important;

	background: var(--green) !important;

	color: #fff !important;

	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;

	text-align: center;

	box-shadow: none !important;

	cursor: pointer;
}


.pnw-box-submit:hover {
	background: var(--green-dark) !important;
}


/* =========================================================
   STATUS
   ========================================================= */

.pnw-box-form-status {
	display: none;

	margin-top: 10px;
	padding: 9px 10px;

	border-radius: 6px;

	font-size: 10px;
}


.pnw-box-form-status.is-success {
	display: block;

	background: var(--green-soft);

	color: #14713a;
}


.pnw-box-form-status.is-error {
	display: block;

	background: #fff0f0;

	color: #a12b2b;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.pnw-box-summary {
	min-width: 0;
}


.pnw-box-summary-inner {
	position: sticky;

	top: 90px;

	padding: 17px;

	border: 1px solid var(--border);
	border-radius: 10px;

	background: #fff;
}


.pnw-box-summary-inner > h3 {
	margin: 0 0 11px;

	color: #111;

	font-size: 16px;
	font-weight: 700;
}


/* =========================================================
   INTERAKTYWNY PODGLĄD
   ========================================================= */

.pnw-box-preview {
	display: flex;

	align-items: center;
	justify-content: center;

	height: 175px;

	margin: 0 0 14px;

	border-radius: 8px;

	background: #f5f7f6;
}


.pnw-box-preview svg {
	width: 210px;
	height: 155px;

	overflow: visible;
}


/* cień */

.pnw-box-preview-shadow {
	fill: rgba(0, 0, 0, .09);
}


/* bazowe kształty */

.pnw-box-preview-top,
.pnw-box-preview-side,
.pnw-box-preview-front {
	stroke-width: 1.6;
	stroke-linejoin: round;
}


/* wariant biały */

.pnw-box-preview-top {
	fill: #f7f3ec;
	stroke: #b8b0a5;
}

.pnw-box-preview-side {
	fill: #e8e1d6;
	stroke: #b8b0a5;
}

.pnw-box-preview-front {
	fill: #f1eadf;
	stroke: #b8b0a5;
}


/* wariant kraft */

.pnw-box-preview.is-kraft .pnw-box-preview-top {
	fill: #d8b07c;
	stroke: #a17746;
}

.pnw-box-preview.is-kraft .pnw-box-preview-side {
	fill: #c89c66;
	stroke: #a17746;
}

.pnw-box-preview.is-kraft .pnw-box-preview-front {
	fill: #d1a672;
	stroke: #a17746;
}



/* okienko */

.pnw-box-preview-window {
	fill: rgba(255,255,255,.34);
	stroke: #8fa6a9;
	stroke-width: 2.2;

	opacity: 0;

	transition: opacity .2s ease;
}

.pnw-box-preview.has-window .pnw-box-preview-window {
	opacity: 1;
}


/* logo */

.pnw-box-preview-logo {
	fill: #2f6b3f;

	font-size: 15px;
	font-weight: 800;
	font-family: inherit;

	letter-spacing: .02em;

	text-anchor: middle;
	dominant-baseline: middle;

	opacity: 0;

	transition: opacity .2s ease;
}

.pnw-box-preview.has-print .pnw-box-preview-logo {
	opacity: 1;
}


/* =========================================================
   SUMMARY ROWS
   ========================================================= */

.pnw-box-summary-list {
	border-top: 1px solid #edf0ee;
}


.pnw-box-summary-list > div {
	display: flex;

	align-items: flex-start;
	justify-content: space-between;

	gap: 12px;

	padding: 7px 0;

	border-bottom: 1px solid #edf0ee;
}


.pnw-box-summary-list span {
	color: var(--muted);

	font-size: 9px;
}


.pnw-box-summary-list strong {
	color: #2e3530;

	font-size: 9px;
	font-weight: 600;

	text-align: right;
}


.pnw-box-price-panel {
	margin-top: 12px;
	padding: 11px;

	border-radius: 7px;

	background: var(--green-soft);
}


.pnw-box-price-panel small {
	display: block;

	color: #66736b;

	font-size: 8px;
	font-weight: 700;

	text-transform: uppercase;
}


.pnw-box-price-panel strong {
	display: block;

	margin-top: 1px;

	color: var(--green);

	font-size: 17px;
}


.pnw-box-price-panel p {
	margin: 4px 0 0;

	color: #627068;

	font-size: 9px;

	line-height: 1.4;
}


/* =========================================================
   SPAM
   ========================================================= */

.pnw-box-hp {
	position: absolute !important;

	left: -99999px !important;

	width: 1px;
	height: 1px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

	.pnw-box-quick-form {
		grid-template-columns:
			repeat(4, minmax(0, 1fr));

		grid-template-areas:
			"width length height window"
			"box_type cardboard print quantity"
			"cta cta cta cta";
	}


	.pnw-box-quote-layout {
		grid-template-columns:
			minmax(0, 1fr)
			260px;
	}

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 900px) {

	.pnw-box-quote-layout {
		grid-template-columns: 1fr;
	}


	.pnw-box-summary-inner {
		position: static;
	}


	.pnw-box-quick-form {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));

		grid-template-areas:
			"width length"
			"height window"
			"box_type cardboard"
			"print quantity"
			"cta cta";
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

	.pnw-box-quick {
		padding: 9px;
	}


	.pnw-box-quick-form {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));

		grid-template-areas:
			"width length"
			"height window"
			"box_type cardboard"
			"print quantity"
			"cta cta";
	}


	.pnw-box-quick-cta button {
		min-height: 40px !important;
	}


	.pnw-box-quote-main {
		padding: 14px;
	}


	.pnw-box-quote-header h2 {
		font-size: 22px;
	}


	.pnw-box-config-sections {
		grid-template-columns: 1fr;
	}


	.pnw-box-config-sections
	.pnw-box-section:first-child {
		grid-column: auto;
	}


	.pnw-box-dimensions {
		grid-template-columns: 1fr;
	}


	.pnw-box-contact-grid {
		grid-template-columns: 1fr;
	}


	.pnw-box-field-full {
		grid-column: auto;
	}


	.pnw-box-choice-grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}


	.pnw-box-prefill-banner {
		align-items: flex-start;

		flex-direction: column;
	}


	.pnw-box-submit {
	display: flex !important;
	width: 100%;
}

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

	.pnw-box-quick-form {
		grid-template-columns: 1fr;

		grid-template-areas:
			"width"
			"length"
			"height"
			"window"
			"box_type"
			"cardboard"
			"print"
			"quantity"
			"cta";
	}


	.pnw-box-choice-grid {
		grid-template-columns: 1fr;
	}

}

/* =========================================================
   PNW – QUICK BOX QUOTE
   WĘŻSZY UKŁAD 3-KOLUMNOWY
   ========================================================= */

/* =========================================================
   PNW – QUICK BOX QUOTE
   DESKTOP – WĄSKI UKŁAD 2-KOLUMNOWY
   ========================================================= */

@media (min-width: 901px) {

	.pnw-box-quick {
		width: 100% !important;
		max-width: 540px !important;

		margin: 0 !important;
		padding: 10px !important;
	}


	.pnw-box-quick-form {
		display: grid !important;

		grid-template-columns:
			repeat(2, minmax(0, 1fr)) !important;

		grid-template-areas:
			"width     length"
			"height    window"
			"box_type  cardboard"
			"print     quantity"
			"cta       cta" !important;

		gap: 9px 10px !important;

		align-items: end !important;
	}


	.pnw-quick-width {
		grid-area: width !important;
	}


	.pnw-quick-length {
		grid-area: length !important;
	}


	.pnw-quick-height {
		grid-area: height !important;
	}


	.pnw-quick-window {
		grid-area: window !important;
	}


	.pnw-quick-box-type {
		grid-area: box_type !important;
	}


	.pnw-quick-cardboard {
		grid-area: cardboard !important;
	}


	.pnw-quick-print {
		grid-area: print !important;
	}


	.pnw-quick-quantity {
		grid-area: quantity !important;
	}


	.pnw-box-quick-cta {
		grid-area: cta !important;

		display: flex !important;
		flex-direction: column !important;

		gap: 6px !important;

		width: 100% !important;

		margin: 0 !important;
	}


	.pnw-box-quick-cta button {
		width: 100% !important;
		min-height: 40px !important;

		margin: 0 !important;
	}


	.pnw-box-quick-cta small {
		font-size: 10px !important;
		line-height: 1.25 !important;

		text-align: center !important;
	}

}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 601px) and (max-width: 900px) {

	.pnw-box-quick-form {
		grid-template-columns:
			repeat(2, minmax(0, 1fr)) !important;

		grid-template-areas:
			"width length"
			"height window"
			"box_type cardboard"
			"print quantity"
			"cta cta" !important;
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

	.pnw-box-quick-form {
		grid-template-columns:
			repeat(2, minmax(0, 1fr)) !important;

		grid-template-areas:
			"width length"
			"height window"
			"box_type cardboard"
			"print quantity"
			"cta cta" !important;
	}


	.pnw-box-quick-cta {
		grid-area: cta !important;
	}

}


/* bardzo mały telefon */

@media (max-width: 390px) {

	.pnw-box-quick-form {
		grid-template-columns: 1fr !important;

		grid-template-areas:
			"width"
			"length"
			"height"
			"window"
			"box_type"
			"cardboard"
			"print"
			"quantity"
			"cta" !important;
	}

}

/* =========================================================
   PNW – QUICK BOX QUOTE
   DESKTOP – WIĘKSZA / CZYTELNIEJSZA WERSJA
   ========================================================= */

@media (min-width: 901px) {

	.pnw-box-quick {
		max-width: 620px !important;

		padding: 14px !important;
	}


	.pnw-box-quick-form {
		gap: 10px 12px !important;
	}


	/* etykiety nad polami */

	.pnw-box-quick-form label > span {
		font-size: 10px !important;
		font-weight: 700 !important;

		line-height: 1.2 !important;
	}


	/* inputy + selecty */

	.pnw-box-quick-form input,
	.pnw-box-quick-form select {
		height: 42px !important;

		padding-left: 11px !important;
		padding-right: 11px !important;

		font-size: 12px !important;

		border-radius: 7px !important;
	}


	/* "szt." przy nakładzie */

	.pnw-box-quick-unit small {
		right: 10px !important;

		font-size: 10px !important;
	}


	/* przycisk */

	.pnw-box-quick-cta button {
		min-height: 44px !important;

		padding: 10px 14px !important;

		font-size: 12px !important;

		border-radius: 7px !important;
	}


	/* tekst pod przyciskiem */

	.pnw-box-quick-cta small {
		font-size: 10.5px !important;
		font-weight: 500 !important;

		line-height: 1.3 !important;
	}

}

/* =========================================================
   PNW – RODZAJ PUDEŁKA + WIZUALIZACJA FALOWANIA
   ========================================================= */

/* Ostatnia sekcja konfiguracji (Nakład) na całą szerokość. */
.pnw-box-config-sections > .pnw-box-section:last-child {
    grid-column: 1 / -1;
}

/* Wariant karbowany: delikatna tekstura zygzak na całej powierzchni. */
.pnw-box-preview-corrugation {
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.pnw-box-preview.is-corrugated .pnw-box-preview-corrugation {
    opacity: 1;
}

.pnw-box-preview-corrugated-panel {
    fill: none;
    stroke: #896845;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .55;
}

.pnw-box-preview.is-kraft .pnw-box-preview-corrugated-panel {
    stroke: #7d5d3b;
}

.pnw-box-preview:not(.is-kraft) .pnw-box-preview-corrugated-panel {
    stroke: #98a09a;
    opacity: .5;
}

.pnw-box-preview-corrugated-top {
    opacity: .42;
}

.pnw-box-preview-corrugated-side {
    opacity: .58;
}

.pnw-box-preview-corrugated-front {
    opacity: .52;
}


/* =========================================================
   PNW – DOPIESZCZENIE BANNERA PREFILL
   ========================================================= */

.pnw-box-prefill-banner {
    align-items: center !important;
}

.pnw-box-prefill-banner > div {
    flex: 1 1 auto;
    min-width: 0;
}

.pnw-box-edit-config {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    vertical-align: middle !important;

    min-width: 154px !important;
    min-height: 40px !important;
    height: 40px !important;

    margin: 0 !important;
    padding: 0 16px !important;

    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

@media (max-width: 767px) {
    .pnw-box-prefill-banner {
        align-items: flex-start !important;
    }

    .pnw-box-edit-config {
        align-self: flex-start !important;
        min-width: 0 !important;
    }
}
